dyeworks 0.0.0-stage → 1.0.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/CHANGELOG.md +26 -0
- package/LICENSE +9 -0
- package/README.md +134 -2
- package/dist/boot.d.ts +7 -0
- package/dist/boot.js +10 -0
- package/dist/chooser.d.ts +33 -0
- package/dist/chooser.js +99 -0
- package/dist/contract-check.d.ts +32 -0
- package/dist/contract-check.js +153 -0
- package/dist/internal/boot-text.d.ts +12 -0
- package/dist/internal/boot-text.js +23 -0
- package/dist/internal/resolve.d.ts +34 -0
- package/dist/internal/resolve.js +44 -0
- package/dist/react/IntensityControl.d.ts +8 -0
- package/dist/react/IntensityControl.js +14 -0
- package/dist/react/ThemeMenu.d.ts +5 -0
- package/dist/react/ThemeMenu.js +15 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +3 -0
- package/dist/react/useChooser.d.ts +3 -0
- package/dist/react/useChooser.js +11 -0
- package/dist/reference.html +73 -0
- package/dist/registry.d.ts +14 -0
- package/dist/registry.js +24 -0
- package/dist/themes.css +68 -0
- package/dist/tokens.css +36 -0
- package/dist/tokens.d.ts +3 -0
- package/dist/tokens.js +2 -0
- package/package.json +83 -4
- package/slots.css +90 -0
- package/slots.json +74 -0
- package/themes/default/theme.css +65 -0
- package/themes/default/theme.json +7 -0
- package/tokens.json +233 -0
package/tokens.json
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "dyeworks-tokens/1",
|
|
3
|
+
"schemes": [
|
|
4
|
+
"light",
|
|
5
|
+
"dark"
|
|
6
|
+
],
|
|
7
|
+
"tokens": [
|
|
8
|
+
{
|
|
9
|
+
"name": "--bg",
|
|
10
|
+
"tier": "surface",
|
|
11
|
+
"type": "color",
|
|
12
|
+
"meaning": "The page's base surface.",
|
|
13
|
+
"default": "#fcfcfd"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "--bg-raised",
|
|
17
|
+
"tier": "surface",
|
|
18
|
+
"type": "color",
|
|
19
|
+
"meaning": "A surface raised above the page, such as a card or panel.",
|
|
20
|
+
"default": "#f3f4f7"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "--bg-sunken",
|
|
24
|
+
"tier": "surface",
|
|
25
|
+
"type": "color",
|
|
26
|
+
"meaning": "A surface set into the page, such as a well or code block.",
|
|
27
|
+
"default": "#e9ebf0"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "--fg",
|
|
31
|
+
"tier": "surface",
|
|
32
|
+
"type": "color",
|
|
33
|
+
"meaning": "The main text colour.",
|
|
34
|
+
"default": "#16181d"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "--muted",
|
|
38
|
+
"tier": "surface",
|
|
39
|
+
"type": "color",
|
|
40
|
+
"meaning": "Secondary text such as captions, hints and timestamps.",
|
|
41
|
+
"default": "#656b7a"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "--border",
|
|
45
|
+
"tier": "surface",
|
|
46
|
+
"type": "color",
|
|
47
|
+
"meaning": "Lines that separate or outline surfaces.",
|
|
48
|
+
"default": "#d9dce3"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "--accent",
|
|
52
|
+
"tier": "surface",
|
|
53
|
+
"type": "color",
|
|
54
|
+
"meaning": "The interactive colour of links, focus and primary controls.",
|
|
55
|
+
"default": "#3246c8"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "--accent-fg",
|
|
59
|
+
"tier": "surface",
|
|
60
|
+
"type": "color",
|
|
61
|
+
"meaning": "Text and icons drawn on an accent fill.",
|
|
62
|
+
"default": "#ffffff"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "--selected",
|
|
66
|
+
"tier": "surface",
|
|
67
|
+
"type": "color",
|
|
68
|
+
"meaning": "The background of a selected item.",
|
|
69
|
+
"default": "#e6eafb"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "--radius",
|
|
73
|
+
"tier": "surface",
|
|
74
|
+
"type": "length",
|
|
75
|
+
"meaning": "The corner radius of surfaces and controls.",
|
|
76
|
+
"default": "8px"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "--font-sans",
|
|
80
|
+
"tier": "surface",
|
|
81
|
+
"type": "font_family",
|
|
82
|
+
"meaning": "The body typeface.",
|
|
83
|
+
"default": "system-ui, -apple-system, sans-serif"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "--font-mono",
|
|
87
|
+
"tier": "surface",
|
|
88
|
+
"type": "font_family",
|
|
89
|
+
"meaning": "The monospaced typeface for code and identifiers.",
|
|
90
|
+
"default": "ui-monospace, \"SF Mono\", Menlo, monospace"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "--series-1",
|
|
94
|
+
"tier": "data",
|
|
95
|
+
"type": "color",
|
|
96
|
+
"meaning": "Categorical colour 1 of three, for kinds of thing shown together.",
|
|
97
|
+
"default": "#3246c8"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "--series-2",
|
|
101
|
+
"tier": "data",
|
|
102
|
+
"type": "color",
|
|
103
|
+
"meaning": "Categorical colour 2 of three, for kinds of thing shown together.",
|
|
104
|
+
"default": "#1f7a45"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "--series-3",
|
|
108
|
+
"tier": "data",
|
|
109
|
+
"type": "color",
|
|
110
|
+
"meaning": "Categorical colour 3 of three, for kinds of thing shown together.",
|
|
111
|
+
"default": "#b83c0a"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "--state-active",
|
|
115
|
+
"tier": "data",
|
|
116
|
+
"type": "color",
|
|
117
|
+
"meaning": "The state colour of something in progress.",
|
|
118
|
+
"default": "#1a63b8"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "--state-quiet",
|
|
122
|
+
"tier": "data",
|
|
123
|
+
"type": "color",
|
|
124
|
+
"meaning": "The state colour of something idle, paused or waiting without need of attention.",
|
|
125
|
+
"default": "#5f6572"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "--state-attention",
|
|
129
|
+
"tier": "data",
|
|
130
|
+
"type": "color",
|
|
131
|
+
"meaning": "The state colour of something that needs a person's attention.",
|
|
132
|
+
"default": "#a85400"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "--state-success",
|
|
136
|
+
"tier": "data",
|
|
137
|
+
"type": "color",
|
|
138
|
+
"meaning": "The state colour of something that ended well.",
|
|
139
|
+
"default": "#1f7a45"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "--state-failure",
|
|
143
|
+
"tier": "data",
|
|
144
|
+
"type": "color",
|
|
145
|
+
"meaning": "The state colour of something that ended in failure.",
|
|
146
|
+
"default": "#c22a2a"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "--state-halted",
|
|
150
|
+
"tier": "data",
|
|
151
|
+
"type": "color",
|
|
152
|
+
"meaning": "The state colour of something deliberately stopped before it ended.",
|
|
153
|
+
"default": "#5b3cc4"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "--danger",
|
|
157
|
+
"tier": "data",
|
|
158
|
+
"type": "color",
|
|
159
|
+
"meaning": "Destructive actions and error text.",
|
|
160
|
+
"default": "#c22a2a"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "--warning-bg",
|
|
164
|
+
"tier": "data",
|
|
165
|
+
"type": "color",
|
|
166
|
+
"meaning": "The background of a warning notice.",
|
|
167
|
+
"default": "#fff3df"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "--warning-fg",
|
|
171
|
+
"tier": "data",
|
|
172
|
+
"type": "color",
|
|
173
|
+
"meaning": "The text of a warning notice.",
|
|
174
|
+
"default": "#874800"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "--glow",
|
|
178
|
+
"tier": "decoration",
|
|
179
|
+
"type": "box_shadow",
|
|
180
|
+
"meaning": "The glow around a primary action and an active navigation underline.",
|
|
181
|
+
"default": "none"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "--glow-svg",
|
|
185
|
+
"tier": "decoration",
|
|
186
|
+
"type": "filter",
|
|
187
|
+
"meaning": "The filter applied to a selected mark.",
|
|
188
|
+
"default": "none"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "--accent-gradient",
|
|
192
|
+
"tier": "decoration",
|
|
193
|
+
"type": "background_image",
|
|
194
|
+
"meaning": "The fill of a primary action and an active navigation underline.",
|
|
195
|
+
"default": "var(--accent)"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "--font-display",
|
|
199
|
+
"tier": "decoration",
|
|
200
|
+
"type": "font_family",
|
|
201
|
+
"meaning": "The typeface of wordmarks, headings and counts.",
|
|
202
|
+
"default": "var(--font-sans)"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "--asset-backdrop",
|
|
206
|
+
"tier": "decoration",
|
|
207
|
+
"type": "image",
|
|
208
|
+
"meaning": "The image behind all content.",
|
|
209
|
+
"default": "none"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "--asset-ornament",
|
|
213
|
+
"tier": "decoration",
|
|
214
|
+
"type": "image",
|
|
215
|
+
"meaning": "A small decorative image beside a wordmark or heading.",
|
|
216
|
+
"default": "none"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "--asset-empty",
|
|
220
|
+
"tier": "decoration",
|
|
221
|
+
"type": "image",
|
|
222
|
+
"meaning": "The illustration shown where there is nothing to show.",
|
|
223
|
+
"default": "none"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "--asset-opacity",
|
|
227
|
+
"tier": "decoration",
|
|
228
|
+
"type": "number",
|
|
229
|
+
"meaning": "The opacity of the backdrop and ornament images.",
|
|
230
|
+
"default": "1"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|