@diskette/palette 0.8.0 → 0.9.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.
- package/README.md +232 -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 +1 -1
package/README.md
CHANGED
|
@@ -1 +1,233 @@
|
|
|
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
|
+
## Credits
|
|
228
|
+
|
|
229
|
+
Color values are derived from [Radix Colors](https://www.radix-ui.com/colors) by [WorkOS](https://workos.com/).
|
|
230
|
+
|
|
231
|
+
## License
|
|
232
|
+
|
|
233
|
+
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
|
};
|
package/dist/colors/green.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/green.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'green9',
|
|
116
116
|
track: 'green9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f1faf4cc',
|
|
120
|
+
dark: '#15251d80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9569 0.9804 0.9608 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.0941 0.1412 0.1098 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/indigo.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/indigo.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'indigo9',
|
|
116
116
|
track: 'indigo9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f5f8ffcc',
|
|
120
|
+
dark: '#171d3b80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9647 0.9725 0.9961 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.0941 0.1098 0.2196 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/iris.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/iris.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'iris9',
|
|
116
116
|
track: 'iris9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f6f6ffcc',
|
|
120
|
+
dark: '#1d1b3980',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9647 0.9647 0.9961 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1098 0.102 0.2118 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/jade.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/jade.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: 'white',
|
|
115
115
|
indicator: 'jade9',
|
|
116
116
|
track: 'jade9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f1faf5cc',
|
|
120
|
+
dark: '#13271f80',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9529 0.9804 0.9608 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.0863 0.149 0.1176 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|
package/dist/colors/lime.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/lime.js
CHANGED
|
@@ -114,4 +114,14 @@ export default {
|
|
|
114
114
|
contrast: '#1d211c',
|
|
115
115
|
indicator: 'lime9',
|
|
116
116
|
track: 'lime9',
|
|
117
|
+
surface: {
|
|
118
|
+
srgb: {
|
|
119
|
+
light: '#f6f9f0cc',
|
|
120
|
+
dark: '#1b211580',
|
|
121
|
+
},
|
|
122
|
+
p3: {
|
|
123
|
+
light: 'color(display-p3 0.9725 0.9765 0.9412 / 0.8)',
|
|
124
|
+
dark: 'color(display-p3 0.1098 0.1255 0.0784 / 0.5)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
117
127
|
};
|