@diskette/palette 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +90 -70
  2. package/dist/cli/cli.d.ts +1 -1
  3. package/dist/cli/cli.js +59 -9
  4. package/dist/colors/amber.d.ts +26 -14
  5. package/dist/colors/amber.js +130 -114
  6. package/dist/colors/blue.d.ts +26 -14
  7. package/dist/colors/blue.js +130 -114
  8. package/dist/colors/bronze.d.ts +26 -14
  9. package/dist/colors/bronze.js +130 -114
  10. package/dist/colors/brown.d.ts +26 -14
  11. package/dist/colors/brown.js +130 -114
  12. package/dist/colors/crimson.d.ts +26 -14
  13. package/dist/colors/crimson.js +130 -114
  14. package/dist/colors/cyan.d.ts +26 -14
  15. package/dist/colors/cyan.js +130 -114
  16. package/dist/colors/gold.d.ts +26 -14
  17. package/dist/colors/gold.js +130 -114
  18. package/dist/colors/grass.d.ts +26 -14
  19. package/dist/colors/grass.js +130 -114
  20. package/dist/colors/gray.d.ts +26 -14
  21. package/dist/colors/gray.js +130 -114
  22. package/dist/colors/green.d.ts +26 -14
  23. package/dist/colors/green.js +130 -114
  24. package/dist/colors/indigo.d.ts +26 -14
  25. package/dist/colors/indigo.js +130 -114
  26. package/dist/colors/iris.d.ts +26 -14
  27. package/dist/colors/iris.js +130 -114
  28. package/dist/colors/jade.d.ts +26 -14
  29. package/dist/colors/jade.js +130 -114
  30. package/dist/colors/lime.d.ts +26 -14
  31. package/dist/colors/lime.js +130 -114
  32. package/dist/colors/mauve.d.ts +26 -14
  33. package/dist/colors/mauve.js +130 -114
  34. package/dist/colors/mint.d.ts +26 -14
  35. package/dist/colors/mint.js +130 -114
  36. package/dist/colors/olive.d.ts +26 -14
  37. package/dist/colors/olive.js +130 -114
  38. package/dist/colors/orange.d.ts +26 -14
  39. package/dist/colors/orange.js +130 -114
  40. package/dist/colors/pink.d.ts +26 -14
  41. package/dist/colors/pink.js +130 -114
  42. package/dist/colors/plum.d.ts +26 -14
  43. package/dist/colors/plum.js +130 -114
  44. package/dist/colors/purple.d.ts +26 -14
  45. package/dist/colors/purple.js +130 -114
  46. package/dist/colors/red.d.ts +26 -14
  47. package/dist/colors/red.js +130 -114
  48. package/dist/colors/ruby.d.ts +26 -14
  49. package/dist/colors/ruby.js +130 -114
  50. package/dist/colors/sage.d.ts +26 -14
  51. package/dist/colors/sage.js +130 -114
  52. package/dist/colors/sand.d.ts +26 -14
  53. package/dist/colors/sand.js +130 -114
  54. package/dist/colors/sky.d.ts +26 -14
  55. package/dist/colors/sky.js +130 -114
  56. package/dist/colors/slate.d.ts +26 -14
  57. package/dist/colors/slate.js +130 -114
  58. package/dist/colors/teal.d.ts +26 -14
  59. package/dist/colors/teal.js +130 -114
  60. package/dist/colors/tomato.d.ts +26 -14
  61. package/dist/colors/tomato.js +130 -114
  62. package/dist/colors/violet.d.ts +26 -14
  63. package/dist/colors/violet.js +130 -114
  64. package/dist/colors/yellow.d.ts +26 -14
  65. package/dist/colors/yellow.js +130 -114
  66. package/dist/css.d.ts +1 -0
  67. package/dist/css.js +26 -8
  68. package/dist/index.d.ts +808 -436
  69. package/dist/index.js +1 -1
  70. package/dist/types.d.ts +20 -16
  71. package/dist/utils.d.ts +9 -1
  72. package/dist/utils.js +44 -8
  73. package/package.json +4 -3
  74. package/dist/cli/commands/generate.d.ts +0 -54
  75. package/dist/cli/commands/generate.js +0 -86
  76. package/dist/cli/commands/list.d.ts +0 -48
  77. package/dist/cli/commands/list.js +0 -33
package/README.md CHANGED
@@ -27,30 +27,31 @@ import blue from '@diskette/palette/colors/blue'
27
27
 
28
28
  ### Color Structure
29
29
 
30
- Each color provides values for both color spaces and light/dark themes:
30
+ Each color provides separate 12-step arrays for solid and alpha scales, organized by theme and color space:
31
31
 
32
32
  ```ts
33
33
  import blue from '@diskette/palette/colors/blue'
34
34
 
35
- // sRGB values (hex)
36
- blue.srgb.light.blue9 // '#0090ff'
37
- blue.srgb.dark.blue9 // '#0090ff'
35
+ // sRGB solid values (hex) - 12-item array indexed 0-11
36
+ blue.light.srgb.solid[8] // '#0090ff' (step 9)
37
+ blue.dark.srgb.solid[8] // '#0090ff' (step 9)
38
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)'
39
+ // Display P3 solid values
40
+ blue.light.p3.solid[8] // 'color(display-p3 0.247 0.556 0.969)'
41
+ blue.dark.p3.solid[8] // 'color(display-p3 0.247 0.556 0.969)'
42
42
 
43
- // Alpha variants
44
- blue.srgb.light.blueA9 // '#0090ff' (with alpha)
43
+ // Alpha variants - separate 12-item array indexed 0-11
44
+ blue.light.srgb.alpha[8] // alpha step 9
45
+ blue.light.p3.alpha[8] // alpha step 9 in P3
45
46
 
46
47
  // Surface (translucent overlay)
47
48
  blue.surface.srgb.light // '#f1f9ffcc'
48
- blue.surface.p3.dark // 'color(display-p3 0.0706 0.1255 0.2196 / 0.5)'
49
+ blue.surface.p3.dark // 'color(display-p3 0.0706 0.1255 0.2196 / 0.5)'
49
50
 
50
51
  // Semantic values
51
- blue.contrast // 'white'
52
- blue.indicator // 'blue9'
53
- blue.track // 'blue9'
52
+ blue.contrast // 'white'
53
+ blue.indicator // 9 (step number)
54
+ blue.track // 9 (step number)
54
55
  ```
55
56
 
56
57
  ### Generating CSS
@@ -61,16 +62,16 @@ Use the `css` utility to generate CSS custom properties:
61
62
  import { css } from '@diskette/palette'
62
63
  import blue from '@diskette/palette/colors/blue'
63
64
 
64
- // Generate scale variables for light theme
65
- const blue = css.scale('light', blue)
66
- // Output: :root, .light, .light-theme { --blue-1: #fbfdff; ... }
65
+ // Generate CSS variables for light theme
66
+ css.palette(blue)
67
+ // Output: :root { --blue-contrast: white; ... }
68
+ // :root, .light, .light-theme { --blue-1: #fbfdff; ... }
67
69
 
68
- // Generate alpha variants
69
- css.scale('lightAlpha', blue)
70
+ // Include dark theme
71
+ css.palette(blue, { schemes: ['light', 'dark'] })
70
72
 
71
- // Generate semantic tokens
72
- css.semantic('blue', blue)
73
- // Output: :root { --blue-contrast: white; } ...
73
+ // Include alpha scale variables (--blue-a1, etc.)
74
+ css.palette(blue, { schemes: ['light'], alpha: true })
74
75
  ```
75
76
 
76
77
  ### Alpha Colors
@@ -81,7 +82,47 @@ For transparency overlays:
81
82
  import { blackAlpha, whiteAlpha } from '@diskette/palette/colors'
82
83
 
83
84
  blackAlpha.srgb.blackA5 // 'rgba(0, 0, 0, 0.3)'
84
- whiteAlpha.p3.whiteA5 // 'color(display-p3 1 1 1 / 0.3)'
85
+ whiteAlpha.p3.whiteA5 // 'color(display-p3 1 1 1 / 0.3)'
86
+ ```
87
+
88
+ ## CLI
89
+
90
+ The package includes a CLI for generating CSS files.
91
+
92
+ ### `palette generate`
93
+
94
+ Generate CSS files for color palettes.
95
+
96
+ ```bash
97
+ palette generate blue,red,slate -a -o ./styles
98
+ ```
99
+
100
+ ```
101
+ styles/
102
+ ├── index.css # Imports + Tailwind v4 @theme mappings
103
+ ├── accents.css # [data-accent-color] selectors (-a flag)
104
+ ├── blue.css # Light theme: --blue-1 through --blue-12, --blue-a1 through --blue-a12
105
+ ├── blue-dark.css # Dark theme variants
106
+ ├── red.css
107
+ ├── red-dark.css
108
+ ├── slate.css
109
+ ├── slate-dark.css
110
+ ├── black-alpha.css # --black-a1 through --black-a12
111
+ └── white-alpha.css # --white-a1 through --white-a12
112
+ ```
113
+
114
+ **Options:**
115
+ - `-o, --output <dir>` - Output directory (required)
116
+ - `-a, --accents` - Generate `accents.css` with `[data-accent-color]` and `[data-gray-color]` selectors
117
+
118
+ ### `palette list`
119
+
120
+ List available colors.
121
+
122
+ ```bash
123
+ palette list # List all colors
124
+ palette list --accent # List only accent colors
125
+ palette list --gray # List only gray colors
85
126
  ```
86
127
 
87
128
  ## Available Colors
@@ -117,18 +158,27 @@ Each color provides a 12-step scale following Radix Colors conventions:
117
158
 
118
159
  ## API Reference
119
160
 
120
- ### `css.scale(scheme, config)`
161
+ ### `css.palette(config, options?)`
121
162
 
122
- Generates CSS custom properties for a color scale.
163
+ Generates CSS custom properties for a color's scale and semantic tokens.
123
164
 
124
165
  ```ts
125
- css.scale(scheme: 'light' | 'lightAlpha' | 'dark' | 'darkAlpha', config: ColorConfig): string
166
+ css.palette(config: PaletteColor, options?: {
167
+ schemes?: ('light' | 'dark')[] // Defaults to ['light']
168
+ alpha?: boolean // Include alpha scale (--color-a1, etc.). Defaults to false
169
+ }): string
126
170
  ```
127
171
 
128
172
  <details>
129
173
  <summary>Example output</summary>
130
174
 
131
175
  ```css
176
+ :root {
177
+ --amber-contrast: #21201c;
178
+ --amber-indicator: var(--amber-9);
179
+ --amber-track: var(--amber-9);
180
+ }
181
+
132
182
  :root,
133
183
  .light,
134
184
  .light-theme {
@@ -152,17 +202,7 @@ css.scale(scheme: 'light' | 'lightAlpha' | 'dark' | 'darkAlpha', config: ColorCo
152
202
  .light,
153
203
  .light-theme {
154
204
  --amber-1: color(display-p3 0.995 0.992 0.985);
155
- --amber-2: color(display-p3 0.994 0.986 0.921);
156
- --amber-3: color(display-p3 0.994 0.969 0.782);
157
- --amber-4: color(display-p3 0.989 0.937 0.65);
158
- --amber-5: color(display-p3 0.97 0.902 0.527);
159
- --amber-6: color(display-p3 0.936 0.844 0.506);
160
- --amber-7: color(display-p3 0.89 0.762 0.443);
161
- --amber-8: color(display-p3 0.85 0.65 0.3);
162
- --amber-9: color(display-p3 1 0.77 0.26);
163
- --amber-10: color(display-p3 0.959 0.741 0.274);
164
- --amber-11: color(display-p3 0.64 0.4 0);
165
- --amber-12: color(display-p3 0.294 0.208 0.145);
205
+ /* ... */
166
206
  }
167
207
  }
168
208
  }
@@ -180,49 +220,29 @@ Generates CSS custom properties for alpha color scales (blackAlpha, whiteAlpha).
180
220
  css.alpha(config: AlphaConfig): string
181
221
  ```
182
222
 
183
- ### `css.semantic(name, config)`
223
+ ### `css.accents(colorNames)`
184
224
 
185
- Generates semantic CSS custom properties for a color.
225
+ Generates CSS for `[data-accent-color]` attribute selectors, mapping accent variables to the specified color.
186
226
 
187
227
  ```ts
188
- css.semantic(name: string, config: ColorConfig): string
228
+ css.accents(colorNames: string[]): string
189
229
  ```
190
230
 
191
- <details>
192
- <summary>Example output</summary>
193
-
194
- ```css
195
- :root {
196
- --amber-contrast: #21201c;
197
- }
231
+ ### `css.grays(names, className)`
198
232
 
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
- }
233
+ Generates CSS for `[data-gray-color]` attribute selectors nested under a class.
211
234
 
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
- }
235
+ ```ts
236
+ css.grays(names: readonly string[], className: string): string
223
237
  ```
224
238
 
225
- </details>
239
+ ### `css.tailwind(colorNames)`
240
+
241
+ Generates Tailwind v4 `@theme inline` CSS that maps palette variables to Tailwind color utilities.
242
+
243
+ ```ts
244
+ css.tailwind(colorNames: string[]): string
245
+ ```
226
246
 
227
247
  ## Credits
228
248
 
package/dist/cli/cli.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export declare function writeIfNotExists(path: string, data: string | NodeJS.ArrayBufferView): boolean;
package/dist/cli/cli.js CHANGED
@@ -1,11 +1,61 @@
1
- import { cli } from 'cleye';
2
- import { generate } from "./commands/generate.js";
3
- import { list } from "./commands/list.js";
4
- const arg = cli({
5
- name: 'palette',
6
- // version: pkg.version,
7
- commands: [generate, list],
1
+ import { defineCommand, runMain } from 'citty';
2
+ import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
3
+ import { dirname, relative, resolve } from 'node:path';
4
+ import * as palette from "../colors/index.js";
5
+ import { css } from "../css.js";
6
+ import { accentColors, grayColors } from "../types.js";
7
+ import { getPackageJson } from "../utils.js";
8
+ const alphaColors = ['blackAlpha', 'whiteAlpha'];
9
+ // Combined list of all colors (deduplicated since 'gray' appears in both)
10
+ const allColors = [
11
+ ...new Set([...accentColors, ...grayColors]),
12
+ ...alphaColors,
13
+ ];
14
+ const { pkg, packageJsonPath } = getPackageJson(import.meta.url) ?? {};
15
+ const main = defineCommand({
16
+ meta: {
17
+ name: 'palette',
18
+ version: pkg?.version,
19
+ description: pkg?.description ?? '',
20
+ },
21
+ args: {
22
+ colors: {
23
+ type: 'positional',
24
+ description: 'Colors',
25
+ required: true,
26
+ },
27
+ output: {
28
+ type: 'string',
29
+ alias: 'o',
30
+ description: 'Output directory',
31
+ },
32
+ },
33
+ run({ args }) {
34
+ const selected = args._.filter((c) => allColors.includes(c));
35
+ const outputPath = resolve(process.cwd(), args.output);
36
+ mkdirSync(outputPath, { recursive: true });
37
+ for (const name of selected) {
38
+ if (alphaColors.includes(name)) {
39
+ const alphaName = name;
40
+ const config = palette[alphaName];
41
+ const fileName = alphaName === 'blackAlpha' ? 'black-alpha' : 'white-alpha';
42
+ writeIfNotExists(`${outputPath}/${fileName}.css`, css.alpha(config));
43
+ }
44
+ else {
45
+ const color = palette[name];
46
+ writeIfNotExists(`${outputPath}/${name}.css`, css.palette(color, { schemes: ['light'], alpha: true }));
47
+ writeIfNotExists(`${outputPath}/${name}-dark.css`, css.palette(color, { schemes: ['dark'], alpha: true }));
48
+ }
49
+ }
50
+ const path = relative(dirname(packageJsonPath), resolve(outputPath));
51
+ console.log(`\nCSS saved to ${outputPath}`);
52
+ },
8
53
  });
9
- if (!arg.command) {
10
- arg.showHelp();
54
+ runMain(main);
55
+ export function writeIfNotExists(path, data) {
56
+ if (existsSync(path)) {
57
+ return false;
58
+ }
59
+ writeFileSync(path, data);
60
+ return true;
11
61
  }
@@ -1,25 +1,37 @@
1
1
  declare const _default: {
2
2
  name: "amber";
3
- indicator: string;
3
+ indicator: number;
4
4
  contrast: string;
5
- track: string;
5
+ track: number;
6
6
  surface: {
7
- p3: {
8
- light: string;
9
- dark: string;
7
+ light: {
8
+ srgb: string;
9
+ p3: string;
10
10
  };
11
- srgb: {
12
- light: string;
13
- dark: string;
11
+ dark: {
12
+ srgb: string;
13
+ p3: string;
14
14
  };
15
15
  };
16
- srgb: {
17
- light: [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
18
- dark: [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
16
+ light: {
17
+ srgb: {
18
+ solid: [string, string, string, string, string, string, string, string, string, string, string, string];
19
+ alpha: [string, string, string, string, string, string, string, string, string, string, string, string];
20
+ };
21
+ p3: {
22
+ solid: [string, string, string, string, string, string, string, string, string, string, string, string];
23
+ alpha: [string, string, string, string, string, string, string, string, string, string, string, string];
24
+ };
19
25
  };
20
- p3: {
21
- light: [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
22
- dark: [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
26
+ dark: {
27
+ srgb: {
28
+ solid: [string, string, string, string, string, string, string, string, string, string, string, string];
29
+ alpha: [string, string, string, string, string, string, string, string, string, string, string, string];
30
+ };
31
+ p3: {
32
+ solid: [string, string, string, string, string, string, string, string, string, string, string, string];
33
+ alpha: [string, string, string, string, string, string, string, string, string, string, string, string];
34
+ };
23
35
  };
24
36
  };
25
37
  export default _default;
@@ -1,125 +1,141 @@
1
1
  import {} from "../types.js";
2
2
  export default {
3
3
  name: 'amber',
4
- indicator: 'amber9',
4
+ indicator: 9,
5
5
  contrast: '#21201c',
6
- track: 'amber9',
6
+ track: 9,
7
7
  surface: {
8
- p3: {
9
- light: 'color(display-p3 0.9922 0.9843 0.902 / 0.8)',
10
- dark: 'color(display-p3 0.1412 0.1176 0.0784 / 0.5)',
8
+ light: {
9
+ srgb: '#fefae4cc',
10
+ p3: 'color(display-p3 0.9922 0.9843 0.902 / 0.8)',
11
11
  },
12
- srgb: {
13
- light: '#fefae4cc',
14
- dark: '#271f1380',
12
+ dark: {
13
+ srgb: '#271f1380',
14
+ p3: 'color(display-p3 0.1412 0.1176 0.0784 / 0.5)',
15
15
  },
16
16
  },
17
- srgb: {
18
- light: [
19
- '#fefdfb',
20
- '#fefbe9',
21
- '#fff7c2',
22
- '#ffee9c',
23
- '#fbe577',
24
- '#f3d673',
25
- '#e9c162',
26
- '#e2a336',
27
- '#ffc53d',
28
- '#ffba18',
29
- '#ab6400',
30
- '#4f3422',
31
- '#c0800004',
32
- '#f4d10016',
33
- '#ffde003d',
34
- '#ffd40063',
35
- '#f8cf0088',
36
- '#eab5008c',
37
- '#dc9b009d',
38
- '#da8a00c9',
39
- '#ffb300c2',
40
- '#ffb300e7',
41
- '#ab6400',
42
- '#341500dd',
43
- ],
44
- dark: [
45
- '#16120c',
46
- '#1d180f',
47
- '#302008',
48
- '#3f2700',
49
- '#4d3000',
50
- '#5c3d05',
51
- '#714f19',
52
- '#8f6424',
53
- '#ffc53d',
54
- '#ffd60a',
55
- '#ffca16',
56
- '#ffe7b3',
57
- '#e63c0006',
58
- '#fd9b000d',
59
- '#fa820022',
60
- '#fc820032',
61
- '#fd8b0041',
62
- '#fd9b0051',
63
- '#ffab2567',
64
- '#ffae3587',
65
- '#ffc53d',
66
- '#ffd60a',
67
- '#ffca16',
68
- '#ffe7b3',
69
- ],
17
+ light: {
18
+ srgb: {
19
+ solid: [
20
+ '#fefdfb',
21
+ '#fefbe9',
22
+ '#fff7c2',
23
+ '#ffee9c',
24
+ '#fbe577',
25
+ '#f3d673',
26
+ '#e9c162',
27
+ '#e2a336',
28
+ '#ffc53d',
29
+ '#ffba18',
30
+ '#ab6400',
31
+ '#4f3422',
32
+ ],
33
+ alpha: [
34
+ '#c0800004',
35
+ '#f4d10016',
36
+ '#ffde003d',
37
+ '#ffd40063',
38
+ '#f8cf0088',
39
+ '#eab5008c',
40
+ '#dc9b009d',
41
+ '#da8a00c9',
42
+ '#ffb300c2',
43
+ '#ffb300e7',
44
+ '#ab6400',
45
+ '#341500dd',
46
+ ],
47
+ },
48
+ p3: {
49
+ solid: [
50
+ 'color(display-p3 0.995 0.992 0.985)',
51
+ 'color(display-p3 0.994 0.986 0.921)',
52
+ 'color(display-p3 0.994 0.969 0.782)',
53
+ 'color(display-p3 0.989 0.937 0.65)',
54
+ 'color(display-p3 0.97 0.902 0.527)',
55
+ 'color(display-p3 0.936 0.844 0.506)',
56
+ 'color(display-p3 0.89 0.762 0.443)',
57
+ 'color(display-p3 0.85 0.65 0.3)',
58
+ 'color(display-p3 1 0.77 0.26)',
59
+ 'color(display-p3 0.959 0.741 0.274)',
60
+ 'color(display-p3 0.64 0.4 0)',
61
+ 'color(display-p3 0.294 0.208 0.145)',
62
+ ],
63
+ alpha: [
64
+ 'color(display-p3 0.757 0.514 0.024 / 0.016)',
65
+ 'color(display-p3 0.902 0.804 0.008 / 0.079)',
66
+ 'color(display-p3 0.965 0.859 0.004 / 0.22)',
67
+ 'color(display-p3 0.969 0.82 0.004 / 0.35)',
68
+ 'color(display-p3 0.933 0.796 0.004 / 0.475)',
69
+ 'color(display-p3 0.875 0.682 0.004 / 0.495)',
70
+ 'color(display-p3 0.804 0.573 0 / 0.557)',
71
+ 'color(display-p3 0.788 0.502 0 / 0.699)',
72
+ 'color(display-p3 1 0.686 0 / 0.742)',
73
+ 'color(display-p3 0.945 0.643 0 / 0.726)',
74
+ 'color(display-p3 0.64 0.4 0)',
75
+ 'color(display-p3 0.294 0.208 0.145)',
76
+ ],
77
+ },
70
78
  },
71
- p3: {
72
- light: [
73
- 'color(display-p3 0.995 0.992 0.985)',
74
- 'color(display-p3 0.994 0.986 0.921)',
75
- 'color(display-p3 0.994 0.969 0.782)',
76
- 'color(display-p3 0.989 0.937 0.65)',
77
- 'color(display-p3 0.97 0.902 0.527)',
78
- 'color(display-p3 0.936 0.844 0.506)',
79
- 'color(display-p3 0.89 0.762 0.443)',
80
- 'color(display-p3 0.85 0.65 0.3)',
81
- 'color(display-p3 1 0.77 0.26)',
82
- 'color(display-p3 0.959 0.741 0.274)',
83
- 'color(display-p3 0.64 0.4 0)',
84
- 'color(display-p3 0.294 0.208 0.145)',
85
- 'color(display-p3 0.757 0.514 0.024 / 0.016)',
86
- 'color(display-p3 0.902 0.804 0.008 / 0.079)',
87
- 'color(display-p3 0.965 0.859 0.004 / 0.22)',
88
- 'color(display-p3 0.969 0.82 0.004 / 0.35)',
89
- 'color(display-p3 0.933 0.796 0.004 / 0.475)',
90
- 'color(display-p3 0.875 0.682 0.004 / 0.495)',
91
- 'color(display-p3 0.804 0.573 0 / 0.557)',
92
- 'color(display-p3 0.788 0.502 0 / 0.699)',
93
- 'color(display-p3 1 0.686 0 / 0.742)',
94
- 'color(display-p3 0.945 0.643 0 / 0.726)',
95
- 'color(display-p3 0.64 0.4 0)',
96
- 'color(display-p3 0.294 0.208 0.145)',
97
- ],
98
- dark: [
99
- 'color(display-p3 0.082 0.07 0.05)',
100
- 'color(display-p3 0.111 0.094 0.064)',
101
- 'color(display-p3 0.178 0.128 0.049)',
102
- 'color(display-p3 0.239 0.156 0)',
103
- 'color(display-p3 0.29 0.193 0)',
104
- 'color(display-p3 0.344 0.245 0.076)',
105
- 'color(display-p3 0.422 0.314 0.141)',
106
- 'color(display-p3 0.535 0.399 0.189)',
107
- 'color(display-p3 1 0.77 0.26)',
108
- 'color(display-p3 1 0.87 0.15)',
109
- 'color(display-p3 1 0.8 0.29)',
110
- 'color(display-p3 0.984 0.909 0.726)',
111
- 'color(display-p3 0.992 0.298 0 / 0.017)',
112
- 'color(display-p3 0.988 0.651 0 / 0.047)',
113
- 'color(display-p3 1 0.6 0 / 0.118)',
114
- 'color(display-p3 1 0.557 0 / 0.185)',
115
- 'color(display-p3 1 0.592 0 / 0.24)',
116
- 'color(display-p3 1 0.659 0.094 / 0.299)',
117
- 'color(display-p3 1 0.714 0.263 / 0.383)',
118
- 'color(display-p3 0.996 0.729 0.306 / 0.5)',
119
- 'color(display-p3 1 0.769 0.259)',
120
- 'color(display-p3 1 0.871 0.149)',
121
- 'color(display-p3 1 0.8 0.29)',
122
- 'color(display-p3 0.984 0.909 0.726)',
123
- ],
79
+ dark: {
80
+ srgb: {
81
+ solid: [
82
+ '#16120c',
83
+ '#1d180f',
84
+ '#302008',
85
+ '#3f2700',
86
+ '#4d3000',
87
+ '#5c3d05',
88
+ '#714f19',
89
+ '#8f6424',
90
+ '#ffc53d',
91
+ '#ffd60a',
92
+ '#ffca16',
93
+ '#ffe7b3',
94
+ ],
95
+ alpha: [
96
+ '#e63c0006',
97
+ '#fd9b000d',
98
+ '#fa820022',
99
+ '#fc820032',
100
+ '#fd8b0041',
101
+ '#fd9b0051',
102
+ '#ffab2567',
103
+ '#ffae3587',
104
+ '#ffc53d',
105
+ '#ffd60a',
106
+ '#ffca16',
107
+ '#ffe7b3',
108
+ ],
109
+ },
110
+ p3: {
111
+ solid: [
112
+ 'color(display-p3 0.082 0.07 0.05)',
113
+ 'color(display-p3 0.111 0.094 0.064)',
114
+ 'color(display-p3 0.178 0.128 0.049)',
115
+ 'color(display-p3 0.239 0.156 0)',
116
+ 'color(display-p3 0.29 0.193 0)',
117
+ 'color(display-p3 0.344 0.245 0.076)',
118
+ 'color(display-p3 0.422 0.314 0.141)',
119
+ 'color(display-p3 0.535 0.399 0.189)',
120
+ 'color(display-p3 1 0.77 0.26)',
121
+ 'color(display-p3 1 0.87 0.15)',
122
+ 'color(display-p3 1 0.8 0.29)',
123
+ 'color(display-p3 0.984 0.909 0.726)',
124
+ ],
125
+ alpha: [
126
+ 'color(display-p3 0.992 0.298 0 / 0.017)',
127
+ 'color(display-p3 0.988 0.651 0 / 0.047)',
128
+ 'color(display-p3 1 0.6 0 / 0.118)',
129
+ 'color(display-p3 1 0.557 0 / 0.185)',
130
+ 'color(display-p3 1 0.592 0 / 0.24)',
131
+ 'color(display-p3 1 0.659 0.094 / 0.299)',
132
+ 'color(display-p3 1 0.714 0.263 / 0.383)',
133
+ 'color(display-p3 0.996 0.729 0.306 / 0.5)',
134
+ 'color(display-p3 1 0.769 0.259)',
135
+ 'color(display-p3 1 0.871 0.149)',
136
+ 'color(display-p3 1 0.8 0.29)',
137
+ 'color(display-p3 0.984 0.909 0.726)',
138
+ ],
139
+ },
124
140
  },
125
141
  };