@orange-halo/tokens 1.0.0 → 2.0.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.
- package/contrast-pairs.json +35 -0
- package/contrast.js +59 -0
- package/dist/themes/dark.css +59 -119
- package/dist/themes/dark.json +783 -0
- package/dist/themes/light.css +10 -9
- package/dist/tokens.css +133 -71
- package/dist/tokens.js +119 -55
- package/dist/tokens.json +162 -46
- package/package.json +8 -4
- package/tokens/component.tokens.json +81 -37
- package/tokens/global.tokens.json +836 -156
- package/tokens/semantic.tokens.json +704 -138
- package/tokens/themes/dark.tokens.json +66 -51
- package/tokens/themes/light.tokens.json +0 -57
|
@@ -3,34 +3,35 @@
|
|
|
3
3
|
"button": {
|
|
4
4
|
"$description": "Button — chunky, tactile, playful with offset shadows",
|
|
5
5
|
"base": {
|
|
6
|
-
"fontFamily": { "$type": "fontFamily", "$value": "{typography.
|
|
7
|
-
"fontWeight": { "$type": "fontWeight", "$value": "{
|
|
8
|
-
"letterSpacing": { "$type": "dimension", "$value": "{
|
|
9
|
-
"borderRadius": { "$type": "dimension", "$value": "{
|
|
6
|
+
"fontFamily": { "$type": "fontFamily", "$value": "{typography.control.fontFamily}" },
|
|
7
|
+
"fontWeight": { "$type": "fontWeight", "$value": "{typography.control.fontWeight}" },
|
|
8
|
+
"letterSpacing": { "$type": "dimension", "$value": "{typography.control.letterSpacing}" },
|
|
9
|
+
"borderRadius": { "$type": "dimension", "$value": "{shape.control}" },
|
|
10
10
|
"borderWidth": { "$type": "dimension", "$value": "2.5px" },
|
|
11
11
|
"transitionDuration": { "$type": "duration", "$value": "{motion.snappy}" },
|
|
12
12
|
"transitionEasing": { "$type": "cubicBezier", "$value": "{motion.easePlayful}" }
|
|
13
13
|
},
|
|
14
14
|
"size": {
|
|
15
|
+
"$description": "Matches oh-button.ts, which reads these. Minimum 16px text",
|
|
15
16
|
"sm": {
|
|
16
|
-
"fontSize": { "$type": "dimension", "$value": "{
|
|
17
|
-
"paddingX": { "$type": "dimension", "$value": "{spacing.
|
|
17
|
+
"fontSize": { "$type": "dimension", "$value": "{typography.control.fontSize.sm}" },
|
|
18
|
+
"paddingX": { "$type": "dimension", "$value": "{spacing.4}" },
|
|
18
19
|
"paddingY": { "$type": "dimension", "$value": "{spacing.2}" },
|
|
19
|
-
"minHeight": { "$type": "dimension", "$value": "
|
|
20
|
-
"gap": { "$type": "dimension", "$value": "{spacing.
|
|
20
|
+
"minHeight": { "$type": "dimension", "$value": "40px" },
|
|
21
|
+
"gap": { "$type": "dimension", "$value": "{spacing.2}" }
|
|
21
22
|
},
|
|
22
23
|
"md": {
|
|
23
|
-
"fontSize": { "$type": "dimension", "$value": "{
|
|
24
|
-
"paddingX": { "$type": "dimension", "$value": "{spacing.
|
|
25
|
-
"paddingY": { "$type": "dimension", "$value": "{spacing.
|
|
26
|
-
"minHeight": { "$type": "dimension", "$value": "
|
|
24
|
+
"fontSize": { "$type": "dimension", "$value": "{typography.control.fontSize.md}" },
|
|
25
|
+
"paddingX": { "$type": "dimension", "$value": "{spacing.6}" },
|
|
26
|
+
"paddingY": { "$type": "dimension", "$value": "{spacing.3}" },
|
|
27
|
+
"minHeight": { "$type": "dimension", "$value": "48px" },
|
|
27
28
|
"gap": { "$type": "dimension", "$value": "{spacing.2}" }
|
|
28
29
|
},
|
|
29
30
|
"lg": {
|
|
30
|
-
"fontSize": { "$type": "dimension", "$value": "{
|
|
31
|
-
"paddingX": { "$type": "dimension", "$value": "{spacing.
|
|
32
|
-
"paddingY": { "$type": "dimension", "$value": "{spacing.
|
|
33
|
-
"minHeight": { "$type": "dimension", "$value": "
|
|
31
|
+
"fontSize": { "$type": "dimension", "$value": "{typography.control.fontSize.lg}" },
|
|
32
|
+
"paddingX": { "$type": "dimension", "$value": "{spacing.8}" },
|
|
33
|
+
"paddingY": { "$type": "dimension", "$value": "{spacing.4}" },
|
|
34
|
+
"minHeight": { "$type": "dimension", "$value": "56px" },
|
|
34
35
|
"gap": { "$type": "dimension", "$value": "{spacing.2-5}" }
|
|
35
36
|
}
|
|
36
37
|
},
|
|
@@ -40,14 +41,14 @@
|
|
|
40
41
|
"background": { "$type": "color", "$value": "{color.brand.primary}" },
|
|
41
42
|
"backgroundHover": { "$type": "color", "$value": "{color.brand.primaryHover}" },
|
|
42
43
|
"backgroundActive": { "$type": "color", "$value": "{color.brand.primaryActive}" },
|
|
43
|
-
"color": { "$type": "color", "$value": "{color.
|
|
44
|
+
"color": { "$type": "color", "$value": "{color.text.onBrand}" },
|
|
44
45
|
"borderColor": { "$type": "color", "$value": "{color.brand.primary}" },
|
|
45
46
|
"shadowColor": { "$type": "color", "$value": "{shadow.primary}" }
|
|
46
47
|
},
|
|
47
48
|
"secondary": {
|
|
48
49
|
"$description": "Secondary — cream surface with emphasis border",
|
|
49
50
|
"background": { "$type": "color", "$value": "{color.surface.base}" },
|
|
50
|
-
"backgroundHover": { "$type": "color", "$value": "{color.surface.
|
|
51
|
+
"backgroundHover": { "$type": "color", "$value": "{color.surface.hover}" },
|
|
51
52
|
"backgroundActive": { "$type": "color", "$value": "{color.surface.activePressed}" },
|
|
52
53
|
"color": { "$type": "color", "$value": "{color.text.primary}" },
|
|
53
54
|
"borderColor": { "$type": "color", "$value": "{color.border.emphasis}" },
|
|
@@ -58,14 +59,13 @@
|
|
|
58
59
|
"background": { "$type": "color", "$value": "{color.accent.default}" },
|
|
59
60
|
"backgroundHover": { "$type": "color", "$value": "{color.accent.hover}" },
|
|
60
61
|
"backgroundActive": { "$type": "color", "$value": "{color.accent.active}" },
|
|
61
|
-
"color": { "$type": "color", "$value": "{color.
|
|
62
|
+
"color": { "$type": "color", "$value": "{color.text.onAccent}" },
|
|
62
63
|
"borderColor": { "$type": "color", "$value": "{color.accent.default}" },
|
|
63
64
|
"shadowColor": { "$type": "color", "$value": "{color.accent.shadow}" }
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
"focus": {
|
|
67
|
-
"$description": "
|
|
68
|
-
"ringWidth": { "$type": "dimension", "$value": "3px" },
|
|
68
|
+
"$description": "Focus is an underline in focus.ringColor; glow is decoration",
|
|
69
69
|
"ringColor": { "$type": "color", "$value": "{focus.ringColor}" },
|
|
70
70
|
"glowColor": { "$type": "color", "$value": "{focus.glowColor}" }
|
|
71
71
|
}
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"input": {
|
|
74
74
|
"$description": "Input — chunky border, inset shadow, tactile feel",
|
|
75
75
|
"base": {
|
|
76
|
-
"fontFamily": { "$type": "fontFamily", "$value": "{
|
|
77
|
-
"fontSize": { "$type": "dimension", "$value": "{
|
|
78
|
-
"lineHeight": { "$type": "number", "$value": "{
|
|
79
|
-
"borderRadius": { "$type": "dimension", "$value": "{
|
|
76
|
+
"fontFamily": { "$type": "fontFamily", "$value": "{typography.control.fontFamily}" },
|
|
77
|
+
"fontSize": { "$type": "dimension", "$value": "{typography.control.fontSize.md}" },
|
|
78
|
+
"lineHeight": { "$type": "number", "$value": "{typography.body.base.lineHeight}" },
|
|
79
|
+
"borderRadius": { "$type": "dimension", "$value": "{shape.control}" },
|
|
80
80
|
"borderWidth": { "$type": "dimension", "$value": "2.5px" },
|
|
81
81
|
"transitionDuration": { "$type": "duration", "$value": "{motion.snappy}" },
|
|
82
82
|
"transitionEasing": { "$type": "cubicBezier", "$value": "{motion.easeGentle}" }
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"borderColor": { "$type": "color", "$value": "{color.border.hover}" }
|
|
101
101
|
},
|
|
102
102
|
"focus": {
|
|
103
|
-
"background": { "$type": "color", "$value": "{color.surface.
|
|
104
|
-
"borderColor": { "$type": "color", "$value": "{
|
|
105
|
-
"focusRingColor": { "$type": "color", "$value": "{
|
|
103
|
+
"background": { "$type": "color", "$value": "{color.surface.highlight}" },
|
|
104
|
+
"borderColor": { "$type": "color", "$value": "{focus.ringColor}" },
|
|
105
|
+
"focusRingColor": { "$type": "color", "$value": "{focus.ringColor}" }
|
|
106
106
|
},
|
|
107
107
|
"error": {
|
|
108
108
|
"borderColor": { "$type": "color", "$value": "{color.feedback.error}" },
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"$description": "Card — raised surface with visible frame",
|
|
116
116
|
"base": {
|
|
117
117
|
"background": { "$type": "color", "$value": "{color.surface.raised}" },
|
|
118
|
-
"borderRadius": { "$type": "dimension", "$value": "{shape.
|
|
118
|
+
"borderRadius": { "$type": "dimension", "$value": "{shape.large}" },
|
|
119
119
|
"borderWidth": { "$type": "dimension", "$value": "{border.width.1}" },
|
|
120
120
|
"borderColor": { "$type": "color", "$value": "{color.border.default}" },
|
|
121
121
|
"shadow": { "$type": "shadow", "$value": "{elevation.soft}" },
|
|
@@ -125,25 +125,57 @@
|
|
|
125
125
|
"$description": "Interactive card — gentle warmth on hover",
|
|
126
126
|
"transitionDuration": { "$type": "duration", "$value": "{motion.gentle}" },
|
|
127
127
|
"transitionEasing": { "$type": "cubicBezier", "$value": "{motion.easeGentle}" },
|
|
128
|
-
"backgroundHover": { "$type": "color", "$value": "{color.
|
|
128
|
+
"backgroundHover": { "$type": "color", "$value": "{color.surface.base}" },
|
|
129
129
|
"borderColorHover": { "$type": "color", "$value": "{color.border.brand}" },
|
|
130
130
|
"shadowHover": { "$type": "shadow", "$value": "{elevation.medium}" }
|
|
131
131
|
},
|
|
132
|
+
"raised": {
|
|
133
|
+
"$description": "Raised card (default) — subtle top-lit gradient",
|
|
134
|
+
"gradientStart": { "$type": "color", "$value": "{color.surface.highlight}" },
|
|
135
|
+
"gradientMid": { "$type": "color", "$value": "{color.surface.base}" },
|
|
136
|
+
"gradientEnd": { "$type": "color", "$value": "{color.surface.raised}" },
|
|
137
|
+
"borderColor": { "$type": "color", "$value": "{color.border.default}" }
|
|
138
|
+
},
|
|
139
|
+
"flat": {
|
|
140
|
+
"$description": "Flat card — border-led, minimal shadow",
|
|
141
|
+
"gradientStart": { "$type": "color", "$value": "{color.surface.base}" },
|
|
142
|
+
"gradientEnd": { "$type": "color", "$value": "{color.surface.raised}" },
|
|
143
|
+
"borderColor": { "$type": "color", "$value": "{color.border.default}" }
|
|
144
|
+
},
|
|
132
145
|
"sunlit": {
|
|
133
146
|
"$description": "Sunlit card — featured with gradient",
|
|
134
147
|
"background": { "$type": "string", "$value": "{gradient.sunlit}" },
|
|
148
|
+
"gradientStart": { "$type": "color", "$value": "{color.warm.dawn}" },
|
|
149
|
+
"gradientMid": { "$type": "color", "$value": "{color.warm.shell}" },
|
|
150
|
+
"gradientEnd": { "$type": "color", "$value": "{color.warm.biscuit}" },
|
|
135
151
|
"borderColor": { "$type": "color", "$value": "{color.border.brand}" },
|
|
152
|
+
"borderColorHover": { "$type": "color", "$value": "rgba(197, 67, 0, 0.35)", "$description": "Decorative container edge — not a focus or control border" },
|
|
136
153
|
"shadow": { "$type": "shadow", "$value": "{elevation.medium}" }
|
|
154
|
+
},
|
|
155
|
+
"section": {
|
|
156
|
+
"$description": "Card header and footer",
|
|
157
|
+
"dividerColor": { "$type": "color", "$value": "rgba(226, 213, 200, 0.6)", "$description": "Decorative divider" },
|
|
158
|
+
"headerGradientStart": { "$type": "color", "$value": "rgba(255, 255, 255, 0.5)" },
|
|
159
|
+
"headerGradientEnd": { "$type": "color", "$value": "rgba(255, 255, 255, 0)" }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"progress": {
|
|
163
|
+
"$description": "Progress — chunky pill track",
|
|
164
|
+
"inverse": {
|
|
165
|
+
"$description": "On brand/accent backgrounds (e.g. journey hero). Fill is cream so it reads at 3.7:1 against the track.",
|
|
166
|
+
"trackBackground": { "$type": "color", "$value": "rgba(255, 255, 255, 0.15)" },
|
|
167
|
+
"trackBorder": { "$type": "color", "$value": "rgba(255, 255, 255, 0.3)" },
|
|
168
|
+
"fill": { "$type": "color", "$value": "{color.text.inverse}" }
|
|
137
169
|
}
|
|
138
170
|
},
|
|
139
171
|
"badge": {
|
|
140
172
|
"$description": "Badge — small status indicators",
|
|
141
173
|
"base": {
|
|
142
|
-
"fontFamily": { "$type": "fontFamily", "$value": "{
|
|
143
|
-
"fontSize": { "$type": "dimension", "$value": "{
|
|
144
|
-
"fontWeight": { "$type": "fontWeight", "$value": "{
|
|
145
|
-
"letterSpacing": { "$type": "dimension", "$value": "{
|
|
146
|
-
"borderRadius": { "$type": "dimension", "$value": "{shape.
|
|
174
|
+
"fontFamily": { "$type": "fontFamily", "$value": "{typography.label.fontFamily}" },
|
|
175
|
+
"fontSize": { "$type": "dimension", "$value": "{typography.body.base.fontSize}" },
|
|
176
|
+
"fontWeight": { "$type": "fontWeight", "$value": "{typography.label.base.fontWeight}" },
|
|
177
|
+
"letterSpacing": { "$type": "dimension", "$value": "{typography.label.base.letterSpacing}" },
|
|
178
|
+
"borderRadius": { "$type": "dimension", "$value": "{shape.compact}" },
|
|
147
179
|
"paddingX": { "$type": "dimension", "$value": "{spacing.2-5}" },
|
|
148
180
|
"paddingY": { "$type": "dimension", "$value": "{spacing.1}" }
|
|
149
181
|
},
|
|
@@ -169,7 +201,7 @@
|
|
|
169
201
|
"color": { "$type": "color", "$value": "{color.feedback.warning}" }
|
|
170
202
|
},
|
|
171
203
|
"neutral": {
|
|
172
|
-
"background": { "$type": "color", "$value": "{color.
|
|
204
|
+
"background": { "$type": "color", "$value": "{color.surface.inset}" },
|
|
173
205
|
"color": { "$type": "color", "$value": "{color.text.secondary}" }
|
|
174
206
|
}
|
|
175
207
|
}
|
|
@@ -179,6 +211,18 @@
|
|
|
179
211
|
"color": { "$type": "color", "$value": "{color.text.link}" },
|
|
180
212
|
"colorHover": { "$type": "color", "$value": "{color.text.linkHover}" },
|
|
181
213
|
"textDecoration": { "$type": "string", "$value": "underline" },
|
|
182
|
-
"textDecorationHover": { "$type": "string", "$value": "none" }
|
|
214
|
+
"textDecorationHover": { "$type": "string", "$value": "none" },
|
|
215
|
+
"inverse": {
|
|
216
|
+
"$description": "On brand/accent backgrounds",
|
|
217
|
+
"focusBackground": { "$type": "color", "$value": "rgba(0, 0, 0, 0.1)", "$description": "Focus tint — paired with the underline, which is the indicator" }
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"modal": {
|
|
221
|
+
"$description": "Modal dialog",
|
|
222
|
+
"overlay": { "$type": "color", "$value": "rgba(61, 50, 41, 0.6)", "$description": "Backdrop — darker than color.surface.overlay so the dialog stands out" }
|
|
223
|
+
},
|
|
224
|
+
"closeButton": {
|
|
225
|
+
"$description": "Icon-only close buttons in alerts and modals",
|
|
226
|
+
"backgroundHover": { "$type": "color", "$value": "rgba(0, 0, 0, 0.08)", "$description": "Neutral tint that works on every alert variant" }
|
|
183
227
|
}
|
|
184
228
|
}
|