@airframeui/tokens 0.0.6 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,18 +35,27 @@ import { tokens } from '@airframeui/tokens';
35
35
 
36
36
  JSON map for tooling: `@airframeui/tokens/tokens.json`
37
37
 
38
+ Token catalog (name, per-mode defaults, descriptions) for docs, VS Code, and AI:
39
+
40
+ ```js
41
+ import { catalog } from '@airframeui/tokens';
42
+ ```
43
+
44
+ Also: `@airframeui/tokens/catalog.json`
45
+
38
46
  ## Themes
39
47
 
40
- Light is the default. Switch with `data-theme` or the `.dark` class:
48
+ Light is the default. Switch **color scheme** with `data-theme` or the `.dark` class. Switch **brand palettes** with `data-brand` (composes with scheme):
41
49
 
42
50
  ```html
43
- <html data-theme="dark">
51
+ <html data-theme="dark" data-brand="acme">
44
52
 
45
53
  </html>
46
54
  ```
47
55
 
48
56
  ```js
49
- document.documentElement.setAttribute('data-theme', 'high-contrast');
57
+ document.documentElement.setAttribute('data-theme', 'dark');
58
+ document.documentElement.setAttribute('data-brand', 'acme');
50
59
  ```
51
60
 
52
61
  ## Customize
@@ -60,7 +69,7 @@ Override variables in your own CSS — no rebuild of this package:
60
69
  }
61
70
  ```
62
71
 
63
- See [Theming](https://airframeui.com/docs/theming) and [Tokens](https://airframeui.com/docs/tokens).
72
+ See [Theming](https://airframeui.com/docs/theming), [Tokens](https://airframeui.com/docs/tokens), and [Design tokens as the source of truth](https://airframeui.com/docs/token-source-of-truth) (Figma Variables export is on the [roadmap](https://airframeui.com/docs/roadmap)).
64
73
 
65
74
  ## Token model
66
75