@flairstudio/kit 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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ Renaming or removing a token is a breaking change. Adding a token, or changing a value, is a minor release. Before 1.0, a breaking change bumps the minor version.
4
+
5
+ ## 0.1.0
6
+
7
+ First release: colour, spacing, type, radius, layer, motion, size and font tokens; light and dark modes; opt-in Inter.
package/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FlairStudio
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.
22
+
23
+ The Inter font files in dist/fonts/ are not covered by this licence. They are
24
+ licensed under the SIL Open Font License 1.1; see dist/fonts/OFL.txt.
package/README.md CHANGED
@@ -1,3 +1,82 @@
1
- # Temporary Holding Version
1
+ # flair-kit
2
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.
3
+ Published on npm as `@flairstudio/kit`. Design tokens as plain CSS: colours with light and dark modes, spacing, type sizes, radius, layers, motion and fonts. No build step is needed to use them. The colour names are the ones the Flair Design theme tool uses.
4
+ - A Flair theme exported in the `data-theme` style drops straight in as a site's palette file (see below).
5
+ - Flair's `light-dark()` export doesn't, because it can't follow `data-theme`.
6
+
7
+ Every token is listed in `TOKENS.md`, which ships in the package.
8
+
9
+ ## Use it in a site with a build
10
+
11
+ ```sh
12
+ npm install @flairstudio/kit@0.1.0 --save-exact
13
+ ```
14
+
15
+ Import in this order:
16
+
17
+ ```js
18
+ import '@flairstudio/kit/tokens.css'; // first
19
+ import '@flairstudio/kit/fonts.css'; // only if the site uses Inter
20
+ import './palette.css'; // the site's own palette (below)
21
+ import './site.css'; // the site's own CSS
22
+ ```
23
+
24
+ ## Use it without a build
25
+
26
+ Install it as a dev dependency, copy `node_modules/@flairstudio/kit/dist/` into the site (for example to `assets/flair-kit/`), and commit the copy. Then link it before the site's own styles:
27
+
28
+ ```html
29
+ <link rel="stylesheet" href="assets/flair-kit/tokens.css">
30
+ ```
31
+
32
+ Line 1 of each CSS file names its version, `/* flair-kit 0.1.0 · … */`, so a test can check that the copy matches the installed version.
33
+
34
+ ## Light and dark
35
+
36
+ - `data-theme="light"` or `data-theme="dark"` works on any element, not only `<html>`. A region that always stays dark takes `data-theme="dark"`, and its form controls and scrollbars follow.
37
+ - With no attribute, the page follows the system setting.
38
+ - Only `light` and `dark` are values. Anything else acts like no attribute: on `<html>` the page follows the system, and on a nested element it keeps its parent's mode.
39
+
40
+ ## A site's palette and overrides
41
+
42
+ The package's colours are a default. A site's palette file replaces them, and it must:
43
+
44
+ - **use the same three selectors as `tokens.css`, in this order.** The dark block must come after the light one, or `data-theme="dark"` on `<html>` stops working:
45
+
46
+ ```css
47
+ :root,
48
+ [data-theme="light"] { color-scheme: light; --color-background: #…; /* … */ --gradient-angle: 110deg; }
49
+
50
+ [data-theme="dark"] { color-scheme: dark; --color-background: #…; /* … */ }
51
+
52
+ @media (prefers-color-scheme: dark) {
53
+ :root:not([data-theme="light"]) { color-scheme: dark; --color-background: #…; /* … */ }
54
+ }
55
+ ```
56
+
57
+ - **set every colour in both modes.** A colour the file leaves out falls back to the package's default. `tokens.json` lists them all under `colors.names`, so a site test can check its palette covers them.
58
+
59
+ Override a colour with those same three selectors. A colour set only on `:root` behaves differently:
60
+ - it applies to the page in every mode, so a value chosen for light mode also shows in dark mode;
61
+ - it misses every element with its own `data-theme`;
62
+ - alongside a palette file, `data-theme="dark"` on `<html>` picks it up, but the system's dark mode doesn't.
63
+
64
+ Check colour values carefully. The colours are registered as `<color>`, so a misspelt value (`#1f2a3`, `banana`) doesn't fail loudly. The element quietly takes its parent's colour instead, which inside a `data-theme` region can mean a light colour in a dark region.
65
+
66
+ Every token declaration in the package sits in the `flair-kit.tokens` cascade layer. The `@property` registrations in `tokens.css` and the `@font-face` rules in `fonts.css` sit outside it by design, because neither needs overriding. A site's own CSS outside a layer always wins, whatever its selectors, so no override needs `!important`. A site that uses its own layers declares them after `@layer flair-kit.tokens, flair-kit.components;`.
67
+
68
+ ## Breakpoints
69
+
70
+ `30rem`, `48rem` and `64rem` (480, 768 and 1024px at the default text size). Media queries can't read CSS variables, so these are values, not tokens. Write rules as `@media (width >= 48rem)`. They are also in `tokens.json` under `breakpoints`.
71
+
72
+ ## Motion
73
+
74
+ The package adds no transitions. `--dur-theme` is there for a site that fades between themes; under `prefers-reduced-motion: reduce` it becomes `0.01ms`, never `0s`, so code waiting on a transition's end event still hears it. A site that sets its own `--dur-theme` overrides that as well, so it should set it again inside its own `@media (prefers-reduced-motion: reduce)` block.
75
+
76
+ ## Versions
77
+
78
+ Pin an exact version, and read `CHANGELOG.md` (it ships in the package) before upgrading. Renaming or removing a token is a breaking change.
79
+
80
+ ## Licence
81
+
82
+ MIT, © FlairStudio. The Inter font files are under the SIL Open Font License 1.1 (`dist/fonts/OFL.txt`).
package/TOKENS.md ADDED
@@ -0,0 +1,186 @@
1
+ # flair-kit tokens
2
+
3
+ Version 0.1.0. Colours change with the mode; everything else stays the same in light and dark.
4
+
5
+ ## Colours
6
+
7
+ Set per mode by `data-theme="light"` or `data-theme="dark"` on any element, or by the system when there is no attribute. The values shown are the default palette; a site's own palette file replaces them.
8
+
9
+ | Token | Light | Dark | What it's for |
10
+ |---|---|---|---|
11
+ | `--color-background` | `#f6faf9` | `#101413` | The page itself |
12
+ | `--color-card` | `#ffffff` | `#191f1e` | A raised surface on the page: cards, panels, dialogs |
13
+ | `--color-muted` | `#ecf2f1` | `#262d2c` | A quiet surface: wells, inputs, inactive tabs |
14
+ | `--color-secondary` | `#f0e5ed` | `#583050` | A tinted surface for bands and highlighted areas |
15
+ | `--color-foreground` | `#191f1e` | `#edf1f0` | Body text and icons on any of the four surfaces |
16
+ | `--color-card-foreground` | `#191f1e` | `#edf1f0` | Text on a card; the same as foreground today |
17
+ | `--color-muted-foreground` | `#5a6563` | `#b1bbb9` | Secondary text: captions, hints, metadata |
18
+ | `--color-on-secondary` | `#6f1362` | `#f7e2f2` | Text on the secondary surface |
19
+ | `--color-border` | `#ced6d5` | `#485250` | Hairlines and dividers; decorative, so not held to a contrast ratio |
20
+ | `--color-outline` | `#727e7c` | `#929e9c` | Borders a person needs to see, such as a field’s edge, on any surface |
21
+ | `--color-primary` | `#0d9488` | `#0d9488` | The main accent as a fill: buttons, selected states |
22
+ | `--color-on-primary` | `#000000` | `#000000` | Text and icons on a primary fill |
23
+ | `--color-primary-hover` | `#14a093` | `#14a093` | A primary fill while hovered |
24
+ | `--color-primary-pressed` | `#1eab9d` | `#1eab9d` | A primary fill while pressed |
25
+ | `--color-primary-text` | `#09746a` | `#30bdaf` | The main accent as text and links, on any surface |
26
+ | `--color-ring` | `#09746a` | `#30bdaf` | The focus ring; the same as primary-text |
27
+ | `--color-tertiary` | `#b93008` | `#f6a48f` | A third accent, as a fill |
28
+ | `--color-on-tertiary` | `#ffffff` | `#000000` | Text on a tertiary fill |
29
+ | `--color-accent-2` | `#ec14d2` | `#ed13d2` | A second accent, as a fill or a mark |
30
+ | `--color-glow` | `#f6b8a8` | `#f6b8a8` | A soft decorative colour for washes and art |
31
+ | `--color-destructive` | `#c6101a` | `#f7a39a` | Errors and destructive actions, as text or a fill |
32
+ | `--color-on-destructive` | `#ffffff` | `#000000` | Text on a destructive fill |
33
+ | `--color-chart-1` | `#0a8b80` | `#20aea0` | The first data series |
34
+ | `--color-chart-2` | `#b30f9f` | `#f799e3` | The second data series |
35
+ | `--color-chart-3` | `#95290c` | `#f5cbc0` | The third data series |
36
+ | `--color-chart-4` | `#36403e` | `#727f7d` | The fourth data series |
37
+ | `--color-brand` | `#0d9488` | `#0d9488` | The theme’s seed colour, exactly as chosen |
38
+ | `--color-gradient-1` | `#0d9488` | `#0d9488` | The first stop of the theme’s gradient |
39
+ | `--color-gradient-2` | `#ec14d2` | `#ed13d2` | The middle stop of the theme’s gradient |
40
+ | `--color-gradient-3` | `#f6b8a8` | `#f6b8a8` | The last stop of the theme’s gradient |
41
+ | `--gradient-angle` | `110deg` | `110deg` | The angle the gradient stops are drawn at |
42
+
43
+ ## Spacing
44
+
45
+ | Token | Value | What it's for |
46
+ |---|---|---|
47
+ | `--space-1` | `0.25rem` | 4px |
48
+ | `--space-2` | `0.5rem` | 8px |
49
+ | `--space-3` | `0.75rem` | 12px |
50
+ | `--space-4` | `1rem` | 16px |
51
+ | `--space-5` | `1.25rem` | 20px |
52
+ | `--space-6` | `1.5rem` | 24px |
53
+ | `--space-8` | `2rem` | 32px |
54
+ | `--space-10` | `2.5rem` | 40px |
55
+ | `--space-12` | `3rem` | 48px |
56
+ | `--space-16` | `4rem` | 64px |
57
+ | `--space-gutter` | `clamp(1.25rem, 5vw, 5rem)` | Page side padding; grows with the screen from 20px to 80px |
58
+ | `--space-section` | `clamp(3rem, 1.5rem + 5vw, 6rem)` | Space between page sections; grows from 48px to 96px |
59
+ | `--space-section-tight` | `clamp(2.25rem, 1.125rem + 3.75vw, 4.5rem)` | Space between closely related sections; about three-quarters of --space-section |
60
+
61
+ ## Type sizes
62
+
63
+ | Token | Value | What it's for |
64
+ |---|---|---|
65
+ | `--text-12` | `0.75rem` | Small print, labels |
66
+ | `--text-14` | `0.875rem` | Secondary text, dense UI |
67
+ | `--text-16` | `1rem` | Body text |
68
+ | `--text-18` | `1.125rem` | Lead paragraphs, small headings |
69
+ | `--text-20` | `1.25rem` | Headings between 18 and 24 |
70
+ | `--text-24` | `1.5rem` | Section headings |
71
+ | `--text-32` | `2rem` | Page headings; larger display sizes belong to each site |
72
+
73
+ ## Radius
74
+
75
+ | Token | Value | What it's for |
76
+ |---|---|---|
77
+ | `--radius-sm` | `4px` | Small controls, chips |
78
+ | `--radius-md` | `8px` | Buttons, fields |
79
+ | `--radius-lg` | `12px` | Cards, panels |
80
+ | `--radius-full` | `9999px` | Pills and circles |
81
+
82
+ ## Layers
83
+
84
+ | Token | Value | What it's for |
85
+ |---|---|---|
86
+ | `--z-raised` | `10` | Content lifted above its neighbours |
87
+ | `--z-sticky` | `20` | Sticky headers and bars |
88
+ | `--z-overlay` | `40` | Menus, dialogs and their scrims |
89
+ | `--z-toast` | `100` | Toasts and notices |
90
+ | `--z-tooltip` | `200` | Tooltips, above everything |
91
+
92
+ ## Durations
93
+
94
+ | Token | Value | What it's for |
95
+ |---|---|---|
96
+ | `--dur-press` | `120ms` | Press feedback |
97
+ | `--dur-exit` | `160ms` | Something leaving |
98
+ | `--dur-state` | `200ms` | Hover and other state changes |
99
+ | `--dur-enter` | `250ms` | Something arriving |
100
+ | `--dur-theme` | `200ms` | A fade between themes or modes, for sites that add one |
101
+
102
+ ## Easing
103
+
104
+ | Token | Value | What it's for |
105
+ |---|---|---|
106
+ | `--ease-out` | `cubic-bezier(0.2, 0, 0, 1)` | The standard easing: fast start, gentle stop |
107
+
108
+ ## Sizes
109
+
110
+ | Token | Value | What it's for |
111
+ |---|---|---|
112
+ | `--size-touch` | `2.75rem` | Main controls: 44px, comfortable to tap. The tested minimum is 24px |
113
+
114
+ ## Fonts
115
+
116
+ | Token | Value | What it's for |
117
+ |---|---|---|
118
+ | `--font-sans` | `Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif` | Body and UI text; Inter ships in the opt-in fonts.css |
119
+ | `--font-mono` | `ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace` | Code and figures; the system’s own mono, nothing to download |
120
+ | `--font-display` | `var(--font-sans)` | Headlines; follows --font-sans as set on :root, unless a site sets its own |
121
+
122
+ ## Pairings Flair guarantees
123
+
124
+ Flair's engine builds every palette so these pairs pass. Any other pairing a page paints is checked on the rendered page instead.
125
+
126
+ - `foreground` on `background`: at least 4.6:1
127
+ - `foreground` on `card`: at least 4.6:1
128
+ - `foreground` on `muted`: at least 4.6:1
129
+ - `foreground` on `secondary`: at least 4.6:1
130
+ - `muted-foreground` on `background`: at least 4.6:1
131
+ - `muted-foreground` on `card`: at least 4.6:1
132
+ - `muted-foreground` on `muted`: at least 4.6:1
133
+ - `muted-foreground` on `secondary`: at least 4.6:1
134
+ - `on-secondary` on `background`: at least 4.6:1
135
+ - `on-secondary` on `card`: at least 4.6:1
136
+ - `on-secondary` on `muted`: at least 4.6:1
137
+ - `on-secondary` on `secondary`: at least 4.6:1
138
+ - `primary-text` on `background`: at least 4.6:1
139
+ - `primary-text` on `card`: at least 4.6:1
140
+ - `primary-text` on `muted`: at least 4.6:1
141
+ - `primary-text` on `secondary`: at least 4.6:1
142
+ - `destructive` on `background`: at least 4.6:1
143
+ - `destructive` on `card`: at least 4.6:1
144
+ - `destructive` on `muted`: at least 4.6:1
145
+ - `destructive` on `secondary`: at least 4.6:1
146
+ - `outline` on `background`: at least 3.1:1
147
+ - `outline` on `card`: at least 3.1:1
148
+ - `outline` on `muted`: at least 3.1:1
149
+ - `outline` on `secondary`: at least 3.1:1
150
+ - `primary` on `background`: at least 3.1:1
151
+ - `primary` on `card`: at least 3.1:1
152
+ - `tertiary` on `background`: at least 3.1:1
153
+ - `tertiary` on `card`: at least 3.1:1
154
+ - `accent-2` on `background`: at least 3.1:1
155
+ - `accent-2` on `card`: at least 3.1:1
156
+ - `chart-1` on `background`: at least 3.1:1
157
+ - `chart-1` on `card`: at least 3.1:1
158
+ - `chart-2` on `background`: at least 3.1:1
159
+ - `chart-2` on `card`: at least 3.1:1
160
+ - `chart-3` on `background`: at least 3.1:1
161
+ - `chart-3` on `card`: at least 3.1:1
162
+ - `chart-4` on `background`: at least 3.1:1
163
+ - `chart-4` on `card`: at least 3.1:1
164
+ - `on-primary` on `primary`: at least 4.6:1
165
+ - `on-primary` on `primary-hover`: at least 4.6:1
166
+ - `on-primary` on `primary-pressed`: at least 4.6:1
167
+ - `on-tertiary` on `tertiary`: at least 4.6:1
168
+ - `on-destructive` on `destructive`: at least 4.6:1
169
+
170
+ ## Breakpoints
171
+
172
+ Values for media queries, which can't read CSS variables. Write rules as `(width >= 48rem)`.
173
+
174
+ | Name | Value |
175
+ |---|---|
176
+ | sm | `30rem` |
177
+ | md | `48rem` |
178
+ | lg | `64rem` |
179
+
180
+ ## Reduced motion
181
+
182
+ Under `prefers-reduced-motion: reduce`:
183
+
184
+ - `--dur-theme` becomes `0.01ms`
185
+
186
+ Generated from src/tokens.ts by npm run build.
@@ -0,0 +1,93 @@
1
+ Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/dist/fonts.css ADDED
@@ -0,0 +1,19 @@
1
+ /* flair-kit 0.1.0 · generated from src/tokens.ts · do not edit */
2
+
3
+ @font-face {
4
+ font-family: Inter;
5
+ font-style: normal;
6
+ font-weight: 100 900;
7
+ font-display: swap;
8
+ src: url(fonts/inter-latin-wght-normal.woff2) format('woff2');
9
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
10
+ }
11
+
12
+ @font-face {
13
+ font-family: Inter;
14
+ font-style: normal;
15
+ font-weight: 100 900;
16
+ font-display: swap;
17
+ src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
18
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
19
+ }
@@ -0,0 +1,193 @@
1
+ /* flair-kit 0.1.0 · generated from src/tokens.ts · do not edit */
2
+
3
+ @layer flair-kit.tokens, flair-kit.components;
4
+
5
+ /* Registered so colours can fade between themes; inherits: true so a data-theme region gets its own values */
6
+ @property --color-background { syntax: '<color>'; inherits: true; initial-value: #f6faf9; }
7
+ @property --color-card { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
8
+ @property --color-muted { syntax: '<color>'; inherits: true; initial-value: #ecf2f1; }
9
+ @property --color-secondary { syntax: '<color>'; inherits: true; initial-value: #f0e5ed; }
10
+ @property --color-foreground { syntax: '<color>'; inherits: true; initial-value: #191f1e; }
11
+ @property --color-card-foreground { syntax: '<color>'; inherits: true; initial-value: #191f1e; }
12
+ @property --color-muted-foreground { syntax: '<color>'; inherits: true; initial-value: #5a6563; }
13
+ @property --color-on-secondary { syntax: '<color>'; inherits: true; initial-value: #6f1362; }
14
+ @property --color-border { syntax: '<color>'; inherits: true; initial-value: #ced6d5; }
15
+ @property --color-outline { syntax: '<color>'; inherits: true; initial-value: #727e7c; }
16
+ @property --color-primary { syntax: '<color>'; inherits: true; initial-value: #0d9488; }
17
+ @property --color-on-primary { syntax: '<color>'; inherits: true; initial-value: #000000; }
18
+ @property --color-primary-hover { syntax: '<color>'; inherits: true; initial-value: #14a093; }
19
+ @property --color-primary-pressed { syntax: '<color>'; inherits: true; initial-value: #1eab9d; }
20
+ @property --color-primary-text { syntax: '<color>'; inherits: true; initial-value: #09746a; }
21
+ @property --color-ring { syntax: '<color>'; inherits: true; initial-value: #09746a; }
22
+ @property --color-tertiary { syntax: '<color>'; inherits: true; initial-value: #b93008; }
23
+ @property --color-on-tertiary { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
24
+ @property --color-accent-2 { syntax: '<color>'; inherits: true; initial-value: #ec14d2; }
25
+ @property --color-glow { syntax: '<color>'; inherits: true; initial-value: #f6b8a8; }
26
+ @property --color-destructive { syntax: '<color>'; inherits: true; initial-value: #c6101a; }
27
+ @property --color-on-destructive { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
28
+ @property --color-chart-1 { syntax: '<color>'; inherits: true; initial-value: #0a8b80; }
29
+ @property --color-chart-2 { syntax: '<color>'; inherits: true; initial-value: #b30f9f; }
30
+ @property --color-chart-3 { syntax: '<color>'; inherits: true; initial-value: #95290c; }
31
+ @property --color-chart-4 { syntax: '<color>'; inherits: true; initial-value: #36403e; }
32
+ @property --color-brand { syntax: '<color>'; inherits: true; initial-value: #0d9488; }
33
+ @property --color-gradient-1 { syntax: '<color>'; inherits: true; initial-value: #0d9488; }
34
+ @property --color-gradient-2 { syntax: '<color>'; inherits: true; initial-value: #ec14d2; }
35
+ @property --color-gradient-3 { syntax: '<color>'; inherits: true; initial-value: #f6b8a8; }
36
+
37
+ @layer flair-kit.tokens {
38
+ :root {
39
+ --space-1: 0.25rem;
40
+ --space-2: 0.5rem;
41
+ --space-3: 0.75rem;
42
+ --space-4: 1rem;
43
+ --space-5: 1.25rem;
44
+ --space-6: 1.5rem;
45
+ --space-8: 2rem;
46
+ --space-10: 2.5rem;
47
+ --space-12: 3rem;
48
+ --space-16: 4rem;
49
+ --space-gutter: clamp(1.25rem, 5vw, 5rem);
50
+ --space-section: clamp(3rem, 1.5rem + 5vw, 6rem);
51
+ --space-section-tight: clamp(2.25rem, 1.125rem + 3.75vw, 4.5rem);
52
+ --text-12: 0.75rem;
53
+ --text-14: 0.875rem;
54
+ --text-16: 1rem;
55
+ --text-18: 1.125rem;
56
+ --text-20: 1.25rem;
57
+ --text-24: 1.5rem;
58
+ --text-32: 2rem;
59
+ --radius-sm: 4px;
60
+ --radius-md: 8px;
61
+ --radius-lg: 12px;
62
+ --radius-full: 9999px;
63
+ --z-raised: 10;
64
+ --z-sticky: 20;
65
+ --z-overlay: 40;
66
+ --z-toast: 100;
67
+ --z-tooltip: 200;
68
+ --dur-press: 120ms;
69
+ --dur-exit: 160ms;
70
+ --dur-state: 200ms;
71
+ --dur-enter: 250ms;
72
+ --dur-theme: 200ms;
73
+ --ease-out: cubic-bezier(0.2, 0, 0, 1);
74
+ --size-touch: 2.75rem;
75
+ --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
76
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
77
+ --font-display: var(--font-sans);
78
+ }
79
+
80
+ /* Default palette: Flair Design default theme · DEFAULT_SPEC · seed #0d9488 · split harmony · engine version 2 · Flair commit 209d933. A site's own palette file replaces it */
81
+ :root,
82
+ [data-theme="light"] {
83
+ color-scheme: light;
84
+ --color-background: #f6faf9;
85
+ --color-card: #ffffff;
86
+ --color-muted: #ecf2f1;
87
+ --color-secondary: #f0e5ed;
88
+ --color-foreground: #191f1e;
89
+ --color-card-foreground: #191f1e;
90
+ --color-muted-foreground: #5a6563;
91
+ --color-on-secondary: #6f1362;
92
+ --color-border: #ced6d5;
93
+ --color-outline: #727e7c;
94
+ --color-primary: #0d9488;
95
+ --color-on-primary: #000000;
96
+ --color-primary-hover: #14a093;
97
+ --color-primary-pressed: #1eab9d;
98
+ --color-primary-text: #09746a;
99
+ --color-ring: #09746a;
100
+ --color-tertiary: #b93008;
101
+ --color-on-tertiary: #ffffff;
102
+ --color-accent-2: #ec14d2;
103
+ --color-glow: #f6b8a8;
104
+ --color-destructive: #c6101a;
105
+ --color-on-destructive: #ffffff;
106
+ --color-chart-1: #0a8b80;
107
+ --color-chart-2: #b30f9f;
108
+ --color-chart-3: #95290c;
109
+ --color-chart-4: #36403e;
110
+ --color-brand: #0d9488;
111
+ --color-gradient-1: #0d9488;
112
+ --color-gradient-2: #ec14d2;
113
+ --color-gradient-3: #f6b8a8;
114
+ --gradient-angle: 110deg;
115
+ }
116
+
117
+ [data-theme="dark"] {
118
+ color-scheme: dark;
119
+ --color-background: #101413;
120
+ --color-card: #191f1e;
121
+ --color-muted: #262d2c;
122
+ --color-secondary: #583050;
123
+ --color-foreground: #edf1f0;
124
+ --color-card-foreground: #edf1f0;
125
+ --color-muted-foreground: #b1bbb9;
126
+ --color-on-secondary: #f7e2f2;
127
+ --color-border: #485250;
128
+ --color-outline: #929e9c;
129
+ --color-primary: #0d9488;
130
+ --color-on-primary: #000000;
131
+ --color-primary-hover: #14a093;
132
+ --color-primary-pressed: #1eab9d;
133
+ --color-primary-text: #30bdaf;
134
+ --color-ring: #30bdaf;
135
+ --color-tertiary: #f6a48f;
136
+ --color-on-tertiary: #000000;
137
+ --color-accent-2: #ed13d2;
138
+ --color-glow: #f6b8a8;
139
+ --color-destructive: #f7a39a;
140
+ --color-on-destructive: #000000;
141
+ --color-chart-1: #20aea0;
142
+ --color-chart-2: #f799e3;
143
+ --color-chart-3: #f5cbc0;
144
+ --color-chart-4: #727f7d;
145
+ --color-brand: #0d9488;
146
+ --color-gradient-1: #0d9488;
147
+ --color-gradient-2: #ed13d2;
148
+ --color-gradient-3: #f6b8a8;
149
+ }
150
+
151
+ /* No data-theme attribute: follow the system */
152
+ @media (prefers-color-scheme: dark) {
153
+ :root:not([data-theme="light"]) {
154
+ color-scheme: dark;
155
+ --color-background: #101413;
156
+ --color-card: #191f1e;
157
+ --color-muted: #262d2c;
158
+ --color-secondary: #583050;
159
+ --color-foreground: #edf1f0;
160
+ --color-card-foreground: #edf1f0;
161
+ --color-muted-foreground: #b1bbb9;
162
+ --color-on-secondary: #f7e2f2;
163
+ --color-border: #485250;
164
+ --color-outline: #929e9c;
165
+ --color-primary: #0d9488;
166
+ --color-on-primary: #000000;
167
+ --color-primary-hover: #14a093;
168
+ --color-primary-pressed: #1eab9d;
169
+ --color-primary-text: #30bdaf;
170
+ --color-ring: #30bdaf;
171
+ --color-tertiary: #f6a48f;
172
+ --color-on-tertiary: #000000;
173
+ --color-accent-2: #ed13d2;
174
+ --color-glow: #f6b8a8;
175
+ --color-destructive: #f7a39a;
176
+ --color-on-destructive: #000000;
177
+ --color-chart-1: #20aea0;
178
+ --color-chart-2: #f799e3;
179
+ --color-chart-3: #f5cbc0;
180
+ --color-chart-4: #727f7d;
181
+ --color-brand: #0d9488;
182
+ --color-gradient-1: #0d9488;
183
+ --color-gradient-2: #ed13d2;
184
+ --color-gradient-3: #f6b8a8;
185
+ }
186
+ }
187
+
188
+ @media (prefers-reduced-motion: reduce) {
189
+ :root {
190
+ --dur-theme: 0.01ms;
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,596 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "colors": {
4
+ "names": [
5
+ "background",
6
+ "card",
7
+ "muted",
8
+ "secondary",
9
+ "foreground",
10
+ "card-foreground",
11
+ "muted-foreground",
12
+ "on-secondary",
13
+ "border",
14
+ "outline",
15
+ "primary",
16
+ "on-primary",
17
+ "primary-hover",
18
+ "primary-pressed",
19
+ "primary-text",
20
+ "ring",
21
+ "tertiary",
22
+ "on-tertiary",
23
+ "accent-2",
24
+ "glow",
25
+ "destructive",
26
+ "on-destructive",
27
+ "chart-1",
28
+ "chart-2",
29
+ "chart-3",
30
+ "chart-4",
31
+ "brand",
32
+ "gradient-1",
33
+ "gradient-2",
34
+ "gradient-3"
35
+ ],
36
+ "descriptions": {
37
+ "background": "The page itself",
38
+ "card": "A raised surface on the page: cards, panels, dialogs",
39
+ "muted": "A quiet surface: wells, inputs, inactive tabs",
40
+ "secondary": "A tinted surface for bands and highlighted areas",
41
+ "foreground": "Body text and icons on any of the four surfaces",
42
+ "card-foreground": "Text on a card; the same as foreground today",
43
+ "muted-foreground": "Secondary text: captions, hints, metadata",
44
+ "on-secondary": "Text on the secondary surface",
45
+ "border": "Hairlines and dividers; decorative, so not held to a contrast ratio",
46
+ "outline": "Borders a person needs to see, such as a field’s edge, on any surface",
47
+ "primary": "The main accent as a fill: buttons, selected states",
48
+ "on-primary": "Text and icons on a primary fill",
49
+ "primary-hover": "A primary fill while hovered",
50
+ "primary-pressed": "A primary fill while pressed",
51
+ "primary-text": "The main accent as text and links, on any surface",
52
+ "ring": "The focus ring; the same as primary-text",
53
+ "tertiary": "A third accent, as a fill",
54
+ "on-tertiary": "Text on a tertiary fill",
55
+ "accent-2": "A second accent, as a fill or a mark",
56
+ "glow": "A soft decorative colour for washes and art",
57
+ "destructive": "Errors and destructive actions, as text or a fill",
58
+ "on-destructive": "Text on a destructive fill",
59
+ "chart-1": "The first data series",
60
+ "chart-2": "The second data series",
61
+ "chart-3": "The third data series",
62
+ "chart-4": "The fourth data series",
63
+ "brand": "The theme’s seed colour, exactly as chosen",
64
+ "gradient-1": "The first stop of the theme’s gradient",
65
+ "gradient-2": "The middle stop of the theme’s gradient",
66
+ "gradient-3": "The last stop of the theme’s gradient"
67
+ },
68
+ "light": {
69
+ "background": "#f6faf9",
70
+ "card": "#ffffff",
71
+ "muted": "#ecf2f1",
72
+ "secondary": "#f0e5ed",
73
+ "foreground": "#191f1e",
74
+ "card-foreground": "#191f1e",
75
+ "muted-foreground": "#5a6563",
76
+ "on-secondary": "#6f1362",
77
+ "border": "#ced6d5",
78
+ "outline": "#727e7c",
79
+ "primary": "#0d9488",
80
+ "on-primary": "#000000",
81
+ "primary-hover": "#14a093",
82
+ "primary-pressed": "#1eab9d",
83
+ "primary-text": "#09746a",
84
+ "ring": "#09746a",
85
+ "tertiary": "#b93008",
86
+ "on-tertiary": "#ffffff",
87
+ "accent-2": "#ec14d2",
88
+ "glow": "#f6b8a8",
89
+ "destructive": "#c6101a",
90
+ "on-destructive": "#ffffff",
91
+ "chart-1": "#0a8b80",
92
+ "chart-2": "#b30f9f",
93
+ "chart-3": "#95290c",
94
+ "chart-4": "#36403e",
95
+ "brand": "#0d9488",
96
+ "gradient-1": "#0d9488",
97
+ "gradient-2": "#ec14d2",
98
+ "gradient-3": "#f6b8a8"
99
+ },
100
+ "dark": {
101
+ "background": "#101413",
102
+ "card": "#191f1e",
103
+ "muted": "#262d2c",
104
+ "secondary": "#583050",
105
+ "foreground": "#edf1f0",
106
+ "card-foreground": "#edf1f0",
107
+ "muted-foreground": "#b1bbb9",
108
+ "on-secondary": "#f7e2f2",
109
+ "border": "#485250",
110
+ "outline": "#929e9c",
111
+ "primary": "#0d9488",
112
+ "on-primary": "#000000",
113
+ "primary-hover": "#14a093",
114
+ "primary-pressed": "#1eab9d",
115
+ "primary-text": "#30bdaf",
116
+ "ring": "#30bdaf",
117
+ "tertiary": "#f6a48f",
118
+ "on-tertiary": "#000000",
119
+ "accent-2": "#ed13d2",
120
+ "glow": "#f6b8a8",
121
+ "destructive": "#f7a39a",
122
+ "on-destructive": "#000000",
123
+ "chart-1": "#20aea0",
124
+ "chart-2": "#f799e3",
125
+ "chart-3": "#f5cbc0",
126
+ "chart-4": "#727f7d",
127
+ "brand": "#0d9488",
128
+ "gradient-1": "#0d9488",
129
+ "gradient-2": "#ed13d2",
130
+ "gradient-3": "#f6b8a8"
131
+ },
132
+ "gradientAngle": "110deg",
133
+ "source": "Flair Design default theme · DEFAULT_SPEC · seed #0d9488 · split harmony · engine version 2 · Flair commit 209d933"
134
+ },
135
+ "tokens": [
136
+ {
137
+ "name": "--space-1",
138
+ "category": "space",
139
+ "value": "0.25rem",
140
+ "description": "4px"
141
+ },
142
+ {
143
+ "name": "--space-2",
144
+ "category": "space",
145
+ "value": "0.5rem",
146
+ "description": "8px"
147
+ },
148
+ {
149
+ "name": "--space-3",
150
+ "category": "space",
151
+ "value": "0.75rem",
152
+ "description": "12px"
153
+ },
154
+ {
155
+ "name": "--space-4",
156
+ "category": "space",
157
+ "value": "1rem",
158
+ "description": "16px"
159
+ },
160
+ {
161
+ "name": "--space-5",
162
+ "category": "space",
163
+ "value": "1.25rem",
164
+ "description": "20px"
165
+ },
166
+ {
167
+ "name": "--space-6",
168
+ "category": "space",
169
+ "value": "1.5rem",
170
+ "description": "24px"
171
+ },
172
+ {
173
+ "name": "--space-8",
174
+ "category": "space",
175
+ "value": "2rem",
176
+ "description": "32px"
177
+ },
178
+ {
179
+ "name": "--space-10",
180
+ "category": "space",
181
+ "value": "2.5rem",
182
+ "description": "40px"
183
+ },
184
+ {
185
+ "name": "--space-12",
186
+ "category": "space",
187
+ "value": "3rem",
188
+ "description": "48px"
189
+ },
190
+ {
191
+ "name": "--space-16",
192
+ "category": "space",
193
+ "value": "4rem",
194
+ "description": "64px"
195
+ },
196
+ {
197
+ "name": "--space-gutter",
198
+ "category": "space",
199
+ "value": "clamp(1.25rem, 5vw, 5rem)",
200
+ "description": "Page side padding; grows with the screen from 20px to 80px"
201
+ },
202
+ {
203
+ "name": "--space-section",
204
+ "category": "space",
205
+ "value": "clamp(3rem, 1.5rem + 5vw, 6rem)",
206
+ "description": "Space between page sections; grows from 48px to 96px"
207
+ },
208
+ {
209
+ "name": "--space-section-tight",
210
+ "category": "space",
211
+ "value": "clamp(2.25rem, 1.125rem + 3.75vw, 4.5rem)",
212
+ "description": "Space between closely related sections; about three-quarters of --space-section"
213
+ },
214
+ {
215
+ "name": "--text-12",
216
+ "category": "text",
217
+ "value": "0.75rem",
218
+ "description": "Small print, labels"
219
+ },
220
+ {
221
+ "name": "--text-14",
222
+ "category": "text",
223
+ "value": "0.875rem",
224
+ "description": "Secondary text, dense UI"
225
+ },
226
+ {
227
+ "name": "--text-16",
228
+ "category": "text",
229
+ "value": "1rem",
230
+ "description": "Body text"
231
+ },
232
+ {
233
+ "name": "--text-18",
234
+ "category": "text",
235
+ "value": "1.125rem",
236
+ "description": "Lead paragraphs, small headings"
237
+ },
238
+ {
239
+ "name": "--text-20",
240
+ "category": "text",
241
+ "value": "1.25rem",
242
+ "description": "Headings between 18 and 24"
243
+ },
244
+ {
245
+ "name": "--text-24",
246
+ "category": "text",
247
+ "value": "1.5rem",
248
+ "description": "Section headings"
249
+ },
250
+ {
251
+ "name": "--text-32",
252
+ "category": "text",
253
+ "value": "2rem",
254
+ "description": "Page headings; larger display sizes belong to each site"
255
+ },
256
+ {
257
+ "name": "--radius-sm",
258
+ "category": "radius",
259
+ "value": "4px",
260
+ "description": "Small controls, chips"
261
+ },
262
+ {
263
+ "name": "--radius-md",
264
+ "category": "radius",
265
+ "value": "8px",
266
+ "description": "Buttons, fields"
267
+ },
268
+ {
269
+ "name": "--radius-lg",
270
+ "category": "radius",
271
+ "value": "12px",
272
+ "description": "Cards, panels"
273
+ },
274
+ {
275
+ "name": "--radius-full",
276
+ "category": "radius",
277
+ "value": "9999px",
278
+ "description": "Pills and circles"
279
+ },
280
+ {
281
+ "name": "--z-raised",
282
+ "category": "z",
283
+ "value": "10",
284
+ "description": "Content lifted above its neighbours"
285
+ },
286
+ {
287
+ "name": "--z-sticky",
288
+ "category": "z",
289
+ "value": "20",
290
+ "description": "Sticky headers and bars"
291
+ },
292
+ {
293
+ "name": "--z-overlay",
294
+ "category": "z",
295
+ "value": "40",
296
+ "description": "Menus, dialogs and their scrims"
297
+ },
298
+ {
299
+ "name": "--z-toast",
300
+ "category": "z",
301
+ "value": "100",
302
+ "description": "Toasts and notices"
303
+ },
304
+ {
305
+ "name": "--z-tooltip",
306
+ "category": "z",
307
+ "value": "200",
308
+ "description": "Tooltips, above everything"
309
+ },
310
+ {
311
+ "name": "--dur-press",
312
+ "category": "dur",
313
+ "value": "120ms",
314
+ "description": "Press feedback"
315
+ },
316
+ {
317
+ "name": "--dur-exit",
318
+ "category": "dur",
319
+ "value": "160ms",
320
+ "description": "Something leaving"
321
+ },
322
+ {
323
+ "name": "--dur-state",
324
+ "category": "dur",
325
+ "value": "200ms",
326
+ "description": "Hover and other state changes"
327
+ },
328
+ {
329
+ "name": "--dur-enter",
330
+ "category": "dur",
331
+ "value": "250ms",
332
+ "description": "Something arriving"
333
+ },
334
+ {
335
+ "name": "--dur-theme",
336
+ "category": "dur",
337
+ "value": "200ms",
338
+ "description": "A fade between themes or modes, for sites that add one"
339
+ },
340
+ {
341
+ "name": "--ease-out",
342
+ "category": "ease",
343
+ "value": "cubic-bezier(0.2, 0, 0, 1)",
344
+ "description": "The standard easing: fast start, gentle stop"
345
+ },
346
+ {
347
+ "name": "--size-touch",
348
+ "category": "size",
349
+ "value": "2.75rem",
350
+ "description": "Main controls: 44px, comfortable to tap. The tested minimum is 24px"
351
+ },
352
+ {
353
+ "name": "--font-sans",
354
+ "category": "font",
355
+ "value": "Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif",
356
+ "description": "Body and UI text; Inter ships in the opt-in fonts.css"
357
+ },
358
+ {
359
+ "name": "--font-mono",
360
+ "category": "font",
361
+ "value": "ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace",
362
+ "description": "Code and figures; the system’s own mono, nothing to download"
363
+ },
364
+ {
365
+ "name": "--font-display",
366
+ "category": "font",
367
+ "value": "var(--font-sans)",
368
+ "description": "Headlines; follows --font-sans as set on :root, unless a site sets its own"
369
+ }
370
+ ],
371
+ "pairs": [
372
+ {
373
+ "fg": "foreground",
374
+ "bg": "background",
375
+ "ratio": 4.6
376
+ },
377
+ {
378
+ "fg": "foreground",
379
+ "bg": "card",
380
+ "ratio": 4.6
381
+ },
382
+ {
383
+ "fg": "foreground",
384
+ "bg": "muted",
385
+ "ratio": 4.6
386
+ },
387
+ {
388
+ "fg": "foreground",
389
+ "bg": "secondary",
390
+ "ratio": 4.6
391
+ },
392
+ {
393
+ "fg": "muted-foreground",
394
+ "bg": "background",
395
+ "ratio": 4.6
396
+ },
397
+ {
398
+ "fg": "muted-foreground",
399
+ "bg": "card",
400
+ "ratio": 4.6
401
+ },
402
+ {
403
+ "fg": "muted-foreground",
404
+ "bg": "muted",
405
+ "ratio": 4.6
406
+ },
407
+ {
408
+ "fg": "muted-foreground",
409
+ "bg": "secondary",
410
+ "ratio": 4.6
411
+ },
412
+ {
413
+ "fg": "on-secondary",
414
+ "bg": "background",
415
+ "ratio": 4.6
416
+ },
417
+ {
418
+ "fg": "on-secondary",
419
+ "bg": "card",
420
+ "ratio": 4.6
421
+ },
422
+ {
423
+ "fg": "on-secondary",
424
+ "bg": "muted",
425
+ "ratio": 4.6
426
+ },
427
+ {
428
+ "fg": "on-secondary",
429
+ "bg": "secondary",
430
+ "ratio": 4.6
431
+ },
432
+ {
433
+ "fg": "primary-text",
434
+ "bg": "background",
435
+ "ratio": 4.6
436
+ },
437
+ {
438
+ "fg": "primary-text",
439
+ "bg": "card",
440
+ "ratio": 4.6
441
+ },
442
+ {
443
+ "fg": "primary-text",
444
+ "bg": "muted",
445
+ "ratio": 4.6
446
+ },
447
+ {
448
+ "fg": "primary-text",
449
+ "bg": "secondary",
450
+ "ratio": 4.6
451
+ },
452
+ {
453
+ "fg": "destructive",
454
+ "bg": "background",
455
+ "ratio": 4.6
456
+ },
457
+ {
458
+ "fg": "destructive",
459
+ "bg": "card",
460
+ "ratio": 4.6
461
+ },
462
+ {
463
+ "fg": "destructive",
464
+ "bg": "muted",
465
+ "ratio": 4.6
466
+ },
467
+ {
468
+ "fg": "destructive",
469
+ "bg": "secondary",
470
+ "ratio": 4.6
471
+ },
472
+ {
473
+ "fg": "outline",
474
+ "bg": "background",
475
+ "ratio": 3.1
476
+ },
477
+ {
478
+ "fg": "outline",
479
+ "bg": "card",
480
+ "ratio": 3.1
481
+ },
482
+ {
483
+ "fg": "outline",
484
+ "bg": "muted",
485
+ "ratio": 3.1
486
+ },
487
+ {
488
+ "fg": "outline",
489
+ "bg": "secondary",
490
+ "ratio": 3.1
491
+ },
492
+ {
493
+ "fg": "primary",
494
+ "bg": "background",
495
+ "ratio": 3.1
496
+ },
497
+ {
498
+ "fg": "primary",
499
+ "bg": "card",
500
+ "ratio": 3.1
501
+ },
502
+ {
503
+ "fg": "tertiary",
504
+ "bg": "background",
505
+ "ratio": 3.1
506
+ },
507
+ {
508
+ "fg": "tertiary",
509
+ "bg": "card",
510
+ "ratio": 3.1
511
+ },
512
+ {
513
+ "fg": "accent-2",
514
+ "bg": "background",
515
+ "ratio": 3.1
516
+ },
517
+ {
518
+ "fg": "accent-2",
519
+ "bg": "card",
520
+ "ratio": 3.1
521
+ },
522
+ {
523
+ "fg": "chart-1",
524
+ "bg": "background",
525
+ "ratio": 3.1
526
+ },
527
+ {
528
+ "fg": "chart-1",
529
+ "bg": "card",
530
+ "ratio": 3.1
531
+ },
532
+ {
533
+ "fg": "chart-2",
534
+ "bg": "background",
535
+ "ratio": 3.1
536
+ },
537
+ {
538
+ "fg": "chart-2",
539
+ "bg": "card",
540
+ "ratio": 3.1
541
+ },
542
+ {
543
+ "fg": "chart-3",
544
+ "bg": "background",
545
+ "ratio": 3.1
546
+ },
547
+ {
548
+ "fg": "chart-3",
549
+ "bg": "card",
550
+ "ratio": 3.1
551
+ },
552
+ {
553
+ "fg": "chart-4",
554
+ "bg": "background",
555
+ "ratio": 3.1
556
+ },
557
+ {
558
+ "fg": "chart-4",
559
+ "bg": "card",
560
+ "ratio": 3.1
561
+ },
562
+ {
563
+ "fg": "on-primary",
564
+ "bg": "primary",
565
+ "ratio": 4.6
566
+ },
567
+ {
568
+ "fg": "on-primary",
569
+ "bg": "primary-hover",
570
+ "ratio": 4.6
571
+ },
572
+ {
573
+ "fg": "on-primary",
574
+ "bg": "primary-pressed",
575
+ "ratio": 4.6
576
+ },
577
+ {
578
+ "fg": "on-tertiary",
579
+ "bg": "tertiary",
580
+ "ratio": 4.6
581
+ },
582
+ {
583
+ "fg": "on-destructive",
584
+ "bg": "destructive",
585
+ "ratio": 4.6
586
+ }
587
+ ],
588
+ "breakpoints": {
589
+ "sm": "30rem",
590
+ "md": "48rem",
591
+ "lg": "64rem"
592
+ },
593
+ "reducedMotion": {
594
+ "--dur-theme": "0.01ms"
595
+ }
596
+ }
package/package.json CHANGED
@@ -1,6 +1,24 @@
1
1
  {
2
2
  "name": "@flairstudio/kit",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Design tokens as plain CSS: colours with light and dark modes, spacing, type, layers and motion.",
5
+ "license": "MIT",
6
+ "author": "FlairStudio",
7
+ "type": "module",
8
+ "files": ["dist/", "TOKENS.md", "CHANGELOG.md"],
9
+ "exports": {
10
+ "./tokens.css": "./dist/tokens.css",
11
+ "./fonts.css": "./dist/fonts.css",
12
+ "./tokens.json": "./dist/tokens.json",
13
+ "./package.json": "./package.json"
14
+ },
15
+ "sideEffects": ["**/*.css"],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "scripts": {
20
+ "build": "node scripts/build.ts",
21
+ "test": "node --test \"test/**/*.test.ts\"",
22
+ "prepublishOnly": "npm test"
23
+ }
24
+ }