@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
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* Generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {{ hoverBorder: string, pressedBackground: string, inverse: string, hover: string, hoverBackground: string, disabled: string, placeholder: string, pressed: string, utility: string, default: string, active: string }} Icons
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @type {Icons}
|
|
13
|
+
*/
|
|
14
|
+
export const icons = {"hoverBorder":"rgba(62, 123, 246, 0.3)","pressedBackground":"rgba(62, 123, 246, 0.1)","inverse":"#f1f0ea","hover":"#1055e2","hoverBackground":"rgba(62, 123, 246, 0.1)","disabled":"rgba(35, 35, 66, 0.08)","placeholder":"#62627a","pressed":"#0046b5","utility":"#62627a","default":"#232342","active":"#0046b5"};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {{ highlightBackground: string, activeHighlight: string, dataGrid: object, toggleKnob: string, page: string, card: string, cardHeader: string, tabActive: string, listHover: string, shadowNeutral: string, shadowPrimary: string, tooltip: string, scrim: string, tabSecondaryBackground: string, snackbarDarkMode: string, snackbarBrand: string, snackbarLightMode: string, white: string, black: string }} Surfaces
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type {Surfaces}
|
|
22
|
+
*/
|
|
23
|
+
export const surfaces = {"highlightBackground":"rgba(62, 123, 246, 0.1)","activeHighlight":"rgba(182, 191, 255, 0.4)","dataGrid":{"header":"#f2efe7","selected":"rgba(62, 123, 246, 0.1)","selectedHover":"rgba(62, 123, 246, 0.1)","hover":"#f4f2eb","default":"#fbfaf6","border":"rgba(35, 35, 66, 0.12)","borderStrong":"rgba(35, 35, 66, 0.5)","stripe":"#f4f2eb","focused":"rgba(62, 123, 246, 0.1)","pinned":"#f2f0ea","disabled":"#edebe2","background":"#fbfaf6"},"toggleKnob":"#fbfaf6","page":"#f2f0ea","card":"#fbfaf6","cardHeader":"#f2efe7","tabActive":"#fbfaf6","listHover":"#f4f2eb","shadowNeutral":"rgba(31, 41, 55, 0.1)","shadowPrimary":"rgba(47, 66, 255, 0.1)","tooltip":"#4b5563","scrim":"rgba(31, 41, 55, 0.2)","tabSecondaryBackground":"#dfddd1","snackbarDarkMode":"#fbefed","snackbarBrand":"#131e7a","snackbarLightMode":"#eaf6ec","white":"#fbfaf6","black":"#17171c"};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {{ searchInputBackground: string, linkDefault: string, linkHover: string, navigation: object, linkWhite: string, linkWhiteHover: string, tab: object, tooltip: object, input: object, code: object, button: object, link: object, error: string, success: string, warning: string, legal: string, bodySecondary: string, body: string }} Typography
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @type {Typography}
|
|
31
|
+
*/
|
|
32
|
+
export const typography = {"searchInputBackground":"#ffffff","linkDefault":"#0046b5","linkHover":"#2637e6","navigation":{"search":{"highlightText":"#1055e2","highlightBackground":"rgba(47, 66, 255, 0)","inputBackground":"#f2f3ff","highlightBackgroundActive":"#dce0ff"},"default":"#232342"},"linkWhite":"#ffffff","linkWhiteHover":"#ffffff","tab":{"disabled":"#6b7280","inactive":"#232342","active":"#1055e2"},"tooltip":{"secondary":"#62627a","default":"#ffffff"},"input":{"placeholder":"#6b7280","default":"#232342","label":"#232342","helper":"#62627a"},"code":{"primary":"#232342","secondary":"#62627a"},"button":{"disabled":"#6b7280"},"link":{"primary":"#0046b5","disabled":"#b6bfff","default":"#0046b5","white":"#ffffff"},"error":"#c9291c","success":"#1d5937","warning":"#935b00","legal":"#9ca3af","bodySecondary":"#4d4d60","body":"#232342"};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef {{ overlay: string, subtle: string, strong: string, hairline: string, primary: string, secondary: string, focus: string }} Border
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {Border}
|
|
40
|
+
*/
|
|
41
|
+
export const border = {"overlay":"rgba(255, 255, 255, 0)","subtle":"rgba(35, 35, 66, 0.08)","strong":"rgba(35, 35, 66, 0.5)","hairline":"rgba(35, 35, 66, 0.12)","primary":"rgba(35, 35, 66, 0.12)","secondary":"rgba(35, 35, 66, 0.12)","focus":"#1055e2"};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef {{ active: object, queued: object, canceled: object, success: object, error: object, warning: object, info: object, neutral: object, successText: string, successTint: string, successBorder: string, errorText: string, errorTint: string, errorBorder: string, warningText: string, warningTint: string, warningBorder: string, queuedTint: string, queuedBorder: string }} Status
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @type {Status}
|
|
49
|
+
*/
|
|
50
|
+
export const status = {"active":{"dark":"#5530a8","default":"#7048c8","light":"#ede8f8","transparent":"rgba(85, 48, 168, 0.5)","border":"#c9bbea"},"queued":{"dark":"#7858c0","default":"#9472d4","light":"#f0ecf9","transparent":"rgba(120, 88, 192, 0.5)","border":"#d2c6ed"},"canceled":{"dark":"#5c5040","default":"#7a6e5c","light":"#f2efea","transparent":"rgba(92, 80, 64, 0.45)","border":"#d5cec3"},"success":{"border":"#bfe2c8","light":"#eef9f2","default":"#237341","transparent":"rgba(29, 89, 55, 0.55)","dark":"#1d5937"},"error":{"border":"#f0b4ac","light":"#fbefed","default":"#d43c2a","transparent":"rgba(201, 41, 28, 0.5)","dark":"#c9291c"},"warning":{"border":"#e6d9a8","light":"#fff1e0","default":"#b07210","transparent":"rgba(147, 91, 0, 0.45)","dark":"#b68b12"},"info":{"border":"#c7d7f6","dark":"#1a4b8c","default":"#2668b5","light":"#e8f0fa","transparent":"rgba(26, 75, 140, 0.5)"},"neutral":{"border":"#d1cfcb","dark":"#4a453e","default":"#706960","light":"#f0efed","transparent":"rgba(74, 69, 62, 0.45)"},"successText":"#1d5937","successTint":"rgba(48, 242, 132, 0.15)","successBorder":"rgba(29, 89, 55, 0.65)","errorText":"#c9291c","errorTint":"#fbefed","errorBorder":"#f0b4ac","warningText":"#b68b12","warningTint":"rgba(255, 168, 61, 0.16)","warningBorder":"rgba(147, 91, 0, 0.45)","queuedTint":"rgba(157, 91, 232, 0.1)","queuedBorder":"rgba(157, 91, 232, 0.35)"};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @typedef {{ default: string, hover: string, tint: string, tintBorder: string }} Link
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @type {Link}
|
|
58
|
+
*/
|
|
59
|
+
export const link = {"default":"#1055e2","hover":"#1055e2","tint":"rgba(62, 123, 246, 0.1)","tintBorder":"rgba(62, 123, 246, 0.3)"};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef {{ border: string, borderSelected: string, glyph: string, checkedBg: string, checkedFg: string }} Control
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @type {Control}
|
|
67
|
+
*/
|
|
68
|
+
export const control = {"border":"rgba(35, 35, 66, 0.5)","borderSelected":"#1055e2","glyph":"#1055e2","checkedBg":"#1055e2","checkedFg":"#ffffff"};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef {{ track: string, fill: string, label: string }} Progress
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @type {Progress}
|
|
76
|
+
*/
|
|
77
|
+
export const progress = {"track":"rgba(62, 123, 246, 0.1)","fill":"#1055e2","label":"#1055e2"};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @typedef {{ panel: string, stroke: string, strokeMuted: string, inset: string, accent: string, positive: string }} Illustration
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @type {Illustration}
|
|
85
|
+
*/
|
|
86
|
+
export const illustration = {"panel":"#fbfaf6","stroke":"rgba(35, 35, 66, 0.5)","strokeMuted":"#62627a","inset":"#edebe2","accent":"#3e5be8","positive":"#1d5937"};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @typedef {{ categorical: object, boundary: object, na: string, grid: string }} Dataviz
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @type {Dataviz}
|
|
94
|
+
*/
|
|
95
|
+
export const dataviz = {"categorical":{"coral":"#ff6f61","orange":"#ff8f52","tangerine":"#ffa83d","gold":"#ffd34d","green":"#30f284","periwinkle":"#3e5be8","teal":"#25d0c0","lilac":"#b39deb","magenta":"#e6399b","lime":"#c7e84b"},"boundary":{"coral":"#a63325","orange":"#a34e14","tangerine":"#935b00","gold":"#806a00","green":"#1d5937","na":"#82806f","periwinkle":"#16306b","teal":"#0e4a45","lilac":"#3f1340","magenta":"#7a1e52","lime":"#4f5a12"},"na":"#dedbd0","grid":"rgba(35, 35, 66, 0.12)"};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef {{ successText: string, successBg: string, successBorder: string, warningText: string, warningBg: string, warningBorder: string, errorText: string, errorBg: string, errorBorder: string, infoText: string, infoBg: string, infoBorder: string }} Toast
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @type {Toast}
|
|
103
|
+
*/
|
|
104
|
+
export const toast = {"successText":"#1d5937","successBg":"#eaf6ec","successBorder":"#bfe2c8","warningText":"#8f6c0c","warningBg":"#faf4e1","warningBorder":"#e6d9a8","errorText":"#c9291c","errorBg":"#fbefed","errorBorder":"#f0b4ac","infoText":"#1055e2","infoBg":"#eef3fc","infoBorder":"#c7d7f6"};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef {{ canvasChrome: string, canvasContent: string, field: string, sunken: string, sunken2: string, rowHover: string, scrim: string, tooltip: string, cardFrosted: string }} Surface
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @type {Surface}
|
|
112
|
+
*/
|
|
113
|
+
export const surface = {"canvasChrome":"#f2f0ea","canvasContent":"#fbfaf6","field":"#fbfaf6","sunken":"#edebe2","sunken2":"#e4e1d6","rowHover":"#f4f2eb","scrim":"rgba(35, 35, 66, 0.14)","tooltip":"#2d2d36","cardFrosted":"rgba(251, 250, 246, 0.78)"};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @typedef {{ primary: string, muted: string, link: string, tabActive: string, onPrimary: string, codePrimary: string, codeSecondary: string, inputPlaceholder: string }} Text
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @type {Text}
|
|
121
|
+
*/
|
|
122
|
+
export const text = {"primary":"#232342","muted":"#4d4d60","link":"#0046b5","tabActive":"#16306b","onPrimary":"#fbfaf6","codePrimary":"#1b2230","codeSecondary":"#62627a","inputPlaceholder":"#62627a"};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @typedef {{ primaryBg: string, primaryFg: string, primaryBgHover: string, destructiveBg: string, destructiveBgHover: string }} Button
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @type {Button}
|
|
130
|
+
*/
|
|
131
|
+
export const button = {"primaryBg":"#232342","primaryFg":"#fbfaf6","primaryBgHover":"#2c2c50","destructiveBg":"#c9291c","destructiveBgHover":"#a63325"};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @typedef {{ periwinkle: string, teal: string, lilac: string, coral: string, green: string, yellow: string, orange1: string, orange2: string, orange3: string, red1: string, red2: string, red3: string }} Data
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @type {Data}
|
|
139
|
+
*/
|
|
140
|
+
export const data = {"periwinkle":"#3e5be8","teal":"#25d0c0","lilac":"#b39deb","coral":"#ff6f61","green":"#30f284","yellow":"#ffd34d","orange1":"#ffa83d","orange2":"#ff8f52","orange3":"#ff6f61","red1":"#fa826f","red2":"#c9291c","red3":"#a63325"};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @typedef {{ background: string, wave: string }} Skeleton
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @type {Skeleton}
|
|
148
|
+
*/
|
|
149
|
+
export const skeleton = {"background":"#e4e1d6","wave":"rgba(255, 255, 255, 0.5)"};
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @typedef {{ default: string, deep: string, tint: string, border: string, primaryFg: string, glow: string, glowSecondary: string }} Accent
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @type {Accent}
|
|
157
|
+
*/
|
|
158
|
+
export const accent = {"default":"#1055e2","deep":"#16306b","tint":"rgba(62, 123, 246, 0.1)","border":"rgba(62, 123, 246, 0.3)","primaryFg":"#ffffff","glow":"rgba(157, 91, 232, 0.13)","glowSecondary":"rgba(230, 57, 155, 0.16)"};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @typedef {{ violetBorder: string, magentaTint: string, magentaText: string, magentaBorder: string, tealTint: string, tealText: string, tealBorder: string, violetTint: string, violetText: string }} Role
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @type {Role}
|
|
166
|
+
*/
|
|
167
|
+
export const role = {"violetBorder":"rgba(157, 91, 232, 0.35)","magentaTint":"rgba(230, 57, 155, 0.14)","magentaText":"#e6399b","magentaBorder":"rgba(230, 57, 155, 0.4)","tealTint":"rgba(14, 74, 69, 0.16)","tealText":"#0e4a45","tealBorder":"rgba(14, 74, 69, 0.42)","violetTint":"rgba(157, 91, 232, 0.1)","violetText":"#9d5be8"};
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @typedef {{ userDefaultBg: string, userDefaultText: string, initials: object }} Avatar
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @type {Avatar}
|
|
175
|
+
*/
|
|
176
|
+
export const avatar = {"userDefaultBg":"#232342","userDefaultText":"#fbfaf6","initials":{"text1":"#9d5be8","text2":"#1d5937","text3":"#935b00","text4":"#e6399b","text5":"#7a1e52","text6":"#0e4a45","text7":"#1055e2","border1":"rgba(157, 91, 232, 0.35)","border2":"rgba(48, 242, 132, 0.35)","border3":"rgba(255, 168, 61, 0.35)","border4":"rgba(230, 57, 155, 0.4)","border5":"rgba(157, 91, 232, 0.35)","border6":"rgba(14, 74, 69, 0.42)","border7":"rgba(62, 123, 246, 0.35)","background1":"rgba(157, 91, 232, 0.1)","background2":"rgba(48, 242, 132, 0.1)","background3":"rgba(255, 168, 61, 0.1)","background4":"rgba(230, 57, 155, 0.14)","background5":"rgba(157, 91, 232, 0.1)","background6":"rgba(14, 74, 69, 0.16)","background7":"rgba(62, 123, 246, 0.1)"}};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @typedef {{ radio: string, checkbox: string, hoverBackground: string, background: string, disabledBackground: string }} Input
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @type {Input}
|
|
184
|
+
*/
|
|
185
|
+
export const input = {"radio":"#0046b5","checkbox":"#0046b5","hoverBackground":"#f2f0ea","background":"#fbfaf6","disabledBackground":"#f9fafb"};
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @typedef {{ primary: object, secondary: object, tertiary: object, destructive: string, navigation: object }} Buttons
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @type {Buttons}
|
|
193
|
+
*/
|
|
194
|
+
export const buttons = {"primary":{"hover":"#2c2c50","disabled":"#f3f4f6","pressed":"#2c2c50","default":"#232342"},"secondary":{"defaultBorder":"rgba(35, 35, 66, 0.5)","hoverBackground":"#edebe2","pressedBackground":"#e4e1d6","disabledBackground":"#f4f2eb","defaultBackground":"#fbfaf6","default":"#232342"},"tertiary":{"default":"#232342","hover":"#232342","pressed":"#232342","disabled":"#6b7280"},"destructive":"#c9291c","navigation":{"active":"rgba(62, 123, 246, 0.1)","defaultBorder":"rgba(62, 123, 246, 0.3)","hoverBackground":"rgba(62, 123, 246, 0.1)","pressedBackground":"rgba(62, 123, 246, 0.1)","activeBorder":"#1055e2"}};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @typedef {{ recipeRun: string, commitJob: string, visualization: string }} Activity
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @type {Activity}
|
|
202
|
+
*/
|
|
203
|
+
export const activity = {"recipeRun":"#9d5be8","commitJob":"#1055e2","visualization":"#27aa88"};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @typedef {{ secondaryBackground: string }} Tab
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @type {Tab}
|
|
211
|
+
*/
|
|
212
|
+
export const tab = {"secondaryBackground":"#e5e7eb"};
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @typedef {{ background: string }} Code
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @type {Code}
|
|
220
|
+
*/
|
|
221
|
+
export const code = {"background":"#edebe2"};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @type {string}
|
|
225
|
+
*/
|
|
226
|
+
export const brand = "#1055e2";
|
|
227
|
+
|
|
228
|
+
// Default export with all color groups
|
|
229
|
+
export default {
|
|
230
|
+
icons,
|
|
231
|
+
surfaces,
|
|
232
|
+
typography,
|
|
233
|
+
border,
|
|
234
|
+
status,
|
|
235
|
+
link,
|
|
236
|
+
control,
|
|
237
|
+
progress,
|
|
238
|
+
illustration,
|
|
239
|
+
dataviz,
|
|
240
|
+
toast,
|
|
241
|
+
surface,
|
|
242
|
+
text,
|
|
243
|
+
button,
|
|
244
|
+
data,
|
|
245
|
+
skeleton,
|
|
246
|
+
accent,
|
|
247
|
+
role,
|
|
248
|
+
avatar,
|
|
249
|
+
input,
|
|
250
|
+
buttons,
|
|
251
|
+
activity,
|
|
252
|
+
tab,
|
|
253
|
+
code,
|
|
254
|
+
brand,
|
|
255
|
+
};
|