@ds-gn/tokens 0.0.0-stage → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +244 -2
- package/THIRD_PARTY_NOTICES +4 -0
- package/dist/index.d.ts +178 -0
- package/dist/index.mjs +178 -0
- package/dist/theme.tailwind.css +549 -0
- package/dist/tokens.overrides.template.css +201 -0
- package/dist/tokens.properties.css +358 -0
- package/dist/tokens.public.css +358 -0
- package/dist/tokens.theme.css +225 -0
- package/package.json +75 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LightLeap Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,245 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://ds-gn.com/?utm_source=npm&utm_medium=readme&utm_campaign=tokens&utm_content=hero_logo">
|
|
3
|
+
<img src="https://ds-gn.com/logo.svg" alt="DS-GN" width="240">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# @ds-gn/tokens
|
|
8
|
+
|
|
9
|
+
CSS variables, themes, Tailwind integration, and typed JavaScript values for the
|
|
10
|
+
DS-GN Design System.
|
|
11
|
+
|
|
12
|
+
This package is the design-token dependency for `@ds-gn/ui`. Install it
|
|
13
|
+
directly when your application imports the token stylesheets or customizes the
|
|
14
|
+
DS-GN theme.
|
|
15
|
+
|
|
16
|
+
**Public Beta** ·
|
|
17
|
+
[Website](https://ds-gn.com/?utm_source=npm&utm_medium=readme&utm_campaign=tokens&utm_content=website_link)
|
|
18
|
+
· [Documentation](https://docs.ds-gn.com/) ·
|
|
19
|
+
[Token reference](https://docs.ds-gn.com/tokens/colors/) ·
|
|
20
|
+
[Changelog](https://docs.ds-gn.com/changelog/tokens/)
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
Choose your package manager:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @ds-gn/tokens
|
|
28
|
+
pnpm add @ds-gn/tokens
|
|
29
|
+
bun add @ds-gn/tokens
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Using the DS-GN UI components? Install both packages as direct dependencies:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @ds-gn/ui @ds-gn/tokens
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Quick start
|
|
39
|
+
|
|
40
|
+
Load the public token definitions and the semantic light/dark theme, in that
|
|
41
|
+
order:
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
@import '@ds-gn/tokens/public';
|
|
45
|
+
@import '@ds-gn/tokens/theme';
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Using the DS-GN components as well? Add the custom-property registrations,
|
|
49
|
+
which must be loaded on the document rather than inside a component:
|
|
50
|
+
|
|
51
|
+
```css
|
|
52
|
+
@import '@ds-gn/tokens/properties';
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Tokens are also available as typed named JavaScript exports:
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
import { breakpointLg, breakpointMd } from '@ds-gn/tokens';
|
|
59
|
+
|
|
60
|
+
console.log(breakpointMd); // "768px"
|
|
61
|
+
console.log(breakpointLg); // "1024px"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Import order matters
|
|
65
|
+
|
|
66
|
+
Each file builds on the one before it, and the last definition of a custom
|
|
67
|
+
property wins:
|
|
68
|
+
|
|
69
|
+
1. **`/public`** sets every token's default value on `:root`.
|
|
70
|
+
2. **`/theme`** points the unsuffixed tokens at the light or dark value, keyed
|
|
71
|
+
on `[data-theme]` or a `.light` / `.dark` class.
|
|
72
|
+
3. **your overrides** replace the defaults from step 1.
|
|
73
|
+
|
|
74
|
+
`/properties` is order-independent — it only registers types.
|
|
75
|
+
|
|
76
|
+
## Light and dark
|
|
77
|
+
|
|
78
|
+
Themed tokens ship as a pair of override targets, `--<name>-on-light` and
|
|
79
|
+
`--<name>-on-dark`, plus an unsuffixed name that components actually read.
|
|
80
|
+
`/theme` is what connects them:
|
|
81
|
+
|
|
82
|
+
```css
|
|
83
|
+
:root,
|
|
84
|
+
[data-theme='dark'],
|
|
85
|
+
.dark {
|
|
86
|
+
--color-text-primary: var(--text-primary-on-dark);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-theme='light'],
|
|
90
|
+
.light {
|
|
91
|
+
--color-text-primary: var(--text-primary-on-light);
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Dark is the default. Switch by setting `data-theme="light"` on any element —
|
|
96
|
+
the tokens inherit, so a subtree can carry a different theme than the page.
|
|
97
|
+
|
|
98
|
+
Tokens with no meaningful per-theme value — durations, easing curves, corner
|
|
99
|
+
radii, and the deliberately dark terminal chrome — are single-value. They have
|
|
100
|
+
one unsuffixed override target, no `-on-*` variants, and no entry in `/theme`.
|
|
101
|
+
|
|
102
|
+
## Customize the theme
|
|
103
|
+
|
|
104
|
+
Override public CSS custom properties in your own stylesheet. Load the override
|
|
105
|
+
file after the DS-GN token styles so your values win the cascade:
|
|
106
|
+
|
|
107
|
+
```css
|
|
108
|
+
@import '@ds-gn/tokens/public';
|
|
109
|
+
@import '@ds-gn/tokens/theme';
|
|
110
|
+
@import './brand-overrides.css';
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
In `brand-overrides.css`, define the variants you want to change:
|
|
114
|
+
|
|
115
|
+
```css
|
|
116
|
+
:root {
|
|
117
|
+
/* Themed — override each side */
|
|
118
|
+
--brand-on-light: oklch(55% 0.2 280);
|
|
119
|
+
--brand-on-dark: oklch(70% 0.18 280);
|
|
120
|
+
|
|
121
|
+
--accent-on-light: oklch(60% 0.25 30);
|
|
122
|
+
--accent-on-dark: oklch(72% 0.22 30);
|
|
123
|
+
|
|
124
|
+
/* Single-value — one override */
|
|
125
|
+
--radius-button: 0.5rem;
|
|
126
|
+
--duration-moderate: 300ms;
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Each token has a default, so you only need to define the values you want to
|
|
131
|
+
replace. Overrides apply everywhere the tokens are used, including inside
|
|
132
|
+
DS-GN component shadow roots.
|
|
133
|
+
|
|
134
|
+
### Start from the complete override template
|
|
135
|
+
|
|
136
|
+
The package includes a commented template containing every supported override:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
cp node_modules/@ds-gn/tokens/dist/tokens.overrides.template.css \
|
|
140
|
+
./src/brand-overrides.css
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`brand-overrides.css` is the recommended consumer filename, not a generated
|
|
144
|
+
package artifact; applications may choose another local name. Uncomment and
|
|
145
|
+
edit the required values, then import the copied file after
|
|
146
|
+
`@ds-gn/tokens/theme`. The template is also exposed as
|
|
147
|
+
`@ds-gn/tokens/template` for tools that resolve package exports.
|
|
148
|
+
|
|
149
|
+
## Package exports
|
|
150
|
+
|
|
151
|
+
| Export | Purpose |
|
|
152
|
+
| -------------------------- | -------------------------------------------------- |
|
|
153
|
+
| `@ds-gn/tokens` | Typed JavaScript token values |
|
|
154
|
+
| `@ds-gn/tokens/public` | Public CSS custom-property definitions |
|
|
155
|
+
| `@ds-gn/tokens/theme` | Semantic light and dark theme mappings |
|
|
156
|
+
| `@ds-gn/tokens/tailwind` | Tailwind CSS theme integration |
|
|
157
|
+
| `@ds-gn/tokens/properties` | Typed CSS custom-property registrations |
|
|
158
|
+
| `@ds-gn/tokens/template` | Starter file for application-level token overrides |
|
|
159
|
+
|
|
160
|
+
This table is the complete supported surface. Anything else inside `dist` is an
|
|
161
|
+
internal build artifact with no compatibility promise — read it and a patch
|
|
162
|
+
release may break you.
|
|
163
|
+
|
|
164
|
+
## Tailwind
|
|
165
|
+
|
|
166
|
+
`@ds-gn/tokens/tailwind` is a Tailwind v4 `@theme` block, so every token
|
|
167
|
+
also generates utilities:
|
|
168
|
+
|
|
169
|
+
```css
|
|
170
|
+
@import 'tailwindcss';
|
|
171
|
+
@import '@ds-gn/tokens/tailwind';
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
```html
|
|
175
|
+
<div class="bg-surface-elevated text-text-primary rounded-card">…</div>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
You still need `/public` and `/theme` on the document. The `@theme` entries
|
|
179
|
+
carry each token's default as a `var()` fallback so utilities render correctly
|
|
180
|
+
on their own, but theme switching and your overrides come from the document
|
|
181
|
+
stylesheets.
|
|
182
|
+
|
|
183
|
+
Breakpoints are the exception: they are emitted as literal `rem` values rather
|
|
184
|
+
than `var()` references, because a custom property cannot be used in a media
|
|
185
|
+
query. They are not override targets.
|
|
186
|
+
|
|
187
|
+
## What is and is not overridable
|
|
188
|
+
|
|
189
|
+
**Override targets.** The `--<name>-on-light` / `--<name>-on-dark` pairs and the
|
|
190
|
+
single-value tokens — everything the overrides template lists. These are the
|
|
191
|
+
supported API.
|
|
192
|
+
|
|
193
|
+
**Color primitives** (`--color-orange-500`, `--color-neutral-900`, …) are
|
|
194
|
+
declared on `:root` and stable, but they are the raw palette the semantic tokens
|
|
195
|
+
are built from. Overriding one shifts everything derived from it. Rebrand
|
|
196
|
+
through the semantic tokens instead.
|
|
197
|
+
|
|
198
|
+
**Structural tokens** — breakpoints and the default font families — are
|
|
199
|
+
JavaScript exports only. They never appear as overridable custom properties.
|
|
200
|
+
|
|
201
|
+
**Internal variables** are prefixed `--dsgn-src-`. They exist so a token's
|
|
202
|
+
default and a consumer override both survive the crossing into a component's
|
|
203
|
+
shadow root. Never set one; override the public token it reads, and the mirror
|
|
204
|
+
follows.
|
|
205
|
+
|
|
206
|
+
## Versioning
|
|
207
|
+
|
|
208
|
+
Both public packages are `0.x`, so a **minor** version may contain a breaking
|
|
209
|
+
change and a **patch** never does.
|
|
210
|
+
|
|
211
|
+
Against that, tokens carry these rules:
|
|
212
|
+
|
|
213
|
+
- **Adding** a token is a minor.
|
|
214
|
+
- **Changing a token's value** is a minor. Values are design decisions, not API,
|
|
215
|
+
but a rebrand-by-default is disruptive enough to deserve the bump.
|
|
216
|
+
- **Renaming or removing** a token, and **collapsing a themed pair to a single
|
|
217
|
+
value** or the reverse, is a minor **and** requires a migration note in
|
|
218
|
+
`CHANGELOG.md` naming the old and new custom properties. A token you can no
|
|
219
|
+
longer set is indistinguishable from one that silently stopped working, so the
|
|
220
|
+
changelog entry is the only thing standing between a consumer and a mystery.
|
|
221
|
+
- **Adding or removing an export subpath** is a minor.
|
|
222
|
+
|
|
223
|
+
### Relationship to `@ds-gn/ui`
|
|
224
|
+
|
|
225
|
+
`@ds-gn/ui` depends on an **exact** `@ds-gn/tokens` version, and
|
|
226
|
+
the two are versioned in lockstep. Your package manager therefore installs a
|
|
227
|
+
matching pair on its own.
|
|
228
|
+
|
|
229
|
+
Install `@ds-gn/tokens` directly anyway when you import the stylesheets
|
|
230
|
+
or override tokens — depending on a transitive package's file layout is what
|
|
231
|
+
breaks on an unrelated upgrade. Keep the two at the same version when you do: a
|
|
232
|
+
`ui` newer than its `tokens` reads tokens that do not exist yet, which renders
|
|
233
|
+
as missing colors rather than as an error.
|
|
234
|
+
|
|
235
|
+
## Support
|
|
236
|
+
|
|
237
|
+
Search or report package issues in the public
|
|
238
|
+
[issue tracker](https://github.com/lightleaplabs/design-system/issues). For
|
|
239
|
+
questions, email [support@ds-gn.com](mailto:support@ds-gn.com).
|
|
240
|
+
|
|
241
|
+
## License
|
|
242
|
+
|
|
243
|
+
This package is available under the MIT License included in `LICENSE`.
|
|
244
|
+
Third-party materials included in the distribution remain subject to the
|
|
245
|
+
licenses listed in `THIRD_PARTY_NOTICES`.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/** Generated Design Tokens */
|
|
2
|
+
|
|
3
|
+
export const radiusSurface: string;
|
|
4
|
+
export const radiusInput: string;
|
|
5
|
+
export const radiusCard: string;
|
|
6
|
+
export const radiusButton: string;
|
|
7
|
+
export const durationQuick: string;
|
|
8
|
+
export const durationModerate: string;
|
|
9
|
+
export const easeEmphasized: string;
|
|
10
|
+
export const colorInputFocusOnLight: string;
|
|
11
|
+
export const colorInputFocusOnDark: string;
|
|
12
|
+
export const colorInputErrorTextOnLight: string;
|
|
13
|
+
export const colorInputErrorTextOnDark: string;
|
|
14
|
+
export const colorCardBgOnLight: string;
|
|
15
|
+
export const colorCardBgOnDark: string;
|
|
16
|
+
export const colorCardBorderOnLight: string;
|
|
17
|
+
export const colorCardBorderOnDark: string;
|
|
18
|
+
export const colorGradientAccentBgOnLight: string;
|
|
19
|
+
export const colorGradientAccentBgOnDark: string;
|
|
20
|
+
export const colorGradientAccentBgHoverOnLight: string;
|
|
21
|
+
export const colorGradientAccentBgHoverOnDark: string;
|
|
22
|
+
export const colorButtonSolidBgOnLight: string;
|
|
23
|
+
export const colorButtonSolidBgOnDark: string;
|
|
24
|
+
export const colorButtonSolidTextOnLight: string;
|
|
25
|
+
export const colorButtonSolidTextOnDark: string;
|
|
26
|
+
export const colorButtonSolidBgHoverOnLight: string;
|
|
27
|
+
export const colorButtonSolidBgHoverOnDark: string;
|
|
28
|
+
export const colorButtonOutlineBgOnLight: string;
|
|
29
|
+
export const colorButtonOutlineBgOnDark: string;
|
|
30
|
+
export const colorButtonOutlineTextOnLight: string;
|
|
31
|
+
export const colorButtonOutlineTextOnDark: string;
|
|
32
|
+
export const colorButtonOutlineTextHoverOnLight: string;
|
|
33
|
+
export const colorButtonOutlineTextHoverOnDark: string;
|
|
34
|
+
export const colorButtonOutlineBgHoverOnLight: string;
|
|
35
|
+
export const colorButtonOutlineBgHoverOnDark: string;
|
|
36
|
+
export const colorButtonOutlineOutlineOnLight: string;
|
|
37
|
+
export const colorButtonOutlineOutlineOnDark: string;
|
|
38
|
+
export const colorButtonOutlineOutlineHoverOnLight: string;
|
|
39
|
+
export const colorButtonOutlineOutlineHoverOnDark: string;
|
|
40
|
+
export const colorButtonGhostBgOnLight: string;
|
|
41
|
+
export const colorButtonGhostBgOnDark: string;
|
|
42
|
+
export const colorButtonGhostTextOnLight: string;
|
|
43
|
+
export const colorButtonGhostTextOnDark: string;
|
|
44
|
+
export const colorButtonGhostTextHoverOnLight: string;
|
|
45
|
+
export const colorButtonGhostTextHoverOnDark: string;
|
|
46
|
+
export const colorButtonGhostBgHoverOnLight: string;
|
|
47
|
+
export const colorButtonGhostBgHoverOnDark: string;
|
|
48
|
+
export const colorButtonLinkTextOnLight: string;
|
|
49
|
+
export const colorButtonLinkTextOnDark: string;
|
|
50
|
+
export const colorButtonLinkTextHoverOnLight: string;
|
|
51
|
+
export const colorButtonLinkTextHoverOnDark: string;
|
|
52
|
+
export const colorButtonMonoSolidBgOnLight: string;
|
|
53
|
+
export const colorButtonMonoSolidBgOnDark: string;
|
|
54
|
+
export const colorButtonMonoSolidTextOnLight: string;
|
|
55
|
+
export const colorButtonMonoSolidTextOnDark: string;
|
|
56
|
+
export const colorButtonMonoSolidBgHoverOnLight: string;
|
|
57
|
+
export const colorButtonMonoSolidBgHoverOnDark: string;
|
|
58
|
+
export const colorButtonMonoOutlineBgOnLight: string;
|
|
59
|
+
export const colorButtonMonoOutlineBgOnDark: string;
|
|
60
|
+
export const colorButtonMonoOutlineBgHoverOnLight: string;
|
|
61
|
+
export const colorButtonMonoOutlineBgHoverOnDark: string;
|
|
62
|
+
export const colorButtonMonoOutlineTextOnLight: string;
|
|
63
|
+
export const colorButtonMonoOutlineTextOnDark: string;
|
|
64
|
+
export const colorButtonMonoOutlineTextHoverOnLight: string;
|
|
65
|
+
export const colorButtonMonoOutlineTextHoverOnDark: string;
|
|
66
|
+
export const colorButtonMonoOutlineOutlineOnLight: string;
|
|
67
|
+
export const colorButtonMonoOutlineOutlineOnDark: string;
|
|
68
|
+
export const colorButtonMonoOutlineOutlineHoverOnLight: string;
|
|
69
|
+
export const colorButtonMonoOutlineOutlineHoverOnDark: string;
|
|
70
|
+
export const colorButtonGradientTextOnLight: string;
|
|
71
|
+
export const colorButtonGradientTextOnDark: string;
|
|
72
|
+
export const colorButtonInlineTextOnLight: string;
|
|
73
|
+
export const colorButtonInlineTextOnDark: string;
|
|
74
|
+
export const colorButtonInlineTextHoverOnLight: string;
|
|
75
|
+
export const colorButtonInlineTextHoverOnDark: string;
|
|
76
|
+
export const colorTextPrimaryOnLight: string;
|
|
77
|
+
export const colorTextPrimaryOnDark: string;
|
|
78
|
+
export const colorTextSecondaryOnLight: string;
|
|
79
|
+
export const colorTextSecondaryOnDark: string;
|
|
80
|
+
export const colorTextTertiaryOnLight: string;
|
|
81
|
+
export const colorTextTertiaryOnDark: string;
|
|
82
|
+
export const colorInverseOnLight: string;
|
|
83
|
+
export const colorInverseOnDark: string;
|
|
84
|
+
export const colorNavLinkDropdownTextHoverOnLight: string;
|
|
85
|
+
export const colorNavLinkDropdownTextHoverOnDark: string;
|
|
86
|
+
export const colorDisabledOnLight: string;
|
|
87
|
+
export const colorDisabledOnDark: string;
|
|
88
|
+
export const colorAccentOnLight: string;
|
|
89
|
+
export const colorAccentOnDark: string;
|
|
90
|
+
export const colorAccentTextOnLight: string;
|
|
91
|
+
export const colorAccentTextOnDark: string;
|
|
92
|
+
export const colorEyebrowOnLight: string;
|
|
93
|
+
export const colorEyebrowOnDark: string;
|
|
94
|
+
export const colorBrandOnLight: string;
|
|
95
|
+
export const colorBrandOnDark: string;
|
|
96
|
+
export const colorBrandSubtleOnLight: string;
|
|
97
|
+
export const colorBrandSubtleOnDark: string;
|
|
98
|
+
export const colorPageOnLight: string;
|
|
99
|
+
export const colorPageOnDark: string;
|
|
100
|
+
export const colorSurfaceDefaultOnLight: string;
|
|
101
|
+
export const colorSurfaceDefaultOnDark: string;
|
|
102
|
+
export const colorSurfaceElevatedOnLight: string;
|
|
103
|
+
export const colorSurfaceElevatedOnDark: string;
|
|
104
|
+
export const colorSurfaceSubtleOnLight: string;
|
|
105
|
+
export const colorSurfaceSubtleOnDark: string;
|
|
106
|
+
export const colorOutlineOnLight: string;
|
|
107
|
+
export const colorOutlineOnDark: string;
|
|
108
|
+
export const colorOutlineSubtleOnLight: string;
|
|
109
|
+
export const colorOutlineSubtleOnDark: string;
|
|
110
|
+
export const colorOutlineStrongOnLight: string;
|
|
111
|
+
export const colorOutlineStrongOnDark: string;
|
|
112
|
+
export const colorFocusOnLight: string;
|
|
113
|
+
export const colorFocusOnDark: string;
|
|
114
|
+
export const colorInteractiveOnLight: string;
|
|
115
|
+
export const colorInteractiveOnDark: string;
|
|
116
|
+
export const colorInteractiveHoverOnLight: string;
|
|
117
|
+
export const colorInteractiveHoverOnDark: string;
|
|
118
|
+
export const colorInteractiveActiveOnLight: string;
|
|
119
|
+
export const colorInteractiveActiveOnDark: string;
|
|
120
|
+
export const colorInteractiveDisabledOnLight: string;
|
|
121
|
+
export const colorInteractiveDisabledOnDark: string;
|
|
122
|
+
export const colorSuccessOnLight: string;
|
|
123
|
+
export const colorSuccessOnDark: string;
|
|
124
|
+
export const colorSuccessSubtleOnLight: string;
|
|
125
|
+
export const colorSuccessSubtleOnDark: string;
|
|
126
|
+
export const colorErrorOnLight: string;
|
|
127
|
+
export const colorErrorOnDark: string;
|
|
128
|
+
export const colorErrorSubtleOnLight: string;
|
|
129
|
+
export const colorErrorSubtleOnDark: string;
|
|
130
|
+
export const colorWarningOnLight: string;
|
|
131
|
+
export const colorWarningOnDark: string;
|
|
132
|
+
export const colorWarningSubtleOnLight: string;
|
|
133
|
+
export const colorWarningSubtleOnDark: string;
|
|
134
|
+
export const colorInfoOnLight: string;
|
|
135
|
+
export const colorInfoOnDark: string;
|
|
136
|
+
export const colorInfoSubtleOnLight: string;
|
|
137
|
+
export const colorInfoSubtleOnDark: string;
|
|
138
|
+
export const colorInputBgOnLight: string;
|
|
139
|
+
export const colorInputBgOnDark: string;
|
|
140
|
+
export const colorInputBorderOnLight: string;
|
|
141
|
+
export const colorInputBorderOnDark: string;
|
|
142
|
+
export const colorInputTextOnLight: string;
|
|
143
|
+
export const colorInputTextOnDark: string;
|
|
144
|
+
export const colorInputPlaceholderOnLight: string;
|
|
145
|
+
export const colorInputPlaceholderOnDark: string;
|
|
146
|
+
export const colorTerminalBg: string;
|
|
147
|
+
export const colorTerminalTitlebar: string;
|
|
148
|
+
export const colorTerminalBorder: string;
|
|
149
|
+
export const colorTerminalText: string;
|
|
150
|
+
export const colorTerminalMuted: string;
|
|
151
|
+
export const colorTerminalSuccess: string;
|
|
152
|
+
export const colorTerminalDotRed: string;
|
|
153
|
+
export const colorTerminalDotYellow: string;
|
|
154
|
+
export const colorPatternDotOnLight: string;
|
|
155
|
+
export const colorPatternDotOnDark: string;
|
|
156
|
+
export const colorBadgeBgOnLight: string;
|
|
157
|
+
export const colorBadgeBgOnDark: string;
|
|
158
|
+
export const colorBadgeTextOnLight: string;
|
|
159
|
+
export const colorBadgeTextOnDark: string;
|
|
160
|
+
export const colorBadgeBrandTextOnLight: string;
|
|
161
|
+
export const colorBadgeBrandTextOnDark: string;
|
|
162
|
+
export const colorBadgeWarningTextOnLight: string;
|
|
163
|
+
export const colorBadgeWarningTextOnDark: string;
|
|
164
|
+
export const colorBadgeErrorTextOnLight: string;
|
|
165
|
+
export const colorBadgeErrorTextOnDark: string;
|
|
166
|
+
export const colorBadgeBorderOnLight: string;
|
|
167
|
+
export const colorBadgeBorderOnDark: string;
|
|
168
|
+
export const defaultFontFamily: string;
|
|
169
|
+
export const defaultDisplayFontFamily: string;
|
|
170
|
+
export const defaultMonoFontFamily: string;
|
|
171
|
+
export const breakpointXs: string;
|
|
172
|
+
export const breakpointSm: string;
|
|
173
|
+
export const breakpointMd: string;
|
|
174
|
+
export const breakpointLg: string;
|
|
175
|
+
export const breakpointXl: string;
|
|
176
|
+
export const breakpoint2xl: string;
|
|
177
|
+
export const shadowCardOnLight: string;
|
|
178
|
+
export const shadowCardOnDark: string;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/** Generated Design Tokens */
|
|
2
|
+
|
|
3
|
+
export const radiusSurface = "1rem";
|
|
4
|
+
export const radiusInput = "0.5rem";
|
|
5
|
+
export const radiusCard = "1rem";
|
|
6
|
+
export const radiusButton = "calc(infinity * 1px)";
|
|
7
|
+
export const durationQuick = "180ms";
|
|
8
|
+
export const durationModerate = "240ms";
|
|
9
|
+
export const easeEmphasized = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
10
|
+
export const colorInputFocusOnLight = "var(--color-blue-500)";
|
|
11
|
+
export const colorInputFocusOnDark = "var(--color-blue-400)";
|
|
12
|
+
export const colorInputErrorTextOnLight = "#b91c1c";
|
|
13
|
+
export const colorInputErrorTextOnDark = "#f87171";
|
|
14
|
+
export const colorCardBgOnLight = "var(--color-white)";
|
|
15
|
+
export const colorCardBgOnDark = "var(--color-blue-800)";
|
|
16
|
+
export const colorCardBorderOnLight = "var(--color-neutral-200)";
|
|
17
|
+
export const colorCardBorderOnDark = "rgb(255 255 255 / 0.08)";
|
|
18
|
+
export const colorGradientAccentBgOnLight = "linear-gradient(90deg, var(--color-orange-600), var(--color-orange-400))";
|
|
19
|
+
export const colorGradientAccentBgOnDark = "linear-gradient(90deg, var(--color-orange-600), var(--color-orange-400))";
|
|
20
|
+
export const colorGradientAccentBgHoverOnLight = "linear-gradient(90deg, var(--color-orange-500), var(--color-orange-300))";
|
|
21
|
+
export const colorGradientAccentBgHoverOnDark = "linear-gradient(90deg, var(--color-orange-500), var(--color-orange-300))";
|
|
22
|
+
export const colorButtonSolidBgOnLight = "var(--color-orange-500)";
|
|
23
|
+
export const colorButtonSolidBgOnDark = "var(--color-orange-600)";
|
|
24
|
+
export const colorButtonSolidTextOnLight = "var(--color-neutral-900)";
|
|
25
|
+
export const colorButtonSolidTextOnDark = "var(--color-neutral-900)";
|
|
26
|
+
export const colorButtonSolidBgHoverOnLight = "var(--color-orange-400)";
|
|
27
|
+
export const colorButtonSolidBgHoverOnDark = "var(--color-orange-500)";
|
|
28
|
+
export const colorButtonOutlineBgOnLight = "var(--color-transparent)";
|
|
29
|
+
export const colorButtonOutlineBgOnDark = "var(--color-transparent)";
|
|
30
|
+
export const colorButtonOutlineTextOnLight = "var(--color-neutral-900)";
|
|
31
|
+
export const colorButtonOutlineTextOnDark = "var(--color-neutral-100)";
|
|
32
|
+
export const colorButtonOutlineTextHoverOnLight = "var(--color-orange-600)";
|
|
33
|
+
export const colorButtonOutlineTextHoverOnDark = "var(--color-orange-500)";
|
|
34
|
+
export const colorButtonOutlineBgHoverOnLight = "var(--color-orange-600)";
|
|
35
|
+
export const colorButtonOutlineBgHoverOnDark = "var(--color-orange-500)";
|
|
36
|
+
export const colorButtonOutlineOutlineOnLight = "var(--color-orange-500)";
|
|
37
|
+
export const colorButtonOutlineOutlineOnDark = "var(--color-orange-600)";
|
|
38
|
+
export const colorButtonOutlineOutlineHoverOnLight = "var(--color-orange-600)";
|
|
39
|
+
export const colorButtonOutlineOutlineHoverOnDark = "var(--color-orange-500)";
|
|
40
|
+
export const colorButtonGhostBgOnLight = "transparent";
|
|
41
|
+
export const colorButtonGhostBgOnDark = "transparent";
|
|
42
|
+
export const colorButtonGhostTextOnLight = "var(--color-neutral-900)";
|
|
43
|
+
export const colorButtonGhostTextOnDark = "var(--color-white)";
|
|
44
|
+
export const colorButtonGhostTextHoverOnLight = "var(--color-neutral-900)";
|
|
45
|
+
export const colorButtonGhostTextHoverOnDark = "var(--color-neutral-900)";
|
|
46
|
+
export const colorButtonGhostBgHoverOnLight = "var(--color-neutral-200)";
|
|
47
|
+
export const colorButtonGhostBgHoverOnDark = "var(--color-neutral-300)";
|
|
48
|
+
export const colorButtonLinkTextOnLight = "var(--color-blue-700)";
|
|
49
|
+
export const colorButtonLinkTextOnDark = "var(--color-blue-400)";
|
|
50
|
+
export const colorButtonLinkTextHoverOnLight = "var(--color-blue-800)";
|
|
51
|
+
export const colorButtonLinkTextHoverOnDark = "var(--color-blue-300)";
|
|
52
|
+
export const colorButtonMonoSolidBgOnLight = "var(--color-neutral-900)";
|
|
53
|
+
export const colorButtonMonoSolidBgOnDark = "var(--color-white)";
|
|
54
|
+
export const colorButtonMonoSolidTextOnLight = "var(--color-white)";
|
|
55
|
+
export const colorButtonMonoSolidTextOnDark = "var(--color-neutral-900)";
|
|
56
|
+
export const colorButtonMonoSolidBgHoverOnLight = "var(--color-neutral-700)";
|
|
57
|
+
export const colorButtonMonoSolidBgHoverOnDark = "var(--color-neutral-200)";
|
|
58
|
+
export const colorButtonMonoOutlineBgOnLight = "var(--color-transparent)";
|
|
59
|
+
export const colorButtonMonoOutlineBgOnDark = "var(--color-transparent)";
|
|
60
|
+
export const colorButtonMonoOutlineBgHoverOnLight = "var(--color-neutral-900)";
|
|
61
|
+
export const colorButtonMonoOutlineBgHoverOnDark = "var(--color-white)";
|
|
62
|
+
export const colorButtonMonoOutlineTextOnLight = "var(--color-neutral-900)";
|
|
63
|
+
export const colorButtonMonoOutlineTextOnDark = "var(--color-neutral-100)";
|
|
64
|
+
export const colorButtonMonoOutlineTextHoverOnLight = "var(--color-white)";
|
|
65
|
+
export const colorButtonMonoOutlineTextHoverOnDark = "var(--color-neutral-900)";
|
|
66
|
+
export const colorButtonMonoOutlineOutlineOnLight = "var(--color-neutral-900)";
|
|
67
|
+
export const colorButtonMonoOutlineOutlineOnDark = "var(--color-neutral-100)";
|
|
68
|
+
export const colorButtonMonoOutlineOutlineHoverOnLight = "var(--color-neutral-700)";
|
|
69
|
+
export const colorButtonMonoOutlineOutlineHoverOnDark = "var(--color-white)";
|
|
70
|
+
export const colorButtonGradientTextOnLight = "var(--color-white)";
|
|
71
|
+
export const colorButtonGradientTextOnDark = "var(--color-neutral-900)";
|
|
72
|
+
export const colorButtonInlineTextOnLight = "var(--color-neutral-900)";
|
|
73
|
+
export const colorButtonInlineTextOnDark = "var(--color-white)";
|
|
74
|
+
export const colorButtonInlineTextHoverOnLight = "var(--color-orange-500)";
|
|
75
|
+
export const colorButtonInlineTextHoverOnDark = "var(--color-orange-500)";
|
|
76
|
+
export const colorTextPrimaryOnLight = "var(--color-neutral-900)";
|
|
77
|
+
export const colorTextPrimaryOnDark = "var(--color-neutral-50)";
|
|
78
|
+
export const colorTextSecondaryOnLight = "var(--color-neutral-600)";
|
|
79
|
+
export const colorTextSecondaryOnDark = "var(--color-neutral-400)";
|
|
80
|
+
export const colorTextTertiaryOnLight = "var(--color-neutral-600)";
|
|
81
|
+
export const colorTextTertiaryOnDark = "var(--color-neutral-400)";
|
|
82
|
+
export const colorInverseOnLight = "var(--color-white)";
|
|
83
|
+
export const colorInverseOnDark = "var(--color-neutral-900)";
|
|
84
|
+
export const colorNavLinkDropdownTextHoverOnLight = "var(--color-orange-700)";
|
|
85
|
+
export const colorNavLinkDropdownTextHoverOnDark = "var(--color-orange-200)";
|
|
86
|
+
export const colorDisabledOnLight = "var(--color-neutral-400)";
|
|
87
|
+
export const colorDisabledOnDark = "var(--color-neutral-600)";
|
|
88
|
+
export const colorAccentOnLight = "var(--color-orange-600)";
|
|
89
|
+
export const colorAccentOnDark = "var(--color-orange-500)";
|
|
90
|
+
export const colorAccentTextOnLight = "var(--color-orange-700)";
|
|
91
|
+
export const colorAccentTextOnDark = "var(--color-orange-500)";
|
|
92
|
+
export const colorEyebrowOnLight = "var(--color-orange-700)";
|
|
93
|
+
export const colorEyebrowOnDark = "var(--color-orange-500)";
|
|
94
|
+
export const colorBrandOnLight = "var(--color-blue-500)";
|
|
95
|
+
export const colorBrandOnDark = "var(--color-blue-400)";
|
|
96
|
+
export const colorBrandSubtleOnLight = "var(--color-blue-100)";
|
|
97
|
+
export const colorBrandSubtleOnDark = "var(--color-blue-800)";
|
|
98
|
+
export const colorPageOnLight = "oklch(97% 0.01 255)";
|
|
99
|
+
export const colorPageOnDark = "oklch(12% 0.05 255)";
|
|
100
|
+
export const colorSurfaceDefaultOnLight = "oklch(100% 0 0)";
|
|
101
|
+
export const colorSurfaceDefaultOnDark = "oklch(18% 0.06 255)";
|
|
102
|
+
export const colorSurfaceElevatedOnLight = "oklch(96% 0.02 255)";
|
|
103
|
+
export const colorSurfaceElevatedOnDark = "oklch(0.22 0.08 255)";
|
|
104
|
+
export const colorSurfaceSubtleOnLight = "oklch(94% 0.04 255)";
|
|
105
|
+
export const colorSurfaceSubtleOnDark = "oklch(30% 0.12 255)";
|
|
106
|
+
export const colorOutlineOnLight = "var(--color-neutral-200)";
|
|
107
|
+
export const colorOutlineOnDark = "oklch(24% 0.05 255)";
|
|
108
|
+
export const colorOutlineSubtleOnLight = "var(--color-neutral-100)";
|
|
109
|
+
export const colorOutlineSubtleOnDark = "var(--color-blue-800)";
|
|
110
|
+
export const colorOutlineStrongOnLight = "var(--color-neutral-300)";
|
|
111
|
+
export const colorOutlineStrongOnDark = "var(--color-blue-600)";
|
|
112
|
+
export const colorFocusOnLight = "var(--color-blue-500)";
|
|
113
|
+
export const colorFocusOnDark = "var(--color-blue-400)";
|
|
114
|
+
export const colorInteractiveOnLight = "var(--color-blue-500)";
|
|
115
|
+
export const colorInteractiveOnDark = "var(--color-blue-400)";
|
|
116
|
+
export const colorInteractiveHoverOnLight = "var(--color-blue-600)";
|
|
117
|
+
export const colorInteractiveHoverOnDark = "var(--color-blue-300)";
|
|
118
|
+
export const colorInteractiveActiveOnLight = "var(--color-blue-700)";
|
|
119
|
+
export const colorInteractiveActiveOnDark = "var(--color-blue-500)";
|
|
120
|
+
export const colorInteractiveDisabledOnLight = "var(--color-neutral-300)";
|
|
121
|
+
export const colorInteractiveDisabledOnDark = "var(--color-neutral-700)";
|
|
122
|
+
export const colorSuccessOnLight = "#047857";
|
|
123
|
+
export const colorSuccessOnDark = "#34d399";
|
|
124
|
+
export const colorSuccessSubtleOnLight = "#d1fae5";
|
|
125
|
+
export const colorSuccessSubtleOnDark = "#064e3b";
|
|
126
|
+
export const colorErrorOnLight = "#ef4444";
|
|
127
|
+
export const colorErrorOnDark = "#f87171";
|
|
128
|
+
export const colorErrorSubtleOnLight = "#fee2e2";
|
|
129
|
+
export const colorErrorSubtleOnDark = "#7f1d1d";
|
|
130
|
+
export const colorWarningOnLight = "var(--color-orange-500)";
|
|
131
|
+
export const colorWarningOnDark = "var(--color-orange-400)";
|
|
132
|
+
export const colorWarningSubtleOnLight = "var(--color-orange-100)";
|
|
133
|
+
export const colorWarningSubtleOnDark = "var(--color-orange-900)";
|
|
134
|
+
export const colorInfoOnLight = "var(--color-blue-500)";
|
|
135
|
+
export const colorInfoOnDark = "var(--color-blue-400)";
|
|
136
|
+
export const colorInfoSubtleOnLight = "var(--color-blue-100)";
|
|
137
|
+
export const colorInfoSubtleOnDark = "var(--color-blue-900)";
|
|
138
|
+
export const colorInputBgOnLight = "var(--surface-default-on-light)";
|
|
139
|
+
export const colorInputBgOnDark = "var(--surface-default-on-dark)";
|
|
140
|
+
export const colorInputBorderOnLight = "var(--color-neutral-300)";
|
|
141
|
+
export const colorInputBorderOnDark = "var(--color-blue-600)";
|
|
142
|
+
export const colorInputTextOnLight = "var(--color-neutral-900)";
|
|
143
|
+
export const colorInputTextOnDark = "var(--color-neutral-100)";
|
|
144
|
+
export const colorInputPlaceholderOnLight = "var(--color-neutral-600)";
|
|
145
|
+
export const colorInputPlaceholderOnDark = "var(--color-neutral-500)";
|
|
146
|
+
export const colorTerminalBg = "#09090b";
|
|
147
|
+
export const colorTerminalTitlebar = "#0d0d0f";
|
|
148
|
+
export const colorTerminalBorder = "#1a1a1a";
|
|
149
|
+
export const colorTerminalText = "#e4e4e7";
|
|
150
|
+
export const colorTerminalMuted = "#a1a1aa";
|
|
151
|
+
export const colorTerminalSuccess = "#34d399";
|
|
152
|
+
export const colorTerminalDotRed = "#ea580c";
|
|
153
|
+
export const colorTerminalDotYellow = "#fbbf24";
|
|
154
|
+
export const colorPatternDotOnLight = "oklch(70% 0.03 255)";
|
|
155
|
+
export const colorPatternDotOnDark = "oklch(40% 0.05 255)";
|
|
156
|
+
export const colorBadgeBgOnLight = "var(--color-neutral-100)";
|
|
157
|
+
export const colorBadgeBgOnDark = "var(--color-blue-700)";
|
|
158
|
+
export const colorBadgeTextOnLight = "var(--color-neutral-700)";
|
|
159
|
+
export const colorBadgeTextOnDark = "var(--color-neutral-100)";
|
|
160
|
+
export const colorBadgeBrandTextOnLight = "var(--color-blue-700)";
|
|
161
|
+
export const colorBadgeBrandTextOnDark = "var(--color-blue-100)";
|
|
162
|
+
export const colorBadgeWarningTextOnLight = "var(--color-orange-900)";
|
|
163
|
+
export const colorBadgeWarningTextOnDark = "var(--color-orange-100)";
|
|
164
|
+
export const colorBadgeErrorTextOnLight = "#b91c1c";
|
|
165
|
+
export const colorBadgeErrorTextOnDark = "#fecaca";
|
|
166
|
+
export const colorBadgeBorderOnLight = "var(--color-neutral-200)";
|
|
167
|
+
export const colorBadgeBorderOnDark = "var(--color-blue-600)";
|
|
168
|
+
export const defaultFontFamily = "var(--font-sans)";
|
|
169
|
+
export const defaultDisplayFontFamily = "var(--font-display)";
|
|
170
|
+
export const defaultMonoFontFamily = "var(--font-mono)";
|
|
171
|
+
export const breakpointXs = "0px";
|
|
172
|
+
export const breakpointSm = "640px";
|
|
173
|
+
export const breakpointMd = "768px";
|
|
174
|
+
export const breakpointLg = "1024px";
|
|
175
|
+
export const breakpointXl = "1280px";
|
|
176
|
+
export const breakpoint2xl = "1536px";
|
|
177
|
+
export const shadowCardOnLight = "0 10px 30px rgb(15 23 42 / 0.08)";
|
|
178
|
+
export const shadowCardOnDark = "0 12px 32px rgb(2 6 23 / 0.35)";
|