@jztack/tokens 0.0.0-stage → 0.2.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.
@@ -0,0 +1,269 @@
1
+ /* Generated by @jztack/tokens tools/emit.mjs — do not edit. */
2
+
3
+ @theme {
4
+ --color-slate-50: #f8fafc;
5
+ --color-slate-100: #f1f5f9;
6
+ --color-slate-200: #e2e8f0;
7
+ --color-slate-300: #cbd5e1;
8
+ --color-slate-400: #94a3b8;
9
+ --color-slate-500: #64748b;
10
+ --color-slate-600: #475569;
11
+ --color-slate-700: #334155;
12
+ --color-slate-800: #1e293b;
13
+ --color-slate-900: #0f172a;
14
+ --color-slate-950: #020617;
15
+ --color-stone-50: #fafaf9;
16
+ --color-stone-100: #f5f5f4;
17
+ --color-stone-200: #e7e5e4;
18
+ --color-stone-300: #d6d3d1;
19
+ --color-stone-400: #a8a29e;
20
+ --color-stone-500: #78716c;
21
+ --color-stone-600: #57534e;
22
+ --color-stone-700: #44403c;
23
+ --color-stone-800: #292524;
24
+ --color-stone-900: #1c1917;
25
+ --color-stone-950: #0c0a09;
26
+ --color-blue-50: #eff6ff;
27
+ --color-blue-100: #dbeafe;
28
+ --color-blue-200: #bfdbfe;
29
+ --color-blue-300: #93c5fd;
30
+ --color-blue-400: #60a5fa;
31
+ --color-blue-500: #3b82f6;
32
+ --color-blue-600: #2563eb;
33
+ --color-blue-700: #1d4ed8;
34
+ --color-blue-800: #1e40af;
35
+ --color-blue-900: #1e3a8a;
36
+ --color-blue-950: #172554;
37
+ --color-teal-50: #f0fdfa;
38
+ --color-teal-100: #ccfbf1;
39
+ --color-teal-200: #99f6e4;
40
+ --color-teal-300: #5eead4;
41
+ --color-teal-400: #2dd4bf;
42
+ --color-teal-500: #14b8a6;
43
+ --color-teal-600: #0d9488;
44
+ --color-teal-700: #0f766e;
45
+ --color-teal-800: #115e59;
46
+ --color-teal-900: #134e4a;
47
+ --color-teal-950: #042f2e;
48
+ --color-indigo-50: #eef2ff;
49
+ --color-indigo-100: #e0e7ff;
50
+ --color-indigo-200: #c7d2fe;
51
+ --color-indigo-300: #a5b4fc;
52
+ --color-indigo-400: #818cf8;
53
+ --color-indigo-500: #6366f1;
54
+ --color-indigo-600: #4f46e5;
55
+ --color-indigo-700: #4338ca;
56
+ --color-indigo-800: #3730a3;
57
+ --color-indigo-900: #312e81;
58
+ --color-indigo-950: #1e1b4b;
59
+ --color-emerald-50: #ecfdf5;
60
+ --color-emerald-100: #d1fae5;
61
+ --color-emerald-200: #a7f3d0;
62
+ --color-emerald-300: #6ee7b7;
63
+ --color-emerald-400: #34d399;
64
+ --color-emerald-500: #10b981;
65
+ --color-emerald-600: #059669;
66
+ --color-emerald-700: #047857;
67
+ --color-emerald-800: #065f46;
68
+ --color-emerald-900: #064e3b;
69
+ --color-emerald-950: #022c22;
70
+ --color-amber-50: #fffbeb;
71
+ --color-amber-100: #fef3c7;
72
+ --color-amber-200: #fde68a;
73
+ --color-amber-300: #fcd34d;
74
+ --color-amber-400: #fbbf24;
75
+ --color-amber-500: #f59e0b;
76
+ --color-amber-600: #d97706;
77
+ --color-amber-700: #b45309;
78
+ --color-amber-800: #92400e;
79
+ --color-amber-900: #78350f;
80
+ --color-amber-950: #451a03;
81
+ --color-red-50: #fef2f2;
82
+ --color-red-100: #fee2e2;
83
+ --color-red-200: #fecaca;
84
+ --color-red-300: #fca5a5;
85
+ --color-red-400: #f87171;
86
+ --color-red-500: #ef4444;
87
+ --color-red-600: #dc2626;
88
+ --color-red-700: #b91c1c;
89
+ --color-red-800: #991b1b;
90
+ --color-red-900: #7f1d1d;
91
+ --color-red-950: #450a0a;
92
+ --color-sky-50: #f0f9ff;
93
+ --color-sky-100: #e0f2fe;
94
+ --color-sky-200: #bae6fd;
95
+ --color-sky-300: #7dd3fc;
96
+ --color-sky-400: #38bdf8;
97
+ --color-sky-500: #0ea5e9;
98
+ --color-sky-600: #0284c7;
99
+ --color-sky-700: #0369a1;
100
+ --color-sky-800: #075985;
101
+ --color-sky-900: #0c4a6e;
102
+ --color-sky-950: #082f49;
103
+ --color-white: #ffffff;
104
+ --color-black: #000000;
105
+ --color-transparent: transparent;
106
+ --spacing-none: 0px;
107
+ --spacing-hairline: 1px;
108
+ --spacing-xxs: 2px;
109
+ --spacing-xs: 4px;
110
+ --spacing-s: 8px;
111
+ --spacing-sm: 12px;
112
+ --spacing-m: 16px;
113
+ --spacing-l: 24px;
114
+ --spacing-lg: 32px;
115
+ --spacing-xl: 40px;
116
+ --container-3xs: 16rem;
117
+ --width-3xs: 16rem;
118
+ --min-width-3xs: 16rem;
119
+ --max-width-3xs: 16rem;
120
+ --container-2xs: 18rem;
121
+ --width-2xs: 18rem;
122
+ --min-width-2xs: 18rem;
123
+ --max-width-2xs: 18rem;
124
+ --container-xs: 20rem;
125
+ --width-xs: 20rem;
126
+ --min-width-xs: 20rem;
127
+ --max-width-xs: 20rem;
128
+ --container-sm: 24rem;
129
+ --width-sm: 24rem;
130
+ --min-width-sm: 24rem;
131
+ --max-width-sm: 24rem;
132
+ --container-md: 28rem;
133
+ --width-md: 28rem;
134
+ --min-width-md: 28rem;
135
+ --max-width-md: 28rem;
136
+ --container-lg: 32rem;
137
+ --width-lg: 32rem;
138
+ --min-width-lg: 32rem;
139
+ --max-width-lg: 32rem;
140
+ --container-xl: 36rem;
141
+ --width-xl: 36rem;
142
+ --min-width-xl: 36rem;
143
+ --max-width-xl: 36rem;
144
+ --container-2xl: 42rem;
145
+ --width-2xl: 42rem;
146
+ --min-width-2xl: 42rem;
147
+ --max-width-2xl: 42rem;
148
+ --container-3xl: 48rem;
149
+ --width-3xl: 48rem;
150
+ --min-width-3xl: 48rem;
151
+ --max-width-3xl: 48rem;
152
+ --container-4xl: 56rem;
153
+ --width-4xl: 56rem;
154
+ --min-width-4xl: 56rem;
155
+ --max-width-4xl: 56rem;
156
+ --container-5xl: 64rem;
157
+ --width-5xl: 64rem;
158
+ --min-width-5xl: 64rem;
159
+ --max-width-5xl: 64rem;
160
+ --container-6xl: 72rem;
161
+ --width-6xl: 72rem;
162
+ --min-width-6xl: 72rem;
163
+ --max-width-6xl: 72rem;
164
+ --container-7xl: 80rem;
165
+ --width-7xl: 80rem;
166
+ --min-width-7xl: 80rem;
167
+ --max-width-7xl: 80rem;
168
+ --radius-sm: 4px;
169
+ --radius-md: 8px;
170
+ --radius-lg: 12px;
171
+ --radius-xl: 16px;
172
+ --radius-2xl: 20px;
173
+ --radius-full: 9999px;
174
+ --breakpoint-phone: 0px;
175
+ --breakpoint-tablet: 768px;
176
+ --breakpoint-desktop: 1024px;
177
+ --breakpoint-wide: 1440px;
178
+ --font-sans: "Geist Variable", sans-serif;
179
+ --text-header: 28px;
180
+ --text-header--line-height: 34px;
181
+ --text-title: 20px;
182
+ --text-title--line-height: 26px;
183
+ --text-subtitle: 16px;
184
+ --text-subtitle--line-height: 22px;
185
+ --text-body: 15px;
186
+ --text-body--line-height: 22px;
187
+ --text-body-strong: 15px;
188
+ --text-body-strong--line-height: 22px;
189
+ --text-body-secondary: 13px;
190
+ --text-body-secondary--line-height: 18px;
191
+ --text-button: 15px;
192
+ --text-button--line-height: 22px;
193
+ --text-badge: 12px;
194
+ --text-badge--line-height: 18px;
195
+ --text-error: 12px;
196
+ --text-error--line-height: 16px;
197
+ --text-kpi: 28px;
198
+ --text-kpi--line-height: 34px;
199
+ --text-caption: 11px;
200
+ --text-caption--line-height: 16px;
201
+ --text-defaults: 15px;
202
+ --text-defaults--line-height: 22px;
203
+ }
204
+
205
+ [data-theme="wedding-ops"] {
206
+ --background: #fafaf9;
207
+ --background-secondary: #f5f5f4;
208
+ --foreground: #1c1917;
209
+ --foreground-secondary: #78716c;
210
+ --card: #ffffff;
211
+ --card-foreground: #1c1917;
212
+ --popover: #ffffff;
213
+ --popover-foreground: #1c1917;
214
+ --primary: #115e59;
215
+ --primary-foreground: #ffffff;
216
+ --secondary: #f5f5f4;
217
+ --secondary-foreground: #44403c;
218
+ --muted: #f5f5f4;
219
+ --muted-foreground: #57534e;
220
+ --accent: #0f766e;
221
+ --accent-bg: #f0fdfa;
222
+ --accent-border: rgba(15, 118, 110, 0.25);
223
+ --accent-foreground: #ffffff;
224
+ --destructive: #b91c1c;
225
+ --destructive-foreground: #ffffff;
226
+ --border: #d6d3d1;
227
+ --border-strong: #44403c;
228
+ --input: #d6d3d1;
229
+ --ring: #0f766e;
230
+ --success: #10b981;
231
+ --success-bg: #d1fae5;
232
+ --success-foreground: #065f46;
233
+ --warning: #f59e0b;
234
+ --warning-bg: #fef3c7;
235
+ --warning-foreground: #92400e;
236
+ --danger: #ef4444;
237
+ --danger-bg: #fee2e2;
238
+ --danger-foreground: #991b1b;
239
+ --info: #0284c7;
240
+ --info-bg: #e0f2fe;
241
+ --info-foreground: #075985;
242
+ }
243
+
244
+ [lang="my"] {
245
+ --text-header: 24px;
246
+ --text-header--line-height: 38px;
247
+ --text-title: 18px;
248
+ --text-title--line-height: 28px;
249
+ --text-subtitle: 15px;
250
+ --text-subtitle--line-height: 24px;
251
+ --text-body: 14px;
252
+ --text-body--line-height: 24px;
253
+ --text-body-strong: 14px;
254
+ --text-body-strong--line-height: 24px;
255
+ --text-body-secondary: 12px;
256
+ --text-body-secondary--line-height: 24px;
257
+ --text-button: 14px;
258
+ --text-button--line-height: 28px;
259
+ --text-badge: 11px;
260
+ --text-badge--line-height: 20px;
261
+ --text-error: 11px;
262
+ --text-error--line-height: 18px;
263
+ --text-kpi: 24px;
264
+ --text-kpi--line-height: 38px;
265
+ --text-caption: 11px;
266
+ --text-caption--line-height: 20px;
267
+ --text-defaults: 14px;
268
+ --text-defaults--line-height: 24px;
269
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @jztack/tokens — one source of truth for design tokens across all apps.
3
+ * This entry point exports the token DATA (palette, contract, themes,
4
+ * locale layers). Web consumers normally import the emitted stylesheet
5
+ * (`@jztack/tokens/css`); restyle consumers use `@jztack/tokens/restyle`.
6
+ */
7
+ export { type LocaleOverride, localeOverrides, my } from './locale/my.js';
8
+ export { type Palette, palette } from './palette/colors.js';
9
+ export { type BreakpointScale, breakpoints, type ColorSet, type ColorSlot, type ContainerKey, type ContainerScale, colorSlots, container, fontFamily, type RadiiScale, radii, type SpacingKey, type SpacingScale, spacing, type ThemeDefinition, type ThemeMode, type TypeColorRole, type TypeRole, type TypeRoleName, type TypeRoles, typeRoleNames, typeRoles, } from './semantic/contract.js';
10
+ export { commonboard, rentproof, tabbie, themeNames, themes, twjs, weddingOps, } from './themes/index.js';
11
+ export { darkStatus, lightStatus, type StatusSlots } from './themes/status-defaults.js';
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @jztack/tokens — one source of truth for design tokens across all apps.
3
+ * This entry point exports the token DATA (palette, contract, themes,
4
+ * locale layers). Web consumers normally import the emitted stylesheet
5
+ * (`@jztack/tokens/css`); restyle consumers use `@jztack/tokens/restyle`.
6
+ */
7
+ export { localeOverrides, my } from './locale/my.js';
8
+ export { palette } from './palette/colors.js';
9
+ export { breakpoints, colorSlots, container, fontFamily, radii, spacing, typeRoleNames, typeRoles, } from './semantic/contract.js';
10
+ export { commonboard, rentproof, tabbie, themeNames, themes, twjs, weddingOps, } from './themes/index.js';
11
+ export { darkStatus, lightStatus } from './themes/status-defaults.js';
@@ -0,0 +1,16 @@
1
+ import type { TypeRole, TypeRoleName } from '../semantic/contract.js';
2
+ /**
3
+ * Locale override layers: partial theme-shaped objects applied on top of a
4
+ * theme. A layer may only override keys that exist in the contract
5
+ * (enforced by type and by test).
6
+ */
7
+ export interface LocaleOverride {
8
+ textVariants?: Partial<Record<TypeRoleName, Partial<TypeRole>>>;
9
+ }
10
+ /**
11
+ * Burmese (`my`) — verbatim from TWJS themeTypography.ts. Myanmar glyphs
12
+ * stack above and below the baseline, so every role gets a smaller size and
13
+ * a ~1.7–2.0× line height, or glyphs clip inside fixed-height rows.
14
+ */
15
+ export declare const my: LocaleOverride;
16
+ export declare const localeOverrides: Record<string, LocaleOverride>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Burmese (`my`) — verbatim from TWJS themeTypography.ts. Myanmar glyphs
3
+ * stack above and below the baseline, so every role gets a smaller size and
4
+ * a ~1.7–2.0× line height, or glyphs clip inside fixed-height rows.
5
+ */
6
+ export const my = {
7
+ textVariants: {
8
+ header: { fontSize: 24, lineHeight: 38 },
9
+ title: { fontSize: 18, lineHeight: 28 },
10
+ subtitle: { fontSize: 15, lineHeight: 24 },
11
+ body: { fontSize: 14, lineHeight: 24 },
12
+ 'body-strong': { fontSize: 14, lineHeight: 24 },
13
+ 'body-secondary': { fontSize: 12, lineHeight: 24 },
14
+ button: { fontSize: 14, lineHeight: 28 },
15
+ badge: { fontSize: 11, lineHeight: 20 },
16
+ error: { fontSize: 11, lineHeight: 18 },
17
+ kpi: { fontSize: 24, lineHeight: 38 },
18
+ caption: { fontSize: 11, lineHeight: 20 },
19
+ defaults: { fontSize: 14, lineHeight: 24 },
20
+ },
21
+ };
22
+ export const localeOverrides = { my };
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Palette layer — raw, app-agnostic color scales.
3
+ *
4
+ * Values are Tailwind's published ramps: TWJS's palette already is Tailwind's
5
+ * and the web apps already use Tailwind utilities, so one ramp set serves both
6
+ * emitters. Themes reference these values; components never do.
7
+ */
8
+ export declare const palette: {
9
+ readonly slate: {
10
+ readonly 50: '#f8fafc';
11
+ readonly 100: '#f1f5f9';
12
+ readonly 200: '#e2e8f0';
13
+ readonly 300: '#cbd5e1';
14
+ readonly 400: '#94a3b8';
15
+ readonly 500: '#64748b';
16
+ readonly 600: '#475569';
17
+ readonly 700: '#334155';
18
+ readonly 800: '#1e293b';
19
+ readonly 900: '#0f172a';
20
+ readonly 950: '#020617';
21
+ };
22
+ readonly stone: {
23
+ readonly 50: '#fafaf9';
24
+ readonly 100: '#f5f5f4';
25
+ readonly 200: '#e7e5e4';
26
+ readonly 300: '#d6d3d1';
27
+ readonly 400: '#a8a29e';
28
+ readonly 500: '#78716c';
29
+ readonly 600: '#57534e';
30
+ readonly 700: '#44403c';
31
+ readonly 800: '#292524';
32
+ readonly 900: '#1c1917';
33
+ readonly 950: '#0c0a09';
34
+ };
35
+ readonly blue: {
36
+ readonly 50: '#eff6ff';
37
+ readonly 100: '#dbeafe';
38
+ readonly 200: '#bfdbfe';
39
+ readonly 300: '#93c5fd';
40
+ readonly 400: '#60a5fa';
41
+ readonly 500: '#3b82f6';
42
+ readonly 600: '#2563eb';
43
+ readonly 700: '#1d4ed8';
44
+ readonly 800: '#1e40af';
45
+ readonly 900: '#1e3a8a';
46
+ readonly 950: '#172554';
47
+ };
48
+ readonly teal: {
49
+ readonly 50: '#f0fdfa';
50
+ readonly 100: '#ccfbf1';
51
+ readonly 200: '#99f6e4';
52
+ readonly 300: '#5eead4';
53
+ readonly 400: '#2dd4bf';
54
+ readonly 500: '#14b8a6';
55
+ readonly 600: '#0d9488';
56
+ readonly 700: '#0f766e';
57
+ readonly 800: '#115e59';
58
+ readonly 900: '#134e4a';
59
+ readonly 950: '#042f2e';
60
+ };
61
+ readonly indigo: {
62
+ readonly 50: '#eef2ff';
63
+ readonly 100: '#e0e7ff';
64
+ readonly 200: '#c7d2fe';
65
+ readonly 300: '#a5b4fc';
66
+ readonly 400: '#818cf8';
67
+ readonly 500: '#6366f1';
68
+ readonly 600: '#4f46e5';
69
+ readonly 700: '#4338ca';
70
+ readonly 800: '#3730a3';
71
+ readonly 900: '#312e81';
72
+ readonly 950: '#1e1b4b';
73
+ };
74
+ readonly emerald: {
75
+ readonly 50: '#ecfdf5';
76
+ readonly 100: '#d1fae5';
77
+ readonly 200: '#a7f3d0';
78
+ readonly 300: '#6ee7b7';
79
+ readonly 400: '#34d399';
80
+ readonly 500: '#10b981';
81
+ readonly 600: '#059669';
82
+ readonly 700: '#047857';
83
+ readonly 800: '#065f46';
84
+ readonly 900: '#064e3b';
85
+ readonly 950: '#022c22';
86
+ };
87
+ readonly amber: {
88
+ readonly 50: '#fffbeb';
89
+ readonly 100: '#fef3c7';
90
+ readonly 200: '#fde68a';
91
+ readonly 300: '#fcd34d';
92
+ readonly 400: '#fbbf24';
93
+ readonly 500: '#f59e0b';
94
+ readonly 600: '#d97706';
95
+ readonly 700: '#b45309';
96
+ readonly 800: '#92400e';
97
+ readonly 900: '#78350f';
98
+ readonly 950: '#451a03';
99
+ };
100
+ readonly red: {
101
+ readonly 50: '#fef2f2';
102
+ readonly 100: '#fee2e2';
103
+ readonly 200: '#fecaca';
104
+ readonly 300: '#fca5a5';
105
+ readonly 400: '#f87171';
106
+ readonly 500: '#ef4444';
107
+ readonly 600: '#dc2626';
108
+ readonly 700: '#b91c1c';
109
+ readonly 800: '#991b1b';
110
+ readonly 900: '#7f1d1d';
111
+ readonly 950: '#450a0a';
112
+ };
113
+ readonly sky: {
114
+ readonly 50: '#f0f9ff';
115
+ readonly 100: '#e0f2fe';
116
+ readonly 200: '#bae6fd';
117
+ readonly 300: '#7dd3fc';
118
+ readonly 400: '#38bdf8';
119
+ readonly 500: '#0ea5e9';
120
+ readonly 600: '#0284c7';
121
+ readonly 700: '#0369a1';
122
+ readonly 800: '#075985';
123
+ readonly 900: '#0c4a6e';
124
+ readonly 950: '#082f49';
125
+ };
126
+ readonly white: '#ffffff';
127
+ readonly black: '#000000';
128
+ readonly transparent: 'transparent';
129
+ };
130
+ export type Palette = typeof palette;
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Palette layer — raw, app-agnostic color scales.
3
+ *
4
+ * Values are Tailwind's published ramps: TWJS's palette already is Tailwind's
5
+ * and the web apps already use Tailwind utilities, so one ramp set serves both
6
+ * emitters. Themes reference these values; components never do.
7
+ */
8
+ export const palette = {
9
+ slate: {
10
+ 50: '#f8fafc',
11
+ 100: '#f1f5f9',
12
+ 200: '#e2e8f0',
13
+ 300: '#cbd5e1',
14
+ 400: '#94a3b8',
15
+ 500: '#64748b',
16
+ 600: '#475569',
17
+ 700: '#334155',
18
+ 800: '#1e293b',
19
+ 900: '#0f172a',
20
+ 950: '#020617',
21
+ },
22
+ stone: {
23
+ 50: '#fafaf9',
24
+ 100: '#f5f5f4',
25
+ 200: '#e7e5e4',
26
+ 300: '#d6d3d1',
27
+ 400: '#a8a29e',
28
+ 500: '#78716c',
29
+ 600: '#57534e',
30
+ 700: '#44403c',
31
+ 800: '#292524',
32
+ 900: '#1c1917',
33
+ 950: '#0c0a09',
34
+ },
35
+ blue: {
36
+ 50: '#eff6ff',
37
+ 100: '#dbeafe',
38
+ 200: '#bfdbfe',
39
+ 300: '#93c5fd',
40
+ 400: '#60a5fa',
41
+ 500: '#3b82f6',
42
+ 600: '#2563eb',
43
+ 700: '#1d4ed8',
44
+ 800: '#1e40af',
45
+ 900: '#1e3a8a',
46
+ 950: '#172554',
47
+ },
48
+ teal: {
49
+ 50: '#f0fdfa',
50
+ 100: '#ccfbf1',
51
+ 200: '#99f6e4',
52
+ 300: '#5eead4',
53
+ 400: '#2dd4bf',
54
+ 500: '#14b8a6',
55
+ 600: '#0d9488',
56
+ 700: '#0f766e',
57
+ 800: '#115e59',
58
+ 900: '#134e4a',
59
+ 950: '#042f2e',
60
+ },
61
+ indigo: {
62
+ 50: '#eef2ff',
63
+ 100: '#e0e7ff',
64
+ 200: '#c7d2fe',
65
+ 300: '#a5b4fc',
66
+ 400: '#818cf8',
67
+ 500: '#6366f1',
68
+ 600: '#4f46e5',
69
+ 700: '#4338ca',
70
+ 800: '#3730a3',
71
+ 900: '#312e81',
72
+ 950: '#1e1b4b',
73
+ },
74
+ emerald: {
75
+ 50: '#ecfdf5',
76
+ 100: '#d1fae5',
77
+ 200: '#a7f3d0',
78
+ 300: '#6ee7b7',
79
+ 400: '#34d399',
80
+ 500: '#10b981',
81
+ 600: '#059669',
82
+ 700: '#047857',
83
+ 800: '#065f46',
84
+ 900: '#064e3b',
85
+ 950: '#022c22',
86
+ },
87
+ amber: {
88
+ 50: '#fffbeb',
89
+ 100: '#fef3c7',
90
+ 200: '#fde68a',
91
+ 300: '#fcd34d',
92
+ 400: '#fbbf24',
93
+ 500: '#f59e0b',
94
+ 600: '#d97706',
95
+ 700: '#b45309',
96
+ 800: '#92400e',
97
+ 900: '#78350f',
98
+ 950: '#451a03',
99
+ },
100
+ red: {
101
+ 50: '#fef2f2',
102
+ 100: '#fee2e2',
103
+ 200: '#fecaca',
104
+ 300: '#fca5a5',
105
+ 400: '#f87171',
106
+ 500: '#ef4444',
107
+ 600: '#dc2626',
108
+ 700: '#b91c1c',
109
+ 800: '#991b1b',
110
+ 900: '#7f1d1d',
111
+ 950: '#450a0a',
112
+ },
113
+ sky: {
114
+ 50: '#f0f9ff',
115
+ 100: '#e0f2fe',
116
+ 200: '#bae6fd',
117
+ 300: '#7dd3fc',
118
+ 400: '#38bdf8',
119
+ 500: '#0ea5e9',
120
+ 600: '#0284c7',
121
+ 700: '#0369a1',
122
+ 800: '#075985',
123
+ 900: '#0c4a6e',
124
+ 950: '#082f49',
125
+ },
126
+ white: '#ffffff',
127
+ black: '#000000',
128
+ transparent: 'transparent',
129
+ };
@@ -0,0 +1,38 @@
1
+ import { type ThemeMode } from './semantic/contract.js';
2
+ /**
3
+ * Restyle emitter: builds the `createTheme` input object for
4
+ * @shopify/restyle consumers (TWJS / @jztack/ui-native) from the same token
5
+ * data the CSS emitter uses.
6
+ *
7
+ * During the twin transition the colors object carries BOTH the canonical
8
+ * contract keys and TWJS's legacy key aliases (DESIGN.md §3), so mobile-web
9
+ * code is not forced into a flag-day rename. Dead TWJS keys
10
+ * (successLight/warningLight/dangerLight, raw slate200/slate300 semantic
11
+ * leaks) are NOT re-emitted — they were dropped at the contract boundary.
12
+ */
13
+ export interface RestyleTextVariant {
14
+ fontSize: number;
15
+ lineHeight: number;
16
+ fontWeight?: string;
17
+ color?: string;
18
+ textAlign?: 'center';
19
+ }
20
+ export interface RestyleThemeData {
21
+ colors: Record<string, string>;
22
+ spacing: Record<string, number>;
23
+ borderRadii: Record<string, number>;
24
+ breakpoints: Record<string, number>;
25
+ textVariants: Record<string, RestyleTextVariant>;
26
+ }
27
+ /**
28
+ * Build the restyle theme object for a theme. `mode` defaults to the first
29
+ * mode the theme declares. Throws for an unknown theme or a mode the theme
30
+ * does not declare (e.g. a light mode for dark-only Tabbie).
31
+ */
32
+ export declare function createThemeData(themeName: string, mode?: ThemeMode): RestyleThemeData;
33
+ /**
34
+ * Compose a locale override layer into a restyle theme — the counterpart of
35
+ * mobile-web's existing getThemeForLanguage(theme, lang). Unknown locales
36
+ * return the theme unchanged.
37
+ */
38
+ export declare function getThemeForLocale<T extends RestyleThemeData>(theme: T, locale: string): T;