Skip to content

docs(skill): declare the design tokens in @theme, not in theme.json - #1

Merged
ogorzalka merged 1 commit into
mainfrom
docs/theme-json-from-tailwind
Sep 28, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
docs/theme-json-from-tailwind

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

The pollora-theming skill said "theme.json controls block editor settings (colors, fonts, spacing)", which sends an agent to edit the wrong file: in Pollora themes, the build generates the editor's palette, font sizes, fonts and radii from @theme.

It now says:

  • tokens go in @theme static with concrete values;
  • never theme(static) on the import, never var(--wp--preset--…) inside @theme;
  • the root theme.json is the base: it wins per slug, and a family can be taken out of the generation with disableTailwind*.

Context: Pollora/theme-apiary#11, Pollora/theme-default#2, Pollora/documentation (same branch name).

@ogorzalka
ogorzalka merged commit 71bb557 into main Sep 28, 2026
4 checks passed
@ogorzalka
ogorzalka deleted the docs/theme-json-from-tailwind branch September 28, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant