@bolerish/tokens 0.0.0-stage → 0.11.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Minyeong Jeong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "@bolerish/tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.11.0",
4
+ "private": false,
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/myjeong19/ui.git"
8
+ },
9
+ "type": "module",
10
+ "exports": {
11
+ ".": "./src/index.ts",
12
+ "./color-palette": "./src/color-palette.stylex.ts",
13
+ "./density.stylex": "./src/density.stylex.ts",
14
+ "./themes.stylex": "./src/themes.stylex.ts",
15
+ "./semantic.stylex": "./src/semantic.stylex.ts",
16
+ "./tokens.stylex": "./src/semantic.stylex.ts"
17
+ },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "devDependencies": {
22
+ "@stylexjs/stylex": "0.19.0",
23
+ "typescript": "7.0.2"
24
+ },
25
+ "peerDependencies": {
26
+ "@stylexjs/stylex": "^0.19.0"
27
+ },
28
+ "scripts": {
29
+ "typecheck": "tsc --noEmit"
30
+ }
6
31
  }
@@ -0,0 +1,123 @@
1
+ {
2
+ "white": "oklch(100% 0 0)",
3
+ "chalk": "oklch(97.29485% 0.00287 264.542)",
4
+ "fog": "oklch(92.21905% 0.001342 286.374)",
5
+ "silver": "oklch(64.88123% 0.014593 262.359)",
6
+ "steel": "oklch(50.91762% 0.01212 261.768)",
7
+ "iron": "oklch(35.09517% 0.008057 255.546)",
8
+ "graphite": "oklch(26.44965% 0.009761 268.306)",
9
+ "carbon": "oklch(13.89505% 0.002948 246.256)",
10
+ "neutral0": "oklch(100% 0 0)",
11
+ "neutral50": "oklch(98.76094% 0.001705 247.839)",
12
+ "neutral100": "oklch(97.29485% 0.00287 264.542)",
13
+ "neutral150": "oklch(95.44668% 0.004559 258.325)",
14
+ "neutral175": "oklch(93.92132% 0.007469 260.732)",
15
+ "neutral200": "oklch(92.21905% 0.001342 286.374)",
16
+ "neutral300": "oklch(87.44433% 0.015239 260.729)",
17
+ "neutral400": "oklch(64.88123% 0.014593 262.359)",
18
+ "neutral450": "oklch(61.88292% 0.014771 262.356)",
19
+ "neutral500": "oklch(50.91762% 0.01212 261.768)",
20
+ "neutral600": "oklch(35.09517% 0.008057 255.546)",
21
+ "neutral700": "oklch(26.44965% 0.009761 268.306)",
22
+ "neutral800": "oklch(20.39403% 0.002529 247.951)",
23
+ "neutral850": "oklch(17.2333% 0.002638 247.98)",
24
+ "neutral900": "oklch(13.89505% 0.002948 246.256)",
25
+ "neutral950": "oklch(12.10126% 0.003858 245.473)",
26
+ "neutral1000": "oklch(0% 0 0)",
27
+ "primaryWeak": "oklch(96.74343% 0.001326 286.375)",
28
+ "primaryWeakDark": "oklch(27.39363% 0.005477 286.033)",
29
+ "primaryMuted": "oklch(37.03234% 0.01188 285.805)",
30
+ "primaryMutedDark": "oklch(87.11079% 0.005451 286.286)",
31
+ "primarySolid": "oklch(21.03309% 0.00586 285.885)",
32
+ "primarySolidDark": "oklch(91.97285% 0.004031 286.32)",
33
+ "primaryContrast": "oklch(21.03309% 0.00586 285.885)",
34
+ "primaryContrastDark": "oklch(91.97285% 0.004031 286.32)",
35
+ "redWeak": "oklch(88.842% 0.0501 22.71)",
36
+ "redWeakDark": "oklch(79.615% 0.1170 24.47 / 32%)",
37
+ "redMuted": "oklch(82.720% 0.0510 21.28)",
38
+ "redMutedDark": "oklch(71.697% 0.1767 23.77)",
39
+ "redSolid": "oklch(39.780% 0.1604 22.34)",
40
+ "redSolidDark": "oklch(79.615% 0.1170 24.47)",
41
+ "redContrast": "oklch(39.780% 0.1604 22.34)",
42
+ "redContrastDark": "oklch(87.589% 0.0659 24.27)",
43
+ "redFeedback": "oklch(46.019% 0.1794 22.12)",
44
+ "redBadge": "oklch(55.251% 0.1888 22.83)",
45
+ "redBadgeDark": "oklch(71.578% 0.1783 29.77)",
46
+ "orangeWeak": "oklch(88.680% 0.0597 54.50)",
47
+ "orangeWeakDark": "oklch(79.232% 0.1420 57.20 / 24%)",
48
+ "orangeMuted": "oklch(82.749% 0.0598 55.08)",
49
+ "orangeMutedDark": "oklch(70.938% 0.1405 56.89)",
50
+ "orangeSolid": "oklch(39.668% 0.0989 54.41)",
51
+ "orangeSolidDark": "oklch(79.232% 0.1420 57.20)",
52
+ "orangeContrast": "oklch(39.668% 0.0989 54.41)",
53
+ "orangeContrastDark": "oklch(87.437% 0.0803 57.28)",
54
+ "yellowWeak": "oklch(89.932% 0.0846 84.60)",
55
+ "yellowWeakDark": "oklch(78.635% 0.1457 89.67 / 32%)",
56
+ "yellowMuted": "oklch(82.759% 0.0996 85.33)",
57
+ "yellowMutedDark": "oklch(69.931% 0.1403 90)",
58
+ "yellowSolid": "oklch(39.679% 0.0811 89.57)",
59
+ "yellowSolidDark": "oklch(78.635% 0.1457 89.67)",
60
+ "yellowContrast": "oklch(39.679% 0.0811 89.57)",
61
+ "yellowContrastDark": "oklch(87.227% 0.1502 88.76)",
62
+ "yellowFeedback": "oklch(48.284% 0.0987 90.04)",
63
+ "yellowBadge": "oklch(87.026% 0.1672 89.94)",
64
+ "greenWeak": "oklch(88.883% 0.0603 141.35)",
65
+ "greenWeakDark": "oklch(77.164% 0.1234 143.03 / 32%)",
66
+ "greenMuted": "oklch(82.794% 0.0607 140.55)",
67
+ "greenMutedDark": "oklch(68.460% 0.1219 143.49)",
68
+ "greenSolid": "oklch(39.780% 0.1319 141.35)",
69
+ "greenSolidDark": "oklch(77.164% 0.1234 143.03)",
70
+ "greenContrast": "oklch(39.780% 0.1319 141.35)",
71
+ "greenContrastDark": "oklch(85.701% 0.1228 143.15)",
72
+ "greenFeedback": "oklch(47.252% 0.1593 142.77)",
73
+ "greenBadge": "oklch(52.575% 0.1736 141.18)",
74
+ "greenBadgeDark": "oklch(68.292% 0.1540 138.71)",
75
+ "cyanWeak": "oklch(87.036% 0.0651 214.63)",
76
+ "cyanWeakDark": "oklch(77.776% 0.0691 217.66 / 24%)",
77
+ "cyanMuted": "oklch(82.814% 0.0701 214.56)",
78
+ "cyanMutedDark": "oklch(69.157% 0.0701 216.58)",
79
+ "cyanSolid": "oklch(39.727% 0.0705 215.91)",
80
+ "cyanSolidDark": "oklch(77.776% 0.0691 217.66)",
81
+ "cyanContrast": "oklch(39.727% 0.0705 215.91)",
82
+ "cyanContrastDark": "oklch(86.361% 0.0691 217.16)",
83
+ "blueWeak": "oklch(88.873% 0.0494 253.08)",
84
+ "blueWeakDark": "oklch(78.788% 0.1067 269.17 / 32%)",
85
+ "blueMuted": "oklch(82.782% 0.0497 254.11)",
86
+ "blueMutedDark": "oklch(70.325% 0.1529 263.59)",
87
+ "blueSolid": "oklch(39.777% 0.1328 255.38)",
88
+ "blueSolidDark": "oklch(78.788% 0.1067 269.17)",
89
+ "blueContrast": "oklch(39.777% 0.1328 255.38)",
90
+ "blueContrastDark": "oklch(87.221% 0.0624 273.09)",
91
+ "blueBadge": "oklch(56.862% 0.1886 255.20)",
92
+ "purpleWeak": "oklch(88.776% 0.0594 319.84)",
93
+ "purpleWeakDark": "oklch(80.457% 0.1702 322.40 / 24%)",
94
+ "purpleMuted": "oklch(82.803% 0.0587 319.66)",
95
+ "purpleMutedDark": "oklch(72.362% 0.2005 321.31)",
96
+ "purpleSolid": "oklch(39.712% 0.1906 319.94)",
97
+ "purpleSolidDark": "oklch(80.457% 0.1702 322.40)",
98
+ "purpleContrast": "oklch(39.712% 0.1906 319.94)",
99
+ "purpleContrastDark": "oklch(88.122% 0.1033 323.74)",
100
+ "pinkWeak": "oklch(88.765% 0.0609 354.86)",
101
+ "pinkWeakDark": "oklch(79.985% 0.1308 354.26 / 24%)",
102
+ "pinkMuted": "oklch(82.709% 0.0594 355.30)",
103
+ "pinkMutedDark": "oklch(71.991% 0.1660 354.87)",
104
+ "pinkSolid": "oklch(39.812% 0.1633 355.32)",
105
+ "pinkSolidDark": "oklch(79.985% 0.1308 354.26)",
106
+ "pinkContrast": "oklch(39.812% 0.1633 355.32)",
107
+ "pinkContrastDark": "oklch(87.736% 0.0742 353.89)",
108
+ "alphaBlack4": "oklch(0% 0 0 / 5%)",
109
+ "alphaBlack6": "oklch(0% 0 0 / 6%)",
110
+ "alphaBlack8": "oklch(0% 0 0 / 8%)",
111
+ "alphaBlack10": "oklch(0% 0 0 / 10%)",
112
+ "alphaBlack20": "oklch(0% 0 0 / 20%)",
113
+ "alphaBlack30": "oklch(0% 0 0 / 30%)",
114
+ "alphaBlack40": "oklch(0% 0 0 / 40%)",
115
+ "alphaBlack50": "oklch(0% 0 0 / 50%)",
116
+ "alphaBlack80": "oklch(0% 0 0 / 80%)",
117
+ "alphaWhite5": "oklch(100% 0 0 / 5%)",
118
+ "alphaWhite8": "oklch(100% 0 0 / 8%)",
119
+ "alphaWhite10": "oklch(100% 0 0 / 10%)",
120
+ "alphaWhite12": "oklch(100% 0 0 / 12%)",
121
+ "alphaWhite20": "oklch(100% 0 0 / 20%)",
122
+ "alphaWhite50": "oklch(100% 0 0 / 50%)"
123
+ }
@@ -0,0 +1,212 @@
1
+ import * as stylex from "@stylexjs/stylex";
2
+
3
+ // Palette values are generated from ../palette.oklch.json by pnpm palette:generate.
4
+ export const colorPalette = stylex.defineVars({
5
+ white: "#FFFFFF",
6
+ chalk: "#F5F6F8",
7
+ fog: "#E5E5E6",
8
+ silver: "#8A8F98",
9
+ steel: "#62666D",
10
+ iron: "#383B3F",
11
+ graphite: "#23252A",
12
+ carbon: "#08090A",
13
+ neutral0: "#FFFFFF",
14
+ neutral50: "#FAFBFC",
15
+ neutral100: "#F5F6F8",
16
+ neutral150: "#EEF0F3",
17
+ neutral175: "#E8EBF0",
18
+ neutral200: "#E5E5E6",
19
+ neutral300: "#D0D6E0",
20
+ neutral400: "#8A8F98",
21
+ neutral450: "#81868F",
22
+ neutral500: "#62666D",
23
+ neutral600: "#383B3F",
24
+ neutral700: "#23252A",
25
+ neutral800: "#161718",
26
+ neutral850: "#0F1011",
27
+ neutral900: "#08090A",
28
+ neutral950: "#050607",
29
+ neutral1000: "#000000",
30
+ primaryWeak: "#F4F4F5",
31
+ primaryWeakDark: "#27272A",
32
+ primaryMuted: "#3F3F46",
33
+ primaryMutedDark: "#D4D4D8",
34
+ primarySolid: "#18181B",
35
+ primarySolidDark: "#E4E4E7",
36
+ primaryContrast: "#18181B",
37
+ primaryContrastDark: "#E4E4E7",
38
+ redWeak: "#FACECB",
39
+ redWeakDark: "#FF9E9752",
40
+ redMuted: "#E6BAB8",
41
+ redMutedDark: "#FF6F6C",
42
+ redSolid: "#89001A",
43
+ redSolidDark: "#FF9E97",
44
+ redContrast: "#89001A",
45
+ redContrastDark: "#FFC6C1",
46
+ redFeedback: "#A50C25",
47
+ redBadge: "#C9303A",
48
+ redBadgeDark: "#FF705D",
49
+ orangeWeak: "#FAD0B5",
50
+ orangeWeakDark: "#FFA2583D",
51
+ orangeMuted: "#E6BDA2",
52
+ orangeMutedDark: "#E2883E",
53
+ orangeSolid: "#6E3500",
54
+ orangeSolidDark: "#FFA258",
55
+ orangeContrast: "#6E3500",
56
+ orangeContrastDark: "#FFC9A2",
57
+ yellowWeak: "#F8DA9D",
58
+ yellowWeakDark: "#DEB43352",
59
+ yellowMuted: "#E4C279",
60
+ yellowMutedDark: "#C0990E",
61
+ yellowSolid: "#584400",
62
+ yellowSolidDark: "#DEB433",
63
+ yellowContrast: "#584400",
64
+ yellowContrastDark: "#FDCF4F",
65
+ yellowFeedback: "#745B00",
66
+ yellowBadge: "#FFCE2F",
67
+ greenWeak: "#C5E5C0",
68
+ greenWeakDark: "#84C98052",
69
+ greenMuted: "#B2D1AC",
70
+ greenMutedDark: "#69AD67",
71
+ greenSolid: "#0C5700",
72
+ greenSolidDark: "#84C980",
73
+ greenContrast: "#0C5700",
74
+ greenContrastDark: "#9FE59B",
75
+ greenFeedback: "#007004",
76
+ greenBadge: "#198100",
77
+ greenBadgeDark: "#64AF4C",
78
+ cyanWeak: "#A3E0EF",
79
+ cyanWeakDark: "#83C2D43D",
80
+ cyanMuted: "#91D3E3",
81
+ cyanMutedDark: "#67A7B8",
82
+ cyanSolid: "#00505F",
83
+ cyanSolidDark: "#83C2D4",
84
+ cyanContrast: "#00505F",
85
+ cyanContrastDark: "#9EDEF0",
86
+ blueWeak: "#C4DDFB",
87
+ blueWeakDark: "#9EB7FF52",
88
+ blueMuted: "#B1C9E7",
89
+ blueMutedDark: "#6D9CFE",
90
+ blueSolid: "#00458C",
91
+ blueSolidDark: "#9EB7FF",
92
+ blueContrast: "#00458C",
93
+ blueContrastDark: "#C7D3FF",
94
+ blueBadge: "#0074E2",
95
+ purpleWeak: "#ECCEF3",
96
+ purpleWeakDark: "#F297FF3D",
97
+ purpleMuted: "#D8BBDF",
98
+ purpleMutedDark: "#DD74F0",
99
+ purpleSolid: "#700084",
100
+ purpleSolidDark: "#F297FF",
101
+ purpleContrast: "#700084",
102
+ purpleContrastDark: "#FAC1FF",
103
+ pinkWeak: "#FCCADC",
104
+ pinkWeakDark: "#FF99C33D",
105
+ pinkMuted: "#E7B7C8",
106
+ pinkMutedDark: "#F273AA",
107
+ pinkSolid: "#83004B",
108
+ pinkSolidDark: "#FF99C3",
109
+ pinkContrast: "#83004B",
110
+ pinkContrastDark: "#FFC3DA",
111
+ alphaBlack4: "#0000000D",
112
+ alphaBlack6: "#0000000F",
113
+ alphaBlack8: "#00000014",
114
+ alphaBlack10: "#0000001A",
115
+ alphaBlack20: "#00000033",
116
+ alphaBlack30: "#0000004D",
117
+ alphaBlack40: "#00000066",
118
+ alphaBlack50: "#00000080",
119
+ alphaBlack80: "#000000CC",
120
+ alphaWhite5: "#FFFFFF0D",
121
+ alphaWhite8: "#FFFFFF14",
122
+ alphaWhite10: "#FFFFFF1A",
123
+ alphaWhite12: "#FFFFFF1F",
124
+ alphaWhite20: "#FFFFFF33",
125
+ alphaWhite50: "#FFFFFF80",
126
+ });
127
+
128
+ export const colorPaletteGroups = {
129
+ monochrome: {
130
+ white: colorPalette.white,
131
+ chalk: colorPalette.chalk,
132
+ fog: colorPalette.fog,
133
+ silver: colorPalette.silver,
134
+ steel: colorPalette.steel,
135
+ iron: colorPalette.iron,
136
+ graphite: colorPalette.graphite,
137
+ carbon: colorPalette.carbon,
138
+ },
139
+ neutral: {
140
+ 0: colorPalette.neutral0,
141
+ 50: colorPalette.neutral50,
142
+ 100: colorPalette.neutral100,
143
+ 150: colorPalette.neutral150,
144
+ 175: colorPalette.neutral175,
145
+ 200: colorPalette.neutral200,
146
+ 300: colorPalette.neutral300,
147
+ 400: colorPalette.neutral400,
148
+ 450: colorPalette.neutral450,
149
+ 500: colorPalette.neutral500,
150
+ 600: colorPalette.neutral600,
151
+ 700: colorPalette.neutral700,
152
+ 800: colorPalette.neutral800,
153
+ 850: colorPalette.neutral850,
154
+ 900: colorPalette.neutral900,
155
+ 950: colorPalette.neutral950,
156
+ 1000: colorPalette.neutral1000,
157
+ },
158
+ primary: {
159
+ weak: colorPalette.primaryWeak,
160
+ muted: colorPalette.primaryMuted,
161
+ solid: colorPalette.primarySolid,
162
+ contrast: colorPalette.primaryContrast,
163
+ },
164
+ red: {
165
+ weak: colorPalette.redWeak,
166
+ muted: colorPalette.redMuted,
167
+ solid: colorPalette.redSolid,
168
+ contrast: colorPalette.redContrast,
169
+ },
170
+ orange: {
171
+ weak: colorPalette.orangeWeak,
172
+ muted: colorPalette.orangeMuted,
173
+ solid: colorPalette.orangeSolid,
174
+ contrast: colorPalette.orangeContrast,
175
+ },
176
+ yellow: {
177
+ weak: colorPalette.yellowWeak,
178
+ muted: colorPalette.yellowMuted,
179
+ solid: colorPalette.yellowSolid,
180
+ contrast: colorPalette.yellowContrast,
181
+ },
182
+ green: {
183
+ weak: colorPalette.greenWeak,
184
+ muted: colorPalette.greenMuted,
185
+ solid: colorPalette.greenSolid,
186
+ contrast: colorPalette.greenContrast,
187
+ },
188
+ cyan: {
189
+ weak: colorPalette.cyanWeak,
190
+ muted: colorPalette.cyanMuted,
191
+ solid: colorPalette.cyanSolid,
192
+ contrast: colorPalette.cyanContrast,
193
+ },
194
+ blue: {
195
+ weak: colorPalette.blueWeak,
196
+ muted: colorPalette.blueMuted,
197
+ solid: colorPalette.blueSolid,
198
+ contrast: colorPalette.blueContrast,
199
+ },
200
+ purple: {
201
+ weak: colorPalette.purpleWeak,
202
+ muted: colorPalette.purpleMuted,
203
+ solid: colorPalette.purpleSolid,
204
+ contrast: colorPalette.purpleContrast,
205
+ },
206
+ pink: {
207
+ weak: colorPalette.pinkWeak,
208
+ muted: colorPalette.pinkMuted,
209
+ solid: colorPalette.pinkSolid,
210
+ contrast: colorPalette.pinkContrast,
211
+ },
212
+ } as const;
@@ -0,0 +1,7 @@
1
+ import * as stylex from "@stylexjs/stylex";
2
+
3
+ /** Keep focus strokes, 24px icon-xs controls and touch targets independent of density. */
4
+ export const densityStyles = stylex.create({
5
+ default: { "--bolerish-density": 1 },
6
+ compact: { "--bolerish-density": 0.875 },
7
+ });
package/src/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ export { colorPalette, colorPaletteGroups } from "./color-palette.stylex";
2
+ export {
3
+ colorVars,
4
+ layoutVars,
5
+ layerVars,
6
+ motionVars,
7
+ opacityVars,
8
+ radiusVars,
9
+ shadowVars,
10
+ sizeVars,
11
+ spacingVars,
12
+ spacingRoleVars,
13
+ typo,
14
+ typographyVars,
15
+ } from "./semantic.stylex";
16
+
17
+ export { densityStyles } from "./density.stylex";
@@ -0,0 +1,177 @@
1
+ import * as stylex from "@stylexjs/stylex";
2
+
3
+ import { colorPalette } from "./color-palette.stylex";
4
+
5
+ export const colorVars = stylex.defineVars({
6
+ bgCanvas: colorPalette.chalk,
7
+ bgSurface: colorPalette.white,
8
+ bgSurfacePressed: colorPalette.chalk,
9
+ bgInverse: colorPalette.carbon,
10
+ /** Neutral grouping surface; does not indicate selection. */
11
+ bgSubtle: colorPalette.fog,
12
+ bgRaised: colorPalette.white,
13
+ bgRaisedPressed: colorPalette.chalk,
14
+ /** Flat persistent selection. Pair with fgPrimary and a check or boundary. */
15
+ bgSelected: colorPalette.fog,
16
+ /** Area that will receive a dragged item; not an insertion marker. */
17
+ bgDropTarget: colorPalette.fog,
18
+ bgCurrent: colorPalette.alphaBlack6,
19
+ bgOverlay: colorPalette.alphaBlack40,
20
+ bgSkeleton: colorPalette.fog,
21
+ bgActionPrimaryHover: colorPalette.primaryMuted,
22
+ bgActionPrimary: colorPalette.primarySolid,
23
+ bgActionDestructive: colorPalette.redFeedback,
24
+ bgFeedbackInfo: colorPalette.blueWeak,
25
+ bgFeedbackSuccess: colorPalette.greenWeak,
26
+ bgFeedbackWarning: colorPalette.yellowWeak,
27
+ bgFeedbackError: colorPalette.redWeak,
28
+ fgPrimary: colorPalette.carbon,
29
+ fgSecondary: colorPalette.iron,
30
+ fgTertiary: colorPalette.steel,
31
+ fgDisabled: colorPalette.silver,
32
+ fgInverse: colorPalette.chalk,
33
+ fgOnActionPrimary: colorPalette.white,
34
+ fgOnActionDestructive: colorPalette.neutral0,
35
+ fgAction: colorPalette.carbon,
36
+ fgFeedbackInfo: colorPalette.blueSolid,
37
+ fgFeedbackSuccess: colorPalette.greenFeedback,
38
+ fgFeedbackWarning: colorPalette.yellowFeedback,
39
+ fgFeedbackError: colorPalette.redFeedback,
40
+ strokeDefault: colorPalette.fog,
41
+ /** Emphasized grouping boundary, including menu separators. */
42
+ strokeControl: colorPalette.neutral450,
43
+ strokeStrong: colorPalette.steel,
44
+ /** Exact insertion position during drag; pair with a position label. */
45
+ strokeDropIndicator: colorPalette.carbon,
46
+ strokeFocus: colorPalette.iron,
47
+ strokeAction: colorPalette.primarySolid,
48
+ strokeFeedbackInfo: colorPalette.blueMuted,
49
+ strokeFeedbackSuccess: colorPalette.greenMuted,
50
+ strokeFeedbackWarning: colorPalette.yellowMuted,
51
+ strokeFeedbackError: colorPalette.redFeedback,
52
+ interactionDefault: "transparent",
53
+ interactionHover: colorPalette.alphaBlack6,
54
+ // Translucent state layers preserve the underlying surface; press is stronger than hover.
55
+ interactionPressed: colorPalette.alphaBlack10,
56
+ interactionSolidHover: colorPalette.alphaWhite10,
57
+ interactionSolidPressed: colorPalette.alphaWhite20,
58
+ /** Raised selection inside bgSubtle; pair with fgPrimary and shadowVars.subtle. */
59
+ interactionSelected: colorPalette.white,
60
+ interactionDisabled: colorPalette.alphaBlack8,
61
+ interactionFocus: colorPalette.iron,
62
+ });
63
+
64
+ export const spacingVars = stylex.defineVars({
65
+ space0: "0",
66
+ space0_5: "calc(0.125 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
67
+ space1: "calc(0.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
68
+ space2: "calc(0.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
69
+ space3: "calc(0.75 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
70
+ space4: "calc(1 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
71
+ space5: "calc(1.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
72
+ space6: "calc(1.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
73
+ space8: "calc(2 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
74
+ space10: "calc(2.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
75
+ space12: "calc(3 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
76
+ });
77
+
78
+ export const spacingRoleVars = stylex.defineVars({
79
+ /** Page inline padding; safe-area insets belong to the app. */
80
+ pageGutter: spacingVars.space4,
81
+ /** Padding inside a card or panel. */
82
+ panelPadding: spacingVars.space4,
83
+ /** Independent sections. */
84
+ sectionGap: spacingVars.space8,
85
+ /** Related fields. */
86
+ fieldGap: spacingVars.space4,
87
+ /** A label and its control, or help text. */
88
+ labelGap: spacingVars.space2,
89
+ /** Related elements in one row. */
90
+ inlineGap: spacingVars.space2,
91
+ /** A title and its description. */
92
+ textGap: spacingVars.space1,
93
+ });
94
+
95
+ export const layoutVars = stylex.defineVars({
96
+ contentMaxWidth: "calc(65 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
97
+ });
98
+
99
+ export const sizeVars = stylex.defineVars({
100
+ controlXs: "1.5rem",
101
+ controlSm: "calc(2 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
102
+ controlMd: "calc(2.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
103
+ controlLg: "calc(2.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
104
+ controlXl: "calc(3 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
105
+ iconXs: "calc(0.75 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
106
+ iconSm: "calc(0.875 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
107
+ iconMd: "calc(1 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
108
+ iconLg: "calc(1.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
109
+ contentXs: "calc(18 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
110
+ contentSm: "calc(24 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
111
+ contentMd: "calc(32 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
112
+ trackSm: "calc(0.375 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
113
+ trackMd: "calc(0.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
114
+ touchTarget: "2.75rem",
115
+ stroke: "0.0625rem",
116
+ focusRing: "0.125rem",
117
+ });
118
+
119
+ export const radiusVars = stylex.defineVars({
120
+ sm: "0.25rem",
121
+ md: "0.5rem",
122
+ lg: "0.75rem",
123
+ xl: "1rem",
124
+ full: "9999px",
125
+ });
126
+
127
+ export const shadowVars = stylex.defineVars({
128
+ subtle: "0 1px 4px oklch(0% 0 0 / 8%)",
129
+ floating: "0 2px 10px oklch(0% 0 0 / 10%)",
130
+ overlay: "0 4px 16px oklch(0% 0 0 / 12%)",
131
+ });
132
+
133
+ export const layerVars = stylex.defineVars({
134
+ modalBackdrop: "50",
135
+ modal: "51",
136
+ popup: "60",
137
+ notification: "70",
138
+ });
139
+
140
+ export const typo = stylex.defineVars({
141
+ /** @deprecated Use fontFamilyBody or fontFamilyHeading instead. */
142
+ fontFamily:
143
+ 'var(--bolerish-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
144
+ fontFamilyBody:
145
+ 'var(--bolerish-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
146
+ fontFamilyHeading:
147
+ 'var(--bolerish-font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
148
+ fontSizeXs: "calc(0.75 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
149
+ fontSizeSm: "calc(0.875 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
150
+ fontSizeMd: "calc(1 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
151
+ fontSizeLg: "calc(1.125 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
152
+ fontSizeXl: "calc(1.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
153
+ lineHeightTight: "1.25",
154
+ lineHeightNormal: "1.5",
155
+ fontWeightRegular: "400",
156
+ fontWeightMedium: "500",
157
+ fontWeightSemibold: "600",
158
+ });
159
+
160
+ export const opacityVars = stylex.defineVars({
161
+ disabled: "0.6",
162
+ });
163
+
164
+ export const motionVars = stylex.defineVars({
165
+ durationInstant: "0.01ms",
166
+ durationFast: "120ms",
167
+ durationNormal: "180ms",
168
+ durationSlow: "240ms",
169
+ durationLoading: "700ms",
170
+ durationLoadingReduced: "1.5s",
171
+ easingStandard: "cubic-bezier(0.2, 0, 0, 1)",
172
+ easingEnter: "cubic-bezier(0.16, 1, 0.3, 1)",
173
+ easingExit: "cubic-bezier(0.4, 0, 1, 1)",
174
+ });
175
+
176
+ /** Compatibility export; new code uses typo. */
177
+ export { typo as typographyVars };
@@ -0,0 +1,120 @@
1
+ import * as stylex from "@stylexjs/stylex";
2
+
3
+ import { colorPalette } from "./color-palette.stylex";
4
+ import { colorVars, shadowVars } from "./semantic.stylex";
5
+
6
+ export const lightColorTheme = stylex.createTheme(colorVars, {
7
+ bgCanvas: colorPalette.chalk,
8
+ bgSurface: colorPalette.white,
9
+ bgSurfacePressed: colorPalette.chalk,
10
+ bgInverse: colorPalette.carbon,
11
+ bgSubtle: colorPalette.fog,
12
+ bgRaised: colorPalette.white,
13
+ bgRaisedPressed: colorPalette.chalk,
14
+ bgSelected: colorPalette.fog,
15
+ bgDropTarget: colorPalette.fog,
16
+ bgCurrent: colorPalette.alphaBlack6,
17
+ bgOverlay: colorPalette.alphaBlack40,
18
+ bgSkeleton: colorPalette.fog,
19
+ bgActionPrimaryHover: colorPalette.primaryMuted,
20
+ bgActionPrimary: colorPalette.primarySolid,
21
+ bgActionDestructive: colorPalette.redFeedback,
22
+ bgFeedbackInfo: colorPalette.blueWeak,
23
+ bgFeedbackSuccess: colorPalette.greenWeak,
24
+ bgFeedbackWarning: colorPalette.yellowWeak,
25
+ bgFeedbackError: colorPalette.redWeak,
26
+ fgPrimary: colorPalette.carbon,
27
+ fgSecondary: colorPalette.iron,
28
+ fgTertiary: colorPalette.steel,
29
+ fgDisabled: colorPalette.silver,
30
+ fgInverse: colorPalette.chalk,
31
+ fgOnActionPrimary: colorPalette.white,
32
+ fgOnActionDestructive: colorPalette.neutral0,
33
+ fgAction: colorPalette.carbon,
34
+ fgFeedbackInfo: colorPalette.blueSolid,
35
+ fgFeedbackSuccess: colorPalette.greenFeedback,
36
+ fgFeedbackWarning: colorPalette.yellowFeedback,
37
+ fgFeedbackError: colorPalette.redFeedback,
38
+ strokeDefault: colorPalette.fog,
39
+ strokeControl: colorPalette.neutral450,
40
+ strokeStrong: colorPalette.steel,
41
+ strokeDropIndicator: colorPalette.carbon,
42
+ strokeFocus: colorPalette.iron,
43
+ strokeAction: colorPalette.primarySolid,
44
+ strokeFeedbackInfo: colorPalette.blueMuted,
45
+ strokeFeedbackSuccess: colorPalette.greenMuted,
46
+ strokeFeedbackWarning: colorPalette.yellowMuted,
47
+ strokeFeedbackError: colorPalette.redFeedback,
48
+ interactionDefault: "transparent",
49
+ interactionHover: colorPalette.alphaBlack6,
50
+ interactionPressed: colorPalette.alphaBlack10,
51
+ interactionSolidHover: colorPalette.alphaWhite10,
52
+ interactionSolidPressed: colorPalette.alphaWhite20,
53
+ interactionSelected: colorPalette.white,
54
+ interactionDisabled: colorPalette.alphaBlack8,
55
+ interactionFocus: colorPalette.iron,
56
+ });
57
+
58
+ export const darkColorTheme = stylex.createTheme(colorVars, {
59
+ bgCanvas: colorPalette.neutral900,
60
+ bgSurface: colorPalette.neutral850,
61
+ bgSurfacePressed: colorPalette.neutral800,
62
+ bgInverse: colorPalette.white,
63
+ bgSubtle: colorPalette.neutral800,
64
+ bgRaised: colorPalette.neutral800,
65
+ bgRaisedPressed: colorPalette.graphite,
66
+ bgSelected: colorPalette.graphite,
67
+ bgDropTarget: colorPalette.graphite,
68
+ bgCurrent: colorPalette.alphaWhite8,
69
+ bgOverlay: colorPalette.alphaBlack40,
70
+ bgSkeleton: colorPalette.iron,
71
+ bgActionPrimaryHover: colorPalette.primaryMutedDark,
72
+ bgActionPrimary: colorPalette.primarySolidDark,
73
+ bgActionDestructive: colorPalette.redFeedback,
74
+ bgFeedbackInfo: colorPalette.blueWeakDark,
75
+ bgFeedbackSuccess: colorPalette.greenWeakDark,
76
+ bgFeedbackWarning: colorPalette.yellowWeakDark,
77
+ bgFeedbackError: colorPalette.redWeakDark,
78
+ fgPrimary: colorPalette.chalk,
79
+ fgSecondary: colorPalette.silver,
80
+ fgTertiary: colorPalette.silver,
81
+ fgDisabled: colorPalette.steel,
82
+ fgInverse: colorPalette.carbon,
83
+ fgOnActionPrimary: colorPalette.primaryContrast,
84
+ fgOnActionDestructive: colorPalette.neutral200,
85
+ fgAction: colorPalette.primaryContrastDark,
86
+ fgFeedbackInfo: colorPalette.blueContrastDark,
87
+ fgFeedbackSuccess: colorPalette.greenContrastDark,
88
+ fgFeedbackWarning: colorPalette.yellowContrastDark,
89
+ fgFeedbackError: colorPalette.redContrastDark,
90
+ strokeDefault: colorPalette.neutral700,
91
+ strokeControl: colorPalette.steel,
92
+ strokeStrong: colorPalette.neutral450,
93
+ strokeDropIndicator: colorPalette.chalk,
94
+ strokeFocus: colorPalette.silver,
95
+ strokeAction: colorPalette.primarySolidDark,
96
+ strokeFeedbackInfo: colorPalette.blueMutedDark,
97
+ strokeFeedbackSuccess: colorPalette.greenMutedDark,
98
+ strokeFeedbackWarning: colorPalette.yellowMutedDark,
99
+ strokeFeedbackError: colorPalette.redSolidDark,
100
+ interactionDefault: "transparent",
101
+ interactionHover: colorPalette.alphaWhite5,
102
+ interactionPressed: colorPalette.alphaWhite10,
103
+ interactionSolidHover: colorPalette.alphaBlack10,
104
+ interactionSolidPressed: colorPalette.alphaBlack20,
105
+ interactionSelected: colorPalette.graphite,
106
+ interactionDisabled: colorPalette.neutral700,
107
+ interactionFocus: colorPalette.silver,
108
+ });
109
+
110
+ export const lightShadowTheme = stylex.createTheme(shadowVars, {
111
+ subtle: "0 1px 4px oklch(0% 0 0 / 8%)",
112
+ floating: "0 2px 10px oklch(0% 0 0 / 10%)",
113
+ overlay: "0 4px 16px oklch(0% 0 0 / 12%)",
114
+ });
115
+
116
+ export const darkShadowTheme = stylex.createTheme(shadowVars, {
117
+ subtle: "0 0 0 1px oklch(100% 0 0 / 6%), 0 1px 4px oklch(0% 0 0 / 36%)",
118
+ floating: "0 0 0 1px oklch(100% 0 0 / 8%), 0 8px 24px oklch(0% 0 0 / 52%)",
119
+ overlay: "0 0 0 1px oklch(100% 0 0 / 10%), 0 16px 40px oklch(0% 0 0 / 64%)",
120
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "include": ["src"]
4
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.