@acmekit/ui-preset 2.13.1
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/.env.template +2 -0
- package/.turbo/turbo-build.log +16 -0
- package/CHANGELOG.md +3 -0
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +932 -0
- package/dist/index.mjs +981 -0
- package/package.json +39 -0
- package/src/constants.ts +32 -0
- package/src/index.ts +3 -0
- package/src/plugin.ts +69 -0
- package/src/preset.ts +10 -0
- package/src/theme/extension/theme.ts +341 -0
- package/src/theme/tokens/colors.ts +186 -0
- package/src/theme/tokens/components.ts +4 -0
- package/src/theme/tokens/effects.ts +52 -0
- package/src/theme/tokens/typography.ts +212 -0
- package/tsconfig.json +20 -0
- package/tsup.config.ts +10 -0
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acmekit/ui-preset",
|
|
3
|
+
"version": "2.13.1",
|
|
4
|
+
"description": "AcmeKit UI preset",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/acmekit/acmekit.git",
|
|
9
|
+
"directory": "packages/design-system/ui-preset"
|
|
10
|
+
},
|
|
11
|
+
"author": "Kasper Kristensen <kasper@acmekit.com>",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "yarn run -T tsup",
|
|
23
|
+
"generate": "toolbox tokens -o './src/theme'"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@tailwindcss/forms": "^0.5.3",
|
|
27
|
+
"tailwindcss-animate": "^1.0.6"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"tailwindcss": "^3.4.3"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@acmekit/toolbox": "2.13.1",
|
|
34
|
+
"tailwindcss": "^3.4.3"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const tailwindFontFamily = {
|
|
2
|
+
sans: [
|
|
3
|
+
"ui-sans-serif",
|
|
4
|
+
"system-ui",
|
|
5
|
+
"sans-serif",
|
|
6
|
+
'"Apple Color Emoji"',
|
|
7
|
+
'"Segoe UI Emoji"',
|
|
8
|
+
'"Segoe UI Symbol"',
|
|
9
|
+
'"Noto Color Emoji"',
|
|
10
|
+
],
|
|
11
|
+
serif: [
|
|
12
|
+
"ui-serif",
|
|
13
|
+
"Georgia",
|
|
14
|
+
"Cambria",
|
|
15
|
+
'"Times New Roman"',
|
|
16
|
+
"Times",
|
|
17
|
+
"serif",
|
|
18
|
+
],
|
|
19
|
+
mono: [
|
|
20
|
+
"ui-monospace",
|
|
21
|
+
"SFMono-Regular",
|
|
22
|
+
"Menlo",
|
|
23
|
+
"Monaco",
|
|
24
|
+
"Consolas",
|
|
25
|
+
'"Liberation Mono"',
|
|
26
|
+
'"Courier New"',
|
|
27
|
+
"monospace",
|
|
28
|
+
],
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const FONT_FAMILY_SANS = ["Inter", ...tailwindFontFamily.sans]
|
|
32
|
+
export const FONT_FAMILY_MONO = ["Roboto Mono", ...tailwindFontFamily.mono]
|
package/src/index.ts
ADDED
package/src/plugin.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import plugin from "tailwindcss/plugin"
|
|
2
|
+
import { FONT_FAMILY_MONO, FONT_FAMILY_SANS } from "./constants"
|
|
3
|
+
import { theme } from "./theme/extension/theme"
|
|
4
|
+
import { colors } from "./theme/tokens/colors"
|
|
5
|
+
import { components } from "./theme/tokens/components"
|
|
6
|
+
import { effects } from "./theme/tokens/effects"
|
|
7
|
+
import { typography } from "./theme/tokens/typography"
|
|
8
|
+
|
|
9
|
+
export default plugin(
|
|
10
|
+
function acmekitUi({ addBase, addComponents, config }) {
|
|
11
|
+
const [darkMode, className = ".dark"] = ([] as string[]).concat(
|
|
12
|
+
config("darkMode", "media")
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
addBase({
|
|
16
|
+
"*": {
|
|
17
|
+
borderColor: "var(--border-base)",
|
|
18
|
+
},
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
addComponents(typography)
|
|
22
|
+
|
|
23
|
+
addBase({
|
|
24
|
+
":root": { ...colors.light, ...effects.light },
|
|
25
|
+
...components.light,
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
if (darkMode === "class") {
|
|
29
|
+
addBase({
|
|
30
|
+
[className]: { ...colors.dark, ...effects.dark },
|
|
31
|
+
})
|
|
32
|
+
} else {
|
|
33
|
+
addBase({
|
|
34
|
+
"@media (prefers-color-scheme: dark)": {
|
|
35
|
+
":root": { ...colors.dark, ...effects.dark },
|
|
36
|
+
...components.dark,
|
|
37
|
+
},
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
theme: {
|
|
43
|
+
extend: {
|
|
44
|
+
...theme.extend,
|
|
45
|
+
fontFamily: {
|
|
46
|
+
sans: FONT_FAMILY_SANS,
|
|
47
|
+
mono: FONT_FAMILY_MONO,
|
|
48
|
+
},
|
|
49
|
+
transitionProperty: {
|
|
50
|
+
fg: "color, background-color, border-color, box-shadow, opacity",
|
|
51
|
+
},
|
|
52
|
+
keyframes: {
|
|
53
|
+
"accordion-down": {
|
|
54
|
+
from: { height: "0px" },
|
|
55
|
+
to: { height: "var(--radix-accordion-content-height)" },
|
|
56
|
+
},
|
|
57
|
+
"accordion-up": {
|
|
58
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
59
|
+
to: { height: "0px" },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
animation: {
|
|
63
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
64
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
)
|
package/src/preset.ts
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
export const theme = {
|
|
2
|
+
"extend": {
|
|
3
|
+
"colors": {
|
|
4
|
+
"ui": {
|
|
5
|
+
"tag": {
|
|
6
|
+
"neutral": {
|
|
7
|
+
"border": {
|
|
8
|
+
"DEFAULT": "var(--tag-neutral-border)"
|
|
9
|
+
},
|
|
10
|
+
"icon": {
|
|
11
|
+
"DEFAULT": "var(--tag-neutral-icon)"
|
|
12
|
+
},
|
|
13
|
+
"text": {
|
|
14
|
+
"DEFAULT": "var(--tag-neutral-text)"
|
|
15
|
+
},
|
|
16
|
+
"bg": {
|
|
17
|
+
"hover": {
|
|
18
|
+
"DEFAULT": "var(--tag-neutral-bg-hover)"
|
|
19
|
+
},
|
|
20
|
+
"DEFAULT": "var(--tag-neutral-bg)"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"red": {
|
|
24
|
+
"text": {
|
|
25
|
+
"DEFAULT": "var(--tag-red-text)"
|
|
26
|
+
},
|
|
27
|
+
"bg": {
|
|
28
|
+
"DEFAULT": "var(--tag-red-bg)",
|
|
29
|
+
"hover": {
|
|
30
|
+
"DEFAULT": "var(--tag-red-bg-hover)"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"border": {
|
|
34
|
+
"DEFAULT": "var(--tag-red-border)"
|
|
35
|
+
},
|
|
36
|
+
"icon": {
|
|
37
|
+
"DEFAULT": "var(--tag-red-icon)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"blue": {
|
|
41
|
+
"text": {
|
|
42
|
+
"DEFAULT": "var(--tag-blue-text)"
|
|
43
|
+
},
|
|
44
|
+
"border": {
|
|
45
|
+
"DEFAULT": "var(--tag-blue-border)"
|
|
46
|
+
},
|
|
47
|
+
"bg": {
|
|
48
|
+
"DEFAULT": "var(--tag-blue-bg)",
|
|
49
|
+
"hover": {
|
|
50
|
+
"DEFAULT": "var(--tag-blue-bg-hover)"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"icon": {
|
|
54
|
+
"DEFAULT": "var(--tag-blue-icon)"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"orange": {
|
|
58
|
+
"text": {
|
|
59
|
+
"DEFAULT": "var(--tag-orange-text)"
|
|
60
|
+
},
|
|
61
|
+
"border": {
|
|
62
|
+
"DEFAULT": "var(--tag-orange-border)"
|
|
63
|
+
},
|
|
64
|
+
"icon": {
|
|
65
|
+
"DEFAULT": "var(--tag-orange-icon)"
|
|
66
|
+
},
|
|
67
|
+
"bg": {
|
|
68
|
+
"hover": {
|
|
69
|
+
"DEFAULT": "var(--tag-orange-bg-hover)"
|
|
70
|
+
},
|
|
71
|
+
"DEFAULT": "var(--tag-orange-bg)"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"green": {
|
|
75
|
+
"icon": {
|
|
76
|
+
"DEFAULT": "var(--tag-green-icon)"
|
|
77
|
+
},
|
|
78
|
+
"border": {
|
|
79
|
+
"DEFAULT": "var(--tag-green-border)"
|
|
80
|
+
},
|
|
81
|
+
"text": {
|
|
82
|
+
"DEFAULT": "var(--tag-green-text)"
|
|
83
|
+
},
|
|
84
|
+
"bg": {
|
|
85
|
+
"hover": {
|
|
86
|
+
"DEFAULT": "var(--tag-green-bg-hover)"
|
|
87
|
+
},
|
|
88
|
+
"DEFAULT": "var(--tag-green-bg)"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"purple": {
|
|
92
|
+
"bg": {
|
|
93
|
+
"DEFAULT": "var(--tag-purple-bg)",
|
|
94
|
+
"hover": {
|
|
95
|
+
"DEFAULT": "var(--tag-purple-bg-hover)"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"text": {
|
|
99
|
+
"DEFAULT": "var(--tag-purple-text)"
|
|
100
|
+
},
|
|
101
|
+
"icon": {
|
|
102
|
+
"DEFAULT": "var(--tag-purple-icon)"
|
|
103
|
+
},
|
|
104
|
+
"border": {
|
|
105
|
+
"DEFAULT": "var(--tag-purple-border)"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"bg": {
|
|
110
|
+
"switch": {
|
|
111
|
+
"off": {
|
|
112
|
+
"hover": {
|
|
113
|
+
"DEFAULT": "var(--bg-switch-off-hover)"
|
|
114
|
+
},
|
|
115
|
+
"DEFAULT": "var(--bg-switch-off)"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"subtle": {
|
|
119
|
+
"hover": {
|
|
120
|
+
"DEFAULT": "var(--bg-subtle-hover)"
|
|
121
|
+
},
|
|
122
|
+
"DEFAULT": "var(--bg-subtle)",
|
|
123
|
+
"pressed": {
|
|
124
|
+
"DEFAULT": "var(--bg-subtle-pressed)"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"field": {
|
|
128
|
+
"component": {
|
|
129
|
+
"hover": {
|
|
130
|
+
"DEFAULT": "var(--bg-field-component-hover)"
|
|
131
|
+
},
|
|
132
|
+
"DEFAULT": "var(--bg-field-component)"
|
|
133
|
+
},
|
|
134
|
+
"DEFAULT": "var(--bg-field)",
|
|
135
|
+
"hover": {
|
|
136
|
+
"DEFAULT": "var(--bg-field-hover)"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"base": {
|
|
140
|
+
"pressed": {
|
|
141
|
+
"DEFAULT": "var(--bg-base-pressed)"
|
|
142
|
+
},
|
|
143
|
+
"hover": {
|
|
144
|
+
"DEFAULT": "var(--bg-base-hover)"
|
|
145
|
+
},
|
|
146
|
+
"DEFAULT": "var(--bg-base)"
|
|
147
|
+
},
|
|
148
|
+
"highlight": {
|
|
149
|
+
"DEFAULT": "var(--bg-highlight)",
|
|
150
|
+
"hover": {
|
|
151
|
+
"DEFAULT": "var(--bg-highlight-hover)"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"component": {
|
|
155
|
+
"pressed": {
|
|
156
|
+
"DEFAULT": "var(--bg-component-pressed)"
|
|
157
|
+
},
|
|
158
|
+
"DEFAULT": "var(--bg-component)",
|
|
159
|
+
"hover": {
|
|
160
|
+
"DEFAULT": "var(--bg-component-hover)"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"interactive": {
|
|
164
|
+
"DEFAULT": "var(--bg-interactive)"
|
|
165
|
+
},
|
|
166
|
+
"disabled": {
|
|
167
|
+
"DEFAULT": "var(--bg-disabled)"
|
|
168
|
+
},
|
|
169
|
+
"overlay": {
|
|
170
|
+
"DEFAULT": "var(--bg-overlay)"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"border": {
|
|
174
|
+
"menu": {
|
|
175
|
+
"bot": {
|
|
176
|
+
"DEFAULT": "var(--border-menu-bot)"
|
|
177
|
+
},
|
|
178
|
+
"top": {
|
|
179
|
+
"DEFAULT": "var(--border-menu-top)"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"strong": {
|
|
183
|
+
"DEFAULT": "var(--border-strong)"
|
|
184
|
+
},
|
|
185
|
+
"interactive": {
|
|
186
|
+
"DEFAULT": "var(--border-interactive)"
|
|
187
|
+
},
|
|
188
|
+
"base": {
|
|
189
|
+
"DEFAULT": "var(--border-base)"
|
|
190
|
+
},
|
|
191
|
+
"danger": {
|
|
192
|
+
"DEFAULT": "var(--border-danger)"
|
|
193
|
+
},
|
|
194
|
+
"error": {
|
|
195
|
+
"DEFAULT": "var(--border-error)"
|
|
196
|
+
},
|
|
197
|
+
"transparent": {
|
|
198
|
+
"DEFAULT": "var(--border-transparent)"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"contrast": {
|
|
202
|
+
"fg": {
|
|
203
|
+
"primary": {
|
|
204
|
+
"DEFAULT": "var(--contrast-fg-primary)"
|
|
205
|
+
},
|
|
206
|
+
"secondary": {
|
|
207
|
+
"DEFAULT": "var(--contrast-fg-secondary)"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"bg": {
|
|
211
|
+
"base": {
|
|
212
|
+
"pressed": {
|
|
213
|
+
"DEFAULT": "var(--contrast-bg-base-pressed)"
|
|
214
|
+
},
|
|
215
|
+
"DEFAULT": "var(--contrast-bg-base)",
|
|
216
|
+
"hover": {
|
|
217
|
+
"DEFAULT": "var(--contrast-bg-base-hover)"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"subtle": {
|
|
221
|
+
"DEFAULT": "var(--contrast-bg-subtle)"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"border": {
|
|
225
|
+
"base": {
|
|
226
|
+
"DEFAULT": "var(--contrast-border-base)"
|
|
227
|
+
},
|
|
228
|
+
"bot": {
|
|
229
|
+
"DEFAULT": "var(--contrast-border-bot)"
|
|
230
|
+
},
|
|
231
|
+
"top": {
|
|
232
|
+
"DEFAULT": "var(--contrast-border-top)"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"button": {
|
|
237
|
+
"inverted": {
|
|
238
|
+
"pressed": {
|
|
239
|
+
"DEFAULT": "var(--button-inverted-pressed)"
|
|
240
|
+
},
|
|
241
|
+
"hover": {
|
|
242
|
+
"DEFAULT": "var(--button-inverted-hover)"
|
|
243
|
+
},
|
|
244
|
+
"DEFAULT": "var(--button-inverted)"
|
|
245
|
+
},
|
|
246
|
+
"transparent": {
|
|
247
|
+
"DEFAULT": "var(--button-transparent)",
|
|
248
|
+
"hover": {
|
|
249
|
+
"DEFAULT": "var(--button-transparent-hover)"
|
|
250
|
+
},
|
|
251
|
+
"pressed": {
|
|
252
|
+
"DEFAULT": "var(--button-transparent-pressed)"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"danger": {
|
|
256
|
+
"pressed": {
|
|
257
|
+
"DEFAULT": "var(--button-danger-pressed)"
|
|
258
|
+
},
|
|
259
|
+
"DEFAULT": "var(--button-danger)",
|
|
260
|
+
"hover": {
|
|
261
|
+
"DEFAULT": "var(--button-danger-hover)"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"neutral": {
|
|
265
|
+
"DEFAULT": "var(--button-neutral)",
|
|
266
|
+
"hover": {
|
|
267
|
+
"DEFAULT": "var(--button-neutral-hover)"
|
|
268
|
+
},
|
|
269
|
+
"pressed": {
|
|
270
|
+
"DEFAULT": "var(--button-neutral-pressed)"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"fg": {
|
|
275
|
+
"on": {
|
|
276
|
+
"color": {
|
|
277
|
+
"DEFAULT": "var(--fg-on-color)"
|
|
278
|
+
},
|
|
279
|
+
"inverted": {
|
|
280
|
+
"DEFAULT": "var(--fg-on-inverted)"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"interactive": {
|
|
284
|
+
"hover": {
|
|
285
|
+
"DEFAULT": "var(--fg-interactive-hover)"
|
|
286
|
+
},
|
|
287
|
+
"DEFAULT": "var(--fg-interactive)"
|
|
288
|
+
},
|
|
289
|
+
"error": {
|
|
290
|
+
"DEFAULT": "var(--fg-error)"
|
|
291
|
+
},
|
|
292
|
+
"subtle": {
|
|
293
|
+
"DEFAULT": "var(--fg-subtle)"
|
|
294
|
+
},
|
|
295
|
+
"base": {
|
|
296
|
+
"DEFAULT": "var(--fg-base)"
|
|
297
|
+
},
|
|
298
|
+
"disabled": {
|
|
299
|
+
"DEFAULT": "var(--fg-disabled)"
|
|
300
|
+
},
|
|
301
|
+
"muted": {
|
|
302
|
+
"DEFAULT": "var(--fg-muted)"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"alpha": {
|
|
306
|
+
"250": {
|
|
307
|
+
"DEFAULT": "var(--alpha-250)"
|
|
308
|
+
},
|
|
309
|
+
"400": {
|
|
310
|
+
"DEFAULT": "var(--alpha-400)"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"boxShadow": {
|
|
316
|
+
"buttons-danger-focus": "var(--buttons-danger-focus)",
|
|
317
|
+
"details-contrast-on-bg-interactive": "var(--details-contrast-on-bg-interactive)",
|
|
318
|
+
"borders-error": "var(--borders-error)",
|
|
319
|
+
"borders-focus": "var(--borders-focus)",
|
|
320
|
+
"buttons-danger": "var(--buttons-danger)",
|
|
321
|
+
"buttons-inverted-focus": "var(--buttons-inverted-focus)",
|
|
322
|
+
"elevation-card-hover": "var(--elevation-card-hover)",
|
|
323
|
+
"details-switch-handle": "var(--details-switch-handle)",
|
|
324
|
+
"buttons-neutral": "var(--buttons-neutral)",
|
|
325
|
+
"borders-base": "var(--borders-base)",
|
|
326
|
+
"elevation-card-rest": "var(--elevation-card-rest)",
|
|
327
|
+
"buttons-neutral-focus": "var(--buttons-neutral-focus)",
|
|
328
|
+
"details-switch-background-focus": "var(--details-switch-background-focus)",
|
|
329
|
+
"details-switch-background": "var(--details-switch-background)",
|
|
330
|
+
"elevation-flyout": "var(--elevation-flyout)",
|
|
331
|
+
"elevation-tooltip": "var(--elevation-tooltip)",
|
|
332
|
+
"elevation-modal": "var(--elevation-modal)",
|
|
333
|
+
"elevation-code-block": "var(--elevation-code-block)",
|
|
334
|
+
"buttons-inverted": "var(--buttons-inverted)",
|
|
335
|
+
"elevation-commandbar": "var(--elevation-commandbar)",
|
|
336
|
+
"borders-interactive-with-focus": "var(--borders-interactive-with-focus)",
|
|
337
|
+
"borders-interactive-with-shadow": "var(--borders-interactive-with-shadow)",
|
|
338
|
+
"borders-interactive-with-active": "var(--borders-interactive-with-active)"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
export const colors = {
|
|
2
|
+
"dark": {
|
|
3
|
+
"--button-danger-pressed": "rgba(225, 29, 72, 1)",
|
|
4
|
+
"--bg-base-pressed": "rgba(63, 63, 70, 1)",
|
|
5
|
+
"--bg-component-hover": "rgba(255, 255, 255, 0.1)",
|
|
6
|
+
"--border-interactive": "rgba(96, 165, 250, 1)",
|
|
7
|
+
"--button-neutral": "rgba(255, 255, 255, 0.04)",
|
|
8
|
+
"--tag-orange-border": "rgba(124, 45, 18, 1)",
|
|
9
|
+
"--tag-blue-text": "rgba(147, 197, 253, 1)",
|
|
10
|
+
"--bg-highlight": "rgba(23, 37, 84, 1)",
|
|
11
|
+
"--tag-neutral-icon": "rgba(113, 113, 122, 1)",
|
|
12
|
+
"--bg-switch-off-hover": "rgba(82, 82, 91, 1)",
|
|
13
|
+
"--fg-on-color": "rgba(255, 255, 255, 1)",
|
|
14
|
+
"--button-inverted-pressed": "rgba(161, 161, 170, 1)",
|
|
15
|
+
"--fg-interactive-hover": "rgba(147, 197, 253, 1)",
|
|
16
|
+
"--fg-error": "rgba(251, 113, 133, 1)",
|
|
17
|
+
"--bg-switch-off": "rgba(63, 63, 70, 1)",
|
|
18
|
+
"--border-strong": "rgba(255, 255, 255, 0.16)",
|
|
19
|
+
"--border-error": "rgba(251, 113, 133, 1)",
|
|
20
|
+
"--fg-subtle": "rgba(161, 161, 170, 1)",
|
|
21
|
+
"--bg-highlight-hover": "rgba(30, 58, 138, 1)",
|
|
22
|
+
"--button-inverted": "rgba(82, 82, 91, 1)",
|
|
23
|
+
"--tag-orange-text": "rgba(253, 186, 116, 1)",
|
|
24
|
+
"--fg-base": "rgba(244, 244, 245, 1)",
|
|
25
|
+
"--fg-disabled": "rgba(82, 82, 91, 1)",
|
|
26
|
+
"--button-danger": "rgba(159, 18, 57, 1)",
|
|
27
|
+
"--tag-neutral-border": "rgba(255, 255, 255, 0.06)",
|
|
28
|
+
"--tag-blue-border": "rgba(30, 58, 138, 1)",
|
|
29
|
+
"--tag-neutral-text": "rgba(212, 212, 216, 1)",
|
|
30
|
+
"--tag-purple-border": "rgba(91, 33, 182, 1)",
|
|
31
|
+
"--tag-green-text": "rgba(52, 211, 153, 1)",
|
|
32
|
+
"--button-inverted-hover": "rgba(113, 113, 122, 1)",
|
|
33
|
+
"--bg-component-pressed": "rgba(255, 255, 255, 0.16)",
|
|
34
|
+
"--contrast-border-bot": "rgba(255, 255, 255, 0.08)",
|
|
35
|
+
"--tag-blue-icon": "rgba(96, 165, 250, 1)",
|
|
36
|
+
"--bg-field": "rgba(255, 255, 255, 0.04)",
|
|
37
|
+
"--tag-neutral-bg": "rgba(255, 255, 255, 0.08)",
|
|
38
|
+
"--tag-green-border": "rgba(6, 78, 59, 1)",
|
|
39
|
+
"--tag-red-icon": "rgba(251, 113, 133, 1)",
|
|
40
|
+
"--tag-red-text": "rgba(253, 164, 175, 1)",
|
|
41
|
+
"--tag-purple-icon": "rgba(167, 139, 250, 1)",
|
|
42
|
+
"--bg-interactive": "rgba(96, 165, 250, 1)",
|
|
43
|
+
"--bg-field-hover": "rgba(255, 255, 255, 0.08)",
|
|
44
|
+
"--border-transparent": "rgba(255, 255, 255, 0)",
|
|
45
|
+
"--tag-orange-icon": "rgba(251, 146, 60, 1)",
|
|
46
|
+
"--tag-purple-bg": "rgba(46, 16, 101, 1)",
|
|
47
|
+
"--bg-base-hover": "rgba(39, 39, 42, 1)",
|
|
48
|
+
"--tag-blue-bg": "rgba(23, 37, 84, 1)",
|
|
49
|
+
"--tag-green-bg": "rgba(2, 44, 34, 1)",
|
|
50
|
+
"--tag-purple-text": "rgba(196, 181, 253, 1)",
|
|
51
|
+
"--tag-red-border": "rgba(136, 19, 55, 1)",
|
|
52
|
+
"--border-danger": "rgba(190, 18, 60, 1)",
|
|
53
|
+
"--tag-green-icon": "rgba(16, 185, 129, 1)",
|
|
54
|
+
"--tag-red-bg": "rgba(76, 5, 25, 1)",
|
|
55
|
+
"--fg-interactive": "rgba(96, 165, 250, 1)",
|
|
56
|
+
"--tag-orange-bg": "rgba(67, 20, 7, 1)",
|
|
57
|
+
"--button-danger-hover": "rgba(190, 18, 60, 1)",
|
|
58
|
+
"--bg-component": "rgba(39, 39, 42, 1)",
|
|
59
|
+
"--bg-disabled": "rgba(39, 39, 42, 1)",
|
|
60
|
+
"--button-transparent": "rgba(255, 255, 255, 0)",
|
|
61
|
+
"--border-menu-bot": "rgba(255, 255, 255, 0.08)",
|
|
62
|
+
"--tag-purple-bg-hover": "rgba(91, 33, 182, 1)",
|
|
63
|
+
"--tag-orange-bg-hover": "rgba(124, 45, 18, 1)",
|
|
64
|
+
"--tag-blue-bg-hover": "rgba(30, 58, 138, 1)",
|
|
65
|
+
"--tag-red-bg-hover": "rgba(136, 19, 55, 1)",
|
|
66
|
+
"--tag-green-bg-hover": "rgba(6, 78, 59, 1)",
|
|
67
|
+
"--border-menu-top": "rgba(33, 33, 36, 1)",
|
|
68
|
+
"--bg-base": "rgba(33, 33, 36, 1)",
|
|
69
|
+
"--contrast-border-top": "rgba(33, 33, 36, 1)",
|
|
70
|
+
"--bg-field-component": "rgba(33, 33, 36, 1)",
|
|
71
|
+
"--bg-subtle-hover": "rgba(33, 33, 36, 1)",
|
|
72
|
+
"--bg-subtle": "rgba(24, 24, 27, 1)",
|
|
73
|
+
"--fg-on-inverted": "rgba(24, 24, 27, 1)",
|
|
74
|
+
"--bg-overlay": "rgba(24, 24, 27, 0.72)",
|
|
75
|
+
"--button-transparent-hover": "rgba(255, 255, 255, 0.08)",
|
|
76
|
+
"--contrast-fg-secondary": "rgba(255, 255, 255, 0.56)",
|
|
77
|
+
"--contrast-border-base": "rgba(255, 255, 255, 0.16)",
|
|
78
|
+
"--contrast-bg-base-pressed": "rgba(82, 82, 91, 1)",
|
|
79
|
+
"--button-neutral-pressed": "rgba(255, 255, 255, 0.12)",
|
|
80
|
+
"--border-base": "rgba(255, 255, 255, 0.08)",
|
|
81
|
+
"--contrast-fg-primary": "rgba(255, 255, 255, 0.88)",
|
|
82
|
+
"--button-neutral-hover": "rgba(255, 255, 255, 0.08)",
|
|
83
|
+
"--contrast-bg-base": "rgba(39, 39, 42, 1)",
|
|
84
|
+
"--tag-neutral-bg-hover": "rgba(255, 255, 255, 0.12)",
|
|
85
|
+
"--contrast-bg-subtle": "rgba(255, 255, 255, 0.04)",
|
|
86
|
+
"--contrast-bg-base-hover": "rgba(63, 63, 70, 1)",
|
|
87
|
+
"--bg-field-component-hover": "rgba(39, 39, 42, 1)",
|
|
88
|
+
"--bg-subtle-pressed": "rgba(39, 39, 42, 1)",
|
|
89
|
+
"--button-transparent-pressed": "rgba(255, 255, 255, 0.12)",
|
|
90
|
+
"--fg-muted": "rgba(113, 113, 122, 1)",
|
|
91
|
+
"--alpha-400": "rgba(255, 255, 255, 0.24)",
|
|
92
|
+
"--alpha-250": "rgba(255, 255, 255, 0.1)"
|
|
93
|
+
},
|
|
94
|
+
"light": {
|
|
95
|
+
"--tag-neutral-border": "rgba(228, 228, 231, 1)",
|
|
96
|
+
"--tag-neutral-icon": "rgba(161, 161, 170, 1)",
|
|
97
|
+
"--bg-switch-off-hover": "rgba(212, 212, 216, 1)",
|
|
98
|
+
"--border-menu-bot": "rgba(255, 255, 255, 1)",
|
|
99
|
+
"--border-menu-top": "rgba(228, 228, 231, 1)",
|
|
100
|
+
"--bg-subtle-hover": "rgba(244, 244, 245, 1)",
|
|
101
|
+
"--contrast-fg-primary": "rgba(255, 255, 255, 0.88)",
|
|
102
|
+
"--bg-switch-off": "rgba(228, 228, 231, 1)",
|
|
103
|
+
"--contrast-bg-base-pressed": "rgba(63, 63, 70, 1)",
|
|
104
|
+
"--bg-field-component-hover": "rgba(250, 250, 250, 1)",
|
|
105
|
+
"--bg-base-pressed": "rgba(228, 228, 231, 1)",
|
|
106
|
+
"--tag-neutral-text": "rgba(82, 82, 91, 1)",
|
|
107
|
+
"--tag-red-text": "rgba(159, 18, 57, 1)",
|
|
108
|
+
"--contrast-bg-base": "rgba(24, 24, 27, 1)",
|
|
109
|
+
"--border-strong": "rgba(212, 212, 216, 1)",
|
|
110
|
+
"--contrast-border-base": "rgba(255, 255, 255, 0.15)",
|
|
111
|
+
"--bg-field": "rgba(250, 250, 250, 1)",
|
|
112
|
+
"--tag-blue-text": "rgba(30, 64, 175, 1)",
|
|
113
|
+
"--button-inverted-pressed": "rgba(82, 82, 91, 1)",
|
|
114
|
+
"--border-interactive": "rgba(59, 130, 246, 1)",
|
|
115
|
+
"--bg-base-hover": "rgba(244, 244, 245, 1)",
|
|
116
|
+
"--contrast-bg-subtle": "rgba(39, 39, 42, 1)",
|
|
117
|
+
"--bg-highlight": "rgba(239, 246, 255, 1)",
|
|
118
|
+
"--contrast-fg-secondary": "rgba(255, 255, 255, 0.56)",
|
|
119
|
+
"--tag-red-bg": "rgba(255, 228, 230, 1)",
|
|
120
|
+
"--button-transparent": "rgba(255, 255, 255, 0)",
|
|
121
|
+
"--button-danger-pressed": "rgba(159, 18, 57, 1)",
|
|
122
|
+
"--fg-on-color": "rgba(255, 255, 255, 1)",
|
|
123
|
+
"--button-inverted-hover": "rgba(63, 63, 70, 1)",
|
|
124
|
+
"--bg-field-component": "rgba(255, 255, 255, 1)",
|
|
125
|
+
"--tag-orange-text": "rgba(154, 52, 18, 1)",
|
|
126
|
+
"--tag-green-icon": "rgba(16, 185, 129, 1)",
|
|
127
|
+
"--border-base": "rgba(228, 228, 231, 1)",
|
|
128
|
+
"--bg-base": "rgba(255, 255, 255, 1)",
|
|
129
|
+
"--tag-orange-border": "rgba(254, 215, 170, 1)",
|
|
130
|
+
"--tag-red-border": "rgba(254, 205, 211, 1)",
|
|
131
|
+
"--tag-green-border": "rgba(167, 243, 208, 1)",
|
|
132
|
+
"--tag-green-text": "rgba(6, 95, 70, 1)",
|
|
133
|
+
"--button-neutral": "rgba(255, 255, 255, 1)",
|
|
134
|
+
"--tag-blue-border": "rgba(191, 219, 254, 1)",
|
|
135
|
+
"--fg-interactive-hover": "rgba(37, 99, 235, 1)",
|
|
136
|
+
"--tag-orange-icon": "rgba(249, 115, 22, 1)",
|
|
137
|
+
"--button-neutral-hover": "rgba(244, 244, 245, 1)",
|
|
138
|
+
"--fg-interactive": "rgba(59, 130, 246, 1)",
|
|
139
|
+
"--bg-component-pressed": "rgba(228, 228, 231, 1)",
|
|
140
|
+
"--tag-purple-bg": "rgba(237, 233, 254, 1)",
|
|
141
|
+
"--contrast-bg-base-hover": "rgba(39, 39, 42, 1)",
|
|
142
|
+
"--bg-component": "rgba(250, 250, 250, 1)",
|
|
143
|
+
"--bg-subtle": "rgba(250, 250, 250, 1)",
|
|
144
|
+
"--tag-purple-text": "rgba(91, 33, 182, 1)",
|
|
145
|
+
"--contrast-border-bot": "rgba(255, 255, 255, 0.1)",
|
|
146
|
+
"--button-inverted": "rgba(39, 39, 42, 1)",
|
|
147
|
+
"--tag-red-icon": "rgba(244, 63, 94, 1)",
|
|
148
|
+
"--button-transparent-hover": "rgba(244, 244, 245, 1)",
|
|
149
|
+
"--button-neutral-pressed": "rgba(228, 228, 231, 1)",
|
|
150
|
+
"--tag-purple-icon": "rgba(167, 139, 250, 1)",
|
|
151
|
+
"--bg-field-hover": "rgba(244, 244, 245, 1)",
|
|
152
|
+
"--fg-on-inverted": "rgba(255, 255, 255, 1)",
|
|
153
|
+
"--bg-interactive": "rgba(59, 130, 246, 1)",
|
|
154
|
+
"--border-danger": "rgba(190, 18, 60, 1)",
|
|
155
|
+
"--button-transparent-pressed": "rgba(228, 228, 231, 1)",
|
|
156
|
+
"--tag-purple-border": "rgba(221, 214, 254, 1)",
|
|
157
|
+
"--bg-highlight-hover": "rgba(219, 234, 254, 1)",
|
|
158
|
+
"--border-error": "rgba(225, 29, 72, 1)",
|
|
159
|
+
"--button-danger": "rgba(225, 29, 72, 1)",
|
|
160
|
+
"--tag-blue-bg": "rgba(219, 234, 254, 1)",
|
|
161
|
+
"--border-transparent": "rgba(255, 255, 255, 0)",
|
|
162
|
+
"--button-danger-hover": "rgba(190, 18, 60, 1)",
|
|
163
|
+
"--bg-subtle-pressed": "rgba(228, 228, 231, 1)",
|
|
164
|
+
"--fg-error": "rgba(225, 29, 72, 1)",
|
|
165
|
+
"--bg-component-hover": "rgba(244, 244, 245, 1)",
|
|
166
|
+
"--bg-disabled": "rgba(244, 244, 245, 1)",
|
|
167
|
+
"--tag-blue-icon": "rgba(96, 165, 250, 1)",
|
|
168
|
+
"--fg-subtle": "rgba(82, 82, 91, 1)",
|
|
169
|
+
"--tag-orange-bg-hover": "rgba(254, 215, 170, 1)",
|
|
170
|
+
"--tag-green-bg-hover": "rgba(167, 243, 208, 1)",
|
|
171
|
+
"--tag-red-bg-hover": "rgba(254, 205, 211, 1)",
|
|
172
|
+
"--tag-purple-bg-hover": "rgba(221, 214, 254, 1)",
|
|
173
|
+
"--tag-neutral-bg-hover": "rgba(228, 228, 231, 1)",
|
|
174
|
+
"--tag-blue-bg-hover": "rgba(191, 219, 254, 1)",
|
|
175
|
+
"--tag-green-bg": "rgba(209, 250, 229, 1)",
|
|
176
|
+
"--tag-neutral-bg": "rgba(244, 244, 245, 1)",
|
|
177
|
+
"--tag-orange-bg": "rgba(255, 237, 213, 1)",
|
|
178
|
+
"--fg-base": "rgba(24, 24, 27, 1)",
|
|
179
|
+
"--contrast-border-top": "rgba(24, 24, 27, 1)",
|
|
180
|
+
"--bg-overlay": "rgba(24, 24, 27, 0.4)",
|
|
181
|
+
"--fg-disabled": "rgba(161, 161, 170, 1)",
|
|
182
|
+
"--fg-muted": "rgba(113, 113, 122, 1)",
|
|
183
|
+
"--alpha-250": "rgba(24, 24, 27, 0.1)",
|
|
184
|
+
"--alpha-400": "rgba(24, 24, 27, 0.24)"
|
|
185
|
+
}
|
|
186
|
+
}
|