@northstar-js/tokens 0.0.0-stage → 0.1.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,80 @@
1
+ /* @northstar-js/tokens — Tailwind v4 theme. Generated. */
2
+ @import "./tokens.css";
3
+
4
+ @theme inline {
5
+ --color-ground: var(--ns-color-ground);
6
+ --color-surface-1: var(--ns-color-surface-1);
7
+ --color-surface-2: var(--ns-color-surface-2);
8
+ --color-surface-3: var(--ns-color-surface-3);
9
+ --color-line-1: var(--ns-color-line-1);
10
+ --color-line-2: var(--ns-color-line-2);
11
+ --color-text-1: var(--ns-color-text-1);
12
+ --color-text-2: var(--ns-color-text-2);
13
+ --color-text-3: var(--ns-color-text-3);
14
+ --color-signal: var(--ns-color-signal);
15
+ --color-signal-fill: var(--ns-color-signal-fill);
16
+ --color-signal-wash: var(--ns-color-signal-wash);
17
+ --color-signal-edge: var(--ns-color-signal-edge);
18
+ --color-focus: var(--ns-color-focus);
19
+ --color-focus-halo: var(--ns-color-focus-halo);
20
+ --color-data-star: var(--ns-color-data-star);
21
+ --color-data-node: var(--ns-color-data-node);
22
+ --color-data-band: var(--ns-color-data-band);
23
+ --color-data-horizon: var(--ns-color-data-horizon);
24
+ --color-data-meridian: var(--ns-color-data-meridian);
25
+ --color-data-graticule: var(--ns-color-data-graticule);
26
+ --color-data-likert-1: var(--ns-color-data-likert-1);
27
+ --color-data-likert-2: var(--ns-color-data-likert-2);
28
+ --color-data-likert-3: var(--ns-color-data-likert-3);
29
+ --color-data-likert-4: var(--ns-color-data-likert-4);
30
+ --color-data-likert-5: var(--ns-color-data-likert-5);
31
+ --shadow-1: var(--ns-elevation-1);
32
+ --shadow-2: var(--ns-elevation-2);
33
+ --shadow-3: var(--ns-elevation-3);
34
+ --color-button-primary-bg: var(--ns-button-primary-bg);
35
+ --color-button-primary-fg: var(--ns-button-primary-fg);
36
+ --font-ui: var(--ns-font-family-ui);
37
+ --font-mono: var(--ns-font-family-mono);
38
+ --font-weight-regular: var(--ns-font-weight-regular);
39
+ --font-weight-medium: var(--ns-font-weight-medium);
40
+ --font-weight-semibold: var(--ns-font-weight-semibold);
41
+ --text-11: var(--ns-font-size-11);
42
+ --text-11--line-height: var(--ns-font-line-height-11);
43
+ --text-12: var(--ns-font-size-12);
44
+ --text-12--line-height: var(--ns-font-line-height-12);
45
+ --text-13: var(--ns-font-size-13);
46
+ --text-13--line-height: var(--ns-font-line-height-13);
47
+ --text-15: var(--ns-font-size-15);
48
+ --text-15--line-height: var(--ns-font-line-height-15);
49
+ --text-18: var(--ns-font-size-18);
50
+ --text-18--line-height: var(--ns-font-line-height-18);
51
+ --text-24: var(--ns-font-size-24);
52
+ --text-24--line-height: var(--ns-font-line-height-24);
53
+ --text-32: var(--ns-font-size-32);
54
+ --text-32--line-height: var(--ns-font-line-height-32);
55
+ --text-48: var(--ns-font-size-48);
56
+ --text-48--line-height: var(--ns-font-line-height-48);
57
+ --text-base: var(--ns-font-size-base);
58
+ --text-base--line-height: var(--ns-font-line-height-13);
59
+ --spacing-2: var(--ns-space-2);
60
+ --spacing-4: var(--ns-space-4);
61
+ --spacing-6: var(--ns-space-6);
62
+ --spacing-8: var(--ns-space-8);
63
+ --spacing-12: var(--ns-space-12);
64
+ --spacing-16: var(--ns-space-16);
65
+ --spacing-20: var(--ns-space-20);
66
+ --spacing-24: var(--ns-space-24);
67
+ --spacing-32: var(--ns-space-32);
68
+ --spacing-40: var(--ns-space-40);
69
+ --spacing-48: var(--ns-space-48);
70
+ --spacing-64: var(--ns-space-64);
71
+ --radius-4: var(--ns-radius-4);
72
+ --radius-6: var(--ns-radius-6);
73
+ --radius-8: var(--ns-radius-8);
74
+ --radius-12: var(--ns-radius-12);
75
+ --radius-full: var(--ns-radius-full);
76
+ --ease-settle: var(--ns-motion-easing-settle);
77
+ --ease-enter: var(--ns-motion-easing-enter);
78
+ --ease-travel: var(--ns-motion-easing-travel);
79
+ --ease-exit: var(--ns-motion-easing-exit);
80
+ }
@@ -0,0 +1,216 @@
1
+ /* @northstar-js/tokens — generated from src/*.json. Do not edit. */
2
+ :root,
3
+ [data-theme="night"] {
4
+ color-scheme: dark;
5
+ --ns-gray-0: #FFFFFF;
6
+ --ns-gray-1: #F8F9FA;
7
+ --ns-gray-2: #F1F3F5;
8
+ --ns-gray-3: #E9ECEF;
9
+ --ns-gray-4: #E6E8EB;
10
+ --ns-gray-5: #D4D8DD;
11
+ --ns-gray-6: #656A75;
12
+ --ns-gray-7: #464C56;
13
+ --ns-gray-8: #06080C;
14
+ --ns-night-0: #08090C;
15
+ --ns-night-1: #0D0F13;
16
+ --ns-night-2: #14161B;
17
+ --ns-night-3: #1B1E24;
18
+ --ns-night-4: #1E2128;
19
+ --ns-night-5: #2B2F38;
20
+ --ns-night-6: #848A94;
21
+ --ns-night-7: #A9AEB8;
22
+ --ns-night-8: #E8EAEE;
23
+ --ns-glacier-100: #EDF3FB;
24
+ --ns-glacier-200: #B9CEEA;
25
+ --ns-glacier-300: #93B4E0;
26
+ --ns-glacier-700: #2F5D9A;
27
+ --ns-glacier-alpha-12: rgba(147, 180, 224, 0.12);
28
+ --ns-glacier-alpha-35: rgba(147, 180, 224, 0.35);
29
+ --ns-font-family-ui: Inter, ui-sans-serif, system-ui, sans-serif;
30
+ --ns-font-family-mono: 'IBM Plex Mono', ui-monospace, monospace;
31
+ --ns-font-weight-regular: 400;
32
+ --ns-font-weight-medium: 500;
33
+ --ns-font-weight-semibold: 600;
34
+ --ns-font-size-11: 11px;
35
+ --ns-font-size-12: 12px;
36
+ --ns-font-size-13: 13px;
37
+ --ns-font-size-15: 15px;
38
+ --ns-font-size-18: 18px;
39
+ --ns-font-size-24: 24px;
40
+ --ns-font-size-32: 32px;
41
+ --ns-font-size-48: 48px;
42
+ --ns-font-size-base: 13px;
43
+ --ns-font-line-height-11: 16px;
44
+ --ns-font-line-height-12: 18px;
45
+ --ns-font-line-height-13: 20px;
46
+ --ns-font-line-height-15: 22px;
47
+ --ns-font-line-height-18: 26px;
48
+ --ns-font-line-height-24: 32px;
49
+ --ns-font-line-height-32: 40px;
50
+ --ns-font-line-height-48: 52px;
51
+ --ns-font-numeric-figures: tabular-nums;
52
+ --ns-space-2: 2px;
53
+ --ns-space-4: 4px;
54
+ --ns-space-6: 6px;
55
+ --ns-space-8: 8px;
56
+ --ns-space-12: 12px;
57
+ --ns-space-16: 16px;
58
+ --ns-space-20: 20px;
59
+ --ns-space-24: 24px;
60
+ --ns-space-32: 32px;
61
+ --ns-space-40: 40px;
62
+ --ns-space-48: 48px;
63
+ --ns-space-64: 64px;
64
+ --ns-size-control-sm: 28px;
65
+ --ns-size-control-md: 32px;
66
+ --ns-size-control-lg: 36px;
67
+ --ns-size-control-xl: 44px;
68
+ --ns-size-row-sm: 32px;
69
+ --ns-size-row-md: 36px;
70
+ --ns-size-row-lg: 40px;
71
+ --ns-size-icon-sm: 16px;
72
+ --ns-size-icon-md: 20px;
73
+ --ns-size-icon-lg: 24px;
74
+ --ns-size-target-coarse: 44px;
75
+ --ns-density-compact-control-height: 28px;
76
+ --ns-density-compact-row-height: 32px;
77
+ --ns-density-compact-row-padding: 4px;
78
+ --ns-density-control-height: 32px;
79
+ --ns-density-row-height: 36px;
80
+ --ns-density-row-padding: 6px;
81
+ --ns-density-comfortable-control-height: 36px;
82
+ --ns-density-comfortable-row-height: 40px;
83
+ --ns-density-comfortable-row-padding: 8px;
84
+ --ns-radius-4: 4px;
85
+ --ns-radius-6: 6px;
86
+ --ns-radius-8: 8px;
87
+ --ns-radius-12: 12px;
88
+ --ns-radius-full: 9999px;
89
+ --ns-z-banner: 30;
90
+ --ns-z-dropdown: 40;
91
+ --ns-z-popover: 50;
92
+ --ns-z-sheet: 60;
93
+ --ns-z-dialog: 70;
94
+ --ns-z-toast: 80;
95
+ --ns-z-tooltip: 90;
96
+ --ns-motion-duration-120: 120ms;
97
+ --ns-motion-duration-200: 200ms;
98
+ --ns-motion-duration-320: 320ms;
99
+ --ns-motion-duration-600: 600ms;
100
+ --ns-motion-easing-settle: cubic-bezier(0.2, 0, 0, 1);
101
+ --ns-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
102
+ --ns-motion-easing-travel: cubic-bezier(0.4, 0, 0.2, 1);
103
+ --ns-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
104
+ --ns-color-ground: #08090C;
105
+ --ns-color-surface-1: #0D0F13;
106
+ --ns-color-surface-2: #14161B;
107
+ --ns-color-surface-3: #1B1E24;
108
+ --ns-color-line-1: #1E2128;
109
+ --ns-color-line-2: #2B2F38;
110
+ --ns-color-text-1: #E8EAEE;
111
+ --ns-color-text-2: #A9AEB8;
112
+ --ns-color-text-3: #848A94;
113
+ --ns-color-signal: #93B4E0;
114
+ --ns-color-signal-fill: #93B4E0;
115
+ --ns-color-signal-wash: rgba(147, 180, 224, 0.12);
116
+ --ns-color-signal-edge: #93B4E0;
117
+ --ns-color-focus: #93B4E0;
118
+ --ns-color-focus-halo: transparent;
119
+ --ns-color-data-star: #E8EAEE;
120
+ --ns-color-data-node: #93B4E0;
121
+ --ns-color-data-band: rgba(147, 180, 224, 0.35);
122
+ --ns-color-data-horizon: #93B4E0;
123
+ --ns-color-data-meridian: #2B2F38;
124
+ --ns-color-data-graticule: #1E2128;
125
+ --ns-color-data-likert-1: #2B2F38;
126
+ --ns-color-data-likert-2: #848A94;
127
+ --ns-color-data-likert-3: #A9AEB8;
128
+ --ns-color-data-likert-4: #93B4E0;
129
+ --ns-color-data-likert-5: #EDF3FB;
130
+ --ns-elevation-1: none;
131
+ --ns-elevation-2: none;
132
+ --ns-elevation-3: none;
133
+ --ns-button-primary-bg: #93B4E0;
134
+ --ns-button-primary-fg: #06080C;
135
+ }
136
+
137
+ [data-theme="day"] {
138
+ color-scheme: light;
139
+ --ns-color-ground: #FFFFFF;
140
+ --ns-color-surface-1: #F8F9FA;
141
+ --ns-color-surface-2: #F1F3F5;
142
+ --ns-color-surface-3: #E9ECEF;
143
+ --ns-color-line-1: #E6E8EB;
144
+ --ns-color-line-2: #D4D8DD;
145
+ --ns-color-text-1: #06080C;
146
+ --ns-color-text-2: #464C56;
147
+ --ns-color-text-3: #656A75;
148
+ --ns-color-signal: #2F5D9A;
149
+ --ns-color-signal-fill: #93B4E0;
150
+ --ns-color-signal-wash: #EDF3FB;
151
+ --ns-color-signal-edge: #B9CEEA;
152
+ --ns-color-focus: #2F5D9A;
153
+ --ns-color-focus-halo: rgba(147, 180, 224, 0.35);
154
+ --ns-color-data-star: #06080C;
155
+ --ns-color-data-node: #2F5D9A;
156
+ --ns-color-data-band: rgba(147, 180, 224, 0.35);
157
+ --ns-color-data-horizon: #2F5D9A;
158
+ --ns-color-data-meridian: #D4D8DD;
159
+ --ns-color-data-graticule: #E6E8EB;
160
+ --ns-color-data-likert-1: #E6E8EB;
161
+ --ns-color-data-likert-2: #D4D8DD;
162
+ --ns-color-data-likert-3: #B9CEEA;
163
+ --ns-color-data-likert-4: #93B4E0;
164
+ --ns-color-data-likert-5: #2F5D9A;
165
+ --ns-elevation-1: 0 1px 2px rgba(6, 8, 12, 0.06);
166
+ --ns-elevation-2: 0 4px 12px rgba(6, 8, 12, 0.08);
167
+ --ns-elevation-3: 0 12px 32px rgba(6, 8, 12, 0.12);
168
+ --ns-button-primary-bg: #93B4E0;
169
+ --ns-button-primary-fg: #06080C;
170
+ }
171
+
172
+ @media (prefers-color-scheme: light) {
173
+ :root:not([data-theme]) {
174
+ color-scheme: light;
175
+ --ns-color-ground: #FFFFFF;
176
+ --ns-color-surface-1: #F8F9FA;
177
+ --ns-color-surface-2: #F1F3F5;
178
+ --ns-color-surface-3: #E9ECEF;
179
+ --ns-color-line-1: #E6E8EB;
180
+ --ns-color-line-2: #D4D8DD;
181
+ --ns-color-text-1: #06080C;
182
+ --ns-color-text-2: #464C56;
183
+ --ns-color-text-3: #656A75;
184
+ --ns-color-signal: #2F5D9A;
185
+ --ns-color-signal-fill: #93B4E0;
186
+ --ns-color-signal-wash: #EDF3FB;
187
+ --ns-color-signal-edge: #B9CEEA;
188
+ --ns-color-focus: #2F5D9A;
189
+ --ns-color-focus-halo: rgba(147, 180, 224, 0.35);
190
+ --ns-color-data-star: #06080C;
191
+ --ns-color-data-node: #2F5D9A;
192
+ --ns-color-data-band: rgba(147, 180, 224, 0.35);
193
+ --ns-color-data-horizon: #2F5D9A;
194
+ --ns-color-data-meridian: #D4D8DD;
195
+ --ns-color-data-graticule: #E6E8EB;
196
+ --ns-color-data-likert-1: #E6E8EB;
197
+ --ns-color-data-likert-2: #D4D8DD;
198
+ --ns-color-data-likert-3: #B9CEEA;
199
+ --ns-color-data-likert-4: #93B4E0;
200
+ --ns-color-data-likert-5: #2F5D9A;
201
+ --ns-elevation-1: 0 1px 2px rgba(6, 8, 12, 0.06);
202
+ --ns-elevation-2: 0 4px 12px rgba(6, 8, 12, 0.08);
203
+ --ns-elevation-3: 0 12px 32px rgba(6, 8, 12, 0.12);
204
+ --ns-button-primary-bg: #93B4E0;
205
+ --ns-button-primary-fg: #06080C;
206
+ }
207
+ }
208
+
209
+ @media (prefers-reduced-motion: reduce) {
210
+ :root {
211
+ --ns-motion-duration-120: 0ms;
212
+ --ns-motion-duration-200: 0ms;
213
+ --ns-motion-duration-320: 0ms;
214
+ --ns-motion-duration-600: 0ms;
215
+ }
216
+ }
@@ -0,0 +1,305 @@
1
+ {
2
+ "primitive": {
3
+ "gray.0": "#FFFFFF",
4
+ "gray.1": "#F8F9FA",
5
+ "gray.2": "#F1F3F5",
6
+ "gray.3": "#E9ECEF",
7
+ "gray.4": "#E6E8EB",
8
+ "gray.5": "#D4D8DD",
9
+ "gray.6": "#656A75",
10
+ "gray.7": "#464C56",
11
+ "gray.8": "#06080C",
12
+ "night.0": "#08090C",
13
+ "night.1": "#0D0F13",
14
+ "night.2": "#14161B",
15
+ "night.3": "#1B1E24",
16
+ "night.4": "#1E2128",
17
+ "night.5": "#2B2F38",
18
+ "night.6": "#848A94",
19
+ "night.7": "#A9AEB8",
20
+ "night.8": "#E8EAEE",
21
+ "glacier.100": "#EDF3FB",
22
+ "glacier.200": "#B9CEEA",
23
+ "glacier.300": "#93B4E0",
24
+ "glacier.700": "#2F5D9A",
25
+ "glacier.alpha-12": "rgba(147, 180, 224, 0.12)",
26
+ "glacier.alpha-35": "rgba(147, 180, 224, 0.35)"
27
+ },
28
+ "scales": {
29
+ "font.family.ui": "Inter, ui-sans-serif, system-ui, sans-serif",
30
+ "font.family.mono": "'IBM Plex Mono', ui-monospace, monospace",
31
+ "font.weight.regular": "400",
32
+ "font.weight.medium": "500",
33
+ "font.weight.semibold": "600",
34
+ "font.size.11": "11px",
35
+ "font.size.12": "12px",
36
+ "font.size.13": "13px",
37
+ "font.size.15": "15px",
38
+ "font.size.18": "18px",
39
+ "font.size.24": "24px",
40
+ "font.size.32": "32px",
41
+ "font.size.48": "48px",
42
+ "font.size.base": "13px",
43
+ "font.line-height.11": "16px",
44
+ "font.line-height.12": "18px",
45
+ "font.line-height.13": "20px",
46
+ "font.line-height.15": "22px",
47
+ "font.line-height.18": "26px",
48
+ "font.line-height.24": "32px",
49
+ "font.line-height.32": "40px",
50
+ "font.line-height.48": "52px",
51
+ "font.numeric.figures": "tabular-nums",
52
+ "space.2": "2px",
53
+ "space.4": "4px",
54
+ "space.6": "6px",
55
+ "space.8": "8px",
56
+ "space.12": "12px",
57
+ "space.16": "16px",
58
+ "space.20": "20px",
59
+ "space.24": "24px",
60
+ "space.32": "32px",
61
+ "space.40": "40px",
62
+ "space.48": "48px",
63
+ "space.64": "64px",
64
+ "size.control.sm": "28px",
65
+ "size.control.md": "32px",
66
+ "size.control.lg": "36px",
67
+ "size.control.xl": "44px",
68
+ "size.row.sm": "32px",
69
+ "size.row.md": "36px",
70
+ "size.row.lg": "40px",
71
+ "size.icon.sm": "16px",
72
+ "size.icon.md": "20px",
73
+ "size.icon.lg": "24px",
74
+ "size.target.coarse": "44px",
75
+ "density.compact.control-height": "28px",
76
+ "density.compact.row-height": "32px",
77
+ "density.compact.row-padding": "4px",
78
+ "density.default.control-height": "32px",
79
+ "density.default.row-height": "36px",
80
+ "density.default.row-padding": "6px",
81
+ "density.comfortable.control-height": "36px",
82
+ "density.comfortable.row-height": "40px",
83
+ "density.comfortable.row-padding": "8px",
84
+ "radius.4": "4px",
85
+ "radius.6": "6px",
86
+ "radius.8": "8px",
87
+ "radius.12": "12px",
88
+ "radius.full": "9999px",
89
+ "z.banner": "30",
90
+ "z.dropdown": "40",
91
+ "z.popover": "50",
92
+ "z.sheet": "60",
93
+ "z.dialog": "70",
94
+ "z.toast": "80",
95
+ "z.tooltip": "90",
96
+ "motion.duration.120": "120ms",
97
+ "motion.duration.200": "200ms",
98
+ "motion.duration.320": "320ms",
99
+ "motion.duration.600": "600ms",
100
+ "motion.easing.settle": "cubic-bezier(0.2, 0, 0, 1)",
101
+ "motion.easing.enter": "cubic-bezier(0, 0, 0.2, 1)",
102
+ "motion.easing.travel": "cubic-bezier(0.4, 0, 0.2, 1)",
103
+ "motion.easing.exit": "cubic-bezier(0.4, 0, 1, 1)"
104
+ },
105
+ "themes": {
106
+ "night": {
107
+ "color.ground": "#08090C",
108
+ "color.surface.1": "#0D0F13",
109
+ "color.surface.2": "#14161B",
110
+ "color.surface.3": "#1B1E24",
111
+ "color.line.1": "#1E2128",
112
+ "color.line.2": "#2B2F38",
113
+ "color.text.1": "#E8EAEE",
114
+ "color.text.2": "#A9AEB8",
115
+ "color.text.3": "#848A94",
116
+ "color.signal.default": "#93B4E0",
117
+ "color.signal.fill": "#93B4E0",
118
+ "color.signal.wash": "rgba(147, 180, 224, 0.12)",
119
+ "color.signal.edge": "#93B4E0",
120
+ "color.focus.default": "#93B4E0",
121
+ "color.focus.halo": "transparent",
122
+ "color.data.star": "#E8EAEE",
123
+ "color.data.node": "#93B4E0",
124
+ "color.data.band": "rgba(147, 180, 224, 0.35)",
125
+ "color.data.horizon": "#93B4E0",
126
+ "color.data.meridian": "#2B2F38",
127
+ "color.data.graticule": "#1E2128",
128
+ "color.data.likert.1": "#2B2F38",
129
+ "color.data.likert.2": "#848A94",
130
+ "color.data.likert.3": "#A9AEB8",
131
+ "color.data.likert.4": "#93B4E0",
132
+ "color.data.likert.5": "#EDF3FB",
133
+ "elevation.1": "none",
134
+ "elevation.2": "none",
135
+ "elevation.3": "none",
136
+ "button.primary.bg": "#93B4E0",
137
+ "button.primary.fg": "#06080C"
138
+ },
139
+ "day": {
140
+ "color.ground": "#FFFFFF",
141
+ "color.surface.1": "#F8F9FA",
142
+ "color.surface.2": "#F1F3F5",
143
+ "color.surface.3": "#E9ECEF",
144
+ "color.line.1": "#E6E8EB",
145
+ "color.line.2": "#D4D8DD",
146
+ "color.text.1": "#06080C",
147
+ "color.text.2": "#464C56",
148
+ "color.text.3": "#656A75",
149
+ "color.signal.default": "#2F5D9A",
150
+ "color.signal.fill": "#93B4E0",
151
+ "color.signal.wash": "#EDF3FB",
152
+ "color.signal.edge": "#B9CEEA",
153
+ "color.focus.default": "#2F5D9A",
154
+ "color.focus.halo": "rgba(147, 180, 224, 0.35)",
155
+ "color.data.star": "#06080C",
156
+ "color.data.node": "#2F5D9A",
157
+ "color.data.band": "rgba(147, 180, 224, 0.35)",
158
+ "color.data.horizon": "#2F5D9A",
159
+ "color.data.meridian": "#D4D8DD",
160
+ "color.data.graticule": "#E6E8EB",
161
+ "color.data.likert.1": "#E6E8EB",
162
+ "color.data.likert.2": "#D4D8DD",
163
+ "color.data.likert.3": "#B9CEEA",
164
+ "color.data.likert.4": "#93B4E0",
165
+ "color.data.likert.5": "#2F5D9A",
166
+ "elevation.1": "0 1px 2px rgba(6, 8, 12, 0.06)",
167
+ "elevation.2": "0 4px 12px rgba(6, 8, 12, 0.08)",
168
+ "elevation.3": "0 12px 32px rgba(6, 8, 12, 0.12)",
169
+ "button.primary.bg": "#93B4E0",
170
+ "button.primary.fg": "#06080C"
171
+ }
172
+ },
173
+ "cssVar": {
174
+ "gray.0": "--ns-gray-0",
175
+ "gray.1": "--ns-gray-1",
176
+ "gray.2": "--ns-gray-2",
177
+ "gray.3": "--ns-gray-3",
178
+ "gray.4": "--ns-gray-4",
179
+ "gray.5": "--ns-gray-5",
180
+ "gray.6": "--ns-gray-6",
181
+ "gray.7": "--ns-gray-7",
182
+ "gray.8": "--ns-gray-8",
183
+ "night.0": "--ns-night-0",
184
+ "night.1": "--ns-night-1",
185
+ "night.2": "--ns-night-2",
186
+ "night.3": "--ns-night-3",
187
+ "night.4": "--ns-night-4",
188
+ "night.5": "--ns-night-5",
189
+ "night.6": "--ns-night-6",
190
+ "night.7": "--ns-night-7",
191
+ "night.8": "--ns-night-8",
192
+ "glacier.100": "--ns-glacier-100",
193
+ "glacier.200": "--ns-glacier-200",
194
+ "glacier.300": "--ns-glacier-300",
195
+ "glacier.700": "--ns-glacier-700",
196
+ "glacier.alpha-12": "--ns-glacier-alpha-12",
197
+ "glacier.alpha-35": "--ns-glacier-alpha-35",
198
+ "font.family.ui": "--ns-font-family-ui",
199
+ "font.family.mono": "--ns-font-family-mono",
200
+ "font.weight.regular": "--ns-font-weight-regular",
201
+ "font.weight.medium": "--ns-font-weight-medium",
202
+ "font.weight.semibold": "--ns-font-weight-semibold",
203
+ "font.size.11": "--ns-font-size-11",
204
+ "font.size.12": "--ns-font-size-12",
205
+ "font.size.13": "--ns-font-size-13",
206
+ "font.size.15": "--ns-font-size-15",
207
+ "font.size.18": "--ns-font-size-18",
208
+ "font.size.24": "--ns-font-size-24",
209
+ "font.size.32": "--ns-font-size-32",
210
+ "font.size.48": "--ns-font-size-48",
211
+ "font.size.base": "--ns-font-size-base",
212
+ "font.line-height.11": "--ns-font-line-height-11",
213
+ "font.line-height.12": "--ns-font-line-height-12",
214
+ "font.line-height.13": "--ns-font-line-height-13",
215
+ "font.line-height.15": "--ns-font-line-height-15",
216
+ "font.line-height.18": "--ns-font-line-height-18",
217
+ "font.line-height.24": "--ns-font-line-height-24",
218
+ "font.line-height.32": "--ns-font-line-height-32",
219
+ "font.line-height.48": "--ns-font-line-height-48",
220
+ "font.numeric.figures": "--ns-font-numeric-figures",
221
+ "space.2": "--ns-space-2",
222
+ "space.4": "--ns-space-4",
223
+ "space.6": "--ns-space-6",
224
+ "space.8": "--ns-space-8",
225
+ "space.12": "--ns-space-12",
226
+ "space.16": "--ns-space-16",
227
+ "space.20": "--ns-space-20",
228
+ "space.24": "--ns-space-24",
229
+ "space.32": "--ns-space-32",
230
+ "space.40": "--ns-space-40",
231
+ "space.48": "--ns-space-48",
232
+ "space.64": "--ns-space-64",
233
+ "size.control.sm": "--ns-size-control-sm",
234
+ "size.control.md": "--ns-size-control-md",
235
+ "size.control.lg": "--ns-size-control-lg",
236
+ "size.control.xl": "--ns-size-control-xl",
237
+ "size.row.sm": "--ns-size-row-sm",
238
+ "size.row.md": "--ns-size-row-md",
239
+ "size.row.lg": "--ns-size-row-lg",
240
+ "size.icon.sm": "--ns-size-icon-sm",
241
+ "size.icon.md": "--ns-size-icon-md",
242
+ "size.icon.lg": "--ns-size-icon-lg",
243
+ "size.target.coarse": "--ns-size-target-coarse",
244
+ "density.compact.control-height": "--ns-density-compact-control-height",
245
+ "density.compact.row-height": "--ns-density-compact-row-height",
246
+ "density.compact.row-padding": "--ns-density-compact-row-padding",
247
+ "density.default.control-height": "--ns-density-control-height",
248
+ "density.default.row-height": "--ns-density-row-height",
249
+ "density.default.row-padding": "--ns-density-row-padding",
250
+ "density.comfortable.control-height": "--ns-density-comfortable-control-height",
251
+ "density.comfortable.row-height": "--ns-density-comfortable-row-height",
252
+ "density.comfortable.row-padding": "--ns-density-comfortable-row-padding",
253
+ "radius.4": "--ns-radius-4",
254
+ "radius.6": "--ns-radius-6",
255
+ "radius.8": "--ns-radius-8",
256
+ "radius.12": "--ns-radius-12",
257
+ "radius.full": "--ns-radius-full",
258
+ "z.banner": "--ns-z-banner",
259
+ "z.dropdown": "--ns-z-dropdown",
260
+ "z.popover": "--ns-z-popover",
261
+ "z.sheet": "--ns-z-sheet",
262
+ "z.dialog": "--ns-z-dialog",
263
+ "z.toast": "--ns-z-toast",
264
+ "z.tooltip": "--ns-z-tooltip",
265
+ "motion.duration.120": "--ns-motion-duration-120",
266
+ "motion.duration.200": "--ns-motion-duration-200",
267
+ "motion.duration.320": "--ns-motion-duration-320",
268
+ "motion.duration.600": "--ns-motion-duration-600",
269
+ "motion.easing.settle": "--ns-motion-easing-settle",
270
+ "motion.easing.enter": "--ns-motion-easing-enter",
271
+ "motion.easing.travel": "--ns-motion-easing-travel",
272
+ "motion.easing.exit": "--ns-motion-easing-exit",
273
+ "color.ground": "--ns-color-ground",
274
+ "color.surface.1": "--ns-color-surface-1",
275
+ "color.surface.2": "--ns-color-surface-2",
276
+ "color.surface.3": "--ns-color-surface-3",
277
+ "color.line.1": "--ns-color-line-1",
278
+ "color.line.2": "--ns-color-line-2",
279
+ "color.text.1": "--ns-color-text-1",
280
+ "color.text.2": "--ns-color-text-2",
281
+ "color.text.3": "--ns-color-text-3",
282
+ "color.signal.default": "--ns-color-signal",
283
+ "color.signal.fill": "--ns-color-signal-fill",
284
+ "color.signal.wash": "--ns-color-signal-wash",
285
+ "color.signal.edge": "--ns-color-signal-edge",
286
+ "color.focus.default": "--ns-color-focus",
287
+ "color.focus.halo": "--ns-color-focus-halo",
288
+ "color.data.star": "--ns-color-data-star",
289
+ "color.data.node": "--ns-color-data-node",
290
+ "color.data.band": "--ns-color-data-band",
291
+ "color.data.horizon": "--ns-color-data-horizon",
292
+ "color.data.meridian": "--ns-color-data-meridian",
293
+ "color.data.graticule": "--ns-color-data-graticule",
294
+ "color.data.likert.1": "--ns-color-data-likert-1",
295
+ "color.data.likert.2": "--ns-color-data-likert-2",
296
+ "color.data.likert.3": "--ns-color-data-likert-3",
297
+ "color.data.likert.4": "--ns-color-data-likert-4",
298
+ "color.data.likert.5": "--ns-color-data-likert-5",
299
+ "elevation.1": "--ns-elevation-1",
300
+ "elevation.2": "--ns-elevation-2",
301
+ "elevation.3": "--ns-elevation-3",
302
+ "button.primary.bg": "--ns-button-primary-bg",
303
+ "button.primary.fg": "--ns-button-primary-fg"
304
+ }
305
+ }
package/package.json CHANGED
@@ -1,6 +1,43 @@
1
1
  {
2
2
  "name": "@northstar-js/tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Northstar design tokens: Night and Day themes as CSS variables, a Tailwind v4 theme, JSON and typed TS.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": [
8
+ "*.css"
9
+ ],
10
+ "main": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "./tokens.css": "./dist/tokens.css",
18
+ "./tailwind.css": "./dist/tailwind.css",
19
+ "./tokens.json": "./dist/tokens.json",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "src"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/ali-amaan/northstar-design-system.git",
32
+ "directory": "packages/tokens"
33
+ },
34
+ "homepage": "https://ali-amaan.github.io/northstar-design-system/",
35
+ "bugs": {
36
+ "url": "https://github.com/ali-amaan/northstar-design-system/issues"
37
+ },
38
+ "scripts": {
39
+ "build": "node scripts/build.mjs",
40
+ "typecheck": "tsc -p tsconfig.json --noEmit",
41
+ "test": "vitest run"
42
+ }
6
43
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$description": "Component layer: overrides where a component needs its own value. References resolve per theme.",
3
+ "button": {
4
+ "primary": {
5
+ "$type": "color",
6
+ "bg": { "$value": "{color.signal.fill}" },
7
+ "fg": { "$value": "{gray.8}", "$description": "Text on the glacier fill, in both themes." }
8
+ }
9
+ }
10
+ }