/storefront-next:sfnext-themingfrom storefront-next
Rebrands and restyles a Storefront Next storefront by editing CSS tokens, fonts, logo, favicon, and brand copy with WCAG contrast checks. Use for theme-wide changes, not individual components.
Ships in storefront-next. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Your storefront has exactly one theme, in src/theme/, and it is yours to edit. Rebranding is mostly value changes in a few CSS files; components pick the new look up through token classes. Choose a starting look with sfnext create-storefront --vertical <id> (a starter theme) and then customize it as below.
| Concern | File |
|---|---|
Entry point and Tailwind @source scoping | src/theme/index.css (imports shared.css, which sets import order) |
| Palette: background, foreground, primary, secondary, accent, muted, border, ring, destructive/success/warning/info | src/theme/tokens/core.css |
Shape: --ui-radius, --ui-shadow, --ui-border-width | src/theme/tokens/core.css |
Header, menu, footer, newsletter band, --header-logo-filter | src/theme/tokens/header.css |
| Status and feedback colors | src/theme/tokens/status.css |
| Swatches, sidebar, agentic UI, payment and cart extras, focus helpers | tokens/swatch.css, sidebar.css, agentic.css, components.css, custom.css |
--brand-* color primitives and hero scrims (--hero-overlay-*, --hero-scrim) | src/theme/tokens/brand.css |
Font stacks --font-sans/-serif/-mono; token-to-utility bridge | src/theme/tailwind.css (@theme inline) |
@font-face, base layer, .section-container, section-scoped shape rules | src/theme/base.css |
| Component-level CSS (navigation, cart sheet, toasts, store locator) | src/theme/overrides/*.css |
| Font binding and preload | public/fonts/*.woff2, src/lib/fonts.ts (used by src/root.tsx) |
| Logo, favicon, hero and payment images | public/images/, public/favicon.ico |
| Site name and brand strings | src/locales/<locale>/translations.json (common.defaultSiteName) |
Palette values are not all derived from brand.css: core.css sets --primary and friends directly, so change them there. Token-to-class wiring and the full token file list are covered in storefront-next:sfnext-components (token system reference).
Open src/theme/index.css, tokens/core.css, tokens/header.css, and tailwind.css before editing. Keep variable names; change values.
Edit :root in tokens/core.css: --primary/--primary-foreground, --background/--foreground, --secondary, --accent, --muted, borders, --ring. Comments in the file record WCAG contrast ratios for the current values; recompute for yours. Minimums: 4.5:1 for text (--primary on --primary-foreground, --foreground on --background, each status color on its -foreground), 3:1 for borders and focus rings against the surface.
Update tokens/status.css if semantic colors clash with the new palette, and tokens/swatch.css, tokens/components.css where defaults look off.
tokens/header.css is deliberately decoupled from --primary, so changing the primary color does not recolor the header. Set --header-background/--header-foreground, menu hover/active colors, and --footer-* yourself. The logo is an image: for a dark header with a dark logo, set --header-logo-filter (for example brightness(0) invert(1) turns a black logo white; none leaves it alone). --newsletter-background defaults to var(--primary).
Set --ui-radius, --ui-shadow, --ui-border-width in core.css to re-skin every shadcn primitive at once. Flat and square: 0, none, 0. Soft and raised: var(--radius-xl), a light shadow, 0. Do not edit primitives or add rounded-*/shadow-* classes, and never write --radius-ui / --shadow-ui (compile-time bridges, silent no-op). Scoped overrides, section rules, and the Card border exception are covered in storefront-next:sfnext-components (shape tokens reference). If your default border width is 0, the section rules at the bottom of base.css re-enable 1px Card borders on account, auth, and checkout pages; adjust those to taste.
Four touch points, all must agree:
.woff2 in public/fonts/.src/lib/fonts.ts: import font from '/fonts/<file>.woff2'; export const primaryFont = font; (root.tsx preloads it).@font-face in src/theme/base.css (same URL, weight range, font-display: swap).--font-sans / --font-serif / --font-mono in src/theme/tailwind.css, with a fallback stack of similar metrics.Self-host fonts (WOFF2, preloaded, no third-party CDN). Remove the old font file if unused.
public/images/logo.svg (the Logo component in src/components/logo renders it; you can replace that component for an inline-SVG logo).public/favicon.ico.public/images/ (and the Page Designer content that references them).common.defaultSiteName in each src/locales/<locale>/translations.json you ship (used in page titles).--brand-black/--brand-white in brand.css feed --hero-overlay-dark/-light and --hero-scrim; update them with the brand so hero text stays legible.The shipped theme has one palette and no .dark token block. Do not promise dark mode; it would be new work (a .dark scope for every token file).
pnpm dev # look at home, PLP, PDP, cart, checkout, account
pnpm storybook # Design System/Theme/Colors, Typography, Radius, Shadows
pnpm lint # color-linter flags hard-coded colors
pnpm typecheck
pnpm storybook:test --type=snapshot # add --update only after reviewing intended changes
pnpm storybook:test --type=a11y # contrast and ARIA via axe-core
The Design System/Theme/* stories (src/design-system/stories/) render the live tokens and are the quickest visual check.
bg-[#...] in components.tokens/*.css file and bridge it in @theme inline in tailwind.css (see TOKEN-SYSTEM).src/theme/overrides/*.css (import it from shared.css) or base.css; prefer [data-slot="..."] selectors over utility-class selectors.If your designers work in Figma, keep the Figma variables and code tokens aligned with storefront-next-figma:sfnext-create-figma-kit (requires the Figma MCP server). Change the tokens in code first, then sync the kit.
storefront-next:sfnext-components - Build and style components with token classes and shape tokensstorefront-next:sfnext-accessibility - Contrast, focus, and accessibility scansstorefront-next:sfnext-i18n - Locale files that hold brand copystorefront-next:sfnext-performance - Font and image loading guidancestorefront-next:sfnext-page-designer - Content and hero components authored in Page Designerstorefront-next-figma:sfnext-create-figma-kit - Sync the Figma design kit with your tokensWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin storefront-next25 skills in this plugin
/sfnext-accessibilityBuild and fix accessible UI in a Storefront Next storefront (WCAG 2.1 AA): jsx-a11y lint findings, missing accessible names and labels, form error association, dialog focus management, aria-live status messages, keyboard behavior, color contrast, and verifying fixes with Storybook a11y/play() tests and the e2e axe scan with its baseline. Use for "accessibility", "a11y", "WCAG", "screen reader", "aria-label", "focus trap", "axe violation", pnpm lint:a11y, pnpm a11y, a11y-baseline.json, skip-a11y, STORYBOOK_A11Y_TEST_MODE, or an accessibility audit finding to fix. Do not use for general lint/typecheck gates (use `storefront-next:sfnext-quality-gates`), writing non-accessibility tests (use `storefront-next:sfnext-testing`), or color/token design (use `storefront-next:sfnext-theming`)./sfnext-analytics-consentStorefront Next analytics: engagement adapters (Einstein, Active Data, Data 360), adding a custom adapter, tracking consent gating, PageViewTracker, useAnalytics events, and first-touch attribution (dw_attribution). Use when configuring engagement.adapters in config.server.ts, writing an adapter with hasConsent, registering it in initializeEngagementAdapters, wiring the consent banner (trackingConsent, consentCategories, dw_dnt), firing trackViewProduct/trackCartItemAdd events, debugging why no analytics events are sent, or passing campaign attribution to orders. Do not use for general config loading or env vars (use `storefront-next:sfnext-configuration`), CSP/script allowlisting of third-party tags (use `storefront-next:sfnext-security`), or SEO meta/JSON-LD (use `storefront-next:sfnext-seo`)./sfnext-authenticationWork with Storefront Next's server-only authentication and session architecture (SLAS guest/registered tokens, httpOnly cookies, auth.server.ts middleware). Use for getAuth, useAuth, updateAuth, destroyAuth, protecting account routes, login/logout actions, guest-to-registered basket/wishlist merge, "session expired" redirects, 401 recovery loops, cc-at/cc-nx/usid/dwsid cookies, cookie names or expiry, passwordless login, social login, OTP email verification, passkeys, guest order lookup, or refresh-token lifetime settings. Do not use for Turnstile, CSP headers or cookie-domain config (use `storefront-next:sfnext-security`), calling SCAPI clients (use `storefront-next:sfnext-scapi`), or sharing sessions with SFRA (use `storefront-next:sfnext-hybrid-storefronts`)./sfnext-commerce-featuresCatalogue and router for optional Storefront Next commerce features: Shopper Context (qualifiers, source codes), Order Management returns/cancel/tracking (SOM/OMS), delivery estimates, feature stubs (@feature-stub), guest order lookup, the app_storefrontnext_base email cartridge, and the shipped extensions (bnpl, bopis, multiship, store-locator, ratings-reviews, customer-preferences, product-content, shipping-delivery, theme-switcher). For each: which flag, SLAS scope, Business Manager setting, cartridge, or extension registry entry it needs, and which in-project doc to read. Use when asked how to enable a feature, why a feature does not render, what prerequisites a feature has, or which stubs are mock data. Do not use for building a new extension (use `storefront-next:sfnext-extensions`), config loading (use `storefront-next:sfnext-configuration`), or SLAS login flows (use `storefront-next:sfnext-authentication`)./sfnext-componentsBuild and modify UI components in a Storefront Next storefront: page components with Suspense and use()/Await, createPage and withSuspense, Tailwind v4 token classes, shape tokens (rounded-ui, shadow-ui, border-ui), shadcn/ui primitives in src/components/ui (sync-shadcn), CVA variants, data-slot, DynamicImage, lazy-loaded overlays, and Storybook stories with snapshot tests. Use when creating or editing a component in src/components, adding a shadcn primitive, fixing styling that ignores the theme, writing a *.stories.tsx file, or running pnpm storybook:test. Do not use for re-branding colors, fonts, or logos (use `storefront-next:sfnext-theming`), route loaders (use `storefront-next:sfnext-data-fetching`), or Page Designer registration (use `storefront-next:sfnext-page-designer`)./sfnext-configurationConfigure a Storefront Next app: config.server.ts (defineConfig, metadata/runtime/app), AppConfig types in src/types/config.ts, PUBLIC__ environment variable overrides, getConfig(context) / useConfig(), extension config (app.extension, app.serverExtension), protected paths, server-only secrets, and multi-site settings (commerce.sites, url.prefix, seoRoutes, siteAliasMap, cookie domain). Use when editing config.server.ts, adding a config value, an env var is ignored or "not applied", `pnpm config:inspect` / `config:push-env`, "Ignoring environment variable" warnings, protected config path errors, setting up a second site or locale URLs, or going through the pre-launch config checklist. Do not use for creating a project or the npm script list (use `storefront-next:sfnext-project-setup`), pushing bundles or MRT env management (use `storefront-next:sfnext-deployment` / `b2c-cli:b2c-mrt`), or hybrid proxy and cookie-sharing with SFRA (use `storefront-next:sfnext-hybrid-storefronts`).Other plugins' skills for the same job