@yarcl/react 0.1.0 → 0.2.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 +14 -2
- package/{src/apply.ts → dist/apply.d.ts} +4 -23
- package/dist/apply.js +37 -0
- package/dist/classes.d.ts +13 -0
- package/dist/classes.js +22 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +58 -0
- package/dist/color.js +49 -32
- package/dist/components/Accordion.d.ts +96 -0
- package/dist/components/Accordion.js +148 -0
- package/dist/components/Alert.d.ts +60 -0
- package/dist/components/Alert.js +61 -0
- package/dist/components/Avatar.d.ts +100 -0
- package/dist/components/Avatar.js +89 -0
- package/dist/components/Badge.d.ts +44 -0
- package/dist/components/Badge.js +43 -0
- package/dist/components/Breadcrumb.d.ts +77 -0
- package/dist/components/Breadcrumb.js +126 -0
- package/dist/components/Button.d.ts +18 -0
- package/dist/components/Button.js +33 -0
- package/dist/components/ButtonGroup.d.ts +29 -0
- package/dist/components/ButtonGroup.js +37 -0
- package/dist/components/Card.d.ts +36 -0
- package/dist/components/Card.js +26 -0
- package/dist/components/Checkbox.d.ts +28 -0
- package/dist/components/Checkbox.js +38 -0
- package/dist/components/Combobox.d.ts +75 -0
- package/dist/components/Combobox.js +362 -0
- package/dist/components/CommandPalette.d.ts +92 -0
- package/dist/components/CommandPalette.js +293 -0
- package/dist/components/DatePicker.d.ts +157 -0
- package/dist/components/DatePicker.js +230 -0
- package/dist/components/Dialog.d.ts +25 -0
- package/dist/components/Dialog.js +29 -0
- package/dist/components/Divider.d.ts +23 -0
- package/dist/components/Divider.js +25 -0
- package/dist/components/Drawer.d.ts +21 -0
- package/dist/components/Drawer.js +25 -0
- package/dist/components/EmptyState.d.ts +51 -0
- package/dist/components/EmptyState.js +47 -0
- package/dist/components/Field.d.ts +27 -0
- package/dist/components/Field.js +59 -0
- package/dist/components/Heading.d.ts +26 -0
- package/dist/components/Heading.js +25 -0
- package/dist/components/HoverCard.d.ts +47 -0
- package/dist/components/HoverCard.js +53 -0
- package/dist/components/IconButton.d.ts +19 -0
- package/dist/components/IconButton.js +32 -0
- package/dist/components/Inline.d.ts +21 -0
- package/dist/components/Inline.js +24 -0
- package/dist/components/Input.d.ts +19 -0
- package/dist/components/Input.js +25 -0
- package/dist/components/Label.d.ts +46 -0
- package/dist/components/Label.js +33 -0
- package/dist/components/Link.d.ts +27 -0
- package/dist/components/Link.js +26 -0
- package/dist/components/Menu.d.ts +73 -0
- package/dist/components/Menu.js +143 -0
- package/dist/components/Modal.d.ts +45 -0
- package/dist/components/Modal.js +110 -0
- package/dist/components/NumberInput.d.ts +49 -0
- package/dist/components/NumberInput.js +130 -0
- package/dist/components/Pagination.d.ts +86 -0
- package/dist/components/Pagination.js +119 -0
- package/dist/components/Popover.d.ts +72 -0
- package/dist/components/Popover.js +87 -0
- package/dist/components/Progress.d.ts +60 -0
- package/dist/components/Progress.js +59 -0
- package/dist/components/Radio.d.ts +32 -0
- package/dist/components/Radio.js +47 -0
- package/dist/components/RadioGroup.d.ts +57 -0
- package/dist/components/RadioGroup.js +68 -0
- package/dist/components/Select.d.ts +47 -0
- package/dist/components/Select.js +138 -0
- package/dist/components/Skeleton.d.ts +46 -0
- package/dist/components/Skeleton.js +40 -0
- package/dist/components/Slider.d.ts +126 -0
- package/dist/components/Slider.js +166 -0
- package/dist/components/Spinner.d.ts +23 -0
- package/dist/components/Spinner.js +23 -0
- package/dist/components/Stack.d.ts +35 -0
- package/dist/components/Stack.js +24 -0
- package/dist/components/Switch.d.ts +27 -0
- package/dist/components/Switch.js +33 -0
- package/dist/components/Table.d.ts +71 -0
- package/dist/components/Table.js +61 -0
- package/dist/components/Tabs.d.ts +66 -0
- package/dist/components/Tabs.js +109 -0
- package/dist/components/Text.d.ts +32 -0
- package/dist/components/Text.js +28 -0
- package/dist/components/Textarea.d.ts +15 -0
- package/dist/components/Textarea.js +24 -0
- package/dist/components/Toast.d.ts +90 -0
- package/dist/components/Toast.js +156 -0
- package/dist/components/ToggleGroup.d.ts +79 -0
- package/dist/components/ToggleGroup.js +101 -0
- package/dist/components/Tooltip.d.ts +46 -0
- package/dist/components/Tooltip.js +62 -0
- package/dist/components/VisuallyHidden.d.ts +18 -0
- package/dist/components/VisuallyHidden.js +22 -0
- package/dist/contrast.d.ts +32 -0
- package/dist/css.d.ts +2 -2
- package/dist/css.js +193 -157
- package/dist/define.d.ts +40 -15
- package/dist/define.js +30 -27
- package/dist/demo.d.ts +2 -0
- package/dist/demo.js +2 -0
- package/dist/esbuild.cjs +5 -0
- package/dist/esbuild.d.ts +4 -0
- package/dist/esbuild.js +6 -0
- package/dist/field-context.d.ts +16 -0
- package/dist/field-context.js +17 -0
- package/dist/floating.d.ts +12 -0
- package/dist/floating.js +52 -0
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +12 -0
- package/{src/index.ts → dist/index.d.ts} +11 -33
- package/dist/index.js +50 -0
- package/dist/init.d.ts +18 -0
- package/dist/init.js +224 -0
- package/dist/plugin.d.ts +10 -26
- package/dist/plugin.js +152 -78
- package/dist/reference/DemoYarcl.d.ts +12 -0
- package/dist/reference/DemoYarcl.js +312 -0
- package/dist/reference/DesignReference.d.ts +24 -0
- package/dist/reference/DesignReference.js +403 -0
- package/dist/reference/index.js +2 -0
- package/dist/rollup.cjs +5 -0
- package/dist/rollup.d.ts +4 -0
- package/dist/rollup.js +6 -0
- package/dist/rspack.cjs +5 -0
- package/dist/rspack.d.ts +4 -0
- package/dist/rspack.js +6 -0
- package/dist/runtime.d.ts +13 -0
- package/dist/runtime.js +30 -0
- package/dist/setup.d.ts +6 -0
- package/dist/setup.js +33 -0
- package/{src → dist}/styles.css +224 -106
- package/dist/themes/bloom.d.ts +295 -0
- package/dist/themes/bloom.js +202 -0
- package/dist/themes/brutalist.d.ts +277 -0
- package/dist/themes/brutalist.js +199 -0
- package/dist/themes/compact.d.ts +274 -0
- package/dist/themes/compact.js +200 -0
- package/dist/themes/contract.d.ts +23 -0
- package/dist/themes/editorial.d.ts +277 -0
- package/dist/themes/editorial.js +183 -0
- package/dist/themes/index.d.ts +1425 -0
- package/dist/themes/index.js +45 -0
- package/{src/types.ts → dist/types.d.ts} +40 -37
- package/dist/vite.cjs +5 -0
- package/dist/vite.d.ts +4 -0
- package/dist/vite.js +6 -0
- package/dist/webpack.cjs +5 -0
- package/dist/webpack.d.ts +4 -0
- package/dist/webpack.js +6 -0
- package/dist/yarcl.config.d.ts +276 -0
- package/dist/yarcl.config.js +273 -0
- package/package.json +69 -17
- package/src/classes.ts +0 -23
- package/src/color.ts +0 -48
- package/src/components/Accordion.tsx +0 -274
- package/src/components/Alert.tsx +0 -85
- package/src/components/Badge.tsx +0 -79
- package/src/components/Breadcrumb.tsx +0 -239
- package/src/components/Button.tsx +0 -58
- package/src/components/ButtonGroup.tsx +0 -61
- package/src/components/Card.tsx +0 -50
- package/src/components/Checkbox.tsx +0 -49
- package/src/components/Combobox.tsx +0 -522
- package/src/components/CommandPalette.tsx +0 -452
- package/src/components/DatePicker.tsx +0 -432
- package/src/components/Dialog.tsx +0 -39
- package/src/components/Divider.tsx +0 -34
- package/src/components/Drawer.tsx +0 -31
- package/src/components/Field.tsx +0 -61
- package/src/components/Heading.tsx +0 -40
- package/src/components/HoverCard.tsx +0 -108
- package/src/components/IconButton.tsx +0 -59
- package/src/components/Inline.tsx +0 -42
- package/src/components/Input.tsx +0 -28
- package/src/components/Label.tsx +0 -58
- package/src/components/Link.tsx +0 -41
- package/src/components/Menu.tsx +0 -207
- package/src/components/Modal.tsx +0 -164
- package/src/components/NumberInput.tsx +0 -208
- package/src/components/Pagination.tsx +0 -227
- package/src/components/Popover.tsx +0 -140
- package/src/components/Progress.tsx +0 -122
- package/src/components/Radio.tsx +0 -59
- package/src/components/RadioGroup.tsx +0 -114
- package/src/components/Select.tsx +0 -197
- package/src/components/Skeleton.tsx +0 -95
- package/src/components/Slider.tsx +0 -315
- package/src/components/Spinner.tsx +0 -38
- package/src/components/Stack.tsx +0 -57
- package/src/components/Switch.tsx +0 -42
- package/src/components/Table.tsx +0 -99
- package/src/components/Tabs.tsx +0 -159
- package/src/components/Text.tsx +0 -67
- package/src/components/Textarea.tsx +0 -26
- package/src/components/Toast.tsx +0 -190
- package/src/components/ToggleGroup.tsx +0 -227
- package/src/components/Tooltip.tsx +0 -78
- package/src/contrast.ts +0 -82
- package/src/css.ts +0 -228
- package/src/define.check.ts +0 -259
- package/src/define.ts +0 -379
- package/src/field-context.ts +0 -31
- package/src/floating.tsx +0 -61
- package/src/hooks.ts +0 -19
- package/src/plugin.ts +0 -94
- package/src/reference/DesignReference.tsx +0 -374
- package/src/runtime.ts +0 -38
- package/src/themes/bloom.ts +0 -72
- package/src/themes/brutalist.ts +0 -63
- package/src/themes/compact.ts +0 -63
- package/src/themes/contract.ts +0 -24
- package/src/themes/editorial.ts +0 -55
- package/src/themes/index.ts +0 -47
- package/src/yarcl.config.ts +0 -104
- /package/{src/reference/index.ts → dist/reference/index.d.ts} +0 -0
- /package/{src → dist}/reference/reference.css +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/** Loud and flat: red on black and white, square corners, thick borders, hard offset shadows, monospace type. */
|
|
2
|
+
export declare const brutalist: {
|
|
3
|
+
readonly colors: {
|
|
4
|
+
readonly primary: {
|
|
5
|
+
readonly light: "#ff3d2e";
|
|
6
|
+
readonly dark: "#ff5a4d";
|
|
7
|
+
};
|
|
8
|
+
readonly neutral: {
|
|
9
|
+
readonly light: "#1a1a1a";
|
|
10
|
+
readonly dark: "#f5f5f5";
|
|
11
|
+
};
|
|
12
|
+
readonly success: {
|
|
13
|
+
readonly light: "#00b862";
|
|
14
|
+
readonly dark: "#3dfc9a";
|
|
15
|
+
};
|
|
16
|
+
readonly warning: {
|
|
17
|
+
readonly light: "#ff8a00";
|
|
18
|
+
readonly dark: "#ffb14a";
|
|
19
|
+
};
|
|
20
|
+
readonly danger: {
|
|
21
|
+
readonly light: "#c2005a";
|
|
22
|
+
readonly dark: "#ff5ca1";
|
|
23
|
+
};
|
|
24
|
+
readonly info: {
|
|
25
|
+
readonly light: "#2f6bff";
|
|
26
|
+
readonly dark: "#7aa2ff";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly neutrals: {
|
|
30
|
+
readonly bg: {
|
|
31
|
+
readonly light: "#fffdf2";
|
|
32
|
+
readonly dark: "#0f0f0f";
|
|
33
|
+
};
|
|
34
|
+
readonly surface: {
|
|
35
|
+
readonly light: "#ffffff";
|
|
36
|
+
readonly dark: "#1a1a1a";
|
|
37
|
+
};
|
|
38
|
+
readonly text: {
|
|
39
|
+
readonly light: "#000000";
|
|
40
|
+
readonly dark: "#ffffff";
|
|
41
|
+
};
|
|
42
|
+
readonly muted: {
|
|
43
|
+
readonly light: "#3d3d3d";
|
|
44
|
+
readonly dark: "#cfcfcf";
|
|
45
|
+
};
|
|
46
|
+
readonly border: {
|
|
47
|
+
readonly light: "#000000";
|
|
48
|
+
readonly dark: "#ffffff";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly sizes: {
|
|
52
|
+
readonly xs: {
|
|
53
|
+
readonly height: "1.75rem";
|
|
54
|
+
readonly paddingX: "0.625rem";
|
|
55
|
+
readonly fontSize: "0.75rem";
|
|
56
|
+
readonly iconSize: "0.75rem";
|
|
57
|
+
};
|
|
58
|
+
readonly sm: {
|
|
59
|
+
readonly height: "2rem";
|
|
60
|
+
readonly paddingX: "0.75rem";
|
|
61
|
+
readonly fontSize: "0.8125rem";
|
|
62
|
+
readonly iconSize: "0.875rem";
|
|
63
|
+
};
|
|
64
|
+
readonly md: {
|
|
65
|
+
readonly height: "2.5rem";
|
|
66
|
+
readonly paddingX: "1rem";
|
|
67
|
+
readonly fontSize: "0.875rem";
|
|
68
|
+
readonly iconSize: "1rem";
|
|
69
|
+
};
|
|
70
|
+
readonly lg: {
|
|
71
|
+
readonly height: "3rem";
|
|
72
|
+
readonly paddingX: "1.25rem";
|
|
73
|
+
readonly fontSize: "1rem";
|
|
74
|
+
readonly iconSize: "1.25rem";
|
|
75
|
+
};
|
|
76
|
+
readonly xl: {
|
|
77
|
+
readonly height: "3.5rem";
|
|
78
|
+
readonly paddingX: "1.5rem";
|
|
79
|
+
readonly fontSize: "1.125rem";
|
|
80
|
+
readonly iconSize: "1.5rem";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly radii: {
|
|
84
|
+
readonly square: "0";
|
|
85
|
+
readonly sm: "0";
|
|
86
|
+
readonly md: "0";
|
|
87
|
+
readonly lg: "0";
|
|
88
|
+
readonly xl: "0";
|
|
89
|
+
readonly rounded: "9999px";
|
|
90
|
+
};
|
|
91
|
+
readonly variants: {
|
|
92
|
+
readonly solid: {
|
|
93
|
+
readonly background: "fill";
|
|
94
|
+
readonly border: "neutral";
|
|
95
|
+
readonly text: "on";
|
|
96
|
+
};
|
|
97
|
+
readonly soft: {
|
|
98
|
+
readonly background: "tint";
|
|
99
|
+
readonly border: "neutral";
|
|
100
|
+
readonly text: "neutral";
|
|
101
|
+
};
|
|
102
|
+
readonly outline: {
|
|
103
|
+
readonly background: "none";
|
|
104
|
+
readonly border: "neutral";
|
|
105
|
+
readonly text: "neutral";
|
|
106
|
+
};
|
|
107
|
+
readonly ghost: {
|
|
108
|
+
readonly background: "none";
|
|
109
|
+
readonly border: "none";
|
|
110
|
+
readonly text: "neutral";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly shadows: {
|
|
114
|
+
readonly sm: "3px 3px 0 0 light-dark(#000000, #ffffff)";
|
|
115
|
+
readonly md: "5px 5px 0 0 light-dark(#000000, #ffffff)";
|
|
116
|
+
readonly lg: "8px 8px 0 0 light-dark(#000000, #ffffff)";
|
|
117
|
+
};
|
|
118
|
+
readonly borders: {
|
|
119
|
+
readonly width: "2px";
|
|
120
|
+
};
|
|
121
|
+
readonly typography: {
|
|
122
|
+
readonly families: {
|
|
123
|
+
readonly sans: "\"JetBrains Mono\", \"SF Mono\", ui-monospace, Menlo, Consolas, monospace";
|
|
124
|
+
readonly mono: "\"JetBrains Mono\", \"SF Mono\", ui-monospace, Menlo, Consolas, monospace";
|
|
125
|
+
};
|
|
126
|
+
readonly styles: {
|
|
127
|
+
readonly display: {
|
|
128
|
+
readonly family: "sans";
|
|
129
|
+
readonly size: "2.5rem";
|
|
130
|
+
readonly weight: 800;
|
|
131
|
+
readonly lineHeight: 1;
|
|
132
|
+
readonly letterSpacing: "-0.04em";
|
|
133
|
+
};
|
|
134
|
+
readonly heading: {
|
|
135
|
+
readonly family: "sans";
|
|
136
|
+
readonly size: "1.5rem";
|
|
137
|
+
readonly weight: 800;
|
|
138
|
+
readonly lineHeight: 1.15;
|
|
139
|
+
readonly letterSpacing: "-0.02em";
|
|
140
|
+
};
|
|
141
|
+
readonly subheading: {
|
|
142
|
+
readonly family: "sans";
|
|
143
|
+
readonly size: "1.125rem";
|
|
144
|
+
readonly weight: 700;
|
|
145
|
+
readonly lineHeight: 1.3;
|
|
146
|
+
};
|
|
147
|
+
readonly body: {
|
|
148
|
+
readonly family: "sans";
|
|
149
|
+
readonly size: "0.875rem";
|
|
150
|
+
readonly weight: 400;
|
|
151
|
+
readonly lineHeight: 1.55;
|
|
152
|
+
};
|
|
153
|
+
readonly caption: {
|
|
154
|
+
readonly family: "sans";
|
|
155
|
+
readonly size: "0.75rem";
|
|
156
|
+
readonly weight: 400;
|
|
157
|
+
readonly lineHeight: 1.45;
|
|
158
|
+
};
|
|
159
|
+
readonly code: {
|
|
160
|
+
readonly family: "mono";
|
|
161
|
+
readonly size: "0.8125rem";
|
|
162
|
+
readonly weight: 400;
|
|
163
|
+
readonly lineHeight: 1.5;
|
|
164
|
+
};
|
|
165
|
+
readonly label: {
|
|
166
|
+
readonly family: "sans";
|
|
167
|
+
readonly size: "0.8125rem";
|
|
168
|
+
readonly weight: 700;
|
|
169
|
+
readonly lineHeight: 1.4;
|
|
170
|
+
readonly letterSpacing: "0.04em";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly headings: {
|
|
174
|
+
readonly h1: "display";
|
|
175
|
+
readonly h2: "heading";
|
|
176
|
+
readonly h3: "heading";
|
|
177
|
+
readonly h4: "subheading";
|
|
178
|
+
readonly h5: "subheading";
|
|
179
|
+
readonly h6: "label";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly focusRing: {
|
|
183
|
+
readonly width: "3px";
|
|
184
|
+
readonly offset: "3px";
|
|
185
|
+
readonly color: "neutral";
|
|
186
|
+
readonly style: "dashed";
|
|
187
|
+
};
|
|
188
|
+
readonly defaults: {
|
|
189
|
+
readonly radius: "md";
|
|
190
|
+
readonly padding: "lg";
|
|
191
|
+
readonly floatingShadow: "md";
|
|
192
|
+
readonly size: "md";
|
|
193
|
+
readonly color: "primary";
|
|
194
|
+
readonly variant: "solid";
|
|
195
|
+
readonly errorColor: "danger";
|
|
196
|
+
readonly textStyle: "body";
|
|
197
|
+
readonly labelStyle: "label";
|
|
198
|
+
readonly helperStyle: "caption";
|
|
199
|
+
readonly gap: "md";
|
|
200
|
+
readonly density: "comfortable";
|
|
201
|
+
readonly softVariant: "soft";
|
|
202
|
+
readonly modalSize: "md";
|
|
203
|
+
};
|
|
204
|
+
readonly spacing: {
|
|
205
|
+
readonly xs: "0.25rem";
|
|
206
|
+
readonly sm: "0.5rem";
|
|
207
|
+
readonly md: "1rem";
|
|
208
|
+
readonly lg: "1.5rem";
|
|
209
|
+
readonly xl: "2rem";
|
|
210
|
+
};
|
|
211
|
+
readonly density: {
|
|
212
|
+
readonly compact: {
|
|
213
|
+
readonly paddingX: "0.5rem";
|
|
214
|
+
readonly paddingY: "0.25rem";
|
|
215
|
+
readonly fontSize: "0.8125rem";
|
|
216
|
+
};
|
|
217
|
+
readonly comfortable: {
|
|
218
|
+
readonly paddingX: "0.75rem";
|
|
219
|
+
readonly paddingY: "0.625rem";
|
|
220
|
+
readonly fontSize: "0.875rem";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly modalSizes: {
|
|
224
|
+
readonly sm: "24rem";
|
|
225
|
+
readonly md: "32rem";
|
|
226
|
+
readonly lg: "48rem";
|
|
227
|
+
readonly xl: "64rem";
|
|
228
|
+
readonly full: "100vw";
|
|
229
|
+
};
|
|
230
|
+
readonly zIndex: {
|
|
231
|
+
readonly dropdown: 1000;
|
|
232
|
+
readonly tooltip: 1100;
|
|
233
|
+
readonly dialog: 1200;
|
|
234
|
+
readonly toast: 1300;
|
|
235
|
+
};
|
|
236
|
+
readonly motion: {
|
|
237
|
+
readonly fast: "120ms";
|
|
238
|
+
readonly base: "200ms";
|
|
239
|
+
readonly easing: "cubic-bezier(0.2, 0, 0, 1)";
|
|
240
|
+
};
|
|
241
|
+
readonly timing: {
|
|
242
|
+
readonly tooltipDelay: 400;
|
|
243
|
+
readonly hoverOpenDelay: 300;
|
|
244
|
+
readonly hoverCloseDelay: 150;
|
|
245
|
+
readonly toastDuration: 5000;
|
|
246
|
+
};
|
|
247
|
+
readonly components: {
|
|
248
|
+
readonly Avatar: {
|
|
249
|
+
readonly radius: "rounded";
|
|
250
|
+
};
|
|
251
|
+
readonly EmptyState: {
|
|
252
|
+
readonly color: "neutral";
|
|
253
|
+
readonly gap: "sm";
|
|
254
|
+
readonly padding: "lg";
|
|
255
|
+
readonly textStyle: "body";
|
|
256
|
+
};
|
|
257
|
+
readonly Alert: {
|
|
258
|
+
readonly gap: "sm";
|
|
259
|
+
readonly padding: "md";
|
|
260
|
+
readonly textStyle: "label";
|
|
261
|
+
};
|
|
262
|
+
readonly Drawer: {
|
|
263
|
+
readonly size: "sm";
|
|
264
|
+
};
|
|
265
|
+
readonly Tooltip: {
|
|
266
|
+
readonly radius: "md";
|
|
267
|
+
readonly padding: "sm";
|
|
268
|
+
readonly textStyle: "caption";
|
|
269
|
+
};
|
|
270
|
+
readonly Toast: {
|
|
271
|
+
readonly radius: "lg";
|
|
272
|
+
readonly gap: "sm";
|
|
273
|
+
readonly padding: "md";
|
|
274
|
+
readonly textStyle: "label";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { defineConfig } from "../define.js";
|
|
2
|
+
import yarcl_config_default from "../yarcl.config.js";
|
|
3
|
+
//#region src/themes/brutalist.ts
|
|
4
|
+
var ink = "light-dark(#000000, #ffffff)";
|
|
5
|
+
/** Loud and flat: red on black and white, square corners, thick borders, hard offset shadows, monospace type. */
|
|
6
|
+
var brutalist = defineConfig({
|
|
7
|
+
...yarcl_config_default,
|
|
8
|
+
colors: {
|
|
9
|
+
primary: {
|
|
10
|
+
light: "#ff3d2e",
|
|
11
|
+
dark: "#ff5a4d"
|
|
12
|
+
},
|
|
13
|
+
neutral: {
|
|
14
|
+
light: "#1a1a1a",
|
|
15
|
+
dark: "#f5f5f5"
|
|
16
|
+
},
|
|
17
|
+
success: {
|
|
18
|
+
light: "#00b862",
|
|
19
|
+
dark: "#3dfc9a"
|
|
20
|
+
},
|
|
21
|
+
warning: {
|
|
22
|
+
light: "#ff8a00",
|
|
23
|
+
dark: "#ffb14a"
|
|
24
|
+
},
|
|
25
|
+
danger: {
|
|
26
|
+
light: "#c2005a",
|
|
27
|
+
dark: "#ff5ca1"
|
|
28
|
+
},
|
|
29
|
+
info: {
|
|
30
|
+
light: "#2f6bff",
|
|
31
|
+
dark: "#7aa2ff"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
neutrals: {
|
|
35
|
+
bg: {
|
|
36
|
+
light: "#fffdf2",
|
|
37
|
+
dark: "#0f0f0f"
|
|
38
|
+
},
|
|
39
|
+
surface: {
|
|
40
|
+
light: "#ffffff",
|
|
41
|
+
dark: "#1a1a1a"
|
|
42
|
+
},
|
|
43
|
+
text: {
|
|
44
|
+
light: "#000000",
|
|
45
|
+
dark: "#ffffff"
|
|
46
|
+
},
|
|
47
|
+
muted: {
|
|
48
|
+
light: "#3d3d3d",
|
|
49
|
+
dark: "#cfcfcf"
|
|
50
|
+
},
|
|
51
|
+
border: {
|
|
52
|
+
light: "#000000",
|
|
53
|
+
dark: "#ffffff"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
sizes: {
|
|
57
|
+
xs: {
|
|
58
|
+
height: "1.75rem",
|
|
59
|
+
paddingX: "0.625rem",
|
|
60
|
+
fontSize: "0.75rem",
|
|
61
|
+
iconSize: "0.75rem"
|
|
62
|
+
},
|
|
63
|
+
sm: {
|
|
64
|
+
height: "2rem",
|
|
65
|
+
paddingX: "0.75rem",
|
|
66
|
+
fontSize: "0.8125rem",
|
|
67
|
+
iconSize: "0.875rem"
|
|
68
|
+
},
|
|
69
|
+
md: {
|
|
70
|
+
height: "2.5rem",
|
|
71
|
+
paddingX: "1rem",
|
|
72
|
+
fontSize: "0.875rem",
|
|
73
|
+
iconSize: "1rem"
|
|
74
|
+
},
|
|
75
|
+
lg: {
|
|
76
|
+
height: "3rem",
|
|
77
|
+
paddingX: "1.25rem",
|
|
78
|
+
fontSize: "1rem",
|
|
79
|
+
iconSize: "1.25rem"
|
|
80
|
+
},
|
|
81
|
+
xl: {
|
|
82
|
+
height: "3.5rem",
|
|
83
|
+
paddingX: "1.5rem",
|
|
84
|
+
fontSize: "1.125rem",
|
|
85
|
+
iconSize: "1.5rem"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
radii: {
|
|
89
|
+
square: "0",
|
|
90
|
+
sm: "0",
|
|
91
|
+
md: "0",
|
|
92
|
+
lg: "0",
|
|
93
|
+
xl: "0",
|
|
94
|
+
rounded: "9999px"
|
|
95
|
+
},
|
|
96
|
+
variants: {
|
|
97
|
+
solid: {
|
|
98
|
+
background: "fill",
|
|
99
|
+
border: "neutral",
|
|
100
|
+
text: "on"
|
|
101
|
+
},
|
|
102
|
+
soft: {
|
|
103
|
+
background: "tint",
|
|
104
|
+
border: "neutral",
|
|
105
|
+
text: "neutral"
|
|
106
|
+
},
|
|
107
|
+
outline: {
|
|
108
|
+
background: "none",
|
|
109
|
+
border: "neutral",
|
|
110
|
+
text: "neutral"
|
|
111
|
+
},
|
|
112
|
+
ghost: {
|
|
113
|
+
background: "none",
|
|
114
|
+
border: "none",
|
|
115
|
+
text: "neutral"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
shadows: {
|
|
119
|
+
sm: `3px 3px 0 0 ${ink}`,
|
|
120
|
+
md: `5px 5px 0 0 ${ink}`,
|
|
121
|
+
lg: `8px 8px 0 0 ${ink}`
|
|
122
|
+
},
|
|
123
|
+
borders: { width: "2px" },
|
|
124
|
+
typography: {
|
|
125
|
+
families: {
|
|
126
|
+
sans: "\"JetBrains Mono\", \"SF Mono\", ui-monospace, Menlo, Consolas, monospace",
|
|
127
|
+
mono: "\"JetBrains Mono\", \"SF Mono\", ui-monospace, Menlo, Consolas, monospace"
|
|
128
|
+
},
|
|
129
|
+
styles: {
|
|
130
|
+
display: {
|
|
131
|
+
family: "sans",
|
|
132
|
+
size: "2.5rem",
|
|
133
|
+
weight: 800,
|
|
134
|
+
lineHeight: 1,
|
|
135
|
+
letterSpacing: "-0.04em"
|
|
136
|
+
},
|
|
137
|
+
heading: {
|
|
138
|
+
family: "sans",
|
|
139
|
+
size: "1.5rem",
|
|
140
|
+
weight: 800,
|
|
141
|
+
lineHeight: 1.15,
|
|
142
|
+
letterSpacing: "-0.02em"
|
|
143
|
+
},
|
|
144
|
+
subheading: {
|
|
145
|
+
family: "sans",
|
|
146
|
+
size: "1.125rem",
|
|
147
|
+
weight: 700,
|
|
148
|
+
lineHeight: 1.3
|
|
149
|
+
},
|
|
150
|
+
body: {
|
|
151
|
+
family: "sans",
|
|
152
|
+
size: "0.875rem",
|
|
153
|
+
weight: 400,
|
|
154
|
+
lineHeight: 1.55
|
|
155
|
+
},
|
|
156
|
+
caption: {
|
|
157
|
+
family: "sans",
|
|
158
|
+
size: "0.75rem",
|
|
159
|
+
weight: 400,
|
|
160
|
+
lineHeight: 1.45
|
|
161
|
+
},
|
|
162
|
+
code: {
|
|
163
|
+
family: "mono",
|
|
164
|
+
size: "0.8125rem",
|
|
165
|
+
weight: 400,
|
|
166
|
+
lineHeight: 1.5
|
|
167
|
+
},
|
|
168
|
+
label: {
|
|
169
|
+
family: "sans",
|
|
170
|
+
size: "0.8125rem",
|
|
171
|
+
weight: 700,
|
|
172
|
+
lineHeight: 1.4,
|
|
173
|
+
letterSpacing: "0.04em"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
headings: {
|
|
177
|
+
h1: "display",
|
|
178
|
+
h2: "heading",
|
|
179
|
+
h3: "heading",
|
|
180
|
+
h4: "subheading",
|
|
181
|
+
h5: "subheading",
|
|
182
|
+
h6: "label"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
focusRing: {
|
|
186
|
+
width: "3px",
|
|
187
|
+
offset: "3px",
|
|
188
|
+
color: "neutral",
|
|
189
|
+
style: "dashed"
|
|
190
|
+
},
|
|
191
|
+
defaults: {
|
|
192
|
+
...yarcl_config_default.defaults,
|
|
193
|
+
radius: "md",
|
|
194
|
+
padding: "lg",
|
|
195
|
+
floatingShadow: "md"
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
//#endregion
|
|
199
|
+
export { brutalist };
|