ui-foundations 0.3.2 → 0.6.0

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 (87) hide show
  1. package/README.md +181 -37
  2. package/dist/assets/icons/checkmark.svg +1 -0
  3. package/dist/core/index.css +8 -7
  4. package/dist/macros/ui.njk +203 -0
  5. package/dist/main.css +941 -210
  6. package/dist/react/accordion.js +36 -0
  7. package/dist/react/avatar.js +34 -0
  8. package/dist/react/badge.js +41 -0
  9. package/dist/react/button.js +4 -6
  10. package/dist/react/checkbox.js +21 -8
  11. package/dist/react/divider.js +31 -0
  12. package/dist/react/icon.js +8 -1
  13. package/dist/react/index.js +8 -0
  14. package/dist/react/label.js +1 -1
  15. package/dist/react/radio.js +45 -0
  16. package/dist/react/switch.js +9 -8
  17. package/dist/react/tabs.js +72 -0
  18. package/dist/react/textarea.js +38 -0
  19. package/dist/react/tooltip.js +25 -0
  20. package/dist/react/warn-dev.js +15 -0
  21. package/dist/tokens/css/{appearance-(modes).tokens.mode-dark.css → appearance-modes.tokens.mode-dark.css} +6 -6
  22. package/dist/tokens/css/{appearance-(modes).tokens.mode-light.css → appearance-modes.tokens.mode-light.css} +1 -1
  23. package/dist/tokens/css/{components-(ui).tokens.css → components-ui.tokens.css} +73 -32
  24. package/dist/tokens/css/core-primitives.tokens.css +240 -0
  25. package/dist/tokens/css/{semantics-(roles).tokens.css → semantics-roles.tokens.css} +1 -1
  26. package/dist/tokens/css/themes-brands.tokens.brand-a.css +22 -0
  27. package/dist/tokens/css/{themes-(brands).tokens.brand-b.css → themes-brands.tokens.brand-b.css} +9 -9
  28. package/dist/tokens/css/themes-brands.tokens.brand-c.css +22 -0
  29. package/dist/tokens/json/appearance-modes.tokens.mode-dark.json +121 -0
  30. package/dist/tokens/json/appearance-modes.tokens.mode-light.json +121 -0
  31. package/dist/tokens/json/components-ui.tokens.json +713 -0
  32. package/dist/tokens/json/{core-(primitives).tokens.json → core-primitives.tokens.json} +526 -410
  33. package/dist/tokens/json/semantics-roles.tokens.json +141 -0
  34. package/dist/tokens/json/themes-brands.tokens.brand-a.json +81 -0
  35. package/dist/tokens/json/themes-brands.tokens.brand-b.json +81 -0
  36. package/dist/tokens/json/themes-brands.tokens.brand-c.json +81 -0
  37. package/dist/tokens/tokens.yaml +2722 -499
  38. package/dist/tokens/ts/{appearance-(modes).tokens.mode-dark.ts → appearance-modes.tokens.mode-dark.ts} +6 -6
  39. package/dist/tokens/ts/{appearance-(modes).tokens.mode-light.ts → appearance-modes.tokens.mode-light.ts} +1 -1
  40. package/dist/tokens/ts/{components-(ui).tokens.ts → components-ui.tokens.ts} +74 -33
  41. package/dist/tokens/ts/core-primitives.tokens.ts +265 -0
  42. package/dist/tokens/ts/{semantics-(roles).tokens.ts → semantics-roles.tokens.ts} +1 -1
  43. package/dist/tokens/ts/themes-brands.tokens.brand-a.ts +32 -0
  44. package/dist/tokens/ts/{themes-(brands).tokens.brand-b.ts → themes-brands.tokens.brand-b.ts} +9 -9
  45. package/dist/tokens/ts/{themes-(brands).tokens.brand-a.ts → themes-brands.tokens.brand-c.ts} +9 -9
  46. package/dist/ui/index.css +8 -0
  47. package/dist/ui/patterns/accordion.css +81 -0
  48. package/dist/ui/patterns/avatar.css +57 -0
  49. package/dist/ui/patterns/badge.css +49 -0
  50. package/dist/ui/patterns/checkbox.css +71 -22
  51. package/dist/ui/patterns/divider.css +25 -0
  52. package/dist/ui/patterns/radio.css +109 -0
  53. package/dist/ui/patterns/tabs.css +71 -0
  54. package/dist/ui/patterns/textarea.css +50 -0
  55. package/dist/ui/patterns/tooltip.css +64 -0
  56. package/docs/README.md +38 -0
  57. package/docs/agentic/README.md +35 -0
  58. package/docs/agentic/assistant-behavior-rules.md +48 -0
  59. package/docs/agentic/skills/component-accessibility-audit.md +132 -0
  60. package/docs/agentic/skills/ux-writing-coach.md +116 -0
  61. package/docs/foundations/README.md +31 -0
  62. package/docs/foundations/foundation-001-token-layering.md +6 -0
  63. package/docs/foundations/foundation-002-naming-and-grouping.md +6 -0
  64. package/docs/foundations/foundation-003-color-semantics-and-status.md +6 -0
  65. package/docs/foundations/foundation-004-typography-scale-and-line-height.md +6 -0
  66. package/docs/foundations/foundation-005-responsive-breakpoints-and-containers.md +6 -0
  67. package/docs/foundations/foundation-006-z-index-layering.md +6 -0
  68. package/docs/foundations/foundation-007-typography-selectors-and-specificity.md +7 -1
  69. package/docs/foundations/foundation-008-mode-activation-and-consumer-control.md +6 -0
  70. package/docs/foundations/foundation-009-component-boundaries-and-utility.md +6 -0
  71. package/docs/foundations/foundation-010-implementation-and-pipeline-workflow.md +6 -0
  72. package/docs/foundations/foundation-011-branching-and-release-governance.md +6 -0
  73. package/docs/foundations/foundation-012-minimal-markup-and-composition.md +6 -0
  74. package/package.json +16 -11
  75. package/dist/tokens/css/core-(primitives).tokens.css +0 -127
  76. package/dist/tokens/css/themes-(brands).tokens.brand-a.css +0 -22
  77. package/dist/tokens/json/appearance-(modes).tokens.mode-dark.json +0 -182
  78. package/dist/tokens/json/appearance-(modes).tokens.mode-light.json +0 -182
  79. package/dist/tokens/json/components-(ui).tokens.json +0 -739
  80. package/dist/tokens/json/semantics-(roles).tokens.json +0 -203
  81. package/dist/tokens/json/themes-(brands).tokens.brand-a.json +0 -115
  82. package/dist/tokens/json/themes-(brands).tokens.brand-b.json +0 -115
  83. package/dist/tokens/ts/core-(primitives).tokens.ts +0 -152
  84. package/docs/agentic/skills/README.md +0 -51
  85. package/docs/agentic/skills/design-ops-specialist/SKILL.md +0 -60
  86. package/docs/agentic/skills/design-system-architect/SKILL.md +0 -106
  87. package/docs/agentic/team-ai-playbook.md +0 -226
@@ -0,0 +1,141 @@
1
+ {
2
+ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
3
+ "Typography": {
4
+ "Heading": {
5
+ "Font Family": {
6
+ "$type": "fontFamily",
7
+ "$value": "{Brand.Font.Lead}"
8
+ },
9
+ "Font Size": {
10
+ "md": {
11
+ "$type": "number",
12
+ "$value": "{Font.Size.md}"
13
+ },
14
+ "xs": {
15
+ "$type": "number",
16
+ "$value": "{Font.Size.xs}"
17
+ },
18
+ "sm": {
19
+ "$type": "number",
20
+ "$value": "{Font.Size.sm}"
21
+ },
22
+ "lg": {
23
+ "$type": "number",
24
+ "$value": "{Font.Size.lg}"
25
+ },
26
+ "xl": {
27
+ "$type": "number",
28
+ "$value": "{Font.Size.xl}"
29
+ },
30
+ "xxl": {
31
+ "$type": "number",
32
+ "$value": "{Font.Size.xxl}"
33
+ },
34
+ "xxxl": {
35
+ "$type": "number",
36
+ "$value": "{Font.Size.xxxl}"
37
+ }
38
+ },
39
+ "Font Weight": {
40
+ "$type": "fontWeight",
41
+ "$value": "{Font.Weight.700}"
42
+ },
43
+ "Line Height": {
44
+ "md": {
45
+ "$type": "number",
46
+ "$value": "{Line Height.md}"
47
+ },
48
+ "xs": {
49
+ "$type": "number",
50
+ "$value": "{Line Height.xs}"
51
+ },
52
+ "sm": {
53
+ "$type": "number",
54
+ "$value": "{Line Height.sm}"
55
+ },
56
+ "lg": {
57
+ "$type": "number",
58
+ "$value": "{Line Height.lg}"
59
+ },
60
+ "xl": {
61
+ "$type": "number",
62
+ "$value": "{Line Height.xl}"
63
+ },
64
+ "xxl": {
65
+ "$type": "number",
66
+ "$value": "{Line Height.xxl}"
67
+ },
68
+ "xxxl": {
69
+ "$type": "number",
70
+ "$value": "{Line Height.xxxl}"
71
+ }
72
+ }
73
+ },
74
+ "Code": {
75
+ "$type": "fontFamily",
76
+ "$value": "{Font.Family.Mono}"
77
+ },
78
+ "Label": {
79
+ "Font Family": {
80
+ "$type": "fontFamily",
81
+ "$value": "{Brand.Font.Lead}"
82
+ },
83
+ "Font Weight": {
84
+ "$type": "fontWeight",
85
+ "$value": "{Font.Weight.600}"
86
+ },
87
+ "Font Size": {
88
+ "$type": "number",
89
+ "$value": "{Font.Size.md}"
90
+ },
91
+ "Line Height": {
92
+ "$type": "number",
93
+ "$value": "{Line Height.md}"
94
+ },
95
+ "Gap": {
96
+ "$type": "number",
97
+ "$value": "{Size.Spacing.200}"
98
+ }
99
+ },
100
+ "Body": {
101
+ "Font Family": {
102
+ "$type": "fontFamily",
103
+ "$value": "{Brand.Font.Base}"
104
+ },
105
+ "Font Weight": {
106
+ "$type": "fontWeight",
107
+ "$value": "{Font.Weight.400}"
108
+ },
109
+ "Font Size": {
110
+ "$type": "number",
111
+ "$value": "{Font.Size.md}"
112
+ },
113
+ "Line Height": {
114
+ "$type": "number",
115
+ "$value": "{Line Height.md}"
116
+ }
117
+ }
118
+ },
119
+ "Corner": {
120
+ "Button Radius": {
121
+ "$type": "number",
122
+ "$value": "{Brand.Corner.Button}"
123
+ },
124
+ "Card Radius": {
125
+ "$type": "number",
126
+ "$value": "{Brand.Corner.Card}"
127
+ },
128
+ "Modal Radius": {
129
+ "$type": "number",
130
+ "$value": "{Brand.Corner.Modal}"
131
+ },
132
+ "Form Radius": {
133
+ "$type": "number",
134
+ "$value": "{Brand.Corner.Card}"
135
+ },
136
+ "Checkbox Radius": {
137
+ "$type": "number",
138
+ "$value": "{Brand.Corner.Input}"
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
3
+ "Brand": {
4
+ "Color": {
5
+ "Functional": {
6
+ "Success": {
7
+ "$type": "color",
8
+ "$value": "{Color.Brand C.Green.30}"
9
+ },
10
+ "Danger": {
11
+ "$type": "color",
12
+ "$value": "{Color.Brand C.Red.30}"
13
+ },
14
+ "Base": {
15
+ "$type": "color",
16
+ "$value": "{Color.Brand C.Blue.10}"
17
+ },
18
+ "Base Dark": {
19
+ "$type": "color",
20
+ "$value": "{Color.Brand C.Midnight.10}"
21
+ }
22
+ },
23
+ "Primary": {
24
+ "$type": "color",
25
+ "$value": "{Color.Brand C.Blue.40}"
26
+ },
27
+ "Accent": {
28
+ "$type": "color",
29
+ "$value": "{Color.Brand C.Coolblue.60}"
30
+ },
31
+ "Primary Dark": {
32
+ "$type": "color",
33
+ "$value": "{Color.Brand C.Blue.10}"
34
+ },
35
+ "Accent Dark": {
36
+ "$type": "color",
37
+ "$value": "{Color.Brand C.Coolblue.10}"
38
+ },
39
+ "Subtle": {
40
+ "$type": "color",
41
+ "$value": "{Color.Neutral.500}"
42
+ },
43
+ "Subtle Dark": {
44
+ "$type": "color",
45
+ "$value": "{Color.Neutral.800}"
46
+ },
47
+ "Subtle Light": {
48
+ "$type": "color",
49
+ "$value": "{Color.Neutral.200}"
50
+ }
51
+ },
52
+ "Font": {
53
+ "Base": {
54
+ "$type": "string",
55
+ "$value": "{Font.Family.Sans}"
56
+ },
57
+ "Lead": {
58
+ "$type": "string",
59
+ "$value": "{Font.Family.Serif}"
60
+ }
61
+ },
62
+ "Corner": {
63
+ "Button": {
64
+ "$type": "number",
65
+ "$value": "{Size.Radius.full}"
66
+ },
67
+ "Card": {
68
+ "$type": "number",
69
+ "$value": "{Size.Radius.300}"
70
+ },
71
+ "Modal": {
72
+ "$type": "number",
73
+ "$value": "{Size.Radius.400}"
74
+ },
75
+ "Input": {
76
+ "$type": "number",
77
+ "$value": "{Size.Radius.200}"
78
+ }
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
3
+ "Brand": {
4
+ "Color": {
5
+ "Functional": {
6
+ "Success": {
7
+ "$type": "color",
8
+ "$value": "{Color.Brand C.Green.30}"
9
+ },
10
+ "Danger": {
11
+ "$type": "color",
12
+ "$value": "{Color.Brand C.Red.30}"
13
+ },
14
+ "Base": {
15
+ "$type": "color",
16
+ "$value": "{Color.Brand C.Blue.10}"
17
+ },
18
+ "Base Dark": {
19
+ "$type": "color",
20
+ "$value": "{Color.Brand C.Midnight.10}"
21
+ }
22
+ },
23
+ "Primary": {
24
+ "$type": "color",
25
+ "$value": "{Color.Brand C.Blue.40}"
26
+ },
27
+ "Accent": {
28
+ "$type": "color",
29
+ "$value": "{Color.Brand C.Coolblue.60}"
30
+ },
31
+ "Primary Dark": {
32
+ "$type": "color",
33
+ "$value": "{Color.Brand C.Blue.10}"
34
+ },
35
+ "Accent Dark": {
36
+ "$type": "color",
37
+ "$value": "{Color.Brand C.Coolblue.10}"
38
+ },
39
+ "Subtle": {
40
+ "$type": "color",
41
+ "$value": "{Color.Neutral.500}"
42
+ },
43
+ "Subtle Dark": {
44
+ "$type": "color",
45
+ "$value": "{Color.Neutral.800}"
46
+ },
47
+ "Subtle Light": {
48
+ "$type": "color",
49
+ "$value": "{Color.Neutral.200}"
50
+ }
51
+ },
52
+ "Font": {
53
+ "Base": {
54
+ "$type": "string",
55
+ "$value": "{Font.Family.Sans}"
56
+ },
57
+ "Lead": {
58
+ "$type": "string",
59
+ "$value": "{Font.Family.Serif}"
60
+ }
61
+ },
62
+ "Corner": {
63
+ "Button": {
64
+ "$type": "number",
65
+ "$value": "{Size.Radius.full}"
66
+ },
67
+ "Card": {
68
+ "$type": "number",
69
+ "$value": "{Size.Radius.300}"
70
+ },
71
+ "Modal": {
72
+ "$type": "number",
73
+ "$value": "{Size.Radius.400}"
74
+ },
75
+ "Input": {
76
+ "$type": "number",
77
+ "$value": "{Size.Radius.200}"
78
+ }
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
3
+ "Brand": {
4
+ "Color": {
5
+ "Functional": {
6
+ "Success": {
7
+ "$type": "color",
8
+ "$value": "{Color.Brand C.Green.30}"
9
+ },
10
+ "Danger": {
11
+ "$type": "color",
12
+ "$value": "{Color.Brand C.Red.30}"
13
+ },
14
+ "Base": {
15
+ "$type": "color",
16
+ "$value": "{Color.Brand C.Blue.10}"
17
+ },
18
+ "Base Dark": {
19
+ "$type": "color",
20
+ "$value": "{Color.Brand C.Midnight.10}"
21
+ }
22
+ },
23
+ "Primary": {
24
+ "$type": "color",
25
+ "$value": "{Color.Brand C.Blue.40}"
26
+ },
27
+ "Accent": {
28
+ "$type": "color",
29
+ "$value": "{Color.Brand C.Coolblue.60}"
30
+ },
31
+ "Primary Dark": {
32
+ "$type": "color",
33
+ "$value": "{Color.Brand C.Blue.10}"
34
+ },
35
+ "Accent Dark": {
36
+ "$type": "color",
37
+ "$value": "{Color.Brand C.Coolblue.10}"
38
+ },
39
+ "Subtle": {
40
+ "$type": "color",
41
+ "$value": "{Color.Neutral.500}"
42
+ },
43
+ "Subtle Dark": {
44
+ "$type": "color",
45
+ "$value": "{Color.Neutral.800}"
46
+ },
47
+ "Subtle Light": {
48
+ "$type": "color",
49
+ "$value": "{Color.Neutral.200}"
50
+ }
51
+ },
52
+ "Font": {
53
+ "Base": {
54
+ "$type": "string",
55
+ "$value": "{Font.Family.Sans}"
56
+ },
57
+ "Lead": {
58
+ "$type": "string",
59
+ "$value": "{Font.Family.Serif}"
60
+ }
61
+ },
62
+ "Corner": {
63
+ "Button": {
64
+ "$type": "number",
65
+ "$value": "{Size.Radius.full}"
66
+ },
67
+ "Card": {
68
+ "$type": "number",
69
+ "$value": "{Size.Radius.300}"
70
+ },
71
+ "Modal": {
72
+ "$type": "number",
73
+ "$value": "{Size.Radius.400}"
74
+ },
75
+ "Input": {
76
+ "$type": "number",
77
+ "$value": "{Size.Radius.200}"
78
+ }
79
+ }
80
+ }
81
+ }