@nyxwire/tailwind 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +195 -2
- package/dist/docs/foundations/accessibility.md +71 -0
- package/dist/docs/foundations/color-roles.md +114 -0
- package/dist/docs/foundations/effects-motion.md +150 -0
- package/dist/docs/foundations/flavors.md +156 -0
- package/dist/docs/foundations/icons.md +45 -0
- package/dist/docs/foundations/palette.md +180 -0
- package/dist/docs/foundations/spacing-elevation.md +168 -0
- package/dist/docs/foundations/typography.md +80 -0
- package/dist/docs/index.md +55 -0
- package/dist/docs/manifest.json +71 -0
- package/dist/docs/merging.md +109 -0
- package/dist/docs/setup.md +85 -0
- package/dist/docs/theme-reference.md +225 -0
- package/dist/docs/utilities.md +225 -0
- package/dist/merge.d.ts +9 -0
- package/dist/merge.js +113 -0
- package/index.css +4 -0
- package/package.json +63 -3
- package/theme.css +350 -0
package/theme.css
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/* Tailwind's mappings only. The entrypoint imports the Nyxwire tokens, fonts and base styles;
|
|
2
|
+
consumers that already load @nyxwire/css can import this file directly. */
|
|
3
|
+
@custom-variant abyss (&:where([data-flavor='abyss'], [data-flavor='abyss'] *));
|
|
4
|
+
@custom-variant nocturne (&:where([data-flavor='nocturne'], [data-flavor='nocturne'] *));
|
|
5
|
+
@custom-variant twilight (&:where([data-flavor='twilight'], [data-flavor='twilight'] *));
|
|
6
|
+
@custom-variant lumen (&:where([data-flavor='lumen'], [data-flavor='lumen'] *));
|
|
7
|
+
@custom-variant dark (
|
|
8
|
+
&:where(
|
|
9
|
+
[data-flavor='abyss'], [data-flavor='abyss'] *, [data-flavor='nocturne'],
|
|
10
|
+
[data-flavor='nocturne'] *, [data-flavor='twilight'], [data-flavor='twilight'] *
|
|
11
|
+
)
|
|
12
|
+
);
|
|
13
|
+
@custom-variant light (&:where([data-flavor='lumen'], [data-flavor='lumen'] *));
|
|
14
|
+
|
|
15
|
+
@theme inline {
|
|
16
|
+
/* Raw palette colors are prefixed so the neutral named base cannot capture text-base. */
|
|
17
|
+
--color-nw-crust: var(--nw-crust);
|
|
18
|
+
--color-nw-mantle: var(--nw-mantle);
|
|
19
|
+
--color-nw-base: var(--nw-base);
|
|
20
|
+
--color-nw-surface0: var(--nw-surface0);
|
|
21
|
+
--color-nw-surface1: var(--nw-surface1);
|
|
22
|
+
--color-nw-surface2: var(--nw-surface2);
|
|
23
|
+
--color-nw-overlay0: var(--nw-overlay0);
|
|
24
|
+
--color-nw-overlay1: var(--nw-overlay1);
|
|
25
|
+
--color-nw-overlay2: var(--nw-overlay2);
|
|
26
|
+
--color-nw-subtext0: var(--nw-subtext0);
|
|
27
|
+
--color-nw-subtext1: var(--nw-subtext1);
|
|
28
|
+
--color-nw-text: var(--nw-text);
|
|
29
|
+
--color-nw-indigo: var(--nw-indigo);
|
|
30
|
+
--color-nw-iris: var(--nw-iris);
|
|
31
|
+
--color-nw-flux: var(--nw-flux);
|
|
32
|
+
--color-nw-synth: var(--nw-synth);
|
|
33
|
+
--color-nw-alarm: var(--nw-alarm);
|
|
34
|
+
--color-nw-flare: var(--nw-flare);
|
|
35
|
+
--color-nw-volt: var(--nw-volt);
|
|
36
|
+
--color-nw-matrix: var(--nw-matrix);
|
|
37
|
+
--color-nw-circuit: var(--nw-circuit);
|
|
38
|
+
--color-nw-ice: var(--nw-ice);
|
|
39
|
+
--color-nw-arc: var(--nw-arc);
|
|
40
|
+
--color-nw-steel: var(--nw-steel);
|
|
41
|
+
|
|
42
|
+
--color-canvas: var(--nw-canvas);
|
|
43
|
+
--color-canvas-subtle: var(--nw-canvas-subtle);
|
|
44
|
+
--color-canvas-sunken: var(--nw-canvas-sunken);
|
|
45
|
+
--color-panel: var(--nw-panel);
|
|
46
|
+
--color-panel-hover: var(--nw-panel-hover);
|
|
47
|
+
--color-panel-active: var(--nw-panel-active);
|
|
48
|
+
--color-fg: var(--nw-fg);
|
|
49
|
+
--color-fg-muted: var(--nw-fg-muted);
|
|
50
|
+
--color-fg-subtle: var(--nw-fg-subtle);
|
|
51
|
+
--color-fg-faint: var(--nw-fg-faint);
|
|
52
|
+
--color-fg-disabled: var(--nw-fg-disabled);
|
|
53
|
+
--color-line: var(--nw-line);
|
|
54
|
+
--color-line-strong: var(--nw-line-strong);
|
|
55
|
+
--color-line-bright: var(--nw-line-bright);
|
|
56
|
+
--color-primary: var(--nw-primary);
|
|
57
|
+
--color-on-primary: var(--nw-on-primary);
|
|
58
|
+
--color-primary-soft: var(--nw-primary-soft);
|
|
59
|
+
--color-secondary: var(--nw-secondary);
|
|
60
|
+
--color-on-secondary: var(--nw-on-secondary);
|
|
61
|
+
--color-secondary-soft: var(--nw-secondary-soft);
|
|
62
|
+
--color-tertiary: var(--nw-tertiary);
|
|
63
|
+
--color-on-tertiary: var(--nw-on-tertiary);
|
|
64
|
+
--color-tertiary-soft: var(--nw-tertiary-soft);
|
|
65
|
+
--color-info: var(--nw-info);
|
|
66
|
+
--color-on-info: var(--nw-on-info);
|
|
67
|
+
--color-info-soft: var(--nw-info-soft);
|
|
68
|
+
--color-success: var(--nw-success);
|
|
69
|
+
--color-on-success: var(--nw-on-success);
|
|
70
|
+
--color-success-soft: var(--nw-success-soft);
|
|
71
|
+
--color-warning: var(--nw-warning);
|
|
72
|
+
--color-on-warning: var(--nw-on-warning);
|
|
73
|
+
--color-warning-soft: var(--nw-warning-soft);
|
|
74
|
+
--color-danger: var(--nw-danger);
|
|
75
|
+
--color-on-danger: var(--nw-on-danger);
|
|
76
|
+
--color-danger-soft: var(--nw-danger-soft);
|
|
77
|
+
--color-ring: var(--nw-ring);
|
|
78
|
+
--color-link: var(--nw-link);
|
|
79
|
+
--color-selection: var(--nw-selection);
|
|
80
|
+
--color-shadow-ink: var(--nw-shadow-ink);
|
|
81
|
+
--color-backdrop: var(--nw-backdrop);
|
|
82
|
+
--color-glass: var(--nw-glass);
|
|
83
|
+
|
|
84
|
+
--font-display: var(--nw-font-display);
|
|
85
|
+
--font-sans: var(--nw-font-sans);
|
|
86
|
+
--font-mono: var(--nw-font-mono);
|
|
87
|
+
--spacing: var(--nw-space-1);
|
|
88
|
+
|
|
89
|
+
--text-2xs: var(--nw-text-2xs);
|
|
90
|
+
--text-xs: var(--nw-text-xs);
|
|
91
|
+
--text-xs--line-height: initial;
|
|
92
|
+
--text-sm: var(--nw-text-sm);
|
|
93
|
+
--text-sm--line-height: initial;
|
|
94
|
+
--text-base: var(--nw-text-base);
|
|
95
|
+
--text-base--line-height: initial;
|
|
96
|
+
--text-lg: var(--nw-text-lg);
|
|
97
|
+
--text-lg--line-height: initial;
|
|
98
|
+
--text-xl: var(--nw-text-xl);
|
|
99
|
+
--text-xl--line-height: var(--nw-leading-snug);
|
|
100
|
+
--text-2xl: var(--nw-text-2xl);
|
|
101
|
+
--text-2xl--line-height: var(--nw-leading-snug);
|
|
102
|
+
--text-3xl: var(--nw-text-3xl);
|
|
103
|
+
--text-3xl--line-height: var(--nw-leading-tight);
|
|
104
|
+
--text-4xl: var(--nw-text-4xl);
|
|
105
|
+
--text-4xl--line-height: var(--nw-leading-tight);
|
|
106
|
+
--text-5xl: var(--nw-text-5xl);
|
|
107
|
+
--text-5xl--line-height: var(--nw-leading-tight);
|
|
108
|
+
--text-6xl: var(--nw-text-6xl);
|
|
109
|
+
--text-6xl--line-height: var(--nw-leading-tight);
|
|
110
|
+
--text-7xl: var(--nw-text-7xl);
|
|
111
|
+
--text-7xl--line-height: var(--nw-leading-tight);
|
|
112
|
+
|
|
113
|
+
--leading-none: var(--nw-leading-none);
|
|
114
|
+
--leading-tight: var(--nw-leading-tight);
|
|
115
|
+
--leading-snug: var(--nw-leading-snug);
|
|
116
|
+
--leading-normal: var(--nw-leading-normal);
|
|
117
|
+
--leading-relaxed: var(--nw-leading-relaxed);
|
|
118
|
+
--tracking-tighter: var(--nw-tracking-tighter);
|
|
119
|
+
--tracking-tight: var(--nw-tracking-tight);
|
|
120
|
+
--tracking-normal: var(--nw-tracking-normal);
|
|
121
|
+
--tracking-wide: var(--nw-tracking-wide);
|
|
122
|
+
--tracking-wider: var(--nw-tracking-wider);
|
|
123
|
+
--tracking-widest: var(--nw-tracking-widest);
|
|
124
|
+
|
|
125
|
+
--radius-xs: var(--nw-radius-xs);
|
|
126
|
+
--radius-sm: var(--nw-radius-sm);
|
|
127
|
+
--radius-md: var(--nw-radius-md);
|
|
128
|
+
--radius-lg: var(--nw-radius-lg);
|
|
129
|
+
--radius-xl: var(--nw-radius-xl);
|
|
130
|
+
--radius-2xl: var(--nw-radius-2xl);
|
|
131
|
+
--radius-full: var(--nw-radius-full);
|
|
132
|
+
|
|
133
|
+
--shadow-sm: var(--nw-shadow-sm);
|
|
134
|
+
--shadow-md: var(--nw-shadow-md);
|
|
135
|
+
--shadow-lg: var(--nw-shadow-lg);
|
|
136
|
+
--shadow-glow-sm: var(--nw-glow-sm);
|
|
137
|
+
--shadow-glow-md: var(--nw-glow-md);
|
|
138
|
+
--shadow-glow-lg: var(--nw-glow-lg);
|
|
139
|
+
--shadow-glow-wire: var(--nw-glow-wire);
|
|
140
|
+
--text-shadow-glow: var(--nw-glow-text);
|
|
141
|
+
|
|
142
|
+
--blur-sm: var(--nw-blur-sm);
|
|
143
|
+
--blur-md: var(--nw-blur-md);
|
|
144
|
+
--blur-lg: var(--nw-blur-lg);
|
|
145
|
+
--ease-standard: var(--nw-ease-standard);
|
|
146
|
+
--ease-out: var(--nw-ease-out);
|
|
147
|
+
--ease-in: var(--nw-ease-in);
|
|
148
|
+
--ease-in-out: var(--nw-ease-in-out);
|
|
149
|
+
--ease-back: var(--nw-ease-back);
|
|
150
|
+
--default-transition-duration: var(--nw-duration-fast);
|
|
151
|
+
--default-transition-timing-function: var(--nw-ease-standard);
|
|
152
|
+
|
|
153
|
+
--animate-spin: nw-spin 1s linear infinite;
|
|
154
|
+
--animate-pulse: nw-pulse 2s var(--nw-ease-standard) infinite;
|
|
155
|
+
--animate-glow-pulse: nw-glow-pulse 2s var(--nw-ease-standard) infinite;
|
|
156
|
+
--animate-shimmer: nw-shimmer 2s linear infinite;
|
|
157
|
+
--animate-glitch: nw-glitch 480ms steps(1, end) 1;
|
|
158
|
+
--animate-fade-in: nw-fade-in var(--nw-duration-base) var(--nw-ease-out) both;
|
|
159
|
+
--animate-fade-out: nw-fade-out var(--nw-duration-fast) var(--nw-ease-in) both;
|
|
160
|
+
--animate-zoom-in: nw-zoom-in var(--nw-duration-base) var(--nw-ease-out) both;
|
|
161
|
+
--animate-zoom-out: nw-zoom-out var(--nw-duration-fast) var(--nw-ease-in) both;
|
|
162
|
+
--animate-slide-in-from-top: nw-slide-in-from-top var(--nw-duration-base) var(--nw-ease-out) both;
|
|
163
|
+
--animate-slide-in-from-bottom: nw-slide-in-from-bottom var(--nw-duration-base) var(--nw-ease-out)
|
|
164
|
+
both;
|
|
165
|
+
--animate-slide-in-from-left: nw-slide-in-from-left var(--nw-duration-base) var(--nw-ease-out)
|
|
166
|
+
both;
|
|
167
|
+
--animate-slide-in-from-right: nw-slide-in-from-right var(--nw-duration-base) var(--nw-ease-out)
|
|
168
|
+
both;
|
|
169
|
+
--animate-slide-out-to-top: nw-slide-out-to-top var(--nw-duration-fast) var(--nw-ease-in) both;
|
|
170
|
+
--animate-slide-out-to-bottom: nw-slide-out-to-bottom var(--nw-duration-fast) var(--nw-ease-in)
|
|
171
|
+
both;
|
|
172
|
+
--animate-slide-out-to-left: nw-slide-out-to-left var(--nw-duration-fast) var(--nw-ease-in) both;
|
|
173
|
+
--animate-slide-out-to-right: nw-slide-out-to-right var(--nw-duration-fast) var(--nw-ease-in) both;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* The motif recipes mirror @nyxwire/css. Paint cut and wire fills through --nw-fill and their
|
|
177
|
+
edges through --nw-edge, not background-color or border-color. */
|
|
178
|
+
@utility cut {
|
|
179
|
+
--_cut-edge: var(--nw-edge, var(--nw-line));
|
|
180
|
+
position: relative;
|
|
181
|
+
isolation: isolate;
|
|
182
|
+
border: 0;
|
|
183
|
+
border-radius: 0;
|
|
184
|
+
background: var(--nw-cut-surface);
|
|
185
|
+
|
|
186
|
+
&::before {
|
|
187
|
+
content: '';
|
|
188
|
+
position: absolute;
|
|
189
|
+
inset: 0;
|
|
190
|
+
z-index: 1;
|
|
191
|
+
pointer-events: none;
|
|
192
|
+
background: var(--_cut-edge);
|
|
193
|
+
clip-path: var(--nw-cut-ring);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:where(img, video, canvas, svg, iframe) {
|
|
197
|
+
background: none;
|
|
198
|
+
clip-path: var(--nw-cut-path);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@utility wire {
|
|
203
|
+
--_wire-fill: var(--nw-fill, var(--nw-panel));
|
|
204
|
+
border: 1px solid transparent;
|
|
205
|
+
background:
|
|
206
|
+
linear-gradient(var(--_wire-fill), var(--_wire-fill)) padding-box,
|
|
207
|
+
var(--nw-gradient-wire) border-box;
|
|
208
|
+
|
|
209
|
+
&.cut {
|
|
210
|
+
--_cut-edge: var(--nw-gradient-wire);
|
|
211
|
+
border: 0;
|
|
212
|
+
background: var(--nw-cut-surface);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@utility wire-glow {
|
|
217
|
+
box-shadow: var(--nw-glow-wire);
|
|
218
|
+
|
|
219
|
+
&.cut {
|
|
220
|
+
box-shadow: none;
|
|
221
|
+
filter: var(--nw-glow-drop-wire);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@utility bg-wire {
|
|
226
|
+
background-image: var(--nw-gradient-wire);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@utility text-wire {
|
|
230
|
+
background-image: var(--nw-gradient-wire);
|
|
231
|
+
background-clip: text;
|
|
232
|
+
color: transparent;
|
|
233
|
+
|
|
234
|
+
@media (forced-colors: active) {
|
|
235
|
+
background-image: none;
|
|
236
|
+
color: CanvasText;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@utility glass {
|
|
241
|
+
background-color: var(--nw-glass);
|
|
242
|
+
-webkit-backdrop-filter: blur(var(--nw-blur-md));
|
|
243
|
+
backdrop-filter: blur(var(--nw-blur-md));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility glow-sm {
|
|
247
|
+
box-shadow: var(--nw-glow-sm);
|
|
248
|
+
|
|
249
|
+
&.cut {
|
|
250
|
+
box-shadow: none;
|
|
251
|
+
filter: var(--nw-glow-drop-sm);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@utility glow-md {
|
|
256
|
+
box-shadow: var(--nw-glow-md);
|
|
257
|
+
|
|
258
|
+
&.cut {
|
|
259
|
+
box-shadow: none;
|
|
260
|
+
filter: var(--nw-glow-drop-md);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@utility glow-lg {
|
|
265
|
+
box-shadow: var(--nw-glow-lg);
|
|
266
|
+
|
|
267
|
+
&.cut {
|
|
268
|
+
box-shadow: none;
|
|
269
|
+
filter: var(--nw-glow-drop-lg);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@utility glow-* {
|
|
274
|
+
--nw-glow-color: --value(--color-nw-*, --color-*);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@utility text-glow {
|
|
278
|
+
text-shadow: var(--nw-glow-text);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@utility text-glow-* {
|
|
282
|
+
--nw-glow-color: --value(--color-nw-*, --color-*);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@utility scanlines {
|
|
286
|
+
position: relative;
|
|
287
|
+
isolation: isolate;
|
|
288
|
+
|
|
289
|
+
&::after {
|
|
290
|
+
content: '';
|
|
291
|
+
position: absolute;
|
|
292
|
+
inset: 0;
|
|
293
|
+
z-index: 1;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
border-radius: inherit;
|
|
296
|
+
background-image: var(--nw-scanlines);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&.cut::after {
|
|
300
|
+
clip-path: var(--nw-cut-path);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@utility grid-bg {
|
|
305
|
+
background-image:
|
|
306
|
+
radial-gradient(
|
|
307
|
+
circle at calc(50% + 0.5px) calc(50% + 0.5px),
|
|
308
|
+
color-mix(in oklab, var(--nw-primary) 55%, transparent) 1px,
|
|
309
|
+
transparent 2px
|
|
310
|
+
),
|
|
311
|
+
linear-gradient(to right, var(--nw-grid-line) 1px, transparent 1px),
|
|
312
|
+
linear-gradient(to bottom, var(--nw-grid-line) 1px, transparent 1px);
|
|
313
|
+
background-size:
|
|
314
|
+
calc(var(--nw-grid-size) * 4) calc(var(--nw-grid-size) * 4),
|
|
315
|
+
var(--nw-grid-size) var(--nw-grid-size),
|
|
316
|
+
var(--nw-grid-size) var(--nw-grid-size);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@utility glitch {
|
|
320
|
+
&:where(a, span, b, strong, i, em, small, code, mark, abbr, cite, label) {
|
|
321
|
+
display: inline-block;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
325
|
+
&:is(:hover, :focus-visible),
|
|
326
|
+
:is(a, button):is(:hover, :focus-visible) & {
|
|
327
|
+
animation: nw-glitch 480ms steps(1, end) 1;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@layer utilities {
|
|
333
|
+
@media (forced-colors: active) {
|
|
334
|
+
.cut,
|
|
335
|
+
.wire,
|
|
336
|
+
.wire.cut {
|
|
337
|
+
border: 1px solid CanvasText;
|
|
338
|
+
background: Canvas;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.cut::before,
|
|
342
|
+
.scanlines::after {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.grid-bg {
|
|
347
|
+
background-image: none;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|