/sitecore-blok:blok-themingfrom Sitecore Blok
Documents Blok design tokens (colors, typography, spacing, radius, shadows, breakpoints) and override strategies for dark mode, RTL, and iframe-constrained apps. Load before modifying any visual style in a Blok-based app.
Ships in Sitecore Blok. 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.
None: SKILL.md is the whole skill.
Blok's theme is applied via CSS variables + Tailwind config — installed in the blok-setup skill, Step 2, by adding theme.json. Do not override raw hex colors or font families in component files — change tokens at the theme level so the whole surface stays coherent.
Per https://blok.sitecore.com/theming, Blok exposes 8 token categories:
| Category | What it controls | Typical override need |
|---|---|---|
| Colors | Palette and base hues | Rare — Blok colors are the brand |
| Semantic tokens | Contextual roles (primary, destructive, muted, accent, background, foreground) | When a surface needs a non-default role |
| Typography | Font family, sizes, weights, line-heights | Rare — Blok ships the Sitecore type scale |
| Spacing | Margin/padding scale | Rare — stay inside the scale |
| Sizes | Component dimensional scale | When a component needs non-standard dimensions |
| Border radius | Corner rounding scale | Rare — radius is part of brand |
| Shadows | Elevation levels | Rare — elevation is part of brand |
| Breakpoints | Responsive breakpoints | When the app has Sitecore-specific viewport ranges (e.g. iframe-constrained Marketplace apps) |
Full per-category reference: https://blok.sitecore.com/theming.
Preferred order, from least invasive to most:
bg-primary, text-foreground, border-destructive. These adapt automatically across themes and dark mode.--background on that container only.theme.json equivalents in the global CSS. Only for project-wide brand adjustments — document the reason in the PRD or ADR.bg-[#c41230] defeats the system — future theme updates won't reach that code.Blok theme variables flip automatically under a .dark class on <html> (standard shadcn pattern). Use next-themes or equivalent — no Blok-specific provider needed.
Blok includes RTL support. See the RTL guide linked from https://blok.sitecore.com/resources. Enable via Tailwind's dir utilities or a dir="rtl" attribute on the root. Do not hardcode ml-* / mr-* — use ms-* / me-* (logical properties).
Marketplace apps render inside an iframe in the Cloud Portal. Two token categories deserve extra attention:
shadow-sm, shadow) in app-shell surfaces.See the blok-marketplace-integration skill for viewport constraints.
primary, muted, destructive) — not hex codes. Designs that reference Blok tokens are directly implementable.--primary globally — cascades through every component; scope overrides to containersh-[123px] — usually a smell that a size token was missed; check the Sizes category firsttheme.json — the #1 cause of "Blok doesn't look right" is forgetting Step 2 in the blok-setup skill--primary-foreground collapsed onto --primary in dark — verify the pair resolves to a contrasting value in both themes before relying on bg-primary text-primary-foreground. The Nova preset has shipped with them collapsed in dark mode at least once (a Marketplace app, 2026-04-27 — a share-link strip rendered as an unlabeled pastel bar). When in doubt for buttons styled bg-primary, prefer text-background as the label color, or scope a local --primary-foreground override.❌ (U+274C), ✅ (U+2705), ⚠️ (U+26A0+FE0F), and similar emoji codepoints render as built-in colored bitmaps on most platforms. They ignore color: hsl(var(--destructive)) and any other CSS color, and they ignore dark/light theme entirely. One Marketplace app (2026-04-27) shipped with ❌ in card error states — the result was a giant red-and-white bitmap dominating the panel regardless of theme.
For state icons that must inherit theme color, use:
✕ (U+2715) for error/close, ✓ (U+2713) for success, ! for warning, i for info. These render as font glyphs and respect color.currentColor for fill/stroke.<XCircle className="text-destructive" />.Never use emoji codepoints for any UI element that needs to communicate state via theme color.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-blok5 skills in this plugin
/blok-componentsCatalog of Blok primitives (65+) and composite bloks with registry URLs and the Marketplace quickstart inventory. Use to pick the right Sitecore-styled building block before writing custom markup in a Marketplace app or any Sitecore-styled UI./blok-marketplace-integrationHow Blok works inside a Marketplace app: iframe size limits per extension point, which Bloks fit where, shell patterns, theming in iframes, public-app submission checklist. Load when building a Marketplace app with Blok UI./blok-mcpConfigures the Blok MCP (via the shadcn MCP server) for Claude Code, Cursor or VS Code, so agents can list, add and compose Blok components. Use for AI-assisted UI in a Sitecore-styled project; needs blok-setup first./blok-setupExact commands to add Blok to a project: shadcn init, Blok theme, registry aliases, first component, Tailwind v4 notes. Use when scaffolding a Sitecore-styled UI or asked for the Sitecore design language. Never Chakra or legacy blok-theme.