@diskette/palette 0.8.0 → 0.9.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/README.md +408 -0
- package/dist/colors/amber.d.ts +10 -0
- package/dist/colors/amber.js +10 -0
- package/dist/colors/blue.d.ts +10 -0
- package/dist/colors/blue.js +10 -0
- package/dist/colors/bronze.d.ts +10 -0
- package/dist/colors/bronze.js +10 -0
- package/dist/colors/brown.d.ts +10 -0
- package/dist/colors/brown.js +10 -0
- package/dist/colors/crimson.d.ts +10 -0
- package/dist/colors/crimson.js +10 -0
- package/dist/colors/cyan.d.ts +10 -0
- package/dist/colors/cyan.js +10 -0
- package/dist/colors/gold.d.ts +10 -0
- package/dist/colors/gold.js +10 -0
- package/dist/colors/grass.d.ts +10 -0
- package/dist/colors/grass.js +10 -0
- package/dist/colors/gray.d.ts +10 -0
- package/dist/colors/gray.js +10 -0
- package/dist/colors/green.d.ts +10 -0
- package/dist/colors/green.js +10 -0
- package/dist/colors/indigo.d.ts +10 -0
- package/dist/colors/indigo.js +10 -0
- package/dist/colors/iris.d.ts +10 -0
- package/dist/colors/iris.js +10 -0
- package/dist/colors/jade.d.ts +10 -0
- package/dist/colors/jade.js +10 -0
- package/dist/colors/lime.d.ts +10 -0
- package/dist/colors/lime.js +10 -0
- package/dist/colors/mauve.d.ts +10 -0
- package/dist/colors/mauve.js +10 -0
- package/dist/colors/mint.d.ts +10 -0
- package/dist/colors/mint.js +10 -0
- package/dist/colors/olive.d.ts +10 -0
- package/dist/colors/olive.js +10 -0
- package/dist/colors/orange.d.ts +10 -0
- package/dist/colors/orange.js +10 -0
- package/dist/colors/pink.d.ts +10 -0
- package/dist/colors/pink.js +10 -0
- package/dist/colors/plum.d.ts +10 -0
- package/dist/colors/plum.js +10 -0
- package/dist/colors/purple.d.ts +10 -0
- package/dist/colors/purple.js +10 -0
- package/dist/colors/red.d.ts +10 -0
- package/dist/colors/red.js +10 -0
- package/dist/colors/ruby.d.ts +10 -0
- package/dist/colors/ruby.js +10 -0
- package/dist/colors/sage.d.ts +10 -0
- package/dist/colors/sage.js +10 -0
- package/dist/colors/sand.d.ts +10 -0
- package/dist/colors/sand.js +10 -0
- package/dist/colors/sky.d.ts +10 -0
- package/dist/colors/sky.js +10 -0
- package/dist/colors/slate.d.ts +10 -0
- package/dist/colors/slate.js +10 -0
- package/dist/colors/teal.d.ts +10 -0
- package/dist/colors/teal.js +10 -0
- package/dist/colors/tomato.d.ts +10 -0
- package/dist/colors/tomato.js +10 -0
- package/dist/colors/violet.d.ts +10 -0
- package/dist/colors/violet.js +10 -0
- package/dist/colors/yellow.d.ts +10 -0
- package/dist/colors/yellow.js +10 -0
- package/dist/index.d.ts +311 -1
- package/dist/types.d.ts +18 -1
- package/package.json +13 -4
package/README.md
CHANGED
|
@@ -1 +1,409 @@
|
|
|
1
1
|
# @diskette/palette
|
|
2
|
+
|
|
3
|
+
A color palette library based on [Radix Colors](https://www.radix-ui.com/colors) with support for both sRGB and Display P3 color spaces.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @diskette/palette
|
|
9
|
+
# or
|
|
10
|
+
pnpm add @diskette/palette
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Importing Colors
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
// Import all colors
|
|
19
|
+
import colors from '@diskette/palette'
|
|
20
|
+
|
|
21
|
+
// Import specific colors
|
|
22
|
+
import { blue, red, gray } from '@diskette/palette/colors'
|
|
23
|
+
|
|
24
|
+
// Import a single color
|
|
25
|
+
import blue from '@diskette/palette/colors/blue'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Color Structure
|
|
29
|
+
|
|
30
|
+
Each color provides values for both color spaces and light/dark themes:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import blue from '@diskette/palette/colors/blue'
|
|
34
|
+
|
|
35
|
+
// sRGB values (hex)
|
|
36
|
+
blue.srgb.light.blue9 // '#0090ff'
|
|
37
|
+
blue.srgb.dark.blue9 // '#0090ff'
|
|
38
|
+
|
|
39
|
+
// Display P3 values
|
|
40
|
+
blue.p3.light.blue9 // 'color(display-p3 0.247 0.556 0.969)'
|
|
41
|
+
blue.p3.dark.blue9 // 'color(display-p3 0.247 0.556 0.969)'
|
|
42
|
+
|
|
43
|
+
// Alpha variants
|
|
44
|
+
blue.srgb.light.blueA9 // '#0090ff' (with alpha)
|
|
45
|
+
|
|
46
|
+
// Surface (translucent overlay)
|
|
47
|
+
blue.surface.srgb.light // '#f1f9ffcc'
|
|
48
|
+
blue.surface.p3.dark // 'color(display-p3 0.0706 0.1255 0.2196 / 0.5)'
|
|
49
|
+
|
|
50
|
+
// Semantic values
|
|
51
|
+
blue.contrast // 'white'
|
|
52
|
+
blue.indicator // 'blue9'
|
|
53
|
+
blue.track // 'blue9'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Generating CSS
|
|
57
|
+
|
|
58
|
+
Use the `css` utility to generate CSS custom properties:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import { css } from '@diskette/palette'
|
|
62
|
+
import blue from '@diskette/palette/colors/blue'
|
|
63
|
+
|
|
64
|
+
// Generate scale variables for light theme
|
|
65
|
+
const blue = css.scale('light', blue)
|
|
66
|
+
// Output: :root, .light, .light-theme { --blue-1: #fbfdff; ... }
|
|
67
|
+
|
|
68
|
+
// Generate alpha variants
|
|
69
|
+
css.scale('lightAlpha', blue)
|
|
70
|
+
|
|
71
|
+
// Generate semantic tokens
|
|
72
|
+
css.semantic('blue', blue)
|
|
73
|
+
// Output: :root { --blue-contrast: white; } ...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Alpha Colors
|
|
77
|
+
|
|
78
|
+
For transparency overlays:
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { blackAlpha, whiteAlpha } from '@diskette/palette/colors'
|
|
82
|
+
|
|
83
|
+
blackAlpha.srgb.blackA5 // 'rgba(0, 0, 0, 0.3)'
|
|
84
|
+
whiteAlpha.p3.whiteA5 // 'color(display-p3 1 1 1 / 0.3)'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Available Colors
|
|
88
|
+
|
|
89
|
+
### Accent Colors
|
|
90
|
+
|
|
91
|
+
`amber`, `blue`, `bronze`, `brown`, `crimson`, `cyan`, `gold`, `grass`, `gray`, `green`, `indigo`, `iris`, `jade`, `lime`, `mint`, `orange`, `pink`, `plum`, `purple`, `red`, `ruby`, `sky`, `teal`, `tomato`, `violet`, `yellow`
|
|
92
|
+
|
|
93
|
+
### Gray Scales
|
|
94
|
+
|
|
95
|
+
`gray`, `mauve`, `olive`, `sage`, `sand`, `slate`
|
|
96
|
+
|
|
97
|
+
### Alpha Colors
|
|
98
|
+
|
|
99
|
+
`blackAlpha`, `whiteAlpha`
|
|
100
|
+
|
|
101
|
+
## Color Scale
|
|
102
|
+
|
|
103
|
+
Each color provides a 12-step scale following Radix Colors conventions:
|
|
104
|
+
|
|
105
|
+
| Step | Use Case |
|
|
106
|
+
| ---- | ----------------------------- |
|
|
107
|
+
| 1-2 | App backgrounds |
|
|
108
|
+
| 3-4 | Component backgrounds |
|
|
109
|
+
| 5 | Hovered component backgrounds |
|
|
110
|
+
| 6 | Active/selected backgrounds |
|
|
111
|
+
| 7 | Borders and separators |
|
|
112
|
+
| 8 | Hovered borders, focus rings |
|
|
113
|
+
| 9 | Solid backgrounds |
|
|
114
|
+
| 10 | Hovered solid backgrounds |
|
|
115
|
+
| 11 | Low-contrast text |
|
|
116
|
+
| 12 | High-contrast text |
|
|
117
|
+
|
|
118
|
+
## API Reference
|
|
119
|
+
|
|
120
|
+
### `css.scale(scheme, config)`
|
|
121
|
+
|
|
122
|
+
Generates CSS custom properties for a color scale.
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
css.scale(scheme: 'light' | 'lightAlpha' | 'dark' | 'darkAlpha', config: ColorConfig): string
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
<details>
|
|
129
|
+
<summary>Example output</summary>
|
|
130
|
+
|
|
131
|
+
```css
|
|
132
|
+
:root,
|
|
133
|
+
.light,
|
|
134
|
+
.light-theme {
|
|
135
|
+
amber1: #fefdfb;
|
|
136
|
+
amber2: #fefbe9;
|
|
137
|
+
amber3: #fff7c2;
|
|
138
|
+
amber4: #ffee9c;
|
|
139
|
+
amber5: #fbe577;
|
|
140
|
+
amber6: #f3d673;
|
|
141
|
+
amber7: #e9c162;
|
|
142
|
+
amber8: #e2a336;
|
|
143
|
+
amber9: #ffc53d;
|
|
144
|
+
amber10: #ffba18;
|
|
145
|
+
amber11: #ab6400;
|
|
146
|
+
amber12: #4f3422;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@supports (color: color(display-p3 1 1 1)) {
|
|
150
|
+
@media (color-gamut: p3) {
|
|
151
|
+
:root,
|
|
152
|
+
.light,
|
|
153
|
+
.light-theme {
|
|
154
|
+
amber1: color(display-p3 0.995 0.992 0.985);
|
|
155
|
+
amber2: color(display-p3 0.994 0.986 0.921);
|
|
156
|
+
amber3: color(display-p3 0.994 0.969 0.782);
|
|
157
|
+
amber4: color(display-p3 0.989 0.937 0.65);
|
|
158
|
+
amber5: color(display-p3 0.97 0.902 0.527);
|
|
159
|
+
amber6: color(display-p3 0.936 0.844 0.506);
|
|
160
|
+
amber7: color(display-p3 0.89 0.762 0.443);
|
|
161
|
+
amber8: color(display-p3 0.85 0.65 0.3);
|
|
162
|
+
amber9: color(display-p3 1 0.77 0.26);
|
|
163
|
+
amber10: color(display-p3 0.959 0.741 0.274);
|
|
164
|
+
amber11: color(display-p3 0.64 0.4 0);
|
|
165
|
+
amber12: color(display-p3 0.294 0.208 0.145);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
</details>
|
|
172
|
+
|
|
173
|
+
Output includes `@supports` and `@media (color-gamut: p3)` blocks for Display P3 fallbacks.
|
|
174
|
+
|
|
175
|
+
### `css.alpha(config)`
|
|
176
|
+
|
|
177
|
+
Generates CSS custom properties for alpha color scales (blackAlpha, whiteAlpha).
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
css.alpha(config: AlphaConfig): string
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### `css.semantic(name, config)`
|
|
184
|
+
|
|
185
|
+
Generates semantic CSS custom properties for a color.
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
css.semantic(name: string, config: ColorConfig): string
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
<details>
|
|
192
|
+
<summary>Example output</summary>
|
|
193
|
+
|
|
194
|
+
```css
|
|
195
|
+
:root {
|
|
196
|
+
--amber-contrast: #21201c;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:root,
|
|
200
|
+
.light,
|
|
201
|
+
.light-theme {
|
|
202
|
+
--amber-surface: #fefae4cc;
|
|
203
|
+
--amber-indicator: var(--amber-9);
|
|
204
|
+
--amber-track: var(--amber-9);
|
|
205
|
+
@supports (color: color(display-p3 1 1 1)) {
|
|
206
|
+
@media (color-gamut: p3) {
|
|
207
|
+
--amber-surface: color(display-p3 0.9922 0.9843 0.902 / 0.8);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.dark,
|
|
213
|
+
.dark-theme {
|
|
214
|
+
--amber-surface: #271f1380;
|
|
215
|
+
--amber-indicator: var(--amber-9);
|
|
216
|
+
--amber-track: var(--amber-9);
|
|
217
|
+
@supports (color: color(display-p3 1 1 1)) {
|
|
218
|
+
@media (color-gamut: p3) {
|
|
219
|
+
--amber-surface: color(display-p3 0.1412 0.1176 0.0784 / 0.5);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
</details>
|
|
226
|
+
|
|
227
|
+
## Examples
|
|
228
|
+
|
|
229
|
+
### Generate a Complete CSS File
|
|
230
|
+
|
|
231
|
+
```ts
|
|
232
|
+
// scripts/generate-css.ts
|
|
233
|
+
import { writeFileSync } from 'node:fs'
|
|
234
|
+
import { css, colors } from '@diskette/palette'
|
|
235
|
+
import { blackAlpha, whiteAlpha } from '@diskette/palette/colors'
|
|
236
|
+
|
|
237
|
+
let output = ''
|
|
238
|
+
|
|
239
|
+
// Generate scales for all colors
|
|
240
|
+
for (const color of colors) {
|
|
241
|
+
output += css.scale('light', color)
|
|
242
|
+
output += css.scale('lightAlpha', color)
|
|
243
|
+
output += css.scale('dark', color)
|
|
244
|
+
output += css.scale('darkAlpha', color)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Generate alpha colors
|
|
248
|
+
output += css.alpha(blackAlpha)
|
|
249
|
+
output += css.alpha(whiteAlpha)
|
|
250
|
+
|
|
251
|
+
writeFileSync('dist/colors.css', output)
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Generate CSS for Selected Colors
|
|
255
|
+
|
|
256
|
+
```ts
|
|
257
|
+
// scripts/generate-theme.ts
|
|
258
|
+
import { writeFileSync } from 'node:fs'
|
|
259
|
+
import { css } from '@diskette/palette'
|
|
260
|
+
import blue from '@diskette/palette/colors/blue'
|
|
261
|
+
import gray from '@diskette/palette/colors/gray'
|
|
262
|
+
|
|
263
|
+
const output = [
|
|
264
|
+
// Base scales
|
|
265
|
+
css.scale('light', blue),
|
|
266
|
+
css.scale('dark', blue),
|
|
267
|
+
css.scale('light', gray),
|
|
268
|
+
css.scale('dark', gray),
|
|
269
|
+
|
|
270
|
+
// Semantic tokens
|
|
271
|
+
css.semantic('blue', blue),
|
|
272
|
+
css.semantic('gray', gray),
|
|
273
|
+
].join('\n')
|
|
274
|
+
|
|
275
|
+
writeFileSync('src/styles/theme.css', output)
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Generate CSS with Custom Build Script
|
|
279
|
+
|
|
280
|
+
```ts
|
|
281
|
+
// build-colors.ts
|
|
282
|
+
import { writeFileSync, mkdirSync } from 'node:fs'
|
|
283
|
+
import { css, colors } from '@diskette/palette'
|
|
284
|
+
|
|
285
|
+
mkdirSync('dist', { recursive: true })
|
|
286
|
+
|
|
287
|
+
// Generate individual files per color
|
|
288
|
+
for (const color of colors) {
|
|
289
|
+
const name = Object.keys(color.srgb.light)[0].replace(/\d+$/, '')
|
|
290
|
+
|
|
291
|
+
const content = [
|
|
292
|
+
css.scale('light', color),
|
|
293
|
+
css.scale('dark', color),
|
|
294
|
+
css.semantic(name, color),
|
|
295
|
+
].join('\n')
|
|
296
|
+
|
|
297
|
+
writeFileSync(`dist/${name}.css`, content)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// Generate combined file
|
|
301
|
+
let combined = ''
|
|
302
|
+
for (const color of colors) {
|
|
303
|
+
const name = Object.keys(color.srgb.light)[0].replace(/\d+$/, '')
|
|
304
|
+
combined += css.scale('light', color)
|
|
305
|
+
combined += css.scale('dark', color)
|
|
306
|
+
combined += css.semantic(name, color)
|
|
307
|
+
}
|
|
308
|
+
writeFileSync('dist/all-colors.css', combined)
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Use with vanilla-extract
|
|
312
|
+
|
|
313
|
+
```ts
|
|
314
|
+
// src/styles/colors.css.ts
|
|
315
|
+
import { createGlobalTheme } from '@vanilla-extract/css'
|
|
316
|
+
import blue from '@diskette/palette/colors/blue'
|
|
317
|
+
import gray from '@diskette/palette/colors/gray'
|
|
318
|
+
|
|
319
|
+
// Create CSS variables from the palette
|
|
320
|
+
createGlobalTheme(':root', {
|
|
321
|
+
colors: {
|
|
322
|
+
blue1: blue.srgb.light.blue1,
|
|
323
|
+
blue2: blue.srgb.light.blue2,
|
|
324
|
+
blue3: blue.srgb.light.blue3,
|
|
325
|
+
// ... etc
|
|
326
|
+
blue9: blue.srgb.light.blue9,
|
|
327
|
+
blue10: blue.srgb.light.blue10,
|
|
328
|
+
blue11: blue.srgb.light.blue11,
|
|
329
|
+
blue12: blue.srgb.light.blue12,
|
|
330
|
+
gray1: gray.srgb.light.gray1,
|
|
331
|
+
// ... etc
|
|
332
|
+
},
|
|
333
|
+
})
|
|
334
|
+
|
|
335
|
+
// For dark mode
|
|
336
|
+
createGlobalTheme('.dark', {
|
|
337
|
+
colors: {
|
|
338
|
+
blue1: blue.srgb.dark.blue1,
|
|
339
|
+
blue2: blue.srgb.dark.blue2,
|
|
340
|
+
// ... etc
|
|
341
|
+
},
|
|
342
|
+
})
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Generate Semantic Tokens Only
|
|
346
|
+
|
|
347
|
+
```ts
|
|
348
|
+
// scripts/semantic-tokens.ts
|
|
349
|
+
import { writeFileSync } from 'node:fs'
|
|
350
|
+
import { css, colors } from '@diskette/palette'
|
|
351
|
+
|
|
352
|
+
let output = ''
|
|
353
|
+
|
|
354
|
+
for (const color of colors) {
|
|
355
|
+
// Extract color name from first key (e.g., "blue1" -> "blue")
|
|
356
|
+
const name = Object.keys(color.srgb.light)[0].replace(/\d+$/, '')
|
|
357
|
+
output += css.semantic(name, color)
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
writeFileSync('dist/semantic.css', output)
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### Access Colors Directly in JavaScript
|
|
364
|
+
|
|
365
|
+
```ts
|
|
366
|
+
import blue from '@diskette/palette/colors/blue'
|
|
367
|
+
|
|
368
|
+
// Use in CSS-in-JS libraries
|
|
369
|
+
const styles = {
|
|
370
|
+
button: {
|
|
371
|
+
backgroundColor: blue.srgb.light.blue9,
|
|
372
|
+
color: blue.contrast,
|
|
373
|
+
'&:hover': {
|
|
374
|
+
backgroundColor: blue.srgb.light.blue10,
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Use P3 colors for wider gamut displays
|
|
380
|
+
const p3Styles = {
|
|
381
|
+
button: {
|
|
382
|
+
backgroundColor: blue.p3.light.blue9,
|
|
383
|
+
},
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
// Access surface colors for overlays
|
|
387
|
+
const overlay = {
|
|
388
|
+
backgroundColor: blue.surface.srgb.light, // '#f1f9ffcc'
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### NPM Script Integration
|
|
393
|
+
|
|
394
|
+
```json
|
|
395
|
+
{
|
|
396
|
+
"scripts": {
|
|
397
|
+
"build:css": "tsx scripts/generate-css.ts",
|
|
398
|
+
"build": "pnpm build:css && vite build"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
## Credits
|
|
404
|
+
|
|
405
|
+
Color values are derived from [Radix Colors](https://www.radix-ui.com/colors) by [WorkOS](https://workos.com/).
|
|
406
|
+
|
|
407
|
+
## License
|
|
408
|
+
|
|
409
|
+
MIT
|
package/dist/colors/amber.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/amber.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: '#21201c',
|
|
115
115
|
indicator: 'amber9',
|
|
116
116
|
track: 'amber9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#fefae4cc',
|
|
120
|
+
dark: '#271f1380',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9922 0.9843 0.902 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1412 0.1176 0.0784 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/blue.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/blue.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'blue9',
|
|
116
116
|
track: 'blue9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f1f9ffcc',
|
|
120
|
+
dark: '#11213d80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9529 0.9765 0.9961 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.0706 0.1255 0.2196 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/bronze.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/bronze.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'bronze9',
|
|
116
116
|
track: 'bronze9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#fdf5f3cc',
|
|
120
|
+
dark: '#27211d80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9843 0.9608 0.9529 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1412 0.1255 0.1176 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/brown.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/brown.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'brown9',
|
|
116
116
|
track: 'brown9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#fbf8f4cc',
|
|
120
|
+
dark: '#271f1b80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9843 0.9725 0.9569 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1412 0.1176 0.102 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/crimson.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/crimson.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'crimson9',
|
|
116
116
|
track: 'crimson9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#fef5f8cc',
|
|
120
|
+
dark: '#2f151f80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9922 0.9608 0.9725 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1647 0.0863 0.1176 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/cyan.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/cyan.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'cyan9',
|
|
116
116
|
track: 'cyan9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#eff9facc',
|
|
120
|
+
dark: '#11252d80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9412 0.9765 0.9804 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.0784 0.1412 0.1725 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/gold.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/gold.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'gold9',
|
|
116
116
|
track: 'gold9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f9f8efcc',
|
|
120
|
+
dark: '#25231d80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9765 0.9725 0.9412 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1412 0.1333 0.1098 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/grass.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/grass.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'grass9',
|
|
116
116
|
track: 'grass9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f3faf3cc',
|
|
120
|
+
dark: '#19231b80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9569 0.9804 0.9569 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.102 0.1333 0.102 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/gray.d.ts
CHANGED
|
@@ -114,5 +114,15 @@ declare const _default: {
|
|
|
114
114
|
contrast: string;
|
|
115
115
|
indicator: string;
|
|
116
116
|
track: string;
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
p3: {
|
|
123
|
+
light: string;
|
|
124
|
+
dark: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
117
127
|
};
|
|
118
128
|
export default _default;
|
package/dist/colors/gray.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'gray9',
|
|
116
116
|
track: 'gray9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#ffffffcc',
|
|
120
|
+
dark: '#21212180',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 1 1 1 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1255 0.1255 0.1255 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|