meowtail 0.4.0-alpha.4 → 0.4.0-alpha.5
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 +7 -0
- package/README.md +18 -0
- package/dist/src/theme/base.styles.js +5 -0
- package/dist/src/theme/components/button.styles.js +17 -3
- package/dist/src/theme/components/output-block.styles.js +35 -10
- package/dist/src/theme/doodle.tokens.d.ts +70 -8
- package/dist/src/theme/doodle.tokens.js +26 -3
- package/dist/src/theme/index.d.ts +402 -4
- package/dist/src/theme/index.js +16 -0
- package/dist/src/theme/journal.tokens.d.ts +62 -0
- package/dist/src/theme/journal.tokens.js +2 -0
- package/dist/src/theme/meow.tokens.d.ts +62 -0
- package/dist/src/theme/meow.tokens.js +2 -0
- package/dist/src/theme/ottr.tokens.d.ts +62 -0
- package/dist/src/theme/ottr.tokens.js +1 -0
- package/dist/src/theme/pine.tokens.d.ts +426 -0
- package/dist/src/theme/pine.tokens.js +126 -0
- package/dist/src/theme/tokens.d.ts +70 -0
- package/dist/src/theme/tokens.js +35 -0
- package/dist/src/theme/utilities.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -116,6 +116,13 @@
|
|
|
116
116
|
- Add `journalFonts` and the `ThemeFont` type: the Fontsource packages that carry the faces Journal
|
|
117
117
|
names. Meowtail ships no font files. The gallery paints Journal stories with those faces.
|
|
118
118
|
|
|
119
|
+
## 0.4.0-alpha.5
|
|
120
|
+
|
|
121
|
+
- Improve Doodle with a paper wash, independent decorative marker colors, physical ink borders
|
|
122
|
+
and a press state that collapses the shadow without hiding the border.
|
|
123
|
+
- Add Pine, a cool paper-and-pine theme with a fixed-dark terminal palette, available in the docs
|
|
124
|
+
and component gallery.
|
|
125
|
+
|
|
119
126
|
## 0.4.0-alpha.4
|
|
120
127
|
|
|
121
128
|
- Add `doodleTheme`, an editorial paper-and-ink theme with crisp outlines and optional Geist.
|
package/README.md
CHANGED
|
@@ -595,6 +595,24 @@ import { createMeowUITheme } from "meowtail/web";
|
|
|
595
595
|
const theme = createMeowUITheme({ theme: doodleTheme });
|
|
596
596
|
```
|
|
597
597
|
|
|
598
|
+
Doodle uses independent control stroke, resting lift, and press roles, so the ink border stays
|
|
599
|
+
visible as the button sinks. The canvas wash and marker colors are decorative; status colors remain
|
|
600
|
+
separate. Compare the same form and metric cards in the gallery's Theme Workbench.
|
|
601
|
+
|
|
602
|
+
### Pine theme
|
|
603
|
+
|
|
604
|
+
`pineTheme` uses cool paper and deep pine green in light mode, and blue-black with mint in dark
|
|
605
|
+
mode. Its TerminalBlock stays dark in either scheme. Command and prompt ink use mint, ANSI
|
|
606
|
+
magenta maps to lavender, and exit status has a separate color. `pineFonts` names the optional
|
|
607
|
+
Inter web font. The monospace stack prefers IBM Plex Mono when supplied by the host.
|
|
608
|
+
|
|
609
|
+
```ts
|
|
610
|
+
import { pineTheme } from "meowtail/theme";
|
|
611
|
+
import { createMeowUITheme } from "meowtail/web";
|
|
612
|
+
|
|
613
|
+
const theme = createMeowUITheme({ theme: pineTheme });
|
|
614
|
+
```
|
|
615
|
+
|
|
598
616
|
All built-in themes share one theme root name and one set of `--ui-*` variables, so mount one theme per document. `standardUiTokenValues` and the `UiTokenValues` type let a host value the same roles for its own
|
|
599
617
|
theme; a value tree that misses or adds a role does not typecheck. In Meowbook, the gallery's Theme
|
|
600
618
|
control paints every story with any of them, and a query such as `?theme=doodle` selects one in a link.
|
|
@@ -32,6 +32,8 @@ export const foundationStyles = css `
|
|
|
32
32
|
dark one. Only the theme plugin marks a page; an embedded region keeps its host's ground. */
|
|
33
33
|
:where(html[${pageAttribute}][data-meowui-scope]) {
|
|
34
34
|
background-color: ${uiTokens.surface.canvas};
|
|
35
|
+
background-image: ${uiTokens.canvas.wash};
|
|
36
|
+
background-attachment: fixed;
|
|
35
37
|
color-scheme: light;
|
|
36
38
|
}
|
|
37
39
|
:where(html[${pageAttribute}][data-meowui-color-scheme="dark"]) {
|
|
@@ -48,6 +50,9 @@ export const foundationStyles = css `
|
|
|
48
50
|
) {
|
|
49
51
|
box-sizing: border-box;
|
|
50
52
|
}
|
|
53
|
+
:where([data-meowui-theme-root="meowui"]) ::selection {
|
|
54
|
+
background-color: ${uiTokens.canvas.selection};
|
|
55
|
+
}
|
|
51
56
|
:where([data-meowui-theme-root="meowui"] :is(img, video)) {
|
|
52
57
|
max-width: 100%;
|
|
53
58
|
}
|
|
@@ -28,10 +28,13 @@ export const buttonStyles = css `
|
|
|
28
28
|
box-shadow ${uiTokens.motion.settle} ${uiTokens.motion.ease},
|
|
29
29
|
transform ${uiTokens.motion.response} ${uiTokens.motion.ease};
|
|
30
30
|
}
|
|
31
|
-
/* A press settles the action
|
|
32
|
-
:where(${iconButtonPartRefs.root}
|
|
31
|
+
/* A press settles the action; themes can coordinate its offset with the resting lift. */
|
|
32
|
+
:where(${iconButtonPartRefs.root}):active:not(:disabled) {
|
|
33
33
|
transform: translateY(0.5px);
|
|
34
34
|
}
|
|
35
|
+
:where(${buttonPartRefs.root}):active:not(:disabled) {
|
|
36
|
+
transform: translateY(${uiTokens.button.pressOffset});
|
|
37
|
+
}
|
|
35
38
|
${iconButtonPartRefs.root} {
|
|
36
39
|
width: ${uiTokens.control.regular};
|
|
37
40
|
min-width: ${uiTokens.control.regular};
|
|
@@ -49,22 +52,33 @@ ${buttonPartRefs.root} {
|
|
|
49
52
|
${buttonOptions.when({ variant: "primary" })} {
|
|
50
53
|
background: ${uiTokens.action.primary};
|
|
51
54
|
color: ${uiTokens.action.onPrimary};
|
|
55
|
+
border: ${uiTokens.button.filledStroke} solid ${uiTokens.line.edge};
|
|
52
56
|
box-shadow: ${uiTokens.shadow.filled};
|
|
57
|
+
&:active:not(:disabled) {
|
|
58
|
+
box-shadow: ${uiTokens.button.filledPressed};
|
|
59
|
+
}
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
${buttonPartRefs.root} {
|
|
56
63
|
${buttonOptions.when({ variant: "danger" })} {
|
|
57
64
|
background: ${uiTokens.action.danger};
|
|
58
65
|
color: ${uiTokens.action.onDanger};
|
|
66
|
+
border: ${uiTokens.button.filledStroke} solid ${uiTokens.line.edge};
|
|
59
67
|
box-shadow: ${uiTokens.shadow.filled};
|
|
68
|
+
&:active:not(:disabled) {
|
|
69
|
+
box-shadow: ${uiTokens.button.filledPressed};
|
|
70
|
+
}
|
|
60
71
|
}
|
|
61
72
|
}
|
|
62
73
|
${buttonPartRefs.root} {
|
|
63
74
|
${buttonOptions.when({ variant: "outline" })} {
|
|
64
|
-
border: ${uiTokens.
|
|
75
|
+
border: ${uiTokens.button.outlineStroke} solid ${uiTokens.line.edge};
|
|
65
76
|
background: ${uiTokens.surface.raised};
|
|
66
77
|
/* A one-pixel drop lifts the outline action off the page without a heavier border. */
|
|
67
78
|
box-shadow: ${uiTokens.shadow.action};
|
|
79
|
+
&:active:not(:disabled) {
|
|
80
|
+
box-shadow: ${uiTokens.button.outlinePressed};
|
|
81
|
+
}
|
|
68
82
|
}
|
|
69
83
|
}
|
|
70
84
|
${buttonPartRefs.root} {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { css, parts } from "meowcss/meowjsx";
|
|
2
2
|
import { uiTokens } from "../tokens.js";
|
|
3
|
-
import { codeHighlightTokens } from "../shared/code-highlight.tokens.js";
|
|
4
3
|
import { ui } from "../utilities.js";
|
|
5
4
|
const outputBlockPartRefs = parts("output-block");
|
|
6
5
|
const diffBlockPartRefs = parts("diff-block");
|
|
7
6
|
const readBlockPartRefs = parts("read-block");
|
|
8
7
|
const searchBlockPartRefs = parts("search-block");
|
|
8
|
+
const statusDotPartRefs = parts("status-dot");
|
|
9
|
+
const stateDotPartRefs = parts("state-dot");
|
|
9
10
|
const terminalBlockPartRefs = parts("terminal-block");
|
|
10
11
|
export const outputBlockStyles = css `
|
|
11
12
|
${outputBlockPartRefs.root} {
|
|
@@ -140,7 +141,31 @@ export const outputBlockStyles = css `
|
|
|
140
141
|
${searchBlockPartRefs.number} {
|
|
141
142
|
color: ${uiTokens.ink.tertiary};
|
|
142
143
|
}
|
|
144
|
+
${terminalBlockPartRefs.root} ${outputBlockPartRefs.root} {
|
|
145
|
+
background: ${uiTokens.terminal.surface};
|
|
146
|
+
color: ${uiTokens.terminal.ink};
|
|
147
|
+
}
|
|
148
|
+
${terminalBlockPartRefs.root} :is(${outputBlockPartRefs.actions}, ${outputBlockPartRefs.toggle}) {
|
|
149
|
+
color: ${uiTokens.terminal.muted};
|
|
150
|
+
}
|
|
151
|
+
${terminalBlockPartRefs.root} :is(${outputBlockPartRefs.actions}, ${outputBlockPartRefs.toggle}, ${outputBlockPartRefs.body}):focus-visible {
|
|
152
|
+
outline-color: ${uiTokens.terminal.focus};
|
|
153
|
+
}
|
|
154
|
+
${terminalBlockPartRefs.status}[data-tone="danger"] {
|
|
155
|
+
color: ${uiTokens.terminal.danger};
|
|
156
|
+
background: color-mix(in srgb, ${uiTokens.terminal.danger} 10%, transparent);
|
|
157
|
+
}
|
|
158
|
+
${terminalBlockPartRefs.status}[data-tone="danger"] > ${statusDotPartRefs.root} {
|
|
159
|
+
background: currentColor;
|
|
160
|
+
}
|
|
161
|
+
${terminalBlockPartRefs.runState} ${stateDotPartRefs.root}[data-state="done"] {
|
|
162
|
+
color: ${uiTokens.terminal.success};
|
|
163
|
+
}
|
|
164
|
+
${terminalBlockPartRefs.runState} ${stateDotPartRefs.root}[data-state="warning"] {
|
|
165
|
+
color: ${uiTokens.terminal.warning};
|
|
166
|
+
}
|
|
143
167
|
${terminalBlockPartRefs.command} {
|
|
168
|
+
color: ${uiTokens.terminal.command};
|
|
144
169
|
margin: 0;
|
|
145
170
|
min-width: 0;
|
|
146
171
|
overflow: hidden;
|
|
@@ -152,7 +177,7 @@ export const outputBlockStyles = css `
|
|
|
152
177
|
padding-left: 30px;
|
|
153
178
|
max-height: 150px;
|
|
154
179
|
overflow-y: auto;
|
|
155
|
-
background: ${uiTokens.surface
|
|
180
|
+
background: ${uiTokens.terminal.surface};
|
|
156
181
|
}
|
|
157
182
|
${terminalBlockPartRefs.root} ${outputBlockPartRefs.title} > div {
|
|
158
183
|
display: flex;
|
|
@@ -161,7 +186,7 @@ export const outputBlockStyles = css `
|
|
|
161
186
|
min-width: 0;
|
|
162
187
|
}
|
|
163
188
|
${terminalBlockPartRefs.root}[data-terminal-body="true"] ${outputBlockPartRefs.header} {
|
|
164
|
-
border-bottom: 1px solid ${uiTokens.
|
|
189
|
+
border-bottom: 1px solid ${uiTokens.terminal.divider};
|
|
165
190
|
}
|
|
166
191
|
${terminalBlockPartRefs.root} ${outputBlockPartRefs.body} {
|
|
167
192
|
padding-left: 30px;
|
|
@@ -186,7 +211,7 @@ export const outputBlockStyles = css `
|
|
|
186
211
|
}
|
|
187
212
|
${terminalBlockPartRefs.cwd} {
|
|
188
213
|
flex: none;
|
|
189
|
-
color: ${uiTokens.
|
|
214
|
+
color: ${uiTokens.terminal.prompt};
|
|
190
215
|
}
|
|
191
216
|
${terminalBlockPartRefs.runState} {
|
|
192
217
|
position: absolute;
|
|
@@ -211,22 +236,22 @@ export const outputBlockStyles = css `
|
|
|
211
236
|
font-weight: ${uiTokens.type.weight.semibold};
|
|
212
237
|
}
|
|
213
238
|
${terminalBlockPartRefs.span}:is([data-ansi-color="31"], [data-ansi-color="91"]) {
|
|
214
|
-
color: ${uiTokens.
|
|
239
|
+
color: ${uiTokens.terminal.danger};
|
|
215
240
|
}
|
|
216
241
|
${terminalBlockPartRefs.span}:is([data-ansi-color="32"], [data-ansi-color="92"]) {
|
|
217
|
-
color: ${uiTokens.
|
|
242
|
+
color: ${uiTokens.terminal.success};
|
|
218
243
|
}
|
|
219
244
|
${terminalBlockPartRefs.span}:is([data-ansi-color="33"], [data-ansi-color="93"]) {
|
|
220
|
-
color: ${uiTokens.
|
|
245
|
+
color: ${uiTokens.terminal.warning};
|
|
221
246
|
}
|
|
222
247
|
${terminalBlockPartRefs.span}:is([data-ansi-color="34"], [data-ansi-color="94"], [data-ansi-color="36"], [data-ansi-color="96"]) {
|
|
223
|
-
color: ${uiTokens.
|
|
248
|
+
color: ${uiTokens.terminal.info};
|
|
224
249
|
}
|
|
225
250
|
${terminalBlockPartRefs.span}:is([data-ansi-color="35"], [data-ansi-color="95"]) {
|
|
226
|
-
color: ${
|
|
251
|
+
color: ${uiTokens.terminal.reference};
|
|
227
252
|
}
|
|
228
253
|
${terminalBlockPartRefs.span}[data-ansi-color="90"] {
|
|
229
|
-
color: ${uiTokens.
|
|
254
|
+
color: ${uiTokens.terminal.muted};
|
|
230
255
|
}
|
|
231
256
|
|
|
232
257
|
@media (pointer: coarse) {
|
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
* content readable. Illustrations and brand marks belong to the application, not the theme.
|
|
5
5
|
*/
|
|
6
6
|
export declare const doodleUiTokenValues: {
|
|
7
|
+
readonly terminal: {
|
|
8
|
+
readonly surface: string;
|
|
9
|
+
readonly ink: string;
|
|
10
|
+
readonly muted: string;
|
|
11
|
+
readonly command: string;
|
|
12
|
+
readonly prompt: string;
|
|
13
|
+
readonly divider: string;
|
|
14
|
+
readonly focus: string;
|
|
15
|
+
readonly danger: string;
|
|
16
|
+
readonly success: string;
|
|
17
|
+
readonly warning: string;
|
|
18
|
+
readonly info: string;
|
|
19
|
+
readonly reference: string;
|
|
20
|
+
};
|
|
7
21
|
readonly space: {
|
|
8
22
|
readonly group: "8px";
|
|
9
23
|
readonly section: "20px";
|
|
@@ -32,6 +46,22 @@ export declare const doodleUiTokenValues: {
|
|
|
32
46
|
readonly containerPage: "1040px";
|
|
33
47
|
readonly measure: "70ch";
|
|
34
48
|
};
|
|
49
|
+
readonly canvas: {
|
|
50
|
+
readonly wash: readonly ["radial-gradient(ellipse 540px 430px at 0% 0%, #f1e5ca 0%, transparent 96%), radial-gradient(ellipse 500px 420px at 100% 60%, #dceef8 0%, transparent 96%)", "radial-gradient(ellipse 540px 430px at 0% 0%, #33291e 0%, transparent 96%), radial-gradient(ellipse 500px 420px at 100% 60%, #202e38 0%, transparent 96%)"];
|
|
51
|
+
readonly selection: readonly ["#f6db87", "#745927"];
|
|
52
|
+
};
|
|
53
|
+
readonly marker: {
|
|
54
|
+
readonly blue: readonly ["#a8d8ef", "#2d536d"];
|
|
55
|
+
readonly ochre: readonly ["#f6db87", "#66512a"];
|
|
56
|
+
readonly coral: readonly ["#ff9787", "#723b31"];
|
|
57
|
+
};
|
|
58
|
+
readonly button: {
|
|
59
|
+
readonly filledStroke: "2px";
|
|
60
|
+
readonly outlineStroke: "2px";
|
|
61
|
+
readonly pressOffset: "2px";
|
|
62
|
+
readonly filledPressed: string;
|
|
63
|
+
readonly outlinePressed: string;
|
|
64
|
+
};
|
|
35
65
|
readonly surface: {
|
|
36
66
|
readonly canvas: readonly ["#f9f8f4", "#191714"];
|
|
37
67
|
readonly reading: readonly ["#f9f8f4", "#191714"];
|
|
@@ -50,6 +80,7 @@ export declare const doodleUiTokenValues: {
|
|
|
50
80
|
};
|
|
51
81
|
readonly line: {
|
|
52
82
|
readonly width: "1px";
|
|
83
|
+
readonly raisedWidth: "2px";
|
|
53
84
|
readonly edge: readonly ["#171715", "#c6b59c"];
|
|
54
85
|
readonly divider: readonly ["#ddd8ce", "#504638"];
|
|
55
86
|
readonly control: readonly ["#57534c", "#9f907a"];
|
|
@@ -78,11 +109,11 @@ export declare const doodleUiTokenValues: {
|
|
|
78
109
|
};
|
|
79
110
|
readonly control: {
|
|
80
111
|
readonly small: "28px";
|
|
81
|
-
readonly regular: "36px";
|
|
82
|
-
readonly large: "44px";
|
|
83
112
|
readonly inset: "8px";
|
|
84
113
|
readonly fieldInset: "12px";
|
|
85
114
|
readonly trackInset: "3px";
|
|
115
|
+
readonly regular: "44px";
|
|
116
|
+
readonly large: "48px";
|
|
86
117
|
readonly thumb: readonly ["#ffffff", "#514333"];
|
|
87
118
|
readonly knob: readonly ["#ffffff", "#fbf3e5"];
|
|
88
119
|
};
|
|
@@ -154,10 +185,10 @@ export declare const doodleUiTokenValues: {
|
|
|
154
185
|
readonly thumb: readonly ["0 0 0 1px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 8%)", "0 0 0 1px rgb(255 255 255 / 8%), 0 1px 2px rgb(0 0 0 / 32%)"];
|
|
155
186
|
readonly sheet: readonly ["12px 0 40px rgb(0 0 0 / 12%)", "12px 0 40px rgb(0 0 0 / 50%)"];
|
|
156
187
|
readonly knob: readonly ["0 1px 2px rgb(0 0 0 / 16%)", "0 1px 2px rgb(0 0 0 / 40%)"];
|
|
157
|
-
readonly raised: readonly ["0
|
|
188
|
+
readonly raised: readonly ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
158
189
|
readonly field: readonly ["none", "none"];
|
|
159
190
|
readonly action: readonly ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
160
|
-
readonly filled: readonly ["0
|
|
191
|
+
readonly filled: readonly ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
161
192
|
readonly pressed: "none";
|
|
162
193
|
readonly float: readonly ["0 0 0 1px #171715, 0 3px 0 1px #171715", "0 0 0 1px #c6b59c, 0 3px 0 1px #c6b59c"];
|
|
163
194
|
readonly dock: readonly ["0 0 0 1px #171715, 0 3px 0 1px #171715", "0 0 0 1px #c6b59c, 0 3px 0 1px #c6b59c"];
|
|
@@ -181,6 +212,20 @@ export declare const doodleUiTokenValues: {
|
|
|
181
212
|
};
|
|
182
213
|
};
|
|
183
214
|
export declare const doodleUiTokens: import("meowcss").TokenRefs<{
|
|
215
|
+
readonly terminal: {
|
|
216
|
+
readonly surface: string;
|
|
217
|
+
readonly ink: string;
|
|
218
|
+
readonly muted: string;
|
|
219
|
+
readonly command: string;
|
|
220
|
+
readonly prompt: string;
|
|
221
|
+
readonly divider: string;
|
|
222
|
+
readonly focus: string;
|
|
223
|
+
readonly danger: string;
|
|
224
|
+
readonly success: string;
|
|
225
|
+
readonly warning: string;
|
|
226
|
+
readonly info: string;
|
|
227
|
+
readonly reference: string;
|
|
228
|
+
};
|
|
184
229
|
readonly space: {
|
|
185
230
|
readonly group: "8px";
|
|
186
231
|
readonly section: "20px";
|
|
@@ -209,6 +254,22 @@ export declare const doodleUiTokens: import("meowcss").TokenRefs<{
|
|
|
209
254
|
readonly containerPage: "1040px";
|
|
210
255
|
readonly measure: "70ch";
|
|
211
256
|
};
|
|
257
|
+
readonly canvas: {
|
|
258
|
+
readonly wash: readonly ["radial-gradient(ellipse 540px 430px at 0% 0%, #f1e5ca 0%, transparent 96%), radial-gradient(ellipse 500px 420px at 100% 60%, #dceef8 0%, transparent 96%)", "radial-gradient(ellipse 540px 430px at 0% 0%, #33291e 0%, transparent 96%), radial-gradient(ellipse 500px 420px at 100% 60%, #202e38 0%, transparent 96%)"];
|
|
259
|
+
readonly selection: readonly ["#f6db87", "#745927"];
|
|
260
|
+
};
|
|
261
|
+
readonly marker: {
|
|
262
|
+
readonly blue: readonly ["#a8d8ef", "#2d536d"];
|
|
263
|
+
readonly ochre: readonly ["#f6db87", "#66512a"];
|
|
264
|
+
readonly coral: readonly ["#ff9787", "#723b31"];
|
|
265
|
+
};
|
|
266
|
+
readonly button: {
|
|
267
|
+
readonly filledStroke: "2px";
|
|
268
|
+
readonly outlineStroke: "2px";
|
|
269
|
+
readonly pressOffset: "2px";
|
|
270
|
+
readonly filledPressed: string;
|
|
271
|
+
readonly outlinePressed: string;
|
|
272
|
+
};
|
|
212
273
|
readonly surface: {
|
|
213
274
|
readonly canvas: readonly ["#f9f8f4", "#191714"];
|
|
214
275
|
readonly reading: readonly ["#f9f8f4", "#191714"];
|
|
@@ -227,6 +288,7 @@ export declare const doodleUiTokens: import("meowcss").TokenRefs<{
|
|
|
227
288
|
};
|
|
228
289
|
readonly line: {
|
|
229
290
|
readonly width: "1px";
|
|
291
|
+
readonly raisedWidth: "2px";
|
|
230
292
|
readonly edge: readonly ["#171715", "#c6b59c"];
|
|
231
293
|
readonly divider: readonly ["#ddd8ce", "#504638"];
|
|
232
294
|
readonly control: readonly ["#57534c", "#9f907a"];
|
|
@@ -255,11 +317,11 @@ export declare const doodleUiTokens: import("meowcss").TokenRefs<{
|
|
|
255
317
|
};
|
|
256
318
|
readonly control: {
|
|
257
319
|
readonly small: "28px";
|
|
258
|
-
readonly regular: "36px";
|
|
259
|
-
readonly large: "44px";
|
|
260
320
|
readonly inset: "8px";
|
|
261
321
|
readonly fieldInset: "12px";
|
|
262
322
|
readonly trackInset: "3px";
|
|
323
|
+
readonly regular: "44px";
|
|
324
|
+
readonly large: "48px";
|
|
263
325
|
readonly thumb: readonly ["#ffffff", "#514333"];
|
|
264
326
|
readonly knob: readonly ["#ffffff", "#fbf3e5"];
|
|
265
327
|
};
|
|
@@ -331,10 +393,10 @@ export declare const doodleUiTokens: import("meowcss").TokenRefs<{
|
|
|
331
393
|
readonly thumb: readonly ["0 0 0 1px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 8%)", "0 0 0 1px rgb(255 255 255 / 8%), 0 1px 2px rgb(0 0 0 / 32%)"];
|
|
332
394
|
readonly sheet: readonly ["12px 0 40px rgb(0 0 0 / 12%)", "12px 0 40px rgb(0 0 0 / 50%)"];
|
|
333
395
|
readonly knob: readonly ["0 1px 2px rgb(0 0 0 / 16%)", "0 1px 2px rgb(0 0 0 / 40%)"];
|
|
334
|
-
readonly raised: readonly ["0
|
|
396
|
+
readonly raised: readonly ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
335
397
|
readonly field: readonly ["none", "none"];
|
|
336
398
|
readonly action: readonly ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
337
|
-
readonly filled: readonly ["0
|
|
399
|
+
readonly filled: readonly ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
338
400
|
readonly pressed: "none";
|
|
339
401
|
readonly float: readonly ["0 0 0 1px #171715, 0 3px 0 1px #171715", "0 0 0 1px #c6b59c, 0 3px 0 1px #c6b59c"];
|
|
340
402
|
readonly dock: readonly ["0 0 0 1px #171715, 0 3px 0 1px #171715", "0 0 0 1px #c6b59c, 0 3px 0 1px #c6b59c"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineTokens } from "meowcss";
|
|
1
|
+
import { defineTokens, tokenRef } from "meowcss";
|
|
2
2
|
import { standardUiTokenValues } from "./tokens.js";
|
|
3
3
|
const sans = '"Geist Variable", Geist, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif';
|
|
4
4
|
const inkLift = ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
|
|
@@ -13,6 +13,25 @@ const drawnEdge = [
|
|
|
13
13
|
*/
|
|
14
14
|
export const doodleUiTokenValues = {
|
|
15
15
|
...standardUiTokenValues,
|
|
16
|
+
canvas: {
|
|
17
|
+
wash: [
|
|
18
|
+
"radial-gradient(ellipse 540px 430px at 0% 0%, #f1e5ca 0%, transparent 96%), radial-gradient(ellipse 500px 420px at 100% 60%, #dceef8 0%, transparent 96%)",
|
|
19
|
+
"radial-gradient(ellipse 540px 430px at 0% 0%, #33291e 0%, transparent 96%), radial-gradient(ellipse 500px 420px at 100% 60%, #202e38 0%, transparent 96%)",
|
|
20
|
+
],
|
|
21
|
+
selection: ["#f6db87", "#745927"],
|
|
22
|
+
},
|
|
23
|
+
marker: {
|
|
24
|
+
blue: ["#a8d8ef", "#2d536d"],
|
|
25
|
+
ochre: ["#f6db87", "#66512a"],
|
|
26
|
+
coral: ["#ff9787", "#723b31"],
|
|
27
|
+
},
|
|
28
|
+
button: {
|
|
29
|
+
filledStroke: "2px",
|
|
30
|
+
outlineStroke: "2px",
|
|
31
|
+
pressOffset: "2px",
|
|
32
|
+
filledPressed: String(tokenRef("ui", "shadow", "pressed")),
|
|
33
|
+
outlinePressed: String(tokenRef("ui", "shadow", "pressed")),
|
|
34
|
+
},
|
|
16
35
|
surface: {
|
|
17
36
|
canvas: ["#f9f8f4", "#191714"],
|
|
18
37
|
reading: ["#f9f8f4", "#191714"],
|
|
@@ -26,7 +45,9 @@ export const doodleUiTokenValues = {
|
|
|
26
45
|
},
|
|
27
46
|
inverse: { surface: ["#171715", "#393126"], ink: "#fbf3e5", action: "#a8d6ff" },
|
|
28
47
|
line: {
|
|
48
|
+
...standardUiTokenValues.line,
|
|
29
49
|
width: "1px",
|
|
50
|
+
raisedWidth: "2px",
|
|
30
51
|
edge: ["#171715", "#c6b59c"],
|
|
31
52
|
divider: ["#ddd8ce", "#504638"],
|
|
32
53
|
control: ["#57534c", "#9f907a"],
|
|
@@ -55,6 +76,8 @@ export const doodleUiTokenValues = {
|
|
|
55
76
|
},
|
|
56
77
|
control: {
|
|
57
78
|
...standardUiTokenValues.control,
|
|
79
|
+
regular: "44px",
|
|
80
|
+
large: "48px",
|
|
58
81
|
thumb: ["#ffffff", "#514333"],
|
|
59
82
|
knob: ["#ffffff", "#fbf3e5"],
|
|
60
83
|
},
|
|
@@ -91,10 +114,10 @@ export const doodleUiTokenValues = {
|
|
|
91
114
|
},
|
|
92
115
|
shadow: {
|
|
93
116
|
...standardUiTokenValues.shadow,
|
|
94
|
-
raised:
|
|
117
|
+
raised: inkLift,
|
|
95
118
|
field: ["none", "none"],
|
|
96
119
|
action: inkLift,
|
|
97
|
-
filled:
|
|
120
|
+
filled: inkLift,
|
|
98
121
|
pressed: "none",
|
|
99
122
|
float: drawnEdge,
|
|
100
123
|
dock: drawnEdge,
|