@nearform/quantum 1.4.2 → 1.4.3

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/README.md CHANGED
@@ -14,15 +14,122 @@ npm install --save @nearform/quantum
14
14
 
15
15
  #### With Tailwind
16
16
 
17
- Include or extend our colour configuration and add our components to Tailwind's content configuration. To ensure dark mode of the components isn't operating system dependent, add the `darkMode: "class"` entry to the config.
17
+ > **Tailwind 4.1.18 or newer is required.**
18
+ >
19
+ > Our components use `outline-hidden` and `rounded-xs`, which only exist in v4.
20
+ > On Tailwind v3 they resolve to nothing, so focus outlines are not reset and
21
+ > small radii render square.
22
+ >
23
+ > The `4.1.18` floor is not cosmetic: Tailwind versions from `4.0.0` to `4.1.17`
24
+ > drop every theme key containing an uppercase letter
25
+ > ([tailwindlabs/tailwindcss#18114](https://github.com/tailwindlabs/tailwindcss/issues/18114)).
26
+ > On those versions our `brandGreen` tokens and the `slideDown`/`slideUp`
27
+ > animations vanish with no error, so focus rings and the Accordion animation
28
+ > silently stop working while lowercase tokens keep resolving.
29
+ >
30
+ > **Tailwind v4 also raises the browser baseline** to Safari 16.4, Chrome 111
31
+ > and Firefox 128. If you need to support anything older, stay on the previous
32
+ > release of this library.
33
+ >
34
+ > **`hover:` styles no longer apply on touch devices.** v4 gates the `hover`
35
+ > variant behind `@media (hover: hover)`, which removes the sticky-hover-after-tap
36
+ > behaviour v3 had. Our hover styling is heaviest in `Button` and `Pagination`.
37
+
38
+ The plugin supplies our colour, shadow, font, stroke-width and animation tokens.
39
+ It also restores `cursor: pointer` on enabled `button` and `[role="button"]`
40
+ elements: v3's preflight set that and v4's does not, so without it every button
41
+ falls back to an arrow. It is registered in the `base` layer, so any `cursor-*`
42
+ utility you set still wins over it. Note it reaches your own buttons too, as v3's
43
+ preflight did — though unlike v3 it leaves disabled buttons alone.
44
+
45
+ You must also point Tailwind at this package so it scans our components for the
46
+ classes they use. **The plugin does not do this for you** — earlier versions
47
+ registered the path automatically, but Tailwind v4 replaced the `content` array
48
+ with source detection, and source detection skips `node_modules` by default. If
49
+ you omit this step the build succeeds and every Quantum utility is silently
50
+ missing from the output.
51
+
52
+ Our dark mode must be driven by a `.dark` class rather than the operating
53
+ system. Tailwind v4's `dark:` variant defaults to a `prefers-color-scheme` media
54
+ query, so each route below pins it back to the class — `@custom-variant` in the
55
+ CSS-first route, `darkMode: 'class'` in the JS-config ones.
56
+
57
+ All the examples below assume `index.css` sits one level down from your project
58
+ root, e.g. `src/index.css`, next to a `tailwind.config.*` at the root. Both the
59
+ `@source` path and the `@config` path are resolved **relative to the CSS file**,
60
+ so adjust the `../` if your layout differs — an `@source` that points outside
61
+ the project matches nothing and reports no error.
62
+
63
+ Tailwind v4 (CSS-first):
64
+
65
+ ```css
66
+ /* src/index.css */
67
+ @import 'tailwindcss';
68
+ @plugin '@nearform/quantum/tailwind-plugin';
69
+ @source '../node_modules/@nearform/quantum';
70
+ @custom-variant dark (&:is(.dark *));
71
+ ```
72
+
73
+ Tailwind v4 with a JS config. **The config file is inert on its own.** Unlike
74
+ v3, v4 loads a JS config only when a CSS entrypoint asks for it, so the
75
+ `@config` line below is required — without it the build succeeds and none of
76
+ our tokens are emitted:
77
+
78
+ ```css
79
+ /* src/index.css */
80
+ @import 'tailwindcss';
81
+ @config '../tailwind.config.mjs';
82
+ ```
18
83
 
19
84
  ```js
20
- // tailwind.config.js
85
+ // tailwind.config.mjs
21
86
  import quantumPlugin from '@nearform/quantum/tailwind-plugin'
87
+ export default {
88
+ //...tailwind config
89
+ content: ['./node_modules/@nearform/quantum/dist'],
90
+ plugins: [quantumPlugin],
91
+ darkMode: 'class'
92
+ }
93
+ ```
94
+
95
+ Point `content` at the directory, as above. The form to avoid is the one where a
96
+ `**` has to traverse _into_ `dist`:
97
+
98
+ ```js
99
+ // Do not do this
100
+ content: ['./node_modules/@nearform/quantum/**/*.js']
101
+ ```
102
+
103
+ Tailwind applies your `.gitignore` rules while expanding a `**` pattern, so a
104
+ `dist` entry — the default in a Vite scaffold — makes it skip the very directory
105
+ our classes live in, and every Quantum utility silently disappears from the
106
+ output. Measured against this package at Tailwind `4.1.18` and `4.3.2`, that
107
+ glob produces 4.5 kB with no `brandGreen` where the directory form produces
108
+ 55 kB with it, and reports no error either way. It applies whether or not the
109
+ project is a git repository — the ignore file alone is enough.
110
+
111
+ Naming `dist` yourself avoids it, either as the bare directory above or as
112
+ `'./node_modules/@nearform/quantum/dist/**/*.js'`. The same split applies to
113
+ `@source` in the CSS-first route.
114
+
115
+ From a CommonJS config the plugin arrives as the `default` property, because the
116
+ CJS build uses `exports.default`. Omitting `.default` fails at build time with
117
+ `is not a function`:
118
+
119
+ ```css
120
+ /* src/index.css */
121
+ @import 'tailwindcss';
122
+ @config '../tailwind.config.cjs';
123
+ ```
124
+
125
+ ```js
126
+ // tailwind.config.cjs
127
+ const quantumPlugin = require('@nearform/quantum/tailwind-plugin').default
22
128
  module.exports = {
23
129
  //...tailwind config
24
- plugins: [quantumPlugin]
25
- darkMode: "class"
130
+ content: ['./node_modules/@nearform/quantum/dist'],
131
+ plugins: [quantumPlugin],
132
+ darkMode: 'class'
26
133
  }
27
134
  ```
28
135
 
@@ -44,7 +151,6 @@ npm run test
44
151
 
45
152
  To run Storybook tests for the project, run:
46
153
 
47
-
48
154
  ```js
49
155
  npm run test-storybook
50
156
  ```
@@ -0,0 +1,8 @@
1
+ import {
2
+ animations_default
3
+ } from "../chunk-36NLQKQR.mjs";
4
+ import "../chunk-3FFF7Q7C.mjs";
5
+ export {
6
+ animations_default as default
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,22 @@
1
+ // src/animations/index.ts
2
+ var animations_default = {
3
+ keyframes: {
4
+ slideDown: {
5
+ from: { height: "0" },
6
+ to: { height: "var(--radix-accordion-content-height)" }
7
+ },
8
+ slideUp: {
9
+ from: { height: "var(--radix-accordion-content-height)" },
10
+ to: { height: "0" }
11
+ }
12
+ },
13
+ animation: {
14
+ slideDown: "slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)",
15
+ slideUp: "slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)"
16
+ }
17
+ };
18
+
19
+ export {
20
+ animations_default
21
+ };
22
+ //# sourceMappingURL=chunk-36NLQKQR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/animations/index.ts"],"sourcesContent":["export default {\n keyframes: {\n slideDown: {\n from: { height: '0' },\n to: { height: 'var(--radix-accordion-content-height)' }\n },\n slideUp: {\n from: { height: 'var(--radix-accordion-content-height)' },\n to: { height: '0' }\n }\n },\n animation: {\n slideDown: 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)',\n slideUp: 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)'\n }\n}\n"],"mappings":";AAAA,IAAO,qBAAQ;AAAA,EACb,WAAW;AAAA,IACT,WAAW;AAAA,MACT,MAAM,EAAE,QAAQ,IAAI;AAAA,MACpB,IAAI,EAAE,QAAQ,wCAAwC;AAAA,IACxD;AAAA,IACA,SAAS;AAAA,MACP,MAAM,EAAE,QAAQ,wCAAwC;AAAA,MACxD,IAAI,EAAE,QAAQ,IAAI;AAAA,IACpB;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,EACX;AACF;","names":[]}
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
21
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
31
+ }
32
+ return target;
33
+ };
34
+ var __export = (target, all) => {
35
+ for (var name in all)
36
+ __defProp(target, name, { get: all[name], enumerable: true });
37
+ };
38
+ var __copyProps = (to, from, except, desc) => {
39
+ if (from && typeof from === "object" || typeof from === "function") {
40
+ for (let key of __getOwnPropNames(from))
41
+ if (!__hasOwnProp.call(to, key) && key !== except)
42
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
43
+ }
44
+ return to;
45
+ };
46
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
47
+
48
+ export {
49
+ __spreadValues,
50
+ __spreadProps,
51
+ __objRest,
52
+ __export,
53
+ __reExport
54
+ };
55
+ //# sourceMappingURL=chunk-3FFF7Q7C.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,352 @@
1
+ import {
2
+ __spreadValues
3
+ } from "./chunk-3FFF7Q7C.mjs";
4
+
5
+ // src/colors/base.ts
6
+ var colors = {
7
+ grey: {
8
+ 50: "#F9FAFB",
9
+ 100: "#F3F4F6",
10
+ 200: "#E5E7EB",
11
+ 300: "#D1D5DB",
12
+ 400: "#9CA3AF",
13
+ 500: "#6B7280",
14
+ 600: "#4B5563",
15
+ 700: "#374151",
16
+ 800: "#1F2A37",
17
+ 900: "#111928"
18
+ },
19
+ blue: {
20
+ 50: "#F5FAFF",
21
+ 100: "#E1EFFE",
22
+ 200: "#C3DDFD",
23
+ 300: "#A4CAFE",
24
+ 400: "#76A9FA",
25
+ 500: "#3F83F8",
26
+ 600: "#2165E3",
27
+ 700: "#1A56DB",
28
+ 800: "#1E429F",
29
+ 900: "#233876"
30
+ },
31
+ red: {
32
+ 50: "#FDF2F2",
33
+ 100: "#FDE8E8",
34
+ 200: "#FBD5D5",
35
+ 300: "#F8B4B4",
36
+ 400: "#F98080",
37
+ 500: "#F05252",
38
+ 600: "#E02424",
39
+ 700: "#C81E1E",
40
+ 800: "#9B1C1C",
41
+ 900: "#771D1D"
42
+ },
43
+ orange: {
44
+ 50: "#FFF8F1",
45
+ 100: "#FEECDC",
46
+ 200: "#FCD9BD",
47
+ 300: "#FDBA8C",
48
+ 400: "#FF8A4C",
49
+ 500: "#FF5A1F",
50
+ 600: "#D03801",
51
+ 700: "#B43403",
52
+ 800: "#8A2C0D",
53
+ 900: "#771D1D"
54
+ },
55
+ yellow: {
56
+ 50: "#FDFDEA",
57
+ 100: "#FDF6B2",
58
+ 200: "#FCE96A",
59
+ 300: "#FACA15",
60
+ 400: "#E3A008",
61
+ 500: "#C27803",
62
+ 600: "#9F580A",
63
+ 700: "#8E4B10",
64
+ 800: "#723B13",
65
+ 900: "#633112"
66
+ },
67
+ green: {
68
+ 50: "#F3FAF7",
69
+ 100: "#DEF7EC",
70
+ 200: "#BCF0DA",
71
+ 300: "#84E1BC",
72
+ 400: "#31C48D",
73
+ 500: "#0E9F6E",
74
+ 600: "#057A55",
75
+ 700: "#046C4E",
76
+ 800: "#03543F",
77
+ 900: "#014737"
78
+ },
79
+ teal: {
80
+ 50: "#EDFAFA",
81
+ 100: "#D5F5F6",
82
+ 200: "#AFECEF",
83
+ 300: "#7EDCE2",
84
+ 400: "#16BDCA",
85
+ 500: "#0694A2",
86
+ 600: "#047481",
87
+ 700: "#036672",
88
+ 800: "#05505C",
89
+ 900: "#014451"
90
+ },
91
+ indigo: {
92
+ 50: "#F0F5FF",
93
+ 100: "#E5EDFF",
94
+ 200: "#CDDBFE",
95
+ 300: "#B4C6FC",
96
+ 400: "#8DA2FB",
97
+ 500: "#6875F5",
98
+ 600: "#5850EC",
99
+ 700: "#5145CD",
100
+ 800: "#42389D",
101
+ 900: "#362F78"
102
+ },
103
+ purple: {
104
+ 50: "#F6F5FF",
105
+ 100: "#EDEBFE",
106
+ 200: "#DCD7FE",
107
+ 300: "#CABFFD",
108
+ 400: "#AC94FA",
109
+ 500: "#9061F9",
110
+ 600: "#7E3AF2",
111
+ 700: "#6C2BD9",
112
+ 800: "#5521B5",
113
+ 900: "#4A1D96"
114
+ },
115
+ pink: {
116
+ 50: "#FFF6F9",
117
+ 100: "#FFF1F5",
118
+ 200: "#FFE8EE",
119
+ 300: "#FFD9E3",
120
+ 400: "#FFBFD0",
121
+ 500: "#FF9DB7",
122
+ 600: "#FB7A9C",
123
+ 700: "#D95477",
124
+ 800: "#A02042",
125
+ 900: "#731837"
126
+ },
127
+ brandMidnight: {
128
+ 10: "#f4f8fa",
129
+ 30: "#97a1b8",
130
+ 50: "#526288",
131
+ 80: "#0c3d60",
132
+ 100: "#000e38"
133
+ },
134
+ brandGreen: {
135
+ 10: "#e5fcf5",
136
+ 30: "#b2f7e1",
137
+ 50: "#78edc4",
138
+ 80: "#32ebae",
139
+ 100: "#03e5a4"
140
+ }
141
+ };
142
+
143
+ // src/colors/foreground.ts
144
+ var foreground = {
145
+ DEFAULT: colors.grey["900"],
146
+ dark: "#FFF",
147
+ muted: {
148
+ DEFAULT: colors.grey["500"],
149
+ dark: colors.grey["300"]
150
+ },
151
+ subtle: {
152
+ DEFAULT: colors.grey["400"],
153
+ dark: colors.grey["500"]
154
+ },
155
+ inverse: {
156
+ DEFAULT: "#FFF",
157
+ dark: colors.grey["900"]
158
+ }
159
+ };
160
+
161
+ // src/colors/background.ts
162
+ var background = {
163
+ DEFAULT: "#FFF",
164
+ dark: "#000",
165
+ alt: {
166
+ DEFAULT: colors.grey["100"],
167
+ dark: colors.grey["700"]
168
+ },
169
+ subtle: {
170
+ DEFAULT: colors.grey["50"],
171
+ dark: colors.grey["800"]
172
+ },
173
+ inverse: {
174
+ DEFAULT: colors.grey["900"],
175
+ dark: "#FFF"
176
+ }
177
+ };
178
+
179
+ // src/colors/accent.ts
180
+ var accent = {
181
+ DEFAULT: colors.brandMidnight["100"],
182
+ dark: colors.brandMidnight["10"],
183
+ alt: {
184
+ DEFAULT: colors.brandMidnight["80"],
185
+ dark: colors.grey["600"]
186
+ },
187
+ hover: {
188
+ DEFAULT: colors.brandMidnight["80"],
189
+ dark: colors.brandMidnight["30"]
190
+ },
191
+ focus: {
192
+ DEFAULT: colors.brandMidnight["100"],
193
+ dark: colors.grey["100"]
194
+ }
195
+ };
196
+
197
+ // src/colors/border.ts
198
+ var border = {
199
+ DEFAULT: colors.brandMidnight["30"],
200
+ dark: colors.brandMidnight["50"],
201
+ hover: {
202
+ DEFAULT: colors.brandMidnight["50"],
203
+ dark: colors.brandMidnight["80"]
204
+ },
205
+ focus: {
206
+ DEFAULT: colors.brandMidnight["80"],
207
+ dark: colors.grey["400"]
208
+ },
209
+ subtle: {
210
+ DEFAULT: colors.brandMidnight["10"],
211
+ dark: colors.grey["700"]
212
+ }
213
+ };
214
+
215
+ // src/colors/feedback.ts
216
+ var feedback = {
217
+ green: colors.green["500"],
218
+ yellow: colors.yellow["300"],
219
+ orange: colors.orange["400"],
220
+ red: colors.red["600"]
221
+ };
222
+
223
+ // src/colors/button.ts
224
+ var button = {
225
+ primary: {
226
+ DEFAULT: accent.DEFAULT,
227
+ dark: accent.dark,
228
+ hover: {
229
+ DEFAULT: accent.hover.DEFAULT,
230
+ dark: accent.hover.dark
231
+ },
232
+ focus: {
233
+ DEFAULT: accent.focus.DEFAULT,
234
+ dark: accent.focus.dark
235
+ },
236
+ disabled: {
237
+ DEFAULT: background.subtle.DEFAULT,
238
+ dark: background.subtle.dark
239
+ },
240
+ selected: {
241
+ DEFAILT: colors.grey["100"],
242
+ dark: background.subtle.dark
243
+ }
244
+ },
245
+ secondary: {
246
+ DEFAULT: "#FFF",
247
+ dark: colors.grey["900"],
248
+ hover: {
249
+ DEFAULT: background.subtle.DEFAULT,
250
+ dark: background.subtle.dark
251
+ },
252
+ focus: {
253
+ DEFAULT: background.alt.DEFAULT,
254
+ dark: background.alt.dark
255
+ },
256
+ disabled: {
257
+ DEFAULT: background.subtle.DEFAULT,
258
+ dark: background.subtle.dark
259
+ },
260
+ border: {
261
+ DEFAULT: border.DEFAULT,
262
+ dark: border.dark,
263
+ hover: {
264
+ DEFAULT: border.hover.DEFAULT,
265
+ dark: border.hover.dark
266
+ },
267
+ focus: {
268
+ DEFAULT: border.DEFAULT,
269
+ dark: border.focus.dark
270
+ },
271
+ disabled: {
272
+ DEFAULT: border.subtle.DEFAULT,
273
+ dark: border.subtle.dark
274
+ },
275
+ selected: {
276
+ DEFAILT: colors.grey["100"],
277
+ dark: background.subtle.dark
278
+ }
279
+ }
280
+ },
281
+ tertiary: {
282
+ hover: {
283
+ DEFAULT: background.subtle.DEFAULT,
284
+ dark: background.subtle.dark
285
+ },
286
+ focus: {
287
+ DEFAULT: background.DEFAULT,
288
+ dark: colors.blue["900"]
289
+ },
290
+ selected: {
291
+ DEFAILT: colors.grey["100"],
292
+ dark: background.subtle.dark
293
+ }
294
+ },
295
+ success: {
296
+ DEFAULT: feedback.green,
297
+ hover: {
298
+ DEFAULT: colors.green["600"]
299
+ },
300
+ focus: {
301
+ DEFAULT: colors.green["700"]
302
+ },
303
+ disabled: {
304
+ DEFAULT: colors.grey["50"]
305
+ },
306
+ selected: {
307
+ DEFAILT: colors.grey["100"],
308
+ dark: background.subtle.dark
309
+ }
310
+ },
311
+ danger: {
312
+ DEFAULT: feedback.red,
313
+ hover: {
314
+ DEFAULT: colors.red["700"]
315
+ },
316
+ focus: {
317
+ DEFAULT: colors.red["800"]
318
+ },
319
+ disabled: {
320
+ DEFAULT: colors.grey["50"]
321
+ },
322
+ selected: {
323
+ DEFAILT: colors.grey["100"],
324
+ dark: background.subtle.dark
325
+ }
326
+ }
327
+ };
328
+
329
+ // src/colors/index.ts
330
+ var colors_default = __spreadValues({
331
+ transparent: "transparent",
332
+ current: "currentColor",
333
+ primary: colors.brandMidnight,
334
+ secondary: colors.brandGreen,
335
+ foreground,
336
+ background,
337
+ accent,
338
+ border,
339
+ feedback,
340
+ button,
341
+ white: {
342
+ DEFAULT: "#fff"
343
+ },
344
+ black: {
345
+ DEFAULT: "#000"
346
+ }
347
+ }, colors);
348
+
349
+ export {
350
+ colors_default
351
+ };
352
+ //# sourceMappingURL=chunk-KGI2Q7KG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/colors/base.ts","../src/colors/foreground.ts","../src/colors/background.ts","../src/colors/accent.ts","../src/colors/border.ts","../src/colors/feedback.ts","../src/colors/button.ts","../src/colors/index.ts"],"sourcesContent":["export const colors = {\n grey: {\n 50: '#F9FAFB',\n 100: '#F3F4F6',\n 200: '#E5E7EB',\n 300: '#D1D5DB',\n 400: '#9CA3AF',\n 500: '#6B7280',\n 600: '#4B5563',\n 700: '#374151',\n 800: '#1F2A37',\n 900: '#111928'\n },\n blue: {\n 50: '#F5FAFF',\n 100: '#E1EFFE',\n 200: '#C3DDFD',\n 300: '#A4CAFE',\n 400: '#76A9FA',\n 500: '#3F83F8',\n 600: '#2165E3',\n 700: '#1A56DB',\n 800: '#1E429F',\n 900: '#233876'\n },\n red: {\n 50: '#FDF2F2',\n 100: '#FDE8E8',\n 200: '#FBD5D5',\n 300: '#F8B4B4',\n 400: '#F98080',\n 500: '#F05252',\n 600: '#E02424',\n 700: '#C81E1E',\n 800: '#9B1C1C',\n 900: '#771D1D'\n },\n orange: {\n 50: '#FFF8F1',\n 100: '#FEECDC',\n 200: '#FCD9BD',\n 300: '#FDBA8C',\n 400: '#FF8A4C',\n 500: '#FF5A1F',\n 600: '#D03801',\n 700: '#B43403',\n 800: '#8A2C0D',\n 900: '#771D1D'\n },\n yellow: {\n 50: '#FDFDEA',\n 100: '#FDF6B2',\n 200: '#FCE96A',\n 300: '#FACA15',\n 400: '#E3A008',\n 500: '#C27803',\n 600: '#9F580A',\n 700: '#8E4B10',\n 800: '#723B13',\n 900: '#633112'\n },\n green: {\n 50: '#F3FAF7',\n 100: '#DEF7EC',\n 200: '#BCF0DA',\n 300: '#84E1BC',\n 400: '#31C48D',\n 500: '#0E9F6E',\n 600: '#057A55',\n 700: '#046C4E',\n 800: '#03543F',\n 900: '#014737'\n },\n teal: {\n 50: '#EDFAFA',\n 100: '#D5F5F6',\n 200: '#AFECEF',\n 300: '#7EDCE2',\n 400: '#16BDCA',\n 500: '#0694A2',\n 600: '#047481',\n 700: '#036672',\n 800: '#05505C',\n 900: '#014451'\n },\n indigo: {\n 50: '#F0F5FF',\n 100: '#E5EDFF',\n 200: '#CDDBFE',\n 300: '#B4C6FC',\n 400: '#8DA2FB',\n 500: '#6875F5',\n 600: '#5850EC',\n 700: '#5145CD',\n 800: '#42389D',\n 900: '#362F78'\n },\n purple: {\n 50: '#F6F5FF',\n 100: '#EDEBFE',\n 200: '#DCD7FE',\n 300: '#CABFFD',\n 400: '#AC94FA',\n 500: '#9061F9',\n 600: '#7E3AF2',\n 700: '#6C2BD9',\n 800: '#5521B5',\n 900: '#4A1D96'\n },\n pink: {\n 50: '#FFF6F9',\n 100: '#FFF1F5',\n 200: '#FFE8EE',\n 300: '#FFD9E3',\n 400: '#FFBFD0',\n 500: '#FF9DB7',\n 600: '#FB7A9C',\n 700: '#D95477',\n 800: '#A02042',\n 900: '#731837'\n },\n brandMidnight: {\n 10: '#f4f8fa',\n 30: '#97a1b8',\n 50: '#526288',\n 80: '#0c3d60',\n 100: '#000e38'\n },\n brandGreen: {\n 10: '#e5fcf5',\n 30: '#b2f7e1',\n 50: '#78edc4',\n 80: '#32ebae',\n 100: '#03e5a4'\n }\n}\n","import { colors } from './base'\n\nexport const foreground = {\n DEFAULT: colors.grey['900'],\n dark: '#FFF',\n muted: {\n DEFAULT: colors.grey['500'],\n dark: colors.grey['300']\n },\n subtle: {\n DEFAULT: colors.grey['400'],\n dark: colors.grey['500']\n },\n inverse: {\n DEFAULT: '#FFF',\n dark: colors.grey['900']\n }\n}\n","import { colors } from './base'\n\nexport const background = {\n DEFAULT: '#FFF',\n dark: '#000',\n alt: {\n DEFAULT: colors.grey['100'],\n dark: colors.grey['700']\n },\n subtle: {\n DEFAULT: colors.grey['50'],\n dark: colors.grey['800']\n },\n inverse: {\n DEFAULT: colors.grey['900'],\n dark: '#FFF'\n }\n}\n","import { colors } from './base'\n\nexport const accent = {\n DEFAULT: colors.brandMidnight['100'],\n dark: colors.brandMidnight['10'],\n alt: {\n DEFAULT: colors.brandMidnight['80'],\n dark: colors.grey['600']\n },\n hover: {\n DEFAULT: colors.brandMidnight['80'],\n dark: colors.brandMidnight['30']\n },\n focus: {\n DEFAULT: colors.brandMidnight['100'],\n dark: colors.grey['100']\n }\n}\n","import { colors } from './base'\n\nexport const border = {\n DEFAULT: colors.brandMidnight['30'],\n dark: colors.brandMidnight['50'],\n hover: {\n DEFAULT: colors.brandMidnight['50'],\n dark: colors.brandMidnight['80']\n },\n focus: {\n DEFAULT: colors.brandMidnight['80'],\n dark: colors.grey['400']\n },\n subtle: {\n DEFAULT: colors.brandMidnight['10'],\n dark: colors.grey['700']\n }\n}\n","import { colors } from './base'\n\nexport const feedback = {\n green: colors.green['500'],\n yellow: colors.yellow['300'],\n orange: colors.orange['400'],\n red: colors.red['600']\n}\n","import { colors } from './base'\nimport { accent } from './accent'\nimport { background } from './background'\nimport { border } from './border'\nimport { feedback } from './feedback'\n\nexport const button = {\n primary: {\n DEFAULT: accent.DEFAULT,\n dark: accent.dark,\n hover: {\n DEFAULT: accent.hover.DEFAULT,\n dark: accent.hover.dark\n },\n focus: {\n DEFAULT: accent.focus.DEFAULT,\n dark: accent.focus.dark\n },\n disabled: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n selected: {\n DEFAILT: colors.grey['100'],\n dark: background.subtle.dark\n }\n },\n secondary: {\n DEFAULT: '#FFF',\n dark: colors.grey['900'],\n hover: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n focus: {\n DEFAULT: background.alt.DEFAULT,\n dark: background.alt.dark\n },\n disabled: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n border: {\n DEFAULT: border.DEFAULT,\n dark: border.dark,\n hover: {\n DEFAULT: border.hover.DEFAULT,\n dark: border.hover.dark\n },\n focus: {\n DEFAULT: border.DEFAULT,\n dark: border.focus.dark\n },\n disabled: {\n DEFAULT: border.subtle.DEFAULT,\n dark: border.subtle.dark\n },\n selected: {\n DEFAILT: colors.grey['100'],\n dark: background.subtle.dark\n }\n }\n },\n tertiary: {\n hover: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n focus: {\n DEFAULT: background.DEFAULT,\n dark: colors.blue['900']\n },\n selected: {\n DEFAILT: colors.grey['100'],\n dark: background.subtle.dark\n }\n },\n success: {\n DEFAULT: feedback.green,\n hover: {\n DEFAULT: colors.green['600']\n },\n focus: {\n DEFAULT: colors.green['700']\n },\n disabled: {\n DEFAULT: colors.grey['50']\n },\n selected: {\n DEFAILT: colors.grey['100'],\n dark: background.subtle.dark\n }\n },\n danger: {\n DEFAULT: feedback.red,\n hover: {\n DEFAULT: colors.red['700']\n },\n focus: {\n DEFAULT: colors.red['800']\n },\n disabled: {\n DEFAULT: colors.grey['50']\n },\n selected: {\n DEFAILT: colors.grey['100'],\n dark: background.subtle.dark\n }\n }\n}\n","import { colors } from './base'\nimport { foreground } from './foreground'\nimport { background } from './background'\nimport { button } from './button'\nimport { accent } from './accent'\nimport { border } from './border'\nimport { feedback } from './feedback'\n\nexport default {\n transparent: 'transparent',\n current: 'currentColor',\n primary: colors.brandMidnight,\n secondary: colors.brandGreen,\n foreground: foreground,\n background: background,\n accent: accent,\n border: border,\n feedback: feedback,\n button: button,\n white: {\n DEFAULT: '#fff'\n },\n black: {\n DEFAULT: '#000'\n },\n ...colors\n}\n"],"mappings":";;;;;AAAO,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,KAAK;AAAA,IACH,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,I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N,SAAS,SAAS;AAAA,IAClB,OAAO;AAAA,MACL,SAAS,OAAO,IAAI,KAAK;AAAA,IAC3B;AAAA,IACA,OAAO;AAAA,MACL,SAAS,OAAO,IAAI,KAAK;AAAA,IAC3B;AAAA,IACA,UAAU;AAAA,MACR,SAAS,OAAO,KAAK,IAAI;AAAA,IAC3B;AAAA,IACA,UAAU;AAAA,MACR,SAAS,OAAO,KAAK,KAAK;AAAA,MAC1B,MAAM,WAAW,OAAO;AAAA,IAC1B;AAAA,EACF;AACF;;;ACrGA,IAAO,iBAAQ;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS,OAAO;AAAA,EAChB,WAAW,OAAO;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,IACL,SAAS;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACL,SAAS;AAAA,EACX;AAAA,GACG;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ colors_default
3
+ } from "../chunk-KGI2Q7KG.mjs";
4
+ import "../chunk-3FFF7Q7C.mjs";
5
+ export {
6
+ colors_default as default
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}