nuxt-ui-ink 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 miguilim
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,113 @@
1
- # Temporary Holding Version
1
+ # nuxt-ui-ink
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A theme for [Nuxt UI](https://ui.nuxt.com) 4, as a Nuxt layer. Monochrome, with one blue accent, in light and dark.
4
+
5
+ Surfaces have no border: a card, a field or a menu is drawn by a half-pixel line and a small shadow. The primary
6
+ button is a dark chip. A focused field darkens its edge instead of growing a ring. Controls are a little smaller
7
+ than Nuxt UI's.
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ npm install nuxt-ui-ink
13
+ ```
14
+
15
+ `nuxt.config.ts`
16
+
17
+ ```ts
18
+ export default defineNuxtConfig({
19
+ extends: ['nuxt-ui-ink'],
20
+ css: ['~/assets/css/main.css']
21
+ })
22
+ ```
23
+
24
+ `app/assets/css/main.css`
25
+
26
+ ```css
27
+ @import "tailwindcss";
28
+ @import "@nuxt/ui";
29
+ @import "nuxt-ui-ink/theme.css";
30
+ ```
31
+
32
+ The layer adds the Nuxt UI module, the component overrides, Hugeicons for the icons Nuxt UI renders itself, and the
33
+ Inter font. The stylesheet has to be imported from yours so Tailwind compiles both together.
34
+
35
+ ## Classes
36
+
37
+ | Class | Use |
38
+ | --- | --- |
39
+ | `bg-page` | The gray page behind cards. Already set on `body`. |
40
+ | `bg-stage` | A well inside a card, such as the area behind a picture. |
41
+ | `bg-raised` | A surface on a tinted track, such as the knob of a segmented control. |
42
+ | `ring-stroke`, `border-stroke`, `divide-stroke` | Lines between things. |
43
+ | `ring-edge`, `border-edge` | A firmer line, as on a checkbox. |
44
+ | `outline-focus` | The keyboard-focus ring. |
45
+ | `shadow-card`, `shadow-card-hover` | A surface at rest and hovered. |
46
+ | `shadow-focus` | A focused field. |
47
+ | `shadow-lift` | A hovered card that links somewhere. |
48
+ | `shadow-pop`, `shadow-dialog` | Menus and popovers; dialogs. |
49
+ | `rounded-card`, `rounded-dialog` | 10px and 14px, between Nuxt UI's steps. |
50
+ | `btn-ink` | A gradient button with a beveled edge: `<UButton class="btn-ink" />`. |
51
+ | `hero-glow`, `dot-grid` | Backdrops for a hero. |
52
+ | `scrollbar-none`, `scrollbar-thin` | Scrolling rows and panels. |
53
+
54
+ ## Customizing
55
+
56
+ Colors, shadows and the radius are CSS variables. Set them after the import:
57
+
58
+ ```css
59
+ :root {
60
+ --ui-radius: 0.375rem;
61
+ --ink-page: #fafafa;
62
+ }
63
+
64
+ .dark {
65
+ --ink-page: #000;
66
+ }
67
+ ```
68
+
69
+ `theme.css` lists all of them.
70
+
71
+ Component overrides are in the layer's `app/app.config.ts`. Your own `app.config.ts` is merged over it:
72
+
73
+ ```ts
74
+ export default defineAppConfig({
75
+ ui: {
76
+ colors: { secondary: 'violet', info: 'violet' },
77
+ card: { slots: { body: 'p-6' } }
78
+ }
79
+ })
80
+ ```
81
+
82
+ ## Notes
83
+
84
+ - `bg-elevated` and `bg-accented` are translucent (black at 4% and 7% in light mode), so they show on the gray page
85
+ and on white cards alike. Two of them stacked get darker, and they do not hide what is behind them. Use
86
+ `bg-(--ink-solid)` where that matters.
87
+ - The half-pixel lines are sharp on high-density screens and can look softer on a 1x display.
88
+ - Sizes keep Nuxt UI's names but are smaller. Buttons are 20, 24, 28, 32 and 36px high (`xs` to `xl`), four less
89
+ than Nuxt UI's, with 13px text at `md`. Fields keep their height (32px at `md`) and use 13px text on desktop; on
90
+ phones they stay at 16px so the browser does not zoom. A button joined to a field in a `UFieldGroup` takes the
91
+ field's height.
92
+ - Keyboard focus shows as a blue ring (`--ink-focus`).
93
+
94
+ ## Development
95
+
96
+ ```sh
97
+ pnpm install
98
+ pnpm dev # playground on http://localhost:4310
99
+ pnpm test
100
+ pnpm typecheck
101
+ pnpm preview # the production build, in the Workers runtime
102
+ pnpm deploy # build and publish the showcase to Cloudflare Workers
103
+ ```
104
+
105
+ The playground is also the showcase site: a landing page, the components in groups under `/components`, and a page
106
+ per overlay where it is already open (`/open/modal`, `/open/toast`, `/open/dropdown` and so on).
107
+
108
+ `pnpm test` checks every component, slot and variant name in the overrides against the themes Nuxt UI generates, so a
109
+ renamed slot in a new Nuxt UI version fails the test instead of silently styling nothing.
110
+
111
+ ## License
112
+
113
+ MIT
@@ -0,0 +1,847 @@
1
+ /*
2
+ * The theme's component overrides. A project that extends the layer can override any of it in its own app.config:
3
+ * Nuxt merges the two, the project's values last.
4
+ *
5
+ * Surfaces have no border here: their edge is the half-pixel line in their shadow (`shadow-card`, `shadow-pop`).
6
+ */
7
+
8
+ /** What holds content: a card and its relatives */
9
+ const surface = 'ring-0 shadow-card'
10
+
11
+ /** What floats over the page: menus, popovers, toasts */
12
+ const pop = 'bg-default ring-0 shadow-pop rounded-xl'
13
+
14
+ /** A menu row lights up at the full tint; half of it would not show */
15
+ const row = 'before:rounded-lg data-highlighted:not-data-disabled:before:bg-elevated'
16
+ const rowByState = 'data-highlighted:before:bg-elevated data-[state=open]:before:bg-elevated'
17
+
18
+ /** A field at rest and hovered */
19
+ const field = 'bg-default ring-0 shadow-card hover:shadow-card-hover disabled:shadow-card'
20
+ const fieldBase = 'rounded-[7px] transition-[box-shadow,background-color]'
21
+ const fieldSoft = 'bg-elevated hover:bg-accented focus:bg-accented has-focus:bg-accented'
22
+ const fieldSubtle = 'ring-stroke'
23
+
24
+ /** A focused field darkens its edge; it gets no ring and no halo */
25
+ const focus = { color: 'primary' as const, variant: 'outline' as const, class: 'outline-0 focus-visible:outline-0 focus-visible:shadow-focus' }
26
+ const focusWithin = { color: 'primary' as const, variant: 'outline' as const, class: 'outline-0 has-focus-visible:outline-0 has-focus-visible:shadow-focus' }
27
+
28
+ /** Controls are set in 13px, one step under Nuxt UI's 14px (phones keep 16px in fields, so they do not zoom) */
29
+ const small = 'text-[13px]/5'
30
+
31
+ /** A field's text and icons at the two middle sizes, and the room its icons take */
32
+ const fieldSizes = {
33
+ md: { leadingIcon: 'size-4', trailingIcon: 'size-4' },
34
+ lg: { leadingIcon: 'size-4', trailingIcon: 'size-4' }
35
+ }
36
+ const fieldText = [
37
+ { fixed: false, size: 'md' as const, class: 'md:text-[13px]/5' },
38
+ { fixed: false, size: 'lg' as const, class: 'md:text-[13px]/5' }
39
+ ]
40
+ const fieldIcons = [
41
+ { leading: true, size: 'md' as const, class: 'ps-8' },
42
+ { trailing: true, size: 'md' as const, class: 'pe-8' },
43
+ { leading: true, size: 'lg' as const, class: 'ps-9' },
44
+ { trailing: true, size: 'lg' as const, class: 'pe-9' }
45
+ ]
46
+
47
+ /** A field that opens a menu: its rows follow */
48
+ const pickerSizes = {
49
+ md: { ...fieldSizes.md, item: small, itemLeadingIcon: 'size-4 my-0.5', itemTrailingIcon: 'size-4 my-0.5' },
50
+ lg: fieldSizes.lg
51
+ }
52
+
53
+ /** A menu row at the default size */
54
+ // A 16px icon beside a 20px line sits in its middle
55
+ const rowSizes = { md: { label: 'text-xs', item: small, itemLeadingIcon: 'size-4 my-0.5', itemTrailingIcon: 'size-4 my-0.5' } }
56
+
57
+ /** The ring around what the keyboard is on */
58
+ const ring = 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus'
59
+ const everyColor = ['primary', 'secondary', 'success', 'info', 'warning', 'error', 'neutral'] as const
60
+
61
+ /** A tag inside a field */
62
+ const tag = 'rounded-sm ring-0 bg-accented'
63
+
64
+ /** A chosen option shown as a card or a table row: a quiet tint and a firmer edge */
65
+ const chosen = 'has-data-[state=checked]:bg-muted has-data-[state=checked]:border-edge'
66
+
67
+ /** What dims the page behind a dialog */
68
+ const scrim = 'bg-(--ink-scrim)'
69
+
70
+ /** The four ways a block can be drawn, for the components that share them */
71
+ const blocks = {
72
+ outline: { root: surface },
73
+ soft: { root: 'bg-elevated' },
74
+ subtle: { root: 'bg-elevated ring-stroke' }
75
+ }
76
+
77
+ /** Thin lines inside a menu */
78
+ const line = 'bg-(--ink-stroke)'
79
+
80
+ export default defineAppConfig({
81
+ ui: {
82
+ colors: {
83
+ primary: 'neutral',
84
+ secondary: 'azure',
85
+ info: 'azure',
86
+ success: 'emerald',
87
+ warning: 'amber',
88
+ error: 'rose',
89
+ neutral: 'neutral'
90
+ },
91
+
92
+ // The theme's own shadows and radii replace Nuxt UI's when both are on an element
93
+ tv: {
94
+ twMergeConfig: {
95
+ extend: {
96
+ classGroups: {
97
+ shadow: [{ shadow: ['card', 'card-hover', 'focus', 'lift', 'pop', 'dialog', 'knob'] }],
98
+ rounded: [{ rounded: ['card', 'dialog'] }]
99
+ }
100
+ }
101
+ }
102
+ },
103
+
104
+ // Hugeicons (stroke rounded) for every icon the library renders on its own
105
+ icons: {
106
+ arrowDown: 'i-hugeicons-arrow-down-02',
107
+ arrowLeft: 'i-hugeicons-arrow-left-02',
108
+ arrowRight: 'i-hugeicons-arrow-right-02',
109
+ arrowUp: 'i-hugeicons-arrow-up-02',
110
+ caution: 'i-hugeicons-alert-circle',
111
+ check: 'i-hugeicons-tick-02',
112
+ chevronDoubleLeft: 'i-hugeicons-arrow-left-double',
113
+ chevronDoubleRight: 'i-hugeicons-arrow-right-double',
114
+ chevronDown: 'i-hugeicons-arrow-down-01',
115
+ chevronLeft: 'i-hugeicons-arrow-left-01',
116
+ chevronRight: 'i-hugeicons-arrow-right-01',
117
+ chevronUp: 'i-hugeicons-arrow-up-01',
118
+ close: 'i-hugeicons-cancel-01',
119
+ copy: 'i-hugeicons-copy-01',
120
+ copyCheck: 'i-hugeicons-checkmark-circle-02',
121
+ dark: 'i-hugeicons-moon-02',
122
+ drag: 'i-hugeicons-drag-drop-vertical',
123
+ edit: 'i-hugeicons-pencil-edit-01',
124
+ ellipsis: 'i-hugeicons-more-horizontal',
125
+ error: 'i-hugeicons-cancel-circle',
126
+ external: 'i-hugeicons-arrow-up-right-01',
127
+ eye: 'i-hugeicons-view',
128
+ eyeOff: 'i-hugeicons-view-off',
129
+ file: 'i-hugeicons-file-01',
130
+ folder: 'i-hugeicons-folder-01',
131
+ folderOpen: 'i-hugeicons-folder-open',
132
+ hash: 'i-hugeicons-grid',
133
+ info: 'i-hugeicons-information-circle',
134
+ light: 'i-hugeicons-sun-03',
135
+ loading: 'i-hugeicons-loading-03',
136
+ menu: 'i-hugeicons-menu-01',
137
+ minus: 'i-hugeicons-minus-sign',
138
+ panelClose: 'i-hugeicons-sidebar-left-01',
139
+ panelOpen: 'i-hugeicons-sidebar-left',
140
+ plus: 'i-hugeicons-plus-sign',
141
+ reload: 'i-hugeicons-refresh',
142
+ search: 'i-hugeicons-search-01',
143
+ star: 'i-hugeicons-star',
144
+ stop: 'i-hugeicons-stop',
145
+ success: 'i-hugeicons-checkmark-circle-02',
146
+ system: 'i-hugeicons-computer',
147
+ tip: 'i-hugeicons-idea-01',
148
+ trash: 'i-hugeicons-delete-02',
149
+ upload: 'i-hugeicons-upload-01',
150
+ warning: 'i-hugeicons-alert-02'
151
+ },
152
+
153
+ /* ── Elements ─────────────────────────────────────────────────────────────────────────────────────────── */
154
+
155
+ // Four pixels shorter than Nuxt UI's at every size: 20, 24, 28, 32 and 36 high
156
+ button: {
157
+ slots: {
158
+ base: 'font-medium transition-[background-color,color,box-shadow,scale] active:scale-[0.98]'
159
+ },
160
+ variants: {
161
+ size: {
162
+ xs: { base: 'px-1.5 py-0.5 text-xs gap-1', leadingIcon: 'size-3.5', trailingIcon: 'size-3.5' },
163
+ sm: { base: 'px-2 py-1 text-xs gap-1', leadingIcon: 'size-3.5', trailingIcon: 'size-3.5' },
164
+ md: { base: `px-2.5 py-1 ${small} gap-1.5`, leadingIcon: 'size-4', trailingIcon: 'size-4' },
165
+ lg: { base: `px-3 py-1.5 ${small} gap-1.5`, leadingIcon: 'size-4', trailingIcon: 'size-4' },
166
+ xl: { base: 'px-3.5 py-2 text-sm gap-2', leadingIcon: 'size-5', trailingIcon: 'size-5' }
167
+ }
168
+ },
169
+ compoundVariants: [
170
+ // A dark chip
171
+ { color: 'primary', variant: 'solid', class: 'hover:bg-primary/90 active:bg-primary/90' },
172
+ // White, drawn by its shadow
173
+ { color: 'neutral', variant: 'outline', class: 'bg-default text-highlighted ring-0 shadow-card hover:bg-default hover:shadow-card-hover active:bg-default focus-visible:ring-0' },
174
+ { color: 'neutral', variant: 'soft', class: 'bg-elevated text-highlighted hover:bg-accented active:bg-accented' },
175
+ { color: 'neutral', variant: 'subtle', class: 'bg-elevated text-highlighted ring-stroke hover:bg-accented' },
176
+ // A muted label until hovered
177
+ { color: 'neutral', variant: 'ghost', class: 'text-toned hover:text-highlighted hover:bg-elevated active:bg-elevated' },
178
+ { color: [...everyColor], class: ring },
179
+ // An icon alone makes a square of the same height
180
+ { size: 'xs', square: true, class: 'p-[3px]' },
181
+ { size: 'sm', square: true, class: 'p-[5px]' },
182
+ // Joined to a field, a button takes the field's height
183
+ { fieldGroup: ['horizontal', 'vertical'], size: 'xs', class: 'py-1' },
184
+ { fieldGroup: ['horizontal', 'vertical'], size: 'sm', class: 'py-1.5' },
185
+ { fieldGroup: ['horizontal', 'vertical'], size: 'md', class: 'py-1.5' },
186
+ { fieldGroup: ['horizontal', 'vertical'], size: 'lg', class: 'py-2' },
187
+ { fieldGroup: ['horizontal', 'vertical'], size: 'xl', class: 'py-2.5' },
188
+ { fieldGroup: ['horizontal', 'vertical'], size: 'md', square: true, class: 'p-2' }
189
+ ]
190
+ },
191
+
192
+ badge: {
193
+ slots: {
194
+ base: 'rounded-sm font-medium'
195
+ },
196
+ variants: {
197
+ size: {
198
+ sm: { base: 'px-1 py-0.5 text-[10px]/3.5' },
199
+ md: { base: 'px-1.5 py-0.5 text-xs' },
200
+ lg: { base: 'px-2 py-0.5 text-[13px]/5' }
201
+ }
202
+ },
203
+ compoundVariants: [
204
+ { color: 'neutral', variant: 'outline', class: 'bg-default text-toned ring-0 shadow-card' },
205
+ { color: 'neutral', variant: 'soft', class: 'bg-accented text-toned' },
206
+ { color: 'neutral', variant: 'subtle', class: 'bg-elevated text-toned ring-stroke' }
207
+ ]
208
+ },
209
+
210
+ kbd: {
211
+ compoundVariants: [
212
+ { color: 'neutral', variant: 'outline', class: 'bg-accented text-toned ring-0' },
213
+ { color: 'neutral', variant: 'subtle', class: 'bg-elevated text-toned ring-stroke' }
214
+ ]
215
+ },
216
+
217
+ card: {
218
+ slots: {
219
+ root: 'rounded-card',
220
+ header: 'p-4 sm:px-5',
221
+ body: 'p-4 sm:p-5',
222
+ footer: 'p-4 sm:px-5'
223
+ },
224
+ variants: {
225
+ variant: {
226
+ outline: { root: `${surface} divide-stroke` },
227
+ soft: { root: 'bg-elevated divide-stroke' },
228
+ subtle: { root: 'bg-elevated ring-stroke divide-stroke' }
229
+ }
230
+ }
231
+ },
232
+
233
+ alert: {
234
+ slots: {
235
+ root: 'rounded-card',
236
+ title: 'font-medium'
237
+ },
238
+ compoundVariants: [
239
+ { color: 'neutral', variant: 'outline', class: { root: surface } },
240
+ { color: 'neutral', variant: 'soft', class: { root: 'bg-elevated' } },
241
+ { color: 'neutral', variant: 'subtle', class: { root: 'bg-elevated ring-stroke' } }
242
+ ]
243
+ },
244
+
245
+ avatar: {
246
+ slots: {
247
+ root: 'bg-(--ink-solid)',
248
+ fallback: 'text-toned'
249
+ }
250
+ },
251
+
252
+ empty: {
253
+ slots: {
254
+ root: 'rounded-card'
255
+ },
256
+ variants: {
257
+ variant: blocks
258
+ }
259
+ },
260
+
261
+ skeleton: {
262
+ base: 'bg-accented'
263
+ },
264
+
265
+ progress: {
266
+ slots: {
267
+ base: 'bg-accented'
268
+ }
269
+ },
270
+
271
+ progressGroup: {
272
+ slots: {
273
+ base: 'bg-accented'
274
+ }
275
+ },
276
+
277
+ carousel: {
278
+ slots: {
279
+ dot: 'size-2 bg-(--ink-track) data-[state=active]:bg-inverted'
280
+ }
281
+ },
282
+
283
+ /* ── Forms ────────────────────────────────────────────────────────────────────────────────────────────── */
284
+
285
+ input: {
286
+ slots: {
287
+ base: fieldBase
288
+ },
289
+ variants: {
290
+ size: fieldSizes,
291
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
292
+ },
293
+ compoundVariants: [focus, ...fieldText, ...fieldIcons]
294
+ },
295
+
296
+ textarea: {
297
+ slots: {
298
+ base: fieldBase
299
+ },
300
+ variants: {
301
+ size: fieldSizes,
302
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
303
+ },
304
+ compoundVariants: [focus, ...fieldText, ...fieldIcons]
305
+ },
306
+
307
+ inputNumber: {
308
+ slots: {
309
+ base: fieldBase
310
+ },
311
+ variants: {
312
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
313
+ },
314
+ compoundVariants: [focus, ...fieldText]
315
+ },
316
+
317
+ pinInput: {
318
+ slots: {
319
+ base: fieldBase
320
+ },
321
+ variants: {
322
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
323
+ },
324
+ compoundVariants: [focus, ...fieldText]
325
+ },
326
+
327
+ inputTags: {
328
+ slots: {
329
+ base: fieldBase,
330
+ item: tag
331
+ },
332
+ variants: {
333
+ size: fieldSizes,
334
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
335
+ },
336
+ compoundVariants: [focusWithin, ...fieldText, ...fieldIcons]
337
+ },
338
+
339
+ inputDate: {
340
+ slots: {
341
+ base: fieldBase
342
+ },
343
+ variants: {
344
+ size: fieldSizes,
345
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
346
+ },
347
+ compoundVariants: [focusWithin, ...fieldText, ...fieldIcons]
348
+ },
349
+
350
+ inputTime: {
351
+ slots: {
352
+ base: fieldBase
353
+ },
354
+ variants: {
355
+ size: fieldSizes,
356
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
357
+ },
358
+ compoundVariants: [focusWithin, ...fieldText, ...fieldIcons]
359
+ },
360
+
361
+ inputMenu: {
362
+ slots: {
363
+ base: fieldBase,
364
+ content: pop,
365
+ item: row,
366
+ separator: line,
367
+ tagsItem: tag
368
+ },
369
+ variants: {
370
+ size: pickerSizes,
371
+ variant: { outline: field, soft: fieldSoft, subtle: fieldSubtle }
372
+ },
373
+ compoundVariants: [focusWithin, ...fieldText, ...fieldIcons]
374
+ },
375
+
376
+ select: {
377
+ slots: {
378
+ base: fieldBase,
379
+ content: pop,
380
+ item: row,
381
+ separator: line
382
+ },
383
+ variants: {
384
+ size: pickerSizes,
385
+ variant: { outline: `${field} hover:bg-default`, soft: fieldSoft, subtle: fieldSubtle }
386
+ },
387
+ compoundVariants: [focus, ...fieldText, ...fieldIcons]
388
+ },
389
+
390
+ selectMenu: {
391
+ slots: {
392
+ base: fieldBase,
393
+ content: pop,
394
+ item: row,
395
+ separator: line,
396
+ input: 'border-stroke'
397
+ },
398
+ variants: {
399
+ size: pickerSizes,
400
+ variant: { outline: `${field} hover:bg-default`, soft: fieldSoft, subtle: fieldSubtle }
401
+ },
402
+ compoundVariants: [focus, ...fieldText, ...fieldIcons]
403
+ },
404
+
405
+ checkbox: {
406
+ slots: {
407
+ base: `rounded-[4.5px] bg-default ring-edge ${ring}`
408
+ },
409
+ variants: {
410
+ variant: {
411
+ card: { root: 'rounded-card bg-default border-stroke shadow-card' }
412
+ }
413
+ },
414
+ compoundVariants: [
415
+ { color: 'primary', variant: 'card', class: { root: chosen } }
416
+ ]
417
+ },
418
+
419
+ checkboxGroup: {
420
+ variants: {
421
+ variant: {
422
+ table: { item: 'bg-default border-stroke' }
423
+ }
424
+ },
425
+ compoundVariants: [
426
+ { color: 'primary', variant: 'table', class: { item: chosen } }
427
+ ]
428
+ },
429
+
430
+ radioGroup: {
431
+ slots: {
432
+ base: `bg-default ring-edge ${ring}`
433
+ },
434
+ variants: {
435
+ variant: {
436
+ card: { item: 'rounded-card bg-default border-stroke shadow-card' },
437
+ table: { item: 'bg-default border-stroke' }
438
+ }
439
+ },
440
+ compoundVariants: [
441
+ { color: 'primary', variant: ['card', 'table'], class: { item: chosen } }
442
+ ]
443
+ },
444
+
445
+ // 32 by 20 at the default size
446
+ switch: {
447
+ slots: {
448
+ base: `data-[state=unchecked]:bg-(--ink-track) ${ring}`,
449
+ thumb: 'shadow-knob'
450
+ },
451
+ variants: {
452
+ size: {
453
+ md: {
454
+ base: 'w-8',
455
+ thumb: 'group-active/switch:w-4.5 data-[state=checked]:translate-x-3 data-[state=checked]:group-active/switch:translate-x-2.5 data-[state=checked]:rtl:-translate-x-3 data-[state=checked]:rtl:group-active/switch:-translate-x-2.5'
456
+ }
457
+ }
458
+ }
459
+ },
460
+
461
+ slider: {
462
+ slots: {
463
+ track: 'bg-(--ink-track)',
464
+ thumb: 'bg-white ring-0 shadow-knob'
465
+ }
466
+ },
467
+
468
+ fileUpload: {
469
+ slots: {
470
+ base: 'rounded-card border-accented',
471
+ file: 'rounded-lg'
472
+ }
473
+ },
474
+
475
+ listbox: {
476
+ slots: {
477
+ root: `rounded-card bg-default ${surface}`,
478
+ input: 'border-stroke',
479
+ item: row,
480
+ separator: line
481
+ }
482
+ },
483
+
484
+ colorPicker: {
485
+ slots: {
486
+ selectorThumb: 'shadow-knob',
487
+ trackThumb: 'shadow-knob'
488
+ }
489
+ },
490
+
491
+ /* ── Data ─────────────────────────────────────────────────────────────────────────────────────────────── */
492
+
493
+ table: {
494
+ slots: {
495
+ th: 'text-xs font-medium text-muted uppercase tracking-wide',
496
+ tbody: 'divide-stroke'
497
+ }
498
+ },
499
+
500
+ // A chart's readout is a small popover, not one of the dark hints below
501
+ chart: {
502
+ slots: {
503
+ tooltip: 'bg-raised text-default ring-0 shadow-pop rounded-lg gap-0.5 px-3 py-2'
504
+ }
505
+ },
506
+
507
+ accordion: {
508
+ slots: {
509
+ item: 'border-stroke',
510
+ trigger: 'text-highlighted'
511
+ }
512
+ },
513
+
514
+ timeline: {
515
+ slots: {
516
+ separator: 'bg-accented'
517
+ }
518
+ },
519
+
520
+ tree: {
521
+ slots: {
522
+ listWithChildren: 'border-stroke'
523
+ },
524
+ compoundVariants: [
525
+ { selected: false, disabled: false, class: { link: 'hover:before:bg-elevated' } }
526
+ ]
527
+ },
528
+
529
+ user: {
530
+ slots: {
531
+ name: 'font-medium text-highlighted'
532
+ }
533
+ },
534
+
535
+ /* ── Navigation ───────────────────────────────────────────────────────────────────────────────────────── */
536
+
537
+ // Pill tabs as a segmented control: a raised knob on a tinted track, 28px high at the default size
538
+ tabs: {
539
+ slots: {
540
+ trigger: ring
541
+ },
542
+ variants: {
543
+ size: {
544
+ xs: { trigger: 'px-1.5 py-px text-xs gap-1', leadingIcon: 'size-3.5' },
545
+ sm: { trigger: 'px-2 py-0.5 text-xs gap-1', leadingIcon: 'size-3.5' },
546
+ md: { trigger: `px-2.5 py-0.5 ${small} gap-1.5`, leadingIcon: 'size-4' },
547
+ lg: { trigger: `px-3 py-1 ${small} gap-1.5`, leadingIcon: 'size-4' },
548
+ xl: { trigger: 'px-3 py-1.5 text-sm gap-2', leadingIcon: 'size-5' }
549
+ }
550
+ },
551
+ compoundVariants: [
552
+ {
553
+ color: ['primary', 'neutral'],
554
+ variant: 'pill',
555
+ class: {
556
+ list: 'bg-elevated p-0.5',
557
+ indicator: 'bg-raised shadow-card',
558
+ trigger: 'data-[state=active]:text-highlighted data-[state=inactive]:text-toned'
559
+ }
560
+ },
561
+ { orientation: 'horizontal', variant: 'pill', class: { indicator: 'inset-y-0.5' } },
562
+ { orientation: 'vertical', variant: 'pill', class: { indicator: 'inset-x-0.5' } }
563
+ ]
564
+ },
565
+
566
+ navigationMenu: {
567
+ slots: {
568
+ viewport: 'ring-0 shadow-pop rounded-xl',
569
+ separator: line,
570
+ childLink: 'before:rounded-lg'
571
+ },
572
+ variants: {
573
+ active: {
574
+ false: {
575
+ childLink: 'hover:before:bg-elevated'
576
+ }
577
+ }
578
+ },
579
+ compoundVariants: [
580
+ { disabled: false, active: false, variant: 'pill', class: { link: 'hover:before:bg-elevated' } },
581
+ { disabled: false, variant: 'pill', highlight: false, active: false, orientation: 'horizontal', class: { link: 'data-[state=open]:before:bg-elevated' } }
582
+ ]
583
+ },
584
+
585
+ stepper: {
586
+ slots: {
587
+ separator: 'bg-accented'
588
+ }
589
+ },
590
+
591
+ header: {
592
+ slots: {
593
+ root: 'bg-page/75 backdrop-blur-xl border-b border-stroke'
594
+ }
595
+ },
596
+
597
+ footer: {
598
+ slots: {
599
+ root: 'border-t border-stroke'
600
+ }
601
+ },
602
+
603
+ /* ── Overlays ─────────────────────────────────────────────────────────────────────────────────────────── */
604
+
605
+ dropdownMenu: {
606
+ slots: {
607
+ content: pop,
608
+ label: 'font-medium text-muted',
609
+ item: 'before:rounded-lg',
610
+ input: 'border-stroke',
611
+ separator: line
612
+ },
613
+ variants: {
614
+ size: rowSizes,
615
+ active: {
616
+ false: { item: rowByState }
617
+ }
618
+ }
619
+ },
620
+
621
+ contextMenu: {
622
+ slots: {
623
+ content: pop,
624
+ label: 'font-medium text-muted',
625
+ item: 'before:rounded-lg',
626
+ separator: line
627
+ },
628
+ variants: {
629
+ size: rowSizes,
630
+ active: {
631
+ false: { item: rowByState }
632
+ }
633
+ }
634
+ },
635
+
636
+ popover: {
637
+ slots: {
638
+ content: pop
639
+ }
640
+ },
641
+
642
+ // The one dark surface: a hint reads as a label, not as a panel
643
+ tooltip: {
644
+ slots: {
645
+ content: 'bg-inverted/92 text-inverted ring-0 shadow-[0_4px_12px_-4px_rgb(0_0_0/0.24)] rounded-md backdrop-blur-sm'
646
+ }
647
+ },
648
+
649
+ modal: {
650
+ slots: {
651
+ content: 'divide-stroke',
652
+ title: 'text-[15px] font-medium'
653
+ },
654
+ variants: {
655
+ fullscreen: {
656
+ false: { content: 'rounded-dialog ring-0 shadow-dialog' }
657
+ },
658
+ overlay: {
659
+ true: { overlay: scrim }
660
+ }
661
+ }
662
+ },
663
+
664
+ slideover: {
665
+ slots: {
666
+ overlay: scrim,
667
+ content: 'divide-stroke sm:ring-0 sm:shadow-dialog',
668
+ title: 'font-medium'
669
+ }
670
+ },
671
+
672
+ drawer: {
673
+ slots: {
674
+ overlay: scrim,
675
+ content: 'ring-0 shadow-dialog',
676
+ title: 'font-medium'
677
+ }
678
+ },
679
+
680
+ toast: {
681
+ slots: {
682
+ root: 'ring-0 shadow-pop rounded-xl'
683
+ }
684
+ },
685
+
686
+ commandPalette: {
687
+ slots: {
688
+ root: 'divide-stroke',
689
+ item: row
690
+ }
691
+ },
692
+
693
+ /* ── Page building blocks ─────────────────────────────────────────────────────────────────────────────── */
694
+
695
+ pageCard: {
696
+ slots: {
697
+ root: 'rounded-card'
698
+ },
699
+ variants: {
700
+ variant: blocks
701
+ }
702
+ },
703
+
704
+ pageCTA: {
705
+ variants: {
706
+ variant: blocks
707
+ }
708
+ },
709
+
710
+ pageHeader: {
711
+ slots: {
712
+ root: 'border-stroke'
713
+ }
714
+ },
715
+
716
+ blogPost: {
717
+ slots: {
718
+ root: 'rounded-card'
719
+ },
720
+ variants: {
721
+ variant: blocks
722
+ }
723
+ },
724
+
725
+ pricingPlan: {
726
+ slots: {
727
+ root: 'rounded-card'
728
+ },
729
+ variants: {
730
+ variant: blocks
731
+ }
732
+ },
733
+
734
+ pricingTable: {
735
+ slots: {
736
+ item: 'rounded-card bg-default border-stroke shadow-card',
737
+ th: 'border-stroke',
738
+ td: 'border-stroke'
739
+ }
740
+ },
741
+
742
+ changelogVersion: {
743
+ slots: {
744
+ footer: 'border-stroke',
745
+ dot: 'ring-0 shadow-card'
746
+ }
747
+ },
748
+
749
+ /* ── Dashboard ────────────────────────────────────────────────────────────────────────────────────────── */
750
+
751
+ dashboardNavbar: {
752
+ slots: {
753
+ root: 'border-stroke'
754
+ }
755
+ },
756
+
757
+ dashboardToolbar: {
758
+ slots: {
759
+ root: 'border-stroke'
760
+ }
761
+ },
762
+
763
+ dashboardPanel: {
764
+ slots: {
765
+ root: 'lg:not-last:border-stroke'
766
+ }
767
+ },
768
+
769
+ sidebar: {
770
+ slots: {
771
+ inner: 'divide-stroke'
772
+ },
773
+ variants: {
774
+ variant: {
775
+ floating: { inner: 'rounded-xl ring-0 shadow-pop' }
776
+ }
777
+ }
778
+ },
779
+
780
+ /* ── Chat and editor ──────────────────────────────────────────────────────────────────────────────────── */
781
+
782
+ chatPrompt: {
783
+ slots: {
784
+ root: 'rounded-xl'
785
+ },
786
+ variants: {
787
+ variant: {
788
+ outline: { root: `bg-default ${surface}` },
789
+ soft: { root: 'bg-elevated' },
790
+ subtle: { root: 'bg-elevated ring-stroke' }
791
+ }
792
+ }
793
+ },
794
+
795
+ chatAttachment: {
796
+ variants: {
797
+ variant: {
798
+ card: { root: 'border-stroke shadow-card' }
799
+ }
800
+ }
801
+ },
802
+
803
+ chatTool: {
804
+ variants: {
805
+ variant: {
806
+ card: { root: `rounded-lg ${surface}` }
807
+ }
808
+ }
809
+ },
810
+
811
+ chatPalette: {
812
+ slots: {
813
+ prompt: 'border-stroke'
814
+ }
815
+ },
816
+
817
+ editorEmojiMenu: {
818
+ slots: {
819
+ content: pop,
820
+ item: 'before:rounded-lg',
821
+ separator: line
822
+ }
823
+ },
824
+
825
+ editorMentionMenu: {
826
+ slots: {
827
+ content: pop,
828
+ item: 'before:rounded-lg',
829
+ separator: line
830
+ }
831
+ },
832
+
833
+ editorSuggestionMenu: {
834
+ slots: {
835
+ content: pop,
836
+ item: 'before:rounded-lg',
837
+ separator: line
838
+ }
839
+ },
840
+
841
+ editorToolbar: {
842
+ slots: {
843
+ separator: line
844
+ }
845
+ }
846
+ }
847
+ })
package/nuxt.config.ts ADDED
@@ -0,0 +1,16 @@
1
+ // The layer: `extends: ['nuxt-ui-ink']` in a project's nuxt.config, plus one line in its stylesheet
2
+ // (`@import "nuxt-ui-ink/theme.css";` after the Tailwind and Nuxt UI imports).
3
+ export default defineNuxtConfig({
4
+ modules: ['@nuxt/ui'],
5
+
6
+ $meta: {
7
+ name: 'nuxt-ui-ink'
8
+ },
9
+
10
+ // The theme is set in Inter at medium weights; Nuxt UI's font module fetches and self-hosts it
11
+ fonts: {
12
+ families: [
13
+ { name: 'Inter', weights: [400, 500, 600, 700], global: true }
14
+ ]
15
+ }
16
+ })
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "nuxt-ui-ink",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "A monochrome theme for Nuxt UI, as a Nuxt layer.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "miguilim",
8
+ "homepage": "https://nuxt-ui-ink.miguilim.workers.dev",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/miguilimzero/nuxt-ui-ink.git"
12
+ },
13
+ "bugs": "https://github.com/miguilimzero/nuxt-ui-ink/issues",
14
+ "keywords": [
15
+ "nuxt",
16
+ "nuxt-ui",
17
+ "nuxt-layer",
18
+ "theme",
19
+ "tailwindcss"
20
+ ],
21
+ "main": "./nuxt.config.ts",
22
+ "exports": {
23
+ ".": "./nuxt.config.ts",
24
+ "./theme.css": "./theme.css"
25
+ },
26
+ "files": [
27
+ "app",
28
+ "nuxt.config.ts",
29
+ "theme.css"
30
+ ],
31
+ "scripts": {
32
+ "dev": "nuxt dev playground --port 4310",
33
+ "build": "nuxt build playground",
34
+ "prepare:playground": "nuxt prepare playground",
35
+ "typecheck": "nuxt typecheck playground",
36
+ "test": "nuxt prepare playground && vitest run",
37
+ "deploy": "nuxt build playground && wrangler deploy --cwd playground",
38
+ "preview": "nuxt build playground && wrangler dev --cwd playground --port 4310"
39
+ },
40
+ "dependencies": {
41
+ "@iconify-json/hugeicons": "^1.2.36"
42
+ },
43
+ "peerDependencies": {
44
+ "@nuxt/ui": "^4.13.0",
45
+ "nuxt": "^4.0.0",
46
+ "tailwindcss": "^4.0.0"
47
+ },
48
+ "devDependencies": {
49
+ "@iconify-json/simple-icons": "^1.2.104",
50
+ "@internationalized/date": "^3.8.0",
51
+ "@nuxt/ui": "^4.13.0",
52
+ "nuxt": "^4.6.3",
53
+ "tailwindcss": "^4.3.3",
54
+ "typescript": "^6.0.3",
55
+ "vitest": "^5.1.1",
56
+ "vue-tsc": "^3.3.13",
57
+ "wrangler": "^4.169.0"
58
+ }
59
+ }
package/theme.css ADDED
@@ -0,0 +1,251 @@
1
+ /*
2
+ * nuxt-ui-ink
3
+ *
4
+ * Import after Tailwind and Nuxt UI:
5
+ *
6
+ * @import "tailwindcss";
7
+ * @import "@nuxt/ui";
8
+ * @import "nuxt-ui-ink/theme.css";
9
+ *
10
+ * Every value below is a CSS variable, so a project overrides what it wants after the import.
11
+ */
12
+
13
+ /* The component overrides live in the layer's app.config; their classes are picked up from here */
14
+ @source "./app/app.config.ts";
15
+
16
+ @theme static {
17
+ --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
18
+
19
+ /* The accent, used as Nuxt UI's `secondary` and `info` colors */
20
+ --color-azure-50: #f0f8fd;
21
+ --color-azure-100: #e0f0fa;
22
+ --color-azure-200: #bbe1f5;
23
+ --color-azure-300: #7fc8ec;
24
+ --color-azure-400: #3dabe0;
25
+ --color-azure-500: #1d93d2;
26
+ --color-azure-600: #1176b0;
27
+ --color-azure-700: #0f5e8e;
28
+ --color-azure-800: #114f75;
29
+ --color-azure-900: #144362;
30
+ --color-azure-950: #0d2b41;
31
+
32
+ /* Colors Nuxt UI has no token for: `bg-page`, `bg-stage`, `bg-raised`, `ring-stroke`, `ring-edge`… */
33
+ --color-page: var(--ink-page);
34
+ --color-stage: var(--ink-stage);
35
+ --color-raised: var(--ink-raised);
36
+ --color-stroke: var(--ink-stroke);
37
+ --color-edge: var(--ink-edge);
38
+ --color-focus: var(--ink-focus);
39
+
40
+ /* `rounded-card` and `rounded-dialog` sit between Nuxt UI's steps */
41
+ --radius-card: calc(var(--ui-radius) * 2.5);
42
+ --radius-dialog: calc(var(--ui-radius) * 3.5);
43
+
44
+ --shadow-card: var(--ink-shadow-card);
45
+ --shadow-card-hover: var(--ink-shadow-card-hover);
46
+ --shadow-focus: var(--ink-shadow-focus);
47
+ --shadow-lift: var(--ink-shadow-lift);
48
+ --shadow-pop: var(--ink-shadow-pop);
49
+ --shadow-dialog: var(--ink-shadow-dialog);
50
+ --shadow-knob: var(--ink-shadow-knob);
51
+
52
+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
53
+ --default-transition-duration: 140ms;
54
+ --default-transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
55
+ }
56
+
57
+ /* Light */
58
+ :root {
59
+ /* Buttons 6px (md), fields 7px, menu rows 8px (lg), cards 10px, menus 12px (xl), dialogs 14px */
60
+ --ui-radius: 0.25rem;
61
+
62
+ --ui-primary: #1f1f1f;
63
+
64
+ --ui-text-dimmed: #a3a3a3;
65
+ --ui-text-muted: #737373;
66
+ --ui-text-toned: #636363;
67
+ --ui-text: #1f1f1f;
68
+ --ui-text-highlighted: #0a0a0a;
69
+ --ui-text-inverted: #fcfcfc;
70
+
71
+ --ui-bg: #fff;
72
+ --ui-bg-muted: #fafafa;
73
+ /* The two tints are ink at a low opacity, so they show on the gray page as well as on a white card */
74
+ --ui-bg-elevated: rgb(0 0 0 / 0.04);
75
+ --ui-bg-accented: rgb(0 0 0 / 0.07);
76
+ --ui-bg-inverted: #18181b;
77
+
78
+ --ui-border: rgb(0 0 0 / 0.08);
79
+ --ui-border-muted: rgb(0 0 0 / 0.06);
80
+ --ui-border-accented: rgb(0 0 0 / 0.16);
81
+ --ui-border-inverted: #18181b;
82
+
83
+ /* Chart lines: ink first, then hues ordered so neighbors stay apart for color-blind readers */
84
+ --ui-chart-1: #1f1f1f;
85
+ --ui-chart-2: #1d93d2;
86
+ --ui-chart-3: #be123c;
87
+ --ui-chart-4: #c2710c;
88
+ --ui-chart-5: #8b5cf6;
89
+ --ui-chart-6: #0a8f67;
90
+
91
+ /* The page behind cards, and a well inside one */
92
+ --ink-page: #f5f5f5;
93
+ --ink-stage: #fafafa;
94
+ /* A surface on top of a tinted track: the knob of a segmented control */
95
+ --ink-raised: #fff;
96
+ /* A tint that hides what is under it: avatars that overlap */
97
+ --ink-solid: #f0f0f0;
98
+ /* Lines between things, and the firmer edge of a checkbox */
99
+ --ink-stroke: rgb(0 0 0 / 0.07);
100
+ --ink-edge: rgb(0 0 0 / 0.18);
101
+ /* A switch that is off */
102
+ --ink-track: rgb(0 0 0 / 0.12);
103
+ /* What dims the page behind a dialog */
104
+ --ink-scrim: rgb(0 0 0 / 0.16);
105
+ /* The ring around what the keyboard is on */
106
+ --ink-focus: rgb(0 96 226 / 0.7);
107
+
108
+ /* A surface is drawn by its shadow: a half-pixel edge and a small drop, no border */
109
+ --ink-shadow-card: 0 0 0 0.5px rgb(0 0 0 / 0.08), 0 1px 1px -1px rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.05);
110
+ --ink-shadow-card-hover: 0 0 0 0.5px rgb(0 0 0 / 0.13), 0 1px 1px -1px rgb(0 0 0 / 0.12), 0 1px 2px 0 rgb(0 0 0 / 0.06);
111
+ --ink-shadow-focus: 0 0 0 1px rgb(0 0 0 / 0.28), 0 1px 2px 0 rgb(0 0 0 / 0.06);
112
+ --ink-shadow-lift: 0 0 0 0.5px rgb(0 0 0 / 0.1), 0 2px 6px -1px rgb(0 0 0 / 0.08), 0 1px 2px 0 rgb(0 0 0 / 0.05);
113
+ --ink-shadow-pop: 0 0 0 0.5px rgb(0 0 0 / 0.1), 0 12px 32px -8px rgb(0 0 0 / 0.16);
114
+ --ink-shadow-dialog: 0 0 0 0.5px rgb(0 0 0 / 0.1), 0 24px 48px -12px rgb(0 0 0 / 0.22), 0 4px 12px -4px rgb(0 0 0 / 0.06);
115
+ --ink-shadow-knob: 0 1px 2px rgb(0 0 0 / 0.18), 0 0 0 0.5px rgb(0 0 0 / 0.04);
116
+
117
+ /* The optional gradient button (`btn-ink`) */
118
+ --ink-btn-top: #323137;
119
+ --ink-btn-bottom: #201e25;
120
+ --ink-btn-top-hover: #3c3b42;
121
+ --ink-btn-bottom-hover: #29272f;
122
+ --ink-btn-edge-1: #4b4951;
123
+ --ink-btn-edge-2: #31303a;
124
+ --ink-btn-edge-3: #18171b;
125
+ --ink-btn-ring: #0d0d0d;
126
+ --ink-btn-text: #fafafa;
127
+ }
128
+
129
+ /* Dark */
130
+ .dark {
131
+ --ui-primary: #e8e8e8;
132
+
133
+ --ui-text-dimmed: #6b6b70;
134
+ --ui-text-muted: #8f8f93;
135
+ --ui-text-toned: #a6a6aa;
136
+ --ui-text: #e6e6e6;
137
+ --ui-text-highlighted: #f5f5f5;
138
+ --ui-text-inverted: #161618;
139
+
140
+ --ui-bg: #1c1c1e;
141
+ --ui-bg-muted: #202022;
142
+ --ui-bg-elevated: rgb(255 255 255 / 0.06);
143
+ --ui-bg-accented: rgb(255 255 255 / 0.1);
144
+ --ui-bg-inverted: #f4f4f5;
145
+
146
+ --ui-border: rgb(255 255 255 / 0.09);
147
+ --ui-border-muted: rgb(255 255 255 / 0.06);
148
+ --ui-border-accented: rgb(255 255 255 / 0.2);
149
+ --ui-border-inverted: #f4f4f5;
150
+
151
+ --ui-chart-1: #e8e8e8;
152
+ --ui-chart-2: #3dabe0;
153
+ --ui-chart-3: #fb7185;
154
+ --ui-chart-4: #fbbf24;
155
+ --ui-chart-5: #a78bfa;
156
+ --ui-chart-6: #34d399;
157
+
158
+ --ink-page: #111113;
159
+ --ink-stage: #161618;
160
+ --ink-raised: #2c2c2f;
161
+ --ink-solid: #2c2c2f;
162
+ --ink-stroke: rgb(255 255 255 / 0.08);
163
+ --ink-edge: rgb(255 255 255 / 0.22);
164
+ --ink-track: rgb(255 255 255 / 0.16);
165
+ --ink-scrim: rgb(0 0 0 / 0.5);
166
+ --ink-focus: rgb(77 141 255 / 0.8);
167
+
168
+ --ink-shadow-card: 0 0 0 0.5px rgb(255 255 255 / 0.12), 0 1px 2px 0 rgb(0 0 0 / 0.4);
169
+ --ink-shadow-card-hover: 0 0 0 0.5px rgb(255 255 255 / 0.2), 0 1px 2px 0 rgb(0 0 0 / 0.4);
170
+ --ink-shadow-focus: 0 0 0 1px rgb(255 255 255 / 0.3), 0 1px 2px 0 rgb(0 0 0 / 0.4);
171
+ --ink-shadow-lift: 0 0 0 0.5px rgb(255 255 255 / 0.16), 0 2px 6px rgb(0 0 0 / 0.4);
172
+ --ink-shadow-pop: 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 12px 32px -8px rgb(0 0 0 / 0.6);
173
+ --ink-shadow-dialog: 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 24px 48px -12px rgb(0 0 0 / 0.6);
174
+ --ink-shadow-knob: 0 1px 2px rgb(0 0 0 / 0.5);
175
+
176
+ --ink-btn-top: #f4f4f5;
177
+ --ink-btn-bottom: #e4e4e7;
178
+ --ink-btn-top-hover: #fff;
179
+ --ink-btn-bottom-hover: #ececef;
180
+ --ink-btn-edge-1: #fff;
181
+ --ink-btn-edge-2: #f0f0f2;
182
+ --ink-btn-edge-3: #d4d4d8;
183
+ --ink-btn-ring: rgb(0 0 0 / 0.6);
184
+ --ink-btn-text: #121213;
185
+ }
186
+
187
+ @layer base {
188
+ body {
189
+ background-color: var(--ink-page);
190
+ font-feature-settings: 'cv11', 'ss01', 'ss03';
191
+ -webkit-font-smoothing: antialiased;
192
+ }
193
+
194
+ h1, h2, h3 {
195
+ letter-spacing: -0.02em;
196
+ }
197
+ }
198
+
199
+ /* A gradient button with a beveled edge, for the one action a page is about: `<UButton class="btn-ink">` */
200
+ @utility btn-ink {
201
+ border: 1px solid transparent;
202
+ background:
203
+ linear-gradient(var(--ink-btn-top), var(--ink-btn-bottom)) padding-box,
204
+ linear-gradient(var(--ink-btn-edge-1), var(--ink-btn-edge-2), var(--ink-btn-edge-3)) border-box;
205
+ box-shadow: 0 0 0 1px var(--ink-btn-ring), 0 2px 4px rgb(0 0 0 / 0.1);
206
+ color: var(--ink-btn-text);
207
+
208
+ &:hover:not(:disabled, [aria-disabled='true']) {
209
+ background:
210
+ linear-gradient(var(--ink-btn-top-hover), var(--ink-btn-bottom-hover)) padding-box,
211
+ linear-gradient(var(--ink-btn-edge-1), var(--ink-btn-edge-2), var(--ink-btn-edge-3)) border-box;
212
+ }
213
+ }
214
+
215
+ /* An accent-colored glow, for behind a page hero */
216
+ @utility hero-glow {
217
+ background-image:
218
+ radial-gradient(50% 70% at 50% 0%, color-mix(in oklab, var(--ui-color-secondary-500) 10%, transparent), transparent 70%);
219
+ }
220
+
221
+ /* A dotted grid that fades out, for behind a page hero */
222
+ @utility dot-grid {
223
+ background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ui-text-muted) 22%, transparent) 1px, transparent 0);
224
+ background-size: 22px 22px;
225
+ mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
226
+ }
227
+
228
+ @utility scrollbar-none {
229
+ scrollbar-width: none;
230
+
231
+ &::-webkit-scrollbar {
232
+ display: none;
233
+ }
234
+ }
235
+
236
+ @utility scrollbar-thin {
237
+ scrollbar-width: thin;
238
+ scrollbar-color: var(--ui-border-accented) transparent;
239
+ }
240
+
241
+ /* People who ask for less motion get none */
242
+ @media (prefers-reduced-motion: reduce) {
243
+ *,
244
+ ::before,
245
+ ::after {
246
+ animation-duration: 0.01ms !important;
247
+ animation-iteration-count: 1 !important;
248
+ scroll-behavior: auto !important;
249
+ transition-duration: 0.01ms !important;
250
+ }
251
+ }