meowtail 0.4.0-alpha.3 → 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.
@@ -0,0 +1,138 @@
1
+ import { defineTokens, tokenRef } from "meowcss";
2
+ import { standardUiTokenValues } from "./tokens.js";
3
+ const sans = '"Geist Variable", Geist, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif';
4
+ const inkLift = ["0 2px 0 #171715", "0 2px 0 #c6b59c"];
5
+ const drawnEdge = [
6
+ "0 0 0 1px #171715, 0 3px 0 1px #171715",
7
+ "0 0 0 1px #c6b59c, 0 3px 0 1px #c6b59c",
8
+ ];
9
+ /**
10
+ * Doodle is an editorial paper-and-ink theme. A crisp, slightly offset ink edge marks important
11
+ * surfaces and actions; quiet dividers, clean type, and a sparse marker palette keep dense
12
+ * content readable. Illustrations and brand marks belong to the application, not the theme.
13
+ */
14
+ export const doodleUiTokenValues = {
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
+ },
35
+ surface: {
36
+ canvas: ["#f9f8f4", "#191714"],
37
+ reading: ["#f9f8f4", "#191714"],
38
+ raised: ["#ffffff", "#231f19"],
39
+ overlay: ["#fffdf6", "#2b261f"],
40
+ fill: ["#f3f1ea", "#302a22"],
41
+ field: ["#fffefa", "#1d1a16"],
42
+ tint: ["rgb(23 23 21 / 5%)", "rgb(251 243 229 / 8%)"],
43
+ knockout: ["#ffffff", "#231f19"],
44
+ scrim: ["rgb(23 23 21 / 26%)", "rgb(0 0 0 / 58%)"],
45
+ },
46
+ inverse: { surface: ["#171715", "#393126"], ink: "#fbf3e5", action: "#a8d6ff" },
47
+ line: {
48
+ ...standardUiTokenValues.line,
49
+ width: "1px",
50
+ raisedWidth: "2px",
51
+ edge: ["#171715", "#c6b59c"],
52
+ divider: ["#ddd8ce", "#504638"],
53
+ control: ["#57534c", "#9f907a"],
54
+ controlHover: ["#171715", "#e5d7c3"],
55
+ },
56
+ ink: {
57
+ primary: ["#171715", "#fbf3e5"],
58
+ secondary: ["#57534c", "#c6bbab"],
59
+ tertiary: ["#685f52", "#b5a997"],
60
+ chip: ["#50483c", "#e3d7c5"],
61
+ reading: ["#292620", "#ebdfcc"],
62
+ },
63
+ state: {
64
+ hover: ["rgb(0 109 204 / 7%)", "rgb(129 194 255 / 9%)"],
65
+ active: ["rgb(0 109 204 / 13%)", "rgb(129 194 255 / 16%)"],
66
+ focus: ["#006dcc", "#81c2ff"],
67
+ focusRing: ["rgb(0 109 204 / 23%)", "rgb(129 194 255 / 30%)"],
68
+ },
69
+ action: {
70
+ primary: ["#0065be", "#81c2ff"],
71
+ primaryHover: ["#0055a2", "#a4d4ff"],
72
+ onPrimary: ["#ffffff", "#17222d"],
73
+ soft: ["#f7e9bc", "#3e3220"],
74
+ danger: ["#b93125", "#ff7966"],
75
+ onDanger: ["#ffffff", "#27150f"],
76
+ },
77
+ control: {
78
+ ...standardUiTokenValues.control,
79
+ regular: "44px",
80
+ large: "48px",
81
+ thumb: ["#ffffff", "#514333"],
82
+ knob: ["#ffffff", "#fbf3e5"],
83
+ },
84
+ accent: {
85
+ base: ["#0065be", "#81c2ff"],
86
+ soft: ["#eaf4fc", "#23364a"],
87
+ selected: ["#dceefb", "#2a4056"],
88
+ ink: ["#00599f", "#a8d6ff"],
89
+ line: ["#a6c9e6", "#54718e"],
90
+ halo: ["rgb(0 109 204 / 25%)", "rgb(129 194 255 / 30%)"],
91
+ },
92
+ status: {
93
+ info: ["#0065be", "#81c2ff"],
94
+ success: ["#235b43", "#a0e0bf"],
95
+ warning: ["#8a460f", "#ffd29a"],
96
+ danger: ["#b93125", "#ff8d7a"],
97
+ unknown: ["#827a6c", "#a79b89"],
98
+ },
99
+ type: {
100
+ ...standardUiTokenValues.type,
101
+ sans,
102
+ display: sans,
103
+ reading: sans,
104
+ weight: { ...standardUiTokenValues.type.weight, display: "700" },
105
+ leading: "1.55",
106
+ trackingTight: "-0.035em",
107
+ },
108
+ radius: {
109
+ ...standardUiTokenValues.radius,
110
+ md: "10px",
111
+ lg: "12px",
112
+ xl: "16px",
113
+ xxl: "20px",
114
+ },
115
+ shadow: {
116
+ ...standardUiTokenValues.shadow,
117
+ raised: inkLift,
118
+ field: ["none", "none"],
119
+ action: inkLift,
120
+ filled: inkLift,
121
+ pressed: "none",
122
+ float: drawnEdge,
123
+ dock: drawnEdge,
124
+ },
125
+ motion: { ...standardUiTokenValues.motion, response: "150ms" },
126
+ glyph: {
127
+ ...standardUiTokenValues.glyph,
128
+ selectChevron: [
129
+ `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534c' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,
130
+ `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6bbab' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,
131
+ ],
132
+ },
133
+ };
134
+ export const doodleUiTokens = /* @__PURE__ */ defineTokens("ui", doodleUiTokenValues);
135
+ /** Optional Geist web font; system and CJK faces come from the host. */
136
+ export const doodleFonts = [
137
+ { family: "Geist Variable", package: "@fontsource-variable/geist", styles: ["normal"] },
138
+ ];