ui-foundations 0.3.1 → 0.4.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.
Files changed (69) hide show
  1. package/README.md +179 -36
  2. package/dist/assets/icons/checkmark.svg +1 -0
  3. package/dist/core/index.css +7 -7
  4. package/dist/macros/ui.njk +142 -0
  5. package/dist/main.css +465 -173
  6. package/dist/react/badge.js +41 -0
  7. package/dist/react/button.js +15 -6
  8. package/dist/react/checkbox.js +30 -0
  9. package/dist/react/icon.js +19 -1
  10. package/dist/react/index.js +2 -0
  11. package/dist/react/label.js +1 -1
  12. package/dist/react/radio.js +62 -0
  13. package/dist/react/switch.js +18 -0
  14. package/dist/tokens/css/{appearance-(modes).tokens.mode-dark.css → appearance-modes.tokens.mode-dark.css} +1 -1
  15. package/dist/tokens/css/{appearance-(modes).tokens.mode-light.css → appearance-modes.tokens.mode-light.css} +1 -1
  16. package/dist/tokens/css/{components-(ui).tokens.css → components-ui.tokens.css} +46 -3
  17. package/dist/tokens/css/{core-(primitives).tokens.css → core-primitives.tokens.css} +61 -19
  18. package/dist/tokens/css/{semantics-(roles).tokens.css → semantics-roles.tokens.css} +1 -1
  19. package/dist/tokens/css/themes-brands.tokens.brand-a.css +22 -0
  20. package/dist/tokens/css/{themes-(brands).tokens.brand-b.css → themes-brands.tokens.brand-b.css} +9 -9
  21. package/dist/tokens/json/appearance-modes.tokens.mode-dark.json +121 -0
  22. package/dist/tokens/json/appearance-modes.tokens.mode-light.json +121 -0
  23. package/dist/tokens/json/components-ui.tokens.json +715 -0
  24. package/dist/tokens/json/{core-(primitives).tokens.json → core-primitives.tokens.json} +227 -413
  25. package/dist/tokens/json/semantics-roles.tokens.json +141 -0
  26. package/dist/tokens/json/themes-brands.tokens.brand-a.json +81 -0
  27. package/dist/tokens/json/themes-brands.tokens.brand-b.json +81 -0
  28. package/dist/tokens/missing-tokens.json +43 -0
  29. package/dist/tokens/tokens.yaml +1254 -149
  30. package/dist/tokens/ts/{appearance-(modes).tokens.mode-dark.ts → appearance-modes.tokens.mode-dark.ts} +1 -1
  31. package/dist/tokens/ts/{appearance-(modes).tokens.mode-light.ts → appearance-modes.tokens.mode-light.ts} +1 -1
  32. package/dist/tokens/ts/{components-(ui).tokens.ts → components-ui.tokens.ts} +47 -4
  33. package/dist/tokens/ts/{core-(primitives).tokens.ts → core-primitives.tokens.ts} +62 -20
  34. package/dist/tokens/ts/{semantics-(roles).tokens.ts → semantics-roles.tokens.ts} +1 -1
  35. package/dist/tokens/ts/{themes-(brands).tokens.brand-a.ts → themes-brands.tokens.brand-a.ts} +9 -9
  36. package/dist/tokens/ts/{themes-(brands).tokens.brand-b.ts → themes-brands.tokens.brand-b.ts} +9 -9
  37. package/dist/ui/index.css +2 -0
  38. package/dist/ui/patterns/badge.css +49 -0
  39. package/dist/ui/patterns/checkbox.css +71 -22
  40. package/dist/ui/patterns/radio.css +109 -0
  41. package/docs/README.md +38 -0
  42. package/docs/agentic/README.md +34 -0
  43. package/docs/agentic/assistant-behavior-rules.md +48 -0
  44. package/docs/agentic/skills/ux-writing-coach.md +116 -0
  45. package/docs/foundations/README.md +31 -0
  46. package/docs/foundations/foundation-001-token-layering.md +6 -0
  47. package/docs/foundations/foundation-002-naming-and-grouping.md +6 -0
  48. package/docs/foundations/foundation-003-color-semantics-and-status.md +6 -0
  49. package/docs/foundations/foundation-004-typography-scale-and-line-height.md +6 -0
  50. package/docs/foundations/foundation-005-responsive-breakpoints-and-containers.md +6 -0
  51. package/docs/foundations/foundation-006-z-index-layering.md +6 -0
  52. package/docs/foundations/foundation-007-typography-selectors-and-specificity.md +6 -0
  53. package/docs/foundations/foundation-008-mode-activation-and-consumer-control.md +6 -0
  54. package/docs/foundations/foundation-009-component-boundaries-and-utility.md +6 -0
  55. package/docs/foundations/foundation-010-implementation-and-pipeline-workflow.md +6 -0
  56. package/docs/foundations/foundation-011-branching-and-release-governance.md +6 -0
  57. package/docs/foundations/foundation-012-minimal-markup-and-composition.md +6 -0
  58. package/package.json +16 -14
  59. package/dist/tokens/css/themes-(brands).tokens.brand-a.css +0 -22
  60. package/dist/tokens/json/appearance-(modes).tokens.mode-dark.json +0 -182
  61. package/dist/tokens/json/appearance-(modes).tokens.mode-light.json +0 -182
  62. package/dist/tokens/json/components-(ui).tokens.json +0 -739
  63. package/dist/tokens/json/semantics-(roles).tokens.json +0 -203
  64. package/dist/tokens/json/themes-(brands).tokens.brand-a.json +0 -115
  65. package/dist/tokens/json/themes-(brands).tokens.brand-b.json +0 -115
  66. package/docs/agentic/skills/README.md +0 -51
  67. package/docs/agentic/skills/design-ops-specialist/SKILL.md +0 -60
  68. package/docs/agentic/skills/design-system-architect/SKILL.md +0 -106
  69. package/docs/agentic/team-ai-playbook.md +0 -226
@@ -1,182 +0,0 @@
1
- {
2
- "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
3
- "Color": {
4
- "Text": {
5
- "Default": {
6
- "$type": "color",
7
- "$value": {
8
- "$ref": "Color/Neutral/800"
9
- }
10
- },
11
- "Inverse": {
12
- "$type": "color",
13
- "$value": {
14
- "$ref": "Color/Neutral/000"
15
- }
16
- },
17
- "Disabled": {
18
- "$type": "color",
19
- "$value": {
20
- "$ref": "Color/Neutral/600"
21
- }
22
- },
23
- "Brand": {
24
- "$type": "color",
25
- "$value": {
26
- "$ref": "Brand/Color/Primary"
27
- }
28
- },
29
- "Subtle": {
30
- "$type": "color",
31
- "$value": {
32
- "$ref": "Brand/Color/Subtle"
33
- }
34
- },
35
- "Strong": {
36
- "$type": "color",
37
- "$value": {
38
- "$ref": "Color/Neutral/1000"
39
- }
40
- },
41
- "Danger": {
42
- "$type": "color",
43
- "$value": {
44
- "$ref": "Brand/Color/Functional/Danger"
45
- }
46
- },
47
- "Success": {
48
- "$type": "color",
49
- "$value": {
50
- "$ref": "Brand/Color/Functional/Success"
51
- }
52
- }
53
- },
54
- "Fill": {
55
- "Surface": {
56
- "$type": "color",
57
- "$value": {
58
- "$ref": "Color/Neutral/000"
59
- }
60
- },
61
- "Disabled": {
62
- "$type": "color",
63
- "$value": {
64
- "$ref": "Color/Neutral/300"
65
- }
66
- },
67
- "Hover": {
68
- "$type": "color",
69
- "$value": {
70
- "$ref": "Color/Neutral/Alpha/500"
71
- }
72
- },
73
- "Brand": {
74
- "$type": "color",
75
- "$value": {
76
- "$ref": "Brand/Color/Primary"
77
- }
78
- },
79
- "Subtle": {
80
- "$type": "color",
81
- "$value": {
82
- "$ref": "Brand/Color/Subtle Light"
83
- }
84
- },
85
- "Active": {
86
- "$type": "color",
87
- "$value": {
88
- "$ref": "Brand/Color/Accent"
89
- }
90
- },
91
- "Danger": {
92
- "$type": "color",
93
- "$value": {
94
- "$ref": "Brand/Color/Functional/Danger"
95
- }
96
- },
97
- "Success": {
98
- "$type": "color",
99
- "$value": {
100
- "$ref": "Brand/Color/Functional/Success"
101
- }
102
- }
103
- },
104
- "Border": {
105
- "Default": {
106
- "$type": "color",
107
- "$value": {
108
- "$ref": "Color/Neutral/800"
109
- }
110
- },
111
- "Subtle": {
112
- "$type": "color",
113
- "$value": {
114
- "$ref": "Brand/Color/Subtle"
115
- }
116
- },
117
- "Strong": {
118
- "$type": "color",
119
- "$value": {
120
- "$ref": "Color/Neutral/1000"
121
- }
122
- },
123
- "Brand": {
124
- "$type": "color",
125
- "$value": {
126
- "$ref": "Brand/Color/Primary"
127
- }
128
- },
129
- "Disabled": {
130
- "$type": "color",
131
- "$value": {
132
- "$ref": "Color/Neutral/500"
133
- }
134
- },
135
- "Danger": {
136
- "$type": "color",
137
- "$value": {
138
- "colorSpace": "srgb",
139
- "components": [
140
- 1,
141
- 0,
142
- 0
143
- ],
144
- "alpha": 1,
145
- "hex": "#FF0000"
146
- }
147
- }
148
- },
149
- "Overlay": {
150
- "Backdrop": {
151
- "$type": "color",
152
- "$value": {
153
- "$ref": "Color/Neutral/Alpha/400"
154
- }
155
- },
156
- "Hover": {
157
- "$type": "color",
158
- "$value": {
159
- "$ref": "Color/Neutral/Alpha/200"
160
- }
161
- },
162
- "Active": {
163
- "$type": "color",
164
- "$value": {
165
- "$ref": "Color/Neutral/Alpha/400"
166
- }
167
- },
168
- "Selected": {
169
- "$type": "color",
170
- "$value": {
171
- "$ref": "Color/Neutral/Alpha/600"
172
- }
173
- }
174
- },
175
- "Focus": {
176
- "$type": "color",
177
- "$value": {
178
- "$ref": "Brand/Color/Primary"
179
- }
180
- }
181
- }
182
- }