@moderneinc/design-system-tokens 6.0.0-next.02da4a
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 +173 -0
- package/dist/border-radius.css +10 -0
- package/dist/border-radius.d.ts +40 -0
- package/dist/border-radius.js +69 -0
- package/dist/breakpoints.d.ts +22 -0
- package/dist/breakpoints.js +33 -0
- package/dist/colors.css +114 -0
- package/dist/colors.d.ts +200 -0
- package/dist/colors.js +147 -0
- package/dist/height.css +12 -0
- package/dist/height.d.ts +42 -0
- package/dist/height.js +45 -0
- package/dist/index.d.ts +2692 -0
- package/dist/index.esm.js +27 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/padding.css +7 -0
- package/dist/padding.d.ts +31 -0
- package/dist/padding.js +51 -0
- package/dist/semantic-colors-dark.d.ts +494 -0
- package/dist/semantic-colors-dark.js +255 -0
- package/dist/semantic-colors-light.d.ts +494 -0
- package/dist/semantic-colors-light.js +255 -0
- package/dist/semantic-colors.css +581 -0
- package/dist/semantic-colors.d.ts +494 -0
- package/dist/semantic-colors.js +255 -0
- package/dist/semantic-typography.css +159 -0
- package/dist/semantic-typography.d.ts +315 -0
- package/dist/semantic-typography.js +119 -0
- package/dist/shadows.css +14 -0
- package/dist/shadows.d.ts +140 -0
- package/dist/shadows.js +79 -0
- package/dist/spacing.css +25 -0
- package/dist/spacing.d.ts +85 -0
- package/dist/spacing.js +154 -0
- package/dist/strokes.css +3 -0
- package/dist/strokes.d.ts +19 -0
- package/dist/strokes.js +19 -0
- package/dist/typography.css +25 -0
- package/dist/typography.d.ts +63 -0
- package/dist/typography.js +64 -0
- package/package.json +71 -0
package/README.md
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# @moderneinc/design-system-tokens
|
|
2
|
+
|
|
3
|
+
**Internal Moderne package** - Design system build tools for processing design tokens into multiple output formats (CSS, JavaScript, JSON).
|
|
4
|
+
|
|
5
|
+
## 🚀 Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @moderneinc/design-system-tokens
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 📦 What's Included
|
|
12
|
+
|
|
13
|
+
- **Design Tokens**: W3C DTCG format token files in `src/tokens/`
|
|
14
|
+
- `primitive/` — color, spacing, border-radius, shadow, typography, breakpoints
|
|
15
|
+
- `semantic/` — semantic colors, semantic typography (aliases into primitives)
|
|
16
|
+
- **Internal Plugin System**: CSS Variables, JS Export, and DTS Export plugins (build-time only)
|
|
17
|
+
- **DTCG Reader**: Reads W3C Design Tokens Community Group format into plugin-compatible structures
|
|
18
|
+
- **Pure JavaScript**: Simplified architecture, no TypeScript complexity
|
|
19
|
+
- **Multiple Output Formats**: CSS custom properties, JavaScript exports, and TypeScript declarations
|
|
20
|
+
|
|
21
|
+
## 🎨 Generated Outputs
|
|
22
|
+
|
|
23
|
+
The build process generates design token files:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# After running npm run build, generated files include:
|
|
27
|
+
dist/
|
|
28
|
+
├── colors.css # Primitive color CSS custom properties
|
|
29
|
+
├── colors.json # Primitive color tokens (JSON)
|
|
30
|
+
├── colors.js # Primitive color tokens (JS)
|
|
31
|
+
├── semantic-colors.css # Semantic/theme color CSS custom properties
|
|
32
|
+
├── semantic-colors.js # Semantic color tokens (JS)
|
|
33
|
+
├── typography.css # Typography CSS custom properties
|
|
34
|
+
├── typography.json # Typography tokens (JSON)
|
|
35
|
+
├── typography.js # Typography tokens (JS)
|
|
36
|
+
├── breakpoints.js # Breakpoint tokens (JS)
|
|
37
|
+
├── index.js # Main CommonJS bundle
|
|
38
|
+
└── index.esm.js # Main ESM bundle
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 🌗 Dark Mode
|
|
42
|
+
|
|
43
|
+
`semanticColors.*` values are now CSS variable references, not hex strings —
|
|
44
|
+
e.g. `semanticColors.surfaces.card` returns `'var(--mod-surfaces-card)'`. Theme
|
|
45
|
+
switching happens through the CSS cascade via `[data-theme="dark"]`, not by
|
|
46
|
+
picking a different JS object.
|
|
47
|
+
|
|
48
|
+
**This is a breaking change.** To upgrade:
|
|
49
|
+
|
|
50
|
+
1. **Import the stylesheet.** Any code using `semanticColors` must import
|
|
51
|
+
`@moderneinc/design-system-tokens/semantic-colors.css` once, globally. Without it,
|
|
52
|
+
every `var(--mod-…)` reference is unset and renders as inherited or
|
|
53
|
+
transparent — no error, no warning, just a silently broken UI.
|
|
54
|
+
|
|
55
|
+
```js
|
|
56
|
+
import '@moderneinc/design-system-tokens/semantic-colors.css'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
2. **Switch themes by setting an attribute**, not by importing a different
|
|
60
|
+
token set:
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
document.documentElement.setAttribute('data-theme', 'dark') // or 'light'
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Dark mode is opt-in via `[data-theme="dark"]` only. It does **not** follow
|
|
67
|
+
`@media (prefers-color-scheme: dark)`, so a user's OS-level preference has
|
|
68
|
+
no effect unless your app wires it up.
|
|
69
|
+
|
|
70
|
+
3. **Use `semanticColorsLight` / `semanticColorsDark` where a literal hex
|
|
71
|
+
value is required** — canvas, WebGL, charting libraries, and colour math
|
|
72
|
+
(e.g. `alpha()`) can't resolve a CSS variable. Reach for these only in
|
|
73
|
+
those cases; everywhere else, prefer `semanticColors` so the UI stays
|
|
74
|
+
theme-aware.
|
|
75
|
+
|
|
76
|
+
```js
|
|
77
|
+
import { semanticColors, semanticColorsDark } from '@moderneinc/design-system-tokens'
|
|
78
|
+
|
|
79
|
+
// Correct — themes automatically via CSS
|
|
80
|
+
const border = semanticColors.border.primary
|
|
81
|
+
|
|
82
|
+
// Only when you need a literal value (e.g. a <canvas> fill)
|
|
83
|
+
ctx.fillStyle = semanticColorsDark.surfaces.card
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
4. **Don't append a hex alpha suffix to a `semanticColors` value.** This
|
|
87
|
+
worked when the value was a literal hex string; it does not work now
|
|
88
|
+
that it's a `var(...)` reference:
|
|
89
|
+
|
|
90
|
+
```js
|
|
91
|
+
// Broken — "var(--mod-border-primary)80" is not valid CSS; the
|
|
92
|
+
// browser drops the whole declaration
|
|
93
|
+
const border = `${semanticColors.border.primary}80`
|
|
94
|
+
|
|
95
|
+
// Correct — color-mix keeps the value theme-aware
|
|
96
|
+
const border = `color-mix(in srgb, ${semanticColors.border.primary} 50%, transparent)`
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## 🔧 Internal Build System
|
|
100
|
+
|
|
101
|
+
The package includes an internal plugin system used during the build process:
|
|
102
|
+
|
|
103
|
+
**Build-time Plugins:**
|
|
104
|
+
|
|
105
|
+
- **CSS Variables Plugin**: Generates CSS custom properties from design tokens
|
|
106
|
+
- **JS Export Plugin**: Creates JavaScript module exports from processed tokens
|
|
107
|
+
- **JSON Export Plugin**: Generates JSON files with processed design tokens
|
|
108
|
+
|
|
109
|
+
These plugins are configured in `tokens.config.js` and executed by `scripts/build-production.js` during `npm run build`. They read W3C DTCG format token files via the DTCG reader and are not exposed as public exports.
|
|
110
|
+
|
|
111
|
+
## 🏗️ Architecture & Build Process
|
|
112
|
+
|
|
113
|
+
```mermaid
|
|
114
|
+
graph TB
|
|
115
|
+
A[DTCG Token Files<br/>src/tokens/*.tokens.json]
|
|
116
|
+
|
|
117
|
+
A --> B[npm run build<br/>scripts/build-production.js]
|
|
118
|
+
|
|
119
|
+
B --> C[Rollup Bundle Build<br/>rollup -c]
|
|
120
|
+
C --> D[Generated Bundles<br/>dist/]
|
|
121
|
+
D --> E[index.js<br/>CommonJS Bundle]
|
|
122
|
+
D --> Esm[index.esm.js<br/>ES Module Bundle]
|
|
123
|
+
|
|
124
|
+
B --> G[Token Contract Processing<br/>tokens.config.js]
|
|
125
|
+
G --> R[DTCG Reader<br/>dtcg-reader.js]
|
|
126
|
+
R --> G1[Colors]
|
|
127
|
+
R --> G2[Semantic Colors]
|
|
128
|
+
R --> G3[Typography]
|
|
129
|
+
R --> G4[Shadows + Spacing + ...]
|
|
130
|
+
|
|
131
|
+
G1 --> H[CSS Variables Plugin]
|
|
132
|
+
G1 --> I[JS Export Plugin]
|
|
133
|
+
G1 --> J[DTS Export Plugin]
|
|
134
|
+
|
|
135
|
+
H --> K[Generated Artifacts<br/>dist/]
|
|
136
|
+
I --> K
|
|
137
|
+
J --> K
|
|
138
|
+
G2 --> K
|
|
139
|
+
G3 --> K
|
|
140
|
+
G4 --> K
|
|
141
|
+
|
|
142
|
+
K --> L[Ready for npm publish]
|
|
143
|
+
|
|
144
|
+
style F fill:#fff3e0
|
|
145
|
+
style A fill:#e1f5fe
|
|
146
|
+
style K fill:#f3e5f5
|
|
147
|
+
style L fill:#e8f5e8
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## 🔧 Development
|
|
151
|
+
|
|
152
|
+
### Scripts
|
|
153
|
+
|
|
154
|
+
- `npm run build` - Complete build pipeline with plugin execution
|
|
155
|
+
- `npm run dev` - Watch mode development build with Rollup
|
|
156
|
+
- `npm run clean` - Remove dist directory
|
|
157
|
+
- `npm run storybook` - Preview tokens in Storybook (port 6006)
|
|
158
|
+
- `npm run test` - Run Vitest test suite
|
|
159
|
+
- `npm run lint` - Lint source code with Biome
|
|
160
|
+
- `npm run format` - Format code with Biome
|
|
161
|
+
- `npm run knip` - Check for unused dependencies and exports
|
|
162
|
+
|
|
163
|
+
## 📖 Documentation
|
|
164
|
+
|
|
165
|
+
- View token documentation in Storybook: `npm run storybook`
|
|
166
|
+
- See `stories/` for color and typography showcases
|
|
167
|
+
- Check `dist/` for built artifacts after running `npm run build`
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
**Package**: `@moderneinc/design-system-tokens` (Private - Internal Moderne use only)
|
|
172
|
+
**Source**: hand-maintained DTCG token files in `src/tokens/`
|
|
173
|
+
**Architecture**: Pure JavaScript ES6 modules
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
:root { --mod-border-radius-card: 12px;
|
|
2
|
+
--mod-border-radius-button: 4px;
|
|
3
|
+
--mod-border-radius-input: 10px;
|
|
4
|
+
--mod-border-radius-x-xs: 2px;
|
|
5
|
+
--mod-border-radius-x-s: 4px;
|
|
6
|
+
--mod-border-radius-s: 8px;
|
|
7
|
+
--mod-border-radius-m: 12px;
|
|
8
|
+
--mod-border-radius-l: 20px;
|
|
9
|
+
--mod-border-radius-x-l: 30px;
|
|
10
|
+
--mod-border-radius-full: 999px;}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* TypeScript declarations generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export declare const card: 12;
|
|
8
|
+
|
|
9
|
+
export declare const button: 4;
|
|
10
|
+
|
|
11
|
+
export declare const input: 10;
|
|
12
|
+
|
|
13
|
+
export declare const xXS: 2;
|
|
14
|
+
|
|
15
|
+
export declare const xS: 4;
|
|
16
|
+
|
|
17
|
+
export declare const s: 8;
|
|
18
|
+
|
|
19
|
+
export declare const m: 12;
|
|
20
|
+
|
|
21
|
+
export declare const l: 20;
|
|
22
|
+
|
|
23
|
+
export declare const xL: 30;
|
|
24
|
+
|
|
25
|
+
export declare const full: 999;
|
|
26
|
+
|
|
27
|
+
declare const _default: {
|
|
28
|
+
card: typeof card,
|
|
29
|
+
button: typeof button,
|
|
30
|
+
input: typeof input,
|
|
31
|
+
xXS: typeof xXS,
|
|
32
|
+
xS: typeof xS,
|
|
33
|
+
s: typeof s,
|
|
34
|
+
m: typeof m,
|
|
35
|
+
l: typeof l,
|
|
36
|
+
xL: typeof xL,
|
|
37
|
+
full: typeof full,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* Generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @type {number}
|
|
9
|
+
*/
|
|
10
|
+
export const card = 12;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @type {number}
|
|
14
|
+
*/
|
|
15
|
+
export const button = 4;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @type {number}
|
|
19
|
+
*/
|
|
20
|
+
export const input = 10;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @type {number}
|
|
24
|
+
*/
|
|
25
|
+
export const xXS = 2;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @type {number}
|
|
29
|
+
*/
|
|
30
|
+
export const xS = 4;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @type {number}
|
|
34
|
+
*/
|
|
35
|
+
export const s = 8;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {number}
|
|
39
|
+
*/
|
|
40
|
+
export const m = 12;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @type {number}
|
|
44
|
+
*/
|
|
45
|
+
export const l = 20;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @type {number}
|
|
49
|
+
*/
|
|
50
|
+
export const xL = 30;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {number}
|
|
54
|
+
*/
|
|
55
|
+
export const full = 999;
|
|
56
|
+
|
|
57
|
+
// Default export with all color groups
|
|
58
|
+
export default {
|
|
59
|
+
card,
|
|
60
|
+
button,
|
|
61
|
+
input,
|
|
62
|
+
xXS,
|
|
63
|
+
xS,
|
|
64
|
+
s,
|
|
65
|
+
m,
|
|
66
|
+
l,
|
|
67
|
+
xL,
|
|
68
|
+
full,
|
|
69
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* TypeScript declarations generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export declare const xl: 1920;
|
|
8
|
+
|
|
9
|
+
export declare const lg: 1280;
|
|
10
|
+
|
|
11
|
+
export declare const md: 960;
|
|
12
|
+
|
|
13
|
+
export declare const sm: 600;
|
|
14
|
+
|
|
15
|
+
declare const _default: {
|
|
16
|
+
xl: typeof xl,
|
|
17
|
+
lg: typeof lg,
|
|
18
|
+
md: typeof md,
|
|
19
|
+
sm: typeof sm,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* Generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @type {number}
|
|
9
|
+
*/
|
|
10
|
+
export const xl = 1920;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @type {number}
|
|
14
|
+
*/
|
|
15
|
+
export const lg = 1280;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @type {number}
|
|
19
|
+
*/
|
|
20
|
+
export const md = 960;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @type {number}
|
|
24
|
+
*/
|
|
25
|
+
export const sm = 600;
|
|
26
|
+
|
|
27
|
+
// Default export with all color groups
|
|
28
|
+
export default {
|
|
29
|
+
xl,
|
|
30
|
+
lg,
|
|
31
|
+
md,
|
|
32
|
+
sm,
|
|
33
|
+
};
|
package/dist/colors.css
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
:root { --mod-gold-50: #fef9e8;
|
|
2
|
+
--mod-gold-100: #fbf1d2;
|
|
3
|
+
--mod-gold-200: #f7e3a5;
|
|
4
|
+
--mod-gold-300: #f4d479;
|
|
5
|
+
--mod-gold-400: #ffd34d;
|
|
6
|
+
--mod-gold-500: #ecb81f;
|
|
7
|
+
--mod-gold-600: #bd9319;
|
|
8
|
+
--mod-gold-700: #8e6e13;
|
|
9
|
+
--mod-gold-800: #806a00;
|
|
10
|
+
--mod-gold-900: #2f2506;
|
|
11
|
+
--mod-violet-50: #f6eefb;
|
|
12
|
+
--mod-violet-100: #ebd5f1;
|
|
13
|
+
--mod-violet-200: #d6ace3;
|
|
14
|
+
--mod-violet-300: #c282d5;
|
|
15
|
+
--mod-violet-400: #ad59c7;
|
|
16
|
+
--mod-violet-500: #9d5be8;
|
|
17
|
+
--mod-violet-600: #7a2694;
|
|
18
|
+
--mod-violet-700: #5c1c6f;
|
|
19
|
+
--mod-violet-800: #3d134a;
|
|
20
|
+
--mod-violet-900: #1f0925;
|
|
21
|
+
--mod-warm-grey-50: #faf8f3;
|
|
22
|
+
--mod-warm-grey-100: #f6f1e8;
|
|
23
|
+
--mod-warm-grey-200: #f1ece0;
|
|
24
|
+
--mod-warm-grey-300: #dcd3c3;
|
|
25
|
+
--mod-warm-grey-400: #c9bfa6;
|
|
26
|
+
--mod-warm-grey-500: #9c927e;
|
|
27
|
+
--mod-warm-grey-600: #7b7263;
|
|
28
|
+
--mod-warm-grey-700: #564e41;
|
|
29
|
+
--mod-warm-grey-800: #38332a;
|
|
30
|
+
--mod-warm-grey-900: #15120f;
|
|
31
|
+
--mod-ink-50: #f1f1f6;
|
|
32
|
+
--mod-ink-100: #d9d9e4;
|
|
33
|
+
--mod-ink-200: #b4b4c4;
|
|
34
|
+
--mod-ink-300: #8a8a9e;
|
|
35
|
+
--mod-ink-400: #62627a;
|
|
36
|
+
--mod-ink-500: #4a4a66;
|
|
37
|
+
--mod-ink-600: #62627a;
|
|
38
|
+
--mod-ink-700: #2c2c50;
|
|
39
|
+
--mod-ink-800: #232342;
|
|
40
|
+
--mod-ink-900: #17171c;
|
|
41
|
+
--mod-cream-50: #fbfaf6;
|
|
42
|
+
--mod-cream-100: #f4f2eb;
|
|
43
|
+
--mod-cream-200: #f2f0ea;
|
|
44
|
+
--mod-cream-300: #f2efe7;
|
|
45
|
+
--mod-cream-400: #edebe2;
|
|
46
|
+
--mod-cream-500: #e4e1d6;
|
|
47
|
+
--mod-cream-600: #dedbd0;
|
|
48
|
+
--mod-cream-700: #918c7c;
|
|
49
|
+
--mod-cream-800: #5f5b4f;
|
|
50
|
+
--mod-cream-900: #33312b;
|
|
51
|
+
--mod-periwinkle-300: #8ca0f5;
|
|
52
|
+
--mod-periwinkle-500: #3e5be8;
|
|
53
|
+
--mod-digital-blue-50: #f2f3ff;
|
|
54
|
+
--mod-digital-blue-100: #dce0ff;
|
|
55
|
+
--mod-digital-blue-200: #b6bfff;
|
|
56
|
+
--mod-digital-blue-300: #8d99ff;
|
|
57
|
+
--mod-digital-blue-400: #626eff;
|
|
58
|
+
/* primary color */
|
|
59
|
+
--mod-digital-blue-500: #2f42ff;
|
|
60
|
+
--mod-digital-blue-600: #2637e6;
|
|
61
|
+
--mod-digital-blue-700: #1e2ec2;
|
|
62
|
+
--mod-digital-blue-800: #131e7a;
|
|
63
|
+
--mod-digital-blue-900: #000855;
|
|
64
|
+
--mod-digital-green-50: #f3fff5;
|
|
65
|
+
--mod-digital-green-100: #cfffd7;
|
|
66
|
+
--mod-digital-green-200: #acffb9;
|
|
67
|
+
--mod-digital-green-300: #88fe9b;
|
|
68
|
+
--mod-digital-green-400: #72e184;
|
|
69
|
+
--mod-digital-green-500: #5ec46f;
|
|
70
|
+
--mod-digital-green-600: #4ca75a;
|
|
71
|
+
--mod-digital-green-700: #3b8948;
|
|
72
|
+
--mod-digital-green-800: #2c6c36;
|
|
73
|
+
--mod-digital-green-900: #1e4f26;
|
|
74
|
+
--mod-grey-50: #f9fafb;
|
|
75
|
+
--mod-grey-100: #f3f4f6;
|
|
76
|
+
--mod-grey-200: #e5e7eb;
|
|
77
|
+
--mod-grey-300: #d1d5db;
|
|
78
|
+
--mod-grey-400: #9ca3af;
|
|
79
|
+
--mod-grey-500: #6b7280;
|
|
80
|
+
--mod-grey-600: #4b5563;
|
|
81
|
+
--mod-grey-700: #374151;
|
|
82
|
+
--mod-grey-800: #1f2937;
|
|
83
|
+
--mod-grey-900: #111827;
|
|
84
|
+
--mod-orange-50: #fff8e5;
|
|
85
|
+
--mod-orange-100: #ffebb7;
|
|
86
|
+
--mod-orange-200: #ffde8a;
|
|
87
|
+
--mod-orange-300: #ffd15c;
|
|
88
|
+
--mod-orange-400: #ff8f52;
|
|
89
|
+
--mod-orange-500: #ffb800;
|
|
90
|
+
--mod-orange-600: #d69b00;
|
|
91
|
+
--mod-orange-700: #856000;
|
|
92
|
+
--mod-orange-800: #a34e14;
|
|
93
|
+
--mod-orange-900: #5c4200;
|
|
94
|
+
--mod-red-50: #fbefed;
|
|
95
|
+
--mod-red-100: #ffc6cd;
|
|
96
|
+
--mod-red-200: #f0b4ac;
|
|
97
|
+
--mod-red-300: #fa826f;
|
|
98
|
+
--mod-red-400: #ed4a5d;
|
|
99
|
+
--mod-red-500: #cb3446;
|
|
100
|
+
--mod-red-600: #c9291c;
|
|
101
|
+
--mod-red-700: #871421;
|
|
102
|
+
--mod-red-800: #650914;
|
|
103
|
+
--mod-red-900: #43020a;
|
|
104
|
+
--mod-teal-green-50: #eefffa;
|
|
105
|
+
--mod-teal-green-100: #c9fff1;
|
|
106
|
+
--mod-teal-green-200: #a4ffe7;
|
|
107
|
+
--mod-teal-green-300: #7fffde;
|
|
108
|
+
--mod-teal-green-400: #54eec6;
|
|
109
|
+
--mod-teal-green-500: #3bcca6;
|
|
110
|
+
--mod-teal-green-600: #27aa88;
|
|
111
|
+
--mod-teal-green-700: #17886b;
|
|
112
|
+
--mod-teal-green-800: #0b664e;
|
|
113
|
+
--mod-teal-green-900: #034433;
|
|
114
|
+
--mod-white: #ffffff;}
|
package/dist/colors.d.ts
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* TypeScript declarations generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export type Gold = {
|
|
8
|
+
'50': '#fef9e8';
|
|
9
|
+
'100': '#fbf1d2';
|
|
10
|
+
'200': '#f7e3a5';
|
|
11
|
+
'300': '#f4d479';
|
|
12
|
+
'400': '#ffd34d';
|
|
13
|
+
'500': '#ecb81f';
|
|
14
|
+
'600': '#bd9319';
|
|
15
|
+
'700': '#8e6e13';
|
|
16
|
+
'800': '#806a00';
|
|
17
|
+
'900': '#2f2506';
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const gold: Gold;
|
|
21
|
+
|
|
22
|
+
export type Violet = {
|
|
23
|
+
'50': '#f6eefb';
|
|
24
|
+
'100': '#ebd5f1';
|
|
25
|
+
'200': '#d6ace3';
|
|
26
|
+
'300': '#c282d5';
|
|
27
|
+
'400': '#ad59c7';
|
|
28
|
+
'500': '#9d5be8';
|
|
29
|
+
'600': '#7a2694';
|
|
30
|
+
'700': '#5c1c6f';
|
|
31
|
+
'800': '#3d134a';
|
|
32
|
+
'900': '#1f0925';
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export declare const violet: Violet;
|
|
36
|
+
|
|
37
|
+
export type WarmGrey = {
|
|
38
|
+
'50': '#faf8f3';
|
|
39
|
+
'100': '#f6f1e8';
|
|
40
|
+
'200': '#f1ece0';
|
|
41
|
+
'300': '#dcd3c3';
|
|
42
|
+
'400': '#c9bfa6';
|
|
43
|
+
'500': '#9c927e';
|
|
44
|
+
'600': '#7b7263';
|
|
45
|
+
'700': '#564e41';
|
|
46
|
+
'800': '#38332a';
|
|
47
|
+
'900': '#15120f';
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export declare const warmGrey: WarmGrey;
|
|
51
|
+
|
|
52
|
+
export type Ink = {
|
|
53
|
+
'50': '#f1f1f6';
|
|
54
|
+
'100': '#d9d9e4';
|
|
55
|
+
'200': '#b4b4c4';
|
|
56
|
+
'300': '#8a8a9e';
|
|
57
|
+
'400': '#62627a';
|
|
58
|
+
'500': '#4a4a66';
|
|
59
|
+
'600': '#62627a';
|
|
60
|
+
'700': '#2c2c50';
|
|
61
|
+
'800': '#232342';
|
|
62
|
+
'900': '#17171c';
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare const ink: Ink;
|
|
66
|
+
|
|
67
|
+
export type Cream = {
|
|
68
|
+
'50': '#fbfaf6';
|
|
69
|
+
'100': '#f4f2eb';
|
|
70
|
+
'200': '#f2f0ea';
|
|
71
|
+
'300': '#f2efe7';
|
|
72
|
+
'400': '#edebe2';
|
|
73
|
+
'500': '#e4e1d6';
|
|
74
|
+
'600': '#dedbd0';
|
|
75
|
+
'700': '#918c7c';
|
|
76
|
+
'800': '#5f5b4f';
|
|
77
|
+
'900': '#33312b';
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export declare const cream: Cream;
|
|
81
|
+
|
|
82
|
+
export type Periwinkle = {
|
|
83
|
+
'300': '#8ca0f5';
|
|
84
|
+
'500': '#3e5be8';
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export declare const periwinkle: Periwinkle;
|
|
88
|
+
|
|
89
|
+
export type DigitalBlue = {
|
|
90
|
+
'50': '#f2f3ff';
|
|
91
|
+
'100': '#dce0ff';
|
|
92
|
+
'200': '#b6bfff';
|
|
93
|
+
'300': '#8d99ff';
|
|
94
|
+
'400': '#626eff';
|
|
95
|
+
/**
|
|
96
|
+
* primary color
|
|
97
|
+
*/
|
|
98
|
+
'500': '#2f42ff';
|
|
99
|
+
'600': '#2637e6';
|
|
100
|
+
'700': '#1e2ec2';
|
|
101
|
+
'800': '#131e7a';
|
|
102
|
+
'900': '#000855';
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export declare const digitalBlue: DigitalBlue;
|
|
106
|
+
|
|
107
|
+
export type DigitalGreen = {
|
|
108
|
+
'50': '#f3fff5';
|
|
109
|
+
'100': '#cfffd7';
|
|
110
|
+
'200': '#acffb9';
|
|
111
|
+
'300': '#88fe9b';
|
|
112
|
+
'400': '#72e184';
|
|
113
|
+
'500': '#5ec46f';
|
|
114
|
+
'600': '#4ca75a';
|
|
115
|
+
'700': '#3b8948';
|
|
116
|
+
'800': '#2c6c36';
|
|
117
|
+
'900': '#1e4f26';
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export declare const digitalGreen: DigitalGreen;
|
|
121
|
+
|
|
122
|
+
export type Grey = {
|
|
123
|
+
'50': '#f9fafb';
|
|
124
|
+
'100': '#f3f4f6';
|
|
125
|
+
'200': '#e5e7eb';
|
|
126
|
+
'300': '#d1d5db';
|
|
127
|
+
'400': '#9ca3af';
|
|
128
|
+
'500': '#6b7280';
|
|
129
|
+
'600': '#4b5563';
|
|
130
|
+
'700': '#374151';
|
|
131
|
+
'800': '#1f2937';
|
|
132
|
+
'900': '#111827';
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export declare const grey: Grey;
|
|
136
|
+
|
|
137
|
+
export type Orange = {
|
|
138
|
+
'50': '#fff8e5';
|
|
139
|
+
'100': '#ffebb7';
|
|
140
|
+
'200': '#ffde8a';
|
|
141
|
+
'300': '#ffd15c';
|
|
142
|
+
'400': '#ff8f52';
|
|
143
|
+
'500': '#ffb800';
|
|
144
|
+
'600': '#d69b00';
|
|
145
|
+
'700': '#856000';
|
|
146
|
+
'800': '#a34e14';
|
|
147
|
+
'900': '#5c4200';
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare const orange: Orange;
|
|
151
|
+
|
|
152
|
+
export type Red = {
|
|
153
|
+
'50': '#fbefed';
|
|
154
|
+
'100': '#ffc6cd';
|
|
155
|
+
'200': '#f0b4ac';
|
|
156
|
+
'300': '#fa826f';
|
|
157
|
+
'400': '#ed4a5d';
|
|
158
|
+
'500': '#cb3446';
|
|
159
|
+
'600': '#c9291c';
|
|
160
|
+
'700': '#871421';
|
|
161
|
+
'800': '#650914';
|
|
162
|
+
'900': '#43020a';
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export declare const red: Red;
|
|
166
|
+
|
|
167
|
+
export type TealGreen = {
|
|
168
|
+
'50': '#eefffa';
|
|
169
|
+
'100': '#c9fff1';
|
|
170
|
+
'200': '#a4ffe7';
|
|
171
|
+
'300': '#7fffde';
|
|
172
|
+
'400': '#54eec6';
|
|
173
|
+
'500': '#3bcca6';
|
|
174
|
+
'600': '#27aa88';
|
|
175
|
+
'700': '#17886b';
|
|
176
|
+
'800': '#0b664e';
|
|
177
|
+
'900': '#034433';
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare const tealGreen: TealGreen;
|
|
181
|
+
|
|
182
|
+
export declare const white: '#ffffff';
|
|
183
|
+
|
|
184
|
+
declare const _default: {
|
|
185
|
+
gold: typeof gold,
|
|
186
|
+
violet: typeof violet,
|
|
187
|
+
warmGrey: typeof warmGrey,
|
|
188
|
+
ink: typeof ink,
|
|
189
|
+
cream: typeof cream,
|
|
190
|
+
periwinkle: typeof periwinkle,
|
|
191
|
+
digitalBlue: typeof digitalBlue,
|
|
192
|
+
digitalGreen: typeof digitalGreen,
|
|
193
|
+
grey: typeof grey,
|
|
194
|
+
orange: typeof orange,
|
|
195
|
+
red: typeof red,
|
|
196
|
+
tealGreen: typeof tealGreen,
|
|
197
|
+
white: typeof white,
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export default _default;
|