diff --git a/.changeset/unplugin-discovery.md b/.changeset/unplugin-discovery.md new file mode 100644 index 0000000..de26241 --- /dev/null +++ b/.changeset/unplugin-discovery.md @@ -0,0 +1,5 @@ +--- +"@hebilicious/cssforge": patch +--- + +`cssforge --help` names the bundler plugin, `@hebilicious/cssforge-unplugin`, so a reader of the core package finds it. The package gets npm keywords. diff --git a/AGENTS.md b/AGENTS.md index ba76f2a..84d0105 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -88,6 +88,21 @@ Every module takes a `settings` object beside its `value`. - The README section for the module says whether a setting reaches the tokens or the CSS. A CLI flag is an adapter over the same resolution, not a second implementation. +## Skill, agent guide and package metadata + +- A change that adds or changes something a user installs or runs (a package, an entry point, a + command, an integration) also updates `skills/cssforge` and `packages/docs/agents.md` in the + same pull request. An agent that only has the skill must be able to find it. +- The skill is distributed on its own. It never refers to the README or to paths in this + repository (`packages/...`, `example/...`, Moon targets); it holds the facts itself in + `references/`, and points to source as `node_modules/@hebilicious/cssforge/src/`. +- When the skill or the agent guide describes an integration choice, it gives the options and + when each fits, rather than prescribing one: the CLI works without a dev server or a build. + It does not document the plugin APIs of each framework. +- Check each behavior the skill states against the code or the tests, not against the README. +- A package's `description` and `keywords` describe that package only, not its sibling + packages. + ## Updating the README.md To update the README, run `moon run cssforge:readme-update` from the workspace root. diff --git a/README.md b/README.md index bb55d94..ce8260a 100644 --- a/README.md +++ b/README.md @@ -1952,7 +1952,7 @@ Motion tokens follow the same rule: `motion.duration.ui.press` and `motion.easin #### Referencing Fluid Spacing To reference fluid spacing, use the `@` symbol and the label of the scale; ie: -`spacing_fluid-base@xs`. Do not include the prefix in the reference. The labels follow the +`spacing_fluid.base@xs`. Do not include the prefix in the reference. The labels follow the following convention : - 3xs diff --git a/packages/cssforge/README.md b/packages/cssforge/README.md index bb55d94..ce8260a 100644 --- a/packages/cssforge/README.md +++ b/packages/cssforge/README.md @@ -1952,7 +1952,7 @@ Motion tokens follow the same rule: `motion.duration.ui.press` and `motion.easin #### Referencing Fluid Spacing To reference fluid spacing, use the `@` symbol and the label of the scale; ie: -`spacing_fluid-base@xs`. Do not include the prefix in the reference. The labels follow the +`spacing_fluid.base@xs`. Do not include the prefix in the reference. The labels follow the following convention : - 3xs diff --git a/packages/cssforge/package.json b/packages/cssforge/package.json index e42bdd3..147a085 100644 --- a/packages/cssforge/package.json +++ b/packages/cssforge/package.json @@ -2,6 +2,11 @@ "name": "@hebilicious/cssforge", "version": "0.11.0", "description": "0 runtime design tokens generator for modern style systems.", + "keywords": [ + "cssforge", + "design-tokens", + "css-variables" + ], "license": "MIT", "type": "module", "main": "./dist/mod.js", diff --git a/packages/cssforge/src/cli.ts b/packages/cssforge/src/cli.ts index 33f247f..2a322cb 100644 --- a/packages/cssforge/src/cli.ts +++ b/packages/cssforge/src/cli.ts @@ -125,8 +125,9 @@ cliMain(cssforge, { version, context, toJsonSchema, - // The version is in the help so that a published build shows which one it is. - description: `cssforge ${version}\n\n${cssforge.description}`, + // The version is in the help so that a published build shows which one it is. The bundler + // plugin is a separate package, so the help names it for a reader who only has this one. + description: `cssforge ${version}\n\n${cssforge.description}\n\nTo generate the tokens inside a build instead (Vite, webpack, Rollup and the other bundlers\nunplugin supports), use the bundler plugin: @hebilicious/cssforge-unplugin.`, commands: [mcpCommand], output: { default: "auto", diff --git a/packages/cssforge/tests/cli-entry.test.ts b/packages/cssforge/tests/cli-entry.test.ts index daa06ff..a09282a 100644 --- a/packages/cssforge/tests/cli-entry.test.ts +++ b/packages/cssforge/tests/cli-entry.test.ts @@ -57,3 +57,14 @@ test("cli - runs when the entry point is invoked through a symlink", async () => await rm(tempDir, { recursive: true, force: true }); } }); + +test("cli - help points to the bundler plugin package", () => { + const cliPath = fileURLToPath(new URL("../src/cli.ts", import.meta.url)); + const help = spawnSync(process.execPath, [cliPath, "--help"], { + encoding: "utf8", + env: childEnv, + }); + + expect(help.status).toEqual(0); + expect(help.stdout).toContain("@hebilicious/cssforge-unplugin"); +}); diff --git a/packages/docs/agents.md b/packages/docs/agents.md index 57e7350..f9f2681 100644 --- a/packages/docs/agents.md +++ b/packages/docs/agents.md @@ -38,6 +38,10 @@ Each release publishes the same version to npm and to JSR. - Run: the package exposes a `cssforge` executable, so run it directly (`cssforge --mode all`, or `npx cssforge --mode all` with npm). `cssforge mcp` serves the same commands to an agent as MCP tools. +- Bundler plugin: `@hebilicious/cssforge-unplugin` is a separate package that generates the tokens + inside a Vite, webpack, Rollup or other unplugin-supported build, and so in any framework built + on one of them. It is an option next to the CLI, which also works without a dev server or a + build. The README's `Bundler Plugin` section lists the supported bundlers and the options. - JSR: `npx jsr add @hebilicious/cssforge` or `pnpm i jsr:@hebilicious/cssforge` - Runtime: Node 24 or newer, which loads `cssforge.config.ts` without a loader or `tsx` diff --git a/skills/cssforge/SKILL.md b/skills/cssforge/SKILL.md index e8196eb..fbbfdb8 100644 --- a/skills/cssforge/SKILL.md +++ b/skills/cssforge/SKILL.md @@ -10,15 +10,17 @@ artifacts, resolve variable references, or debug generation issues. ## Source of truth -Always prioritize official project docs and source types: +This skill is self-contained: its references hold what you need. For exact types, read the +TypeScript source the installed package ships in `node_modules/@hebilicious/cssforge/src/`. 1. `references/docs-index.md` -2. `README.md` (project root) +2. `references/token-patterns.md` 3. `references/source-schema-map.md` 4. `references/cli-reference.md` -5. `references/troubleshooting.md` +5. `references/bundler-plugin.md` +6. `references/troubleshooting.md` -Do not invent schema fields that are not present in docs or source types. +Do not invent schema fields that are not present in these references or the source types. ## Workflow @@ -28,29 +30,37 @@ Do not invent schema fields that are not present in docs or source types. - Fix references / generation errors - Wire CLI scripts and output paths -2. Author config from docs +2. Author the config - Start from `assets/config-templates/*.ts`. - Use package import in config: - `import { defineConfig } from "@hebilicious/cssforge";` -- Mirror patterns from README configuration sections. +- Follow the patterns in `references/token-patterns.md`. -3. Configure generation commands +3. Choose how tokens are generated +- The CLI (next step) works everywhere, with or without a dev server or a build. +- If the project builds with Vite, webpack, Rollup or another bundler that unplugin supports, + the bundler plugin `@hebilicious/cssforge-unplugin` is an option: it generates the CSS + inside the build. Read `references/bundler-plugin.md` before you propose it. + +4. Configure generation commands - Install the package from npm: `npm install --save-dev @hebilicious/cssforge` (the same version is on the secondary JSR channel: `npx jsr add @hebilicious/cssforge`). - Run the installed executable directly: `cssforge --mode all` (`npx cssforge` with npm, `pnpm cssforge` with pnpm). +- Wire it into the project's existing task runner (a `package.json` script, a Makefile, + ...) if the project uses one, and pass `--config` and the output flags its layout needs + (`references/cli-reference.md`). `cssforge --watch` rebuilds on each config change. - For an agent, `cssforge mcp` serves the same commands as MCP tools through stdio. -- For local repo examples, call the built CLI of the sibling package directly: pnpm only - links the workspace `cssforge` binary once `dist` exists, so a fresh checkout has no - `node_modules/.bin/cssforge` before the first build: - - `cssforge-generate`: `node ../../packages/cssforge/dist/cli.js --config ./cssforge.config.ts --mode css --css ./.cssforge/output.css` - - `cssforge-build-local`: `moon run cssforge:pack` - -4. Validate outputs -- Run `moon run :cssforge-build-local` then `moon run :cssforge-generate`. -- Verify `./.cssforge/output.css` exists and contains expected custom properties. - -5. Troubleshoot with docs -- Use `references/troubleshooting.md` and relevant README sections. -- For schema uncertainty, check `packages/cssforge/src/config.ts` and module types listed in - `references/source-schema-map.md`. + +5. Validate outputs +- Run `cssforge check` to validate the config, then `cssforge build` (or the project's own + generation command). +- Verify the CSS output (`./.cssforge/output.css` unless `--css` changes it) exists and + contains the expected custom properties. +- With the bundler plugin, run the project's build; set the plugin's `write` option to get + the stylesheet on disk for inspection. + +6. Troubleshoot +- Use `references/troubleshooting.md`. +- For schema uncertainty, check `node_modules/@hebilicious/cssforge/src/config.ts` and the + module types listed in `references/source-schema-map.md`. diff --git a/skills/cssforge/references/bundler-plugin.md b/skills/cssforge/references/bundler-plugin.md new file mode 100644 index 0000000..8020d6e --- /dev/null +++ b/skills/cssforge/references/bundler-plugin.md @@ -0,0 +1,82 @@ +# Bundler Plugin + +`@hebilicious/cssforge-unplugin` generates the tokens inside a build, from the same +`cssforge.config.ts`, instead of a separate CLI step. It is built on +[unplugin](https://unplugin.unjs.io), so it works with any framework whose build runs on one +of the bundlers below. + +## When to offer it + +It is one option next to the CLI. Offer it when the project has a supported build and the +user wants generation tied to that build or to its dev server. Keep the CLI when: + +- the work runs without a dev server or a build (a script, CI, or an agent checking output); +- another tool reads the generated files before the build runs; +- the output must be Style Dictionary JSON, JSON or TypeScript (the plugin serves CSS); +- the project uses the JSR package or has no bundler. + +## Install + +```bash +npm install --save-dev @hebilicious/cssforge @hebilicious/cssforge-unplugin +``` + +## Entry points + +| Bundler | Import | +| --- | --- | +| Vite | `@hebilicious/cssforge-unplugin/vite` | +| Rollup | `@hebilicious/cssforge-unplugin/rollup` | +| Rolldown | `@hebilicious/cssforge-unplugin/rolldown` | +| webpack | `@hebilicious/cssforge-unplugin/webpack` | +| Rspack | `@hebilicious/cssforge-unplugin/rspack` | +| Rsbuild | `@hebilicious/cssforge-unplugin/rsbuild` | +| esbuild | `@hebilicious/cssforge-unplugin/esbuild` | +| Farm | `@hebilicious/cssforge-unplugin/farm` | +| Bun | `@hebilicious/cssforge-unplugin/bun` | + +Register the entry point where the project, or its framework, accepts plugins for that +bundler. With Vite: + +```typescript +// vite.config.ts +import cssforge from "@hebilicious/cssforge-unplugin/vite"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [cssforge()], +}); +``` + +## Use the stylesheet + +```typescript +import "virtual:cssforge.css"; +``` + +TypeScript needs the ambient declaration for that import: + +```typescript +/// +``` + +The config and every local module it imports are watch files: editing a token regenerates +the stylesheet, and a Vite dev server updates it without a page reload. + +## Options + +```typescript +cssforge({ + // Resolved against the build's working directory. Default: ./cssforge.config.ts + config: "./cssforge.config.ts", + // Also write the stylesheet to disk. Default: false + write: { css: "./.cssforge/output.css" }, +}); +``` + +`write: true` uses `./.cssforge/output.css`, the CLI's default path. Set `write` when another +tool needs a real file, when the bundler has no CSS handling for virtual modules, or to import +the tokens into a cascade layer: `@import "virtual:cssforge.css" layer(cssforge)` does not +work, so import the written file with `layer(cssforge)` instead. + +The plugin output matches `cssforge --mode css` byte for byte. diff --git a/skills/cssforge/references/cli-reference.md b/skills/cssforge/references/cli-reference.md index ae265b0..f0fb91f 100644 --- a/skills/cssforge/references/cli-reference.md +++ b/skills/cssforge/references/cli-reference.md @@ -1,9 +1,9 @@ # CLI Reference The command line, the MCP server and the library target come from the capabilities in -`packages/cssforge/src/capabilities.ts`. Its catalog is `packages/cssforge/cssforge.acidcat.json`. The -entry point is `packages/cssforge/src/cli.ts`, and the operations are in -`packages/cssforge/src/forge.ts`. +`node_modules/@hebilicious/cssforge/src/capabilities.ts`. Its catalog is `node_modules/@hebilicious/cssforge/cssforge.acidcat.json`. The +entry point is `node_modules/@hebilicious/cssforge/src/cli.ts`, and the operations are in +`node_modules/@hebilicious/cssforge/src/forge.ts`. ## Commands @@ -49,7 +49,7 @@ On a terminal, each command writes text for a person. For a script, in CI or for `ConfigLoadFailed`, `InvalidConfig`, `WriteFailed`. - An invalid flag or value exits with `3`, with the message on stderr. -## Typical commands from docs +## Typical commands The npm package exposes a `cssforge` executable, so consumers run it directly (`npx cssforge` with npm, `pnpm cssforge` with pnpm): @@ -64,8 +64,6 @@ with npm, `pnpm cssforge` with pnpm): ## Programmatic API -From `README.md`: - - `import { generateCSS } from "@hebilicious/cssforge";` - `const css = generateCSS(config);` - `generateCSS(config, { colorFormats: ["hex", "rgb"] })` adds the extra color formats to diff --git a/skills/cssforge/references/docs-index.md b/skills/cssforge/references/docs-index.md index ea563d9..bfb6982 100644 --- a/skills/cssforge/references/docs-index.md +++ b/skills/cssforge/references/docs-index.md @@ -1,32 +1,23 @@ # CSS Forge Docs Index -This file maps user requests to official CSS Forge documentation. - -## Primary documentation - -- Local docs: `README.md` -- Remote docs: `https://raw.githubusercontent.com/Hebilicious/cssforge/refs/heads/main/README.md` +This file maps user requests to the references of this skill. ## What to read for each task -- Installation and setup: - - `README.md` -> `## Installation`, `## Quick Start` -- Token schema and examples: - - `README.md` -> `## Configuration` - - `### Colors` - - `### Spacing` - - `### Typography` - - `### Motion` - - `### Primitives` -- Variable references inside config: - - `README.md` -> `## Referencing Variables` +- Installation and generation commands: + - `SKILL.md` -> workflow steps 3 and 4 + - `references/cli-reference.md` +- Token schema and examples (colors, spacing, typography, motion, primitives): + - `references/token-patterns.md` + - `references/source-schema-map.md` for the exact types and settings +- Variable references inside config, and generated variable names: + - `references/token-patterns.md` -> `Reference syntax`, `Variable names` +- Generating tokens inside a build (Vite, Rollup, webpack and other bundlers, and the + frameworks built on them): + - `references/bundler-plugin.md` (package `@hebilicious/cssforge-unplugin`) - CLI options and outputs: - - `README.md` -> `## CLI Usage` - `references/cli-reference.md` - Programmatic usage: - - `README.md` -> `## Programmatic Usage` - -## Important rule from docs - -README `md:generate` comment blocks are source-of-truth examples. Keep their structure -when adapting configs. + - `references/cli-reference.md` -> `Programmatic API` +- Errors and unexpected output: + - `references/troubleshooting.md` diff --git a/skills/cssforge/references/source-schema-map.md b/skills/cssforge/references/source-schema-map.md index 9a8b679..d0db5c6 100644 --- a/skills/cssforge/references/source-schema-map.md +++ b/skills/cssforge/references/source-schema-map.md @@ -1,10 +1,11 @@ # Source Schema Map -When README examples are not enough, use source types. +When the patterns in `references/token-patterns.md` are not enough, use the source types. The +installed package ships them in `node_modules/@hebilicious/cssforge/src/`. ## Core config type -- `packages/cssforge/src/config.ts` +- `node_modules/@hebilicious/cssforge/src/config.ts` - `CSSForgeConfig` fields: - `colors: ColorConfig` - `typography: TypographyConfig` @@ -14,11 +15,11 @@ When README examples are not enough, use source types. ## Module type sources -- Colors schema: `packages/cssforge/src/modules/colors.ts` -- Spacing schema: `packages/cssforge/src/modules/spacing.ts` -- Typography schema: `packages/cssforge/src/modules/typography.ts` -- Motion schema: `packages/cssforge/src/modules/motion.ts` -- Primitives schema: `packages/cssforge/src/modules/primitive.ts` +- Colors schema: `node_modules/@hebilicious/cssforge/src/modules/colors.ts` +- Spacing schema: `node_modules/@hebilicious/cssforge/src/modules/spacing.ts` +- Typography schema: `node_modules/@hebilicious/cssforge/src/modules/typography.ts` +- Motion schema: `node_modules/@hebilicious/cssforge/src/modules/motion.ts` +- Primitives schema: `node_modules/@hebilicious/cssforge/src/modules/primitive.ts` ## Settings @@ -26,7 +27,7 @@ A `settings` object sits beside each module's `value`, with `settings.color` gro color output settings. - `ColorSettings`, `ColorFormatConfig`, `HexFormatOutputs` and `RgbFormatOutputs` in - `packages/cssforge/src/modules/colors.ts`, re-exported from `mod.ts`. + `node_modules/@hebilicious/cssforge/src/modules/colors.ts`, re-exported from `mod.ts`. - `settings.color.formats` is keyed by format: `hex` produces `string`, `digits` and `number`, `rgb` produces `string` and `array`, and each format takes `alpha`. - `settings.color.fallback` names the format whose `string` value becomes the CSS declaration, @@ -40,7 +41,7 @@ color output settings. ## Fluid typography checks - `FluidTypeScaleDefinition.settings.minLegibleSize` in - `packages/cssforge/src/modules/typography.ts`: px number greater than 0, or `false`; default + `node_modules/@hebilicious/cssforge/src/modules/typography.ts`: px number greater than 0, or `false`; default `12`. Read at `typography.fluid..settings.minLegibleSize`; anything else is rejected. - A step growing more than 2.5x (max/min size in px) throws (WCAG 1.4.4); exactly 2.5x passes. - Warnings, as `Diagnostic` (`code`, `severity`, `path`, `message`) from `getDiagnostics`: @@ -50,7 +51,7 @@ color output settings. ## Fluid typography output - Every step has one canonical size in px at `minWidth` and `maxWidth` - (`fluidTypeSteps` in `packages/cssforge/src/modules/typography.ts`). Step 0 and above are + (`fluidTypeSteps` in `node_modules/@hebilicious/cssforge/src/modules/typography.ts`). Step 0 and above are utopia-core's. Step `-n` is `step 0 / minTypeScale^n` at every width, so its wide end is `maxFontSize / minTypeScale^n`. The checks run once per step on it, and both representations are written from it. There is no option: every output holds both. @@ -74,7 +75,7 @@ color output settings. ## Motion -- `MotionConfig` and `MotionDurationSettings` in `packages/cssforge/src/modules/motion.ts`, +- `MotionConfig` and `MotionDurationSettings` in `node_modules/@hebilicious/cssforge/src/modules/motion.ts`, re-exported from `mod.ts`: `motion.duration..value.` and `motion.easing..value.`, emitted as `--motion-duration--` and `--motion-easing--`, with resolve paths `motion.duration..` and @@ -90,7 +91,7 @@ color output settings. ## Derived colors -- `ColorMix` in `packages/cssforge/src/modules/colors.ts`, re-exported from `mod.ts`: +- `ColorMix` in `node_modules/@hebilicious/cssforge/src/modules/colors.ts`, re-exported from `mod.ts`: `{ mix: { from, with, amount, in? } }`, accepted as a palette variant or a theme value. - `from` / `with`: a dotted token path without spaces, parentheses or `#` (the `variables` path syntax, such as `"palette.brand.500"`) naming a color declared earlier, emitted as @@ -102,7 +103,7 @@ color output settings. ## Light/dark themes - `ColorThemesSettings`, `LightDarkSettings` and `LightDarkColorScheme` in - `packages/cssforge/src/modules/colors.ts`, re-exported from `mod.ts`. + `node_modules/@hebilicious/cssforge/src/modules/colors.ts`, re-exported from `mod.ts`. - `colors.theme.settings.lightDark: { light, dark, colorScheme? }` names two themes, and needs the `theme: { value, settings }` form. `colorScheme: { light?, dark? }` takes selectors. - Each paired color is emitted once at `:root` as `light-dark(, )`, keyed @@ -114,7 +115,7 @@ color output settings. ## Exposed API entrypoint -- `packages/cssforge/src/mod.ts` exports `defineConfig`, `generateCSS`, `generateStyleDictionaryJSON`, `getDiagnostics`, `InvalidNameError`, `loadConfig`, the processing helpers, +- `node_modules/@hebilicious/cssforge/src/mod.ts` exports `defineConfig`, `generateCSS`, `generateStyleDictionaryJSON`, `getDiagnostics`, `InvalidNameError`, `loadConfig`, the processing helpers, and the config and token types (`CSSForgeConfig`, `MotionConfig`, `MotionDurationSettings`, `ColorFormatConfig`, `ColorMix`, `HexFormatOutputs`, `RgbFormatOutputs`, `ColorSettings`, `ColorThemesSettings`, `LightDarkSettings`, `LightDarkColorScheme`, `ColorFormat`, `HexColorValues`, `RgbColorValues`, @@ -123,4 +124,4 @@ color output settings. ## Guidance If a user asks for a field not represented in docs or these types, do not fabricate it. -Offer the nearest supported pattern from README + types. +Offer the nearest supported pattern from `references/token-patterns.md` and the types. diff --git a/skills/cssforge/references/token-patterns.md b/skills/cssforge/references/token-patterns.md index 935a3fc..2a7a9a3 100644 --- a/skills/cssforge/references/token-patterns.md +++ b/skills/cssforge/references/token-patterns.md @@ -1,6 +1,4 @@ -# Token Patterns From Official Docs - -All patterns below are derived from README configuration examples. +# Token Patterns ## Colors @@ -42,8 +40,23 @@ All patterns below are derived from README configuration examples. ## Reference syntax -- Use dot notation without `.value` segments. -- Fluid references use `@`, for example: +- Use dot notation without `.value` segments: `spacing.custom.size.value.1` is referenced + as `spacing.custom.size.1`. +- Fluid references use `@` and the step label, without the scale's `prefix`, for example: - spacing: `spacing_fluid.base@xs` - typography: `typography_fluid.comicsans@a` +- The default step labels are `3xs`, `2xs`, `xs`, `s`, `m`, `l`, `xl`, `2xl`, `3xl`; a scale + with custom labels uses its own. +- The pow representation of a typography step adds a `pow` segment: + `typography_fluid.comicsans.pow@a`, and its inputs and helpers are + `typography_fluid.comicsans.pow.`, such as `typography_fluid.comicsans.pow.max-type-scale`. - Motion references: `motion.duration.ui.press`, `motion.easing.ui.out` + +## Variable names + +- A theme variable is `--theme---`, at the path + `theme...`. +- `variantNameOnly: true` in a theme color's settings shortens the variable to `--`; + the path does not change. Use it with `selector` to apply a theme conditionally. +- `atRule` or `selector` on a color, gradient or theme applies it conditionally: the variables + are wrapped in `:root`, and the selector is placed outside it. diff --git a/skills/cssforge/references/troubleshooting.md b/skills/cssforge/references/troubleshooting.md index 0b4fa85..6eefe41 100644 --- a/skills/cssforge/references/troubleshooting.md +++ b/skills/cssforge/references/troubleshooting.md @@ -1,11 +1,10 @@ -# Troubleshooting (Docs-Driven) +# Troubleshooting ## Config import fails - Use package import in config: - `import { defineConfig } from "@hebilicious/cssforge";` -- If using local repo examples, run local package dry-run first: - - `moon run :cssforge-build-local` +- Check that `@hebilicious/cssforge` is installed in the project that holds the config. ## Generated output missing @@ -14,13 +13,13 @@ ## Variables do not resolve -- Verify reference syntax from README `## Referencing Variables`: +- Verify reference syntax from `references/token-patterns.md` -> `Reference syntax`: - No `.value` in references - Fluid scales require `@label` ## Unexpected variable names -- Check README notes on naming behavior, including theme options such as +- Check `references/token-patterns.md` -> `Variable names`, including theme options such as `variantNameOnly`. ## Need authoritative schema answer