@nyxwire/css 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 +133 -2
- package/dist/base.css +850 -0
- package/dist/components.css +10508 -0
- package/dist/docs/components/accordion.md +83 -0
- package/dist/docs/components/alert.md +52 -0
- package/dist/docs/components/avatar.md +55 -0
- package/dist/docs/components/badge.md +64 -0
- package/dist/docs/components/breadcrumbs.md +64 -0
- package/dist/docs/components/button.md +197 -0
- package/dist/docs/components/card.md +103 -0
- package/dist/docs/components/checkbox.md +45 -0
- package/dist/docs/components/chip.md +30 -0
- package/dist/docs/components/cluster.md +33 -0
- package/dist/docs/components/code.md +65 -0
- package/dist/docs/components/container.md +24 -0
- package/dist/docs/components/dialog.md +199 -0
- package/dist/docs/components/divider.md +31 -0
- package/dist/docs/components/dl.md +24 -0
- package/dist/docs/components/effect-utilities.md +82 -0
- package/dist/docs/components/empty.md +40 -0
- package/dist/docs/components/frame.md +27 -0
- package/dist/docs/components/grid.md +31 -0
- package/dist/docs/components/hud.md +75 -0
- package/dist/docs/components/input-group.md +28 -0
- package/dist/docs/components/input.md +52 -0
- package/dist/docs/components/kbd.md +42 -0
- package/dist/docs/components/label-and-field.md +31 -0
- package/dist/docs/components/link.md +41 -0
- package/dist/docs/components/list.md +67 -0
- package/dist/docs/components/menu.md +85 -0
- package/dist/docs/components/meter.md +77 -0
- package/dist/docs/components/navbar.md +66 -0
- package/dist/docs/components/pagination.md +64 -0
- package/dist/docs/components/popover.md +59 -0
- package/dist/docs/components/progress.md +32 -0
- package/dist/docs/components/prose.md +29 -0
- package/dist/docs/components/select.md +51 -0
- package/dist/docs/components/sidebar.md +35 -0
- package/dist/docs/components/sidenav.md +45 -0
- package/dist/docs/components/skeleton.md +36 -0
- package/dist/docs/components/slider.md +32 -0
- package/dist/docs/components/spinner.md +30 -0
- package/dist/docs/components/stack.md +26 -0
- package/dist/docs/components/steps.md +49 -0
- package/dist/docs/components/switch.md +19 -0
- package/dist/docs/components/table.md +83 -0
- package/dist/docs/components/tabs.md +207 -0
- package/dist/docs/components/textarea.md +13 -0
- package/dist/docs/components/toast.md +86 -0
- package/dist/docs/components/tooltip.md +39 -0
- package/dist/docs/components/typography-classes.md +38 -0
- package/dist/docs/families/data-display.md +15 -0
- package/dist/docs/families/feedback.md +13 -0
- package/dist/docs/families/forms.md +141 -0
- package/dist/docs/families/layout-typography.md +17 -0
- package/dist/docs/families/navigation.md +13 -0
- package/dist/docs/families/overlays.md +13 -0
- package/dist/docs/families/surfaces.md +11 -0
- 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 +233 -0
- package/dist/docs/manifest.json +859 -0
- package/dist/fonts/inter-OFL.txt +93 -0
- package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/martian-mono-OFL.txt +93 -0
- package/dist/fonts/martian-mono-latin-ext-wdth-normal.woff2 +0 -0
- package/dist/fonts/martian-mono-latin-wdth-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-OFL.txt +93 -0
- package/dist/fonts/space-grotesk-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-wght-normal.woff2 +0 -0
- package/dist/fonts.css +73 -0
- package/dist/nyxwire.css +12183 -0
- package/dist/tokens.css +579 -0
- package/dist/utilities.css +176 -0
- package/nyxwire.d.ts +2 -0
- package/package.json +66 -3
- package/skills/nyxwire/SKILL.md +63 -0
- package/src/base.css +158 -0
- package/src/components/accordion.css +280 -0
- package/src/components/alert.css +176 -0
- package/src/components/avatar.css +262 -0
- package/src/components/badge.css +193 -0
- package/src/components/breadcrumbs.css +209 -0
- package/src/components/btn.css +517 -0
- package/src/components/card.css +327 -0
- package/src/components/checkbox.css +202 -0
- package/src/components/chip.css +345 -0
- package/src/components/code.css +340 -0
- package/src/components/dialog.css +411 -0
- package/src/components/divider.css +201 -0
- package/src/components/empty.css +216 -0
- package/src/components/field.css +161 -0
- package/src/components/hud.css +212 -0
- package/src/components/index.css +50 -0
- package/src/components/input.css +383 -0
- package/src/components/kbd.css +197 -0
- package/src/components/layout.css +344 -0
- package/src/components/link.css +178 -0
- package/src/components/list.css +353 -0
- package/src/components/menu.css +347 -0
- package/src/components/meter.css +238 -0
- package/src/components/navbar.css +309 -0
- package/src/components/pagination.css +302 -0
- package/src/components/popover.css +352 -0
- package/src/components/progress.css +241 -0
- package/src/components/select.css +121 -0
- package/src/components/sidenav.css +326 -0
- package/src/components/skeleton.css +193 -0
- package/src/components/slider.css +201 -0
- package/src/components/spinner.css +200 -0
- package/src/components/stat.css +263 -0
- package/src/components/steps.css +311 -0
- package/src/components/switch.css +183 -0
- package/src/components/table.css +290 -0
- package/src/components/tabs.css +271 -0
- package/src/components/toast.css +413 -0
- package/src/components/tooltip.css +288 -0
- package/src/fonts.css +92 -0
- package/src/index.css +6 -0
- package/src/motion.css +177 -0
- package/src/semantic.css +85 -0
- package/src/tokens.css +276 -0
- package/src/typography.css +430 -0
- package/src/utilities.css +198 -0
package/src/tokens.css
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
@import '@nyxwire/palette/css';
|
|
2
|
+
@import './semantic.css';
|
|
3
|
+
|
|
4
|
+
/* Inputs of the cut and wire motifs. Registered as non-inheriting so a surface nested in another
|
|
5
|
+
one falls back to its own default instead of taking over its container's fill or edge. */
|
|
6
|
+
@property --nw-fill {
|
|
7
|
+
syntax: '*';
|
|
8
|
+
inherits: false;
|
|
9
|
+
}
|
|
10
|
+
@property --nw-edge {
|
|
11
|
+
syntax: '*';
|
|
12
|
+
inherits: false;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@layer theme {
|
|
16
|
+
:root {
|
|
17
|
+
/* Fonts */
|
|
18
|
+
--nw-font-display:
|
|
19
|
+
'Space Grotesk Variable', 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
20
|
+
--nw-font-sans: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif;
|
|
21
|
+
--nw-font-mono:
|
|
22
|
+
'Martian Mono Variable', 'Martian Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
|
|
23
|
+
|
|
24
|
+
/* Type scale */
|
|
25
|
+
--nw-text-2xs: 0.6875rem;
|
|
26
|
+
--nw-text-xs: 0.75rem;
|
|
27
|
+
--nw-text-sm: 0.875rem;
|
|
28
|
+
--nw-text-base: 1rem;
|
|
29
|
+
--nw-text-lg: 1.125rem;
|
|
30
|
+
--nw-text-xl: 1.25rem;
|
|
31
|
+
--nw-text-2xl: 1.5rem;
|
|
32
|
+
--nw-text-3xl: 1.875rem;
|
|
33
|
+
--nw-text-4xl: 2.25rem;
|
|
34
|
+
--nw-text-5xl: 3rem;
|
|
35
|
+
--nw-text-6xl: 3.75rem;
|
|
36
|
+
--nw-text-7xl: 4.5rem;
|
|
37
|
+
|
|
38
|
+
--nw-leading-none: 1;
|
|
39
|
+
--nw-leading-tight: 1.15;
|
|
40
|
+
--nw-leading-snug: 1.3;
|
|
41
|
+
--nw-leading-normal: 1.55;
|
|
42
|
+
--nw-leading-relaxed: 1.7;
|
|
43
|
+
|
|
44
|
+
--nw-tracking-tighter: -0.03em;
|
|
45
|
+
--nw-tracking-tight: -0.015em;
|
|
46
|
+
--nw-tracking-normal: 0;
|
|
47
|
+
--nw-tracking-wide: 0.04em;
|
|
48
|
+
--nw-tracking-wider: 0.08em;
|
|
49
|
+
--nw-tracking-widest: 0.18em;
|
|
50
|
+
|
|
51
|
+
/* Space: 0.25rem grid. Half steps use a hyphen: 0-5 is 0.5, 1-5 is 1.5. */
|
|
52
|
+
--nw-space-0: 0;
|
|
53
|
+
--nw-space-px: 1px;
|
|
54
|
+
--nw-space-0-5: 0.125rem;
|
|
55
|
+
--nw-space-1: 0.25rem;
|
|
56
|
+
--nw-space-1-5: 0.375rem;
|
|
57
|
+
--nw-space-2: 0.5rem;
|
|
58
|
+
--nw-space-2-5: 0.625rem;
|
|
59
|
+
--nw-space-3: 0.75rem;
|
|
60
|
+
--nw-space-4: 1rem;
|
|
61
|
+
--nw-space-5: 1.25rem;
|
|
62
|
+
--nw-space-6: 1.5rem;
|
|
63
|
+
--nw-space-8: 2rem;
|
|
64
|
+
--nw-space-10: 2.5rem;
|
|
65
|
+
--nw-space-12: 3rem;
|
|
66
|
+
--nw-space-16: 4rem;
|
|
67
|
+
--nw-space-20: 5rem;
|
|
68
|
+
--nw-space-24: 6rem;
|
|
69
|
+
|
|
70
|
+
/* Radii */
|
|
71
|
+
--nw-radius-xs: 2px;
|
|
72
|
+
--nw-radius-sm: 4px;
|
|
73
|
+
--nw-radius-md: 8px;
|
|
74
|
+
--nw-radius-lg: 12px;
|
|
75
|
+
--nw-radius-xl: 16px;
|
|
76
|
+
--nw-radius-2xl: 24px;
|
|
77
|
+
--nw-radius-full: 9999px;
|
|
78
|
+
|
|
79
|
+
/* Control heights */
|
|
80
|
+
--nw-control-xs: 1.75rem;
|
|
81
|
+
--nw-control-sm: 2rem;
|
|
82
|
+
--nw-control-md: 2.5rem;
|
|
83
|
+
--nw-control-lg: 3rem;
|
|
84
|
+
|
|
85
|
+
/* Blur */
|
|
86
|
+
--nw-blur-sm: 4px;
|
|
87
|
+
--nw-blur-md: 12px;
|
|
88
|
+
--nw-blur-lg: 24px;
|
|
89
|
+
|
|
90
|
+
/* Motion */
|
|
91
|
+
--nw-duration-instant: 80ms;
|
|
92
|
+
--nw-duration-fast: 140ms;
|
|
93
|
+
--nw-duration-base: 220ms;
|
|
94
|
+
--nw-duration-slow: 360ms;
|
|
95
|
+
--nw-duration-slower: 560ms;
|
|
96
|
+
--nw-ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
97
|
+
--nw-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
98
|
+
--nw-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
|
|
99
|
+
--nw-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
100
|
+
--nw-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
101
|
+
|
|
102
|
+
/* Z-index */
|
|
103
|
+
--nw-z-dropdown: 1000;
|
|
104
|
+
--nw-z-sticky: 1100;
|
|
105
|
+
--nw-z-overlay: 1300;
|
|
106
|
+
--nw-z-modal: 1400;
|
|
107
|
+
--nw-z-popover: 1500;
|
|
108
|
+
--nw-z-toast: 1600;
|
|
109
|
+
--nw-z-tooltip: 1700;
|
|
110
|
+
|
|
111
|
+
/* Focus ring geometry; the color is --nw-ring */
|
|
112
|
+
--nw-ring-width: 2px;
|
|
113
|
+
--nw-ring-offset: 2px;
|
|
114
|
+
|
|
115
|
+
/* Motif geometry */
|
|
116
|
+
--nw-cut: 10px;
|
|
117
|
+
--nw-grid-size: 32px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Tokens built from a flavor or accent color are declared again on every scope that can change
|
|
121
|
+
one, because a var() resolves on the element that declares it. */
|
|
122
|
+
:root,
|
|
123
|
+
[data-flavor],
|
|
124
|
+
[data-accent] {
|
|
125
|
+
--nw-glow-color: var(--nw-primary);
|
|
126
|
+
--nw-glow-strength: calc(0.45 + 0.55 * var(--nw-flavor-dark));
|
|
127
|
+
|
|
128
|
+
--nw-gradient-wire: linear-gradient(135deg, var(--nw-primary), var(--nw-secondary));
|
|
129
|
+
--nw-gradient-haze:
|
|
130
|
+
radial-gradient(
|
|
131
|
+
60rem 32rem at 85% -10%,
|
|
132
|
+
color-mix(in oklab, var(--nw-primary) calc(8% + 14% * var(--nw-flavor-dark)), transparent),
|
|
133
|
+
transparent 70%
|
|
134
|
+
),
|
|
135
|
+
radial-gradient(
|
|
136
|
+
48rem 30rem at -10% 30%,
|
|
137
|
+
color-mix(in oklab, var(--nw-secondary) calc(5% + 7% * var(--nw-flavor-dark)), transparent),
|
|
138
|
+
transparent 70%
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
/* The wire bloom follows the gradient: primary toward the top left, secondary opposite. */
|
|
142
|
+
--nw-glow-wire:
|
|
143
|
+
-4px -4px 18px -6px
|
|
144
|
+
color-mix(in oklab, var(--nw-primary) calc(75% * var(--nw-glow-strength)), transparent),
|
|
145
|
+
4px 4px 18px -6px
|
|
146
|
+
color-mix(in oklab, var(--nw-secondary) calc(75% * var(--nw-glow-strength)), transparent);
|
|
147
|
+
--nw-glow-drop-wire: drop-shadow(
|
|
148
|
+
-3px -3px 7px
|
|
149
|
+
color-mix(in oklab, var(--nw-primary) calc(50% * var(--nw-glow-strength)), transparent)
|
|
150
|
+
)
|
|
151
|
+
drop-shadow(
|
|
152
|
+
3px 3px 7px
|
|
153
|
+
color-mix(in oklab, var(--nw-secondary) calc(50% * var(--nw-glow-strength)), transparent)
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
/* Elevation, in --nw-shadow-ink. */
|
|
157
|
+
--nw-shadow-strength: calc(0.18 + 0.4 * var(--nw-flavor-dark));
|
|
158
|
+
--nw-shadow-sm: 0 1px 2px
|
|
159
|
+
color-mix(in oklab, var(--nw-shadow-ink) calc(90% * var(--nw-shadow-strength)), transparent);
|
|
160
|
+
--nw-shadow-md:
|
|
161
|
+
0 2px 6px -1px
|
|
162
|
+
color-mix(in oklab, var(--nw-shadow-ink) calc(80% * var(--nw-shadow-strength)), transparent),
|
|
163
|
+
0 10px 24px -6px
|
|
164
|
+
color-mix(in oklab, var(--nw-shadow-ink) calc(70% * var(--nw-shadow-strength)), transparent);
|
|
165
|
+
--nw-shadow-lg:
|
|
166
|
+
0 4px 12px -2px
|
|
167
|
+
color-mix(in oklab, var(--nw-shadow-ink) calc(80% * var(--nw-shadow-strength)), transparent),
|
|
168
|
+
0 28px 64px -12px
|
|
169
|
+
color-mix(in oklab, var(--nw-shadow-ink) calc(90% * var(--nw-shadow-strength)), transparent);
|
|
170
|
+
|
|
171
|
+
--nw-scanlines: repeating-linear-gradient(
|
|
172
|
+
to bottom,
|
|
173
|
+
transparent 0 2px,
|
|
174
|
+
color-mix(in oklab, var(--nw-shadow-ink) calc(8% + 20% * var(--nw-flavor-dark)), transparent)
|
|
175
|
+
2px 3px
|
|
176
|
+
);
|
|
177
|
+
--nw-grid-line: color-mix(in oklab, var(--nw-line) 30%, transparent);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Declared on every element so that setting --nw-glow-color, --nw-cut or --nw-fill on one
|
|
181
|
+
element rebuilds these values there, instead of inheriting a value already resolved against
|
|
182
|
+
an ancestor. */
|
|
183
|
+
*,
|
|
184
|
+
::before,
|
|
185
|
+
::after {
|
|
186
|
+
--nw-glow-sm:
|
|
187
|
+
0 0 4px
|
|
188
|
+
color-mix(in oklab, var(--nw-glow-color) calc(60% * var(--nw-glow-strength)), transparent),
|
|
189
|
+
0 0 14px
|
|
190
|
+
color-mix(in oklab, var(--nw-glow-color) calc(30% * var(--nw-glow-strength)), transparent);
|
|
191
|
+
--nw-glow-md:
|
|
192
|
+
0 0 6px
|
|
193
|
+
color-mix(in oklab, var(--nw-glow-color) calc(65% * var(--nw-glow-strength)), transparent),
|
|
194
|
+
0 0 22px
|
|
195
|
+
color-mix(in oklab, var(--nw-glow-color) calc(38% * var(--nw-glow-strength)), transparent),
|
|
196
|
+
0 0 48px
|
|
197
|
+
color-mix(in oklab, var(--nw-glow-color) calc(18% * var(--nw-glow-strength)), transparent);
|
|
198
|
+
--nw-glow-lg:
|
|
199
|
+
0 0 10px
|
|
200
|
+
color-mix(in oklab, var(--nw-glow-color) calc(70% * var(--nw-glow-strength)), transparent),
|
|
201
|
+
0 0 36px
|
|
202
|
+
color-mix(in oklab, var(--nw-glow-color) calc(44% * var(--nw-glow-strength)), transparent),
|
|
203
|
+
0 0 88px
|
|
204
|
+
color-mix(in oklab, var(--nw-glow-color) calc(24% * var(--nw-glow-strength)), transparent);
|
|
205
|
+
--nw-glow-text:
|
|
206
|
+
0 0 0.3em
|
|
207
|
+
color-mix(in oklab, var(--nw-glow-color) calc(70% * var(--nw-glow-strength)), transparent),
|
|
208
|
+
0 0 0.9em
|
|
209
|
+
color-mix(in oklab, var(--nw-glow-color) calc(38% * var(--nw-glow-strength)), transparent);
|
|
210
|
+
|
|
211
|
+
/* clip-path clips box-shadow, so a cut surface glows through filter instead. */
|
|
212
|
+
--nw-glow-drop-sm: drop-shadow(
|
|
213
|
+
0 0 3px
|
|
214
|
+
color-mix(in oklab, var(--nw-glow-color) calc(55% * var(--nw-glow-strength)), transparent)
|
|
215
|
+
)
|
|
216
|
+
drop-shadow(
|
|
217
|
+
0 0 10px
|
|
218
|
+
color-mix(in oklab, var(--nw-glow-color) calc(28% * var(--nw-glow-strength)), transparent)
|
|
219
|
+
);
|
|
220
|
+
--nw-glow-drop-md: drop-shadow(
|
|
221
|
+
0 0 5px
|
|
222
|
+
color-mix(in oklab, var(--nw-glow-color) calc(60% * var(--nw-glow-strength)), transparent)
|
|
223
|
+
)
|
|
224
|
+
drop-shadow(
|
|
225
|
+
0 0 18px
|
|
226
|
+
color-mix(in oklab, var(--nw-glow-color) calc(34% * var(--nw-glow-strength)), transparent)
|
|
227
|
+
);
|
|
228
|
+
--nw-glow-drop-lg: drop-shadow(
|
|
229
|
+
0 0 8px
|
|
230
|
+
color-mix(in oklab, var(--nw-glow-color) calc(65% * var(--nw-glow-strength)), transparent)
|
|
231
|
+
)
|
|
232
|
+
drop-shadow(
|
|
233
|
+
0 0 30px
|
|
234
|
+
color-mix(in oklab, var(--nw-glow-color) calc(40% * var(--nw-glow-strength)), transparent)
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
/* Chamfer on the top-right and bottom-left corners, sized by --nw-cut.
|
|
238
|
+
path: the outline, for clipping media and overlays.
|
|
239
|
+
ring: a 1px band along that outline (0.414px keeps the band 1px wide on the diagonals).
|
|
240
|
+
surface: the same shape as a background, so the element itself stays unclipped and a
|
|
241
|
+
filter glow on it survives. 0.7071 turns the cut length into a distance along the 225deg
|
|
242
|
+
gradient line; the 1px ramp antialiases the diagonal. */
|
|
243
|
+
--nw-cut-path: polygon(
|
|
244
|
+
0 0,
|
|
245
|
+
calc(100% - var(--nw-cut)) 0,
|
|
246
|
+
100% var(--nw-cut),
|
|
247
|
+
100% 100%,
|
|
248
|
+
var(--nw-cut) 100%,
|
|
249
|
+
0 calc(100% - var(--nw-cut))
|
|
250
|
+
);
|
|
251
|
+
--nw-cut-ring: polygon(
|
|
252
|
+
evenodd,
|
|
253
|
+
0 0,
|
|
254
|
+
calc(100% - var(--nw-cut)) 0,
|
|
255
|
+
100% var(--nw-cut),
|
|
256
|
+
100% 100%,
|
|
257
|
+
var(--nw-cut) 100%,
|
|
258
|
+
0 calc(100% - var(--nw-cut)),
|
|
259
|
+
0 0,
|
|
260
|
+
1px 1px,
|
|
261
|
+
calc(100% - var(--nw-cut) - 0.414px) 1px,
|
|
262
|
+
calc(100% - 1px) calc(var(--nw-cut) + 0.414px),
|
|
263
|
+
calc(100% - 1px) calc(100% - 1px),
|
|
264
|
+
calc(var(--nw-cut) + 0.414px) calc(100% - 1px),
|
|
265
|
+
1px calc(100% - var(--nw-cut) - 0.414px),
|
|
266
|
+
1px 1px
|
|
267
|
+
);
|
|
268
|
+
--nw-cut-surface: linear-gradient(
|
|
269
|
+
225deg,
|
|
270
|
+
transparent calc(var(--nw-cut) * 0.7071),
|
|
271
|
+
var(--nw-fill, var(--nw-panel)) calc(var(--nw-cut) * 0.7071 + 1px),
|
|
272
|
+
var(--nw-fill, var(--nw-panel)) calc(100% - var(--nw-cut) * 0.7071 - 1px),
|
|
273
|
+
transparent calc(100% - var(--nw-cut) * 0.7071)
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/* Type roles. Each heading level is one rule shared by the element and its class, so any tag can
|
|
2
|
+
carry any role. Roles and prose sit in the base layer, below every component; the
|
|
3
|
+
single-purpose .nw-text-* classes sit in utilities, so they win over a component's own type. */
|
|
4
|
+
@layer base {
|
|
5
|
+
:where(h1, h2, h3, h4, h5, h6),
|
|
6
|
+
.nw-display,
|
|
7
|
+
.nw-h1,
|
|
8
|
+
.nw-h2,
|
|
9
|
+
.nw-h3,
|
|
10
|
+
.nw-h4,
|
|
11
|
+
.nw-h5,
|
|
12
|
+
.nw-h6 {
|
|
13
|
+
font-family: var(--nw-font-display);
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
line-height: var(--nw-leading-snug);
|
|
16
|
+
letter-spacing: var(--nw-tracking-tight);
|
|
17
|
+
text-wrap: balance;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.nw-display {
|
|
21
|
+
font-size: clamp(var(--nw-text-5xl), 2rem + 5vw, var(--nw-text-7xl));
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
line-height: var(--nw-leading-none);
|
|
24
|
+
letter-spacing: var(--nw-tracking-tighter);
|
|
25
|
+
}
|
|
26
|
+
:where(h1),
|
|
27
|
+
.nw-h1 {
|
|
28
|
+
font-size: var(--nw-text-4xl);
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
line-height: var(--nw-leading-tight);
|
|
31
|
+
letter-spacing: var(--nw-tracking-tighter);
|
|
32
|
+
}
|
|
33
|
+
:where(h2),
|
|
34
|
+
.nw-h2 {
|
|
35
|
+
font-size: var(--nw-text-3xl);
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
line-height: var(--nw-leading-tight);
|
|
38
|
+
}
|
|
39
|
+
:where(h3),
|
|
40
|
+
.nw-h3 {
|
|
41
|
+
font-size: var(--nw-text-2xl);
|
|
42
|
+
}
|
|
43
|
+
:where(h4),
|
|
44
|
+
.nw-h4 {
|
|
45
|
+
font-size: var(--nw-text-xl);
|
|
46
|
+
}
|
|
47
|
+
:where(h5),
|
|
48
|
+
.nw-h5 {
|
|
49
|
+
font-size: var(--nw-text-lg);
|
|
50
|
+
}
|
|
51
|
+
:where(h6),
|
|
52
|
+
.nw-h6 {
|
|
53
|
+
font-size: var(--nw-text-base);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nw-lead {
|
|
57
|
+
font-size: var(--nw-text-xl);
|
|
58
|
+
line-height: var(--nw-leading-normal);
|
|
59
|
+
color: var(--nw-fg-muted);
|
|
60
|
+
text-wrap: pretty;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nw-eyebrow {
|
|
64
|
+
font-family: var(--nw-font-mono);
|
|
65
|
+
font-size: var(--nw-text-2xs);
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
line-height: var(--nw-leading-snug);
|
|
68
|
+
letter-spacing: var(--nw-tracking-widest);
|
|
69
|
+
text-transform: uppercase;
|
|
70
|
+
color: var(--nw-primary);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.nw-mono {
|
|
74
|
+
font-family: var(--nw-font-mono);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Long-form content: gives bare elements their rhythm, markers and code styling. Descendant
|
|
78
|
+
selectors stay inside :where(), so a role class or a component inside prose wins. */
|
|
79
|
+
.nw-prose {
|
|
80
|
+
--_prose-measure: 68ch;
|
|
81
|
+
--_prose-size: var(--nw-text-base);
|
|
82
|
+
|
|
83
|
+
max-inline-size: var(--_prose-measure);
|
|
84
|
+
font-family: var(--nw-font-sans);
|
|
85
|
+
font-size: var(--_prose-size);
|
|
86
|
+
line-height: var(--nw-leading-relaxed);
|
|
87
|
+
color: var(--nw-fg-muted);
|
|
88
|
+
overflow-wrap: anywhere;
|
|
89
|
+
text-wrap: pretty;
|
|
90
|
+
}
|
|
91
|
+
.nw-prose-sm {
|
|
92
|
+
--_prose-size: var(--nw-text-sm);
|
|
93
|
+
}
|
|
94
|
+
.nw-prose-lg {
|
|
95
|
+
--_prose-size: var(--nw-text-lg);
|
|
96
|
+
}
|
|
97
|
+
.nw-prose-wide {
|
|
98
|
+
--_prose-measure: none;
|
|
99
|
+
}
|
|
100
|
+
.nw-prose > :where(* + *) {
|
|
101
|
+
margin-block-start: var(--nw-space-5);
|
|
102
|
+
}
|
|
103
|
+
.nw-prose :where(h1, h2, h3, h4, h5, h6) {
|
|
104
|
+
color: var(--nw-fg);
|
|
105
|
+
scroll-margin-block-start: var(--nw-space-20);
|
|
106
|
+
}
|
|
107
|
+
:where(.nw-prose) :where(h1) {
|
|
108
|
+
font-size: 2.5em;
|
|
109
|
+
}
|
|
110
|
+
:where(.nw-prose) :where(h2) {
|
|
111
|
+
padding-block-end: var(--nw-space-2);
|
|
112
|
+
border-block-end: 1px solid var(--nw-line);
|
|
113
|
+
font-size: 2em;
|
|
114
|
+
}
|
|
115
|
+
:where(.nw-prose) :where(h3) {
|
|
116
|
+
font-size: 1.6em;
|
|
117
|
+
}
|
|
118
|
+
:where(.nw-prose) :where(h4) {
|
|
119
|
+
font-size: 1.28em;
|
|
120
|
+
}
|
|
121
|
+
:where(.nw-prose) :where(h5) {
|
|
122
|
+
font-size: 1.125em;
|
|
123
|
+
}
|
|
124
|
+
:where(.nw-prose) :where(h6) {
|
|
125
|
+
font-size: 1em;
|
|
126
|
+
letter-spacing: var(--nw-tracking-wide);
|
|
127
|
+
text-transform: uppercase;
|
|
128
|
+
}
|
|
129
|
+
.nw-prose :where(h1 code, h2 code, h3 code) {
|
|
130
|
+
font-size: 0.8em;
|
|
131
|
+
}
|
|
132
|
+
.nw-prose > :where(* + :is(h1, h2, h3, h4, h5, h6)) {
|
|
133
|
+
margin-block-start: var(--nw-space-10);
|
|
134
|
+
}
|
|
135
|
+
.nw-prose > :where(:is(h1, h2, h3, h4, h5, h6) + *) {
|
|
136
|
+
margin-block-start: var(--nw-space-3);
|
|
137
|
+
}
|
|
138
|
+
.nw-prose :where(strong, b, dt) {
|
|
139
|
+
color: var(--nw-fg);
|
|
140
|
+
}
|
|
141
|
+
.nw-prose :where(.nw-lead) {
|
|
142
|
+
font-size: 1.25em;
|
|
143
|
+
}
|
|
144
|
+
.nw-prose :where(a:focus-visible) {
|
|
145
|
+
border-radius: var(--nw-radius-xs);
|
|
146
|
+
}
|
|
147
|
+
.nw-prose :where(small) {
|
|
148
|
+
color: var(--nw-fg-subtle);
|
|
149
|
+
font-size: 0.875em;
|
|
150
|
+
}
|
|
151
|
+
.nw-prose :where(abbr[title]) {
|
|
152
|
+
text-underline-offset: 0.2em;
|
|
153
|
+
cursor: help;
|
|
154
|
+
}
|
|
155
|
+
.nw-prose :where(del, s) {
|
|
156
|
+
text-decoration-color: var(--nw-danger);
|
|
157
|
+
}
|
|
158
|
+
.nw-prose :where(ins) {
|
|
159
|
+
text-decoration-color: var(--nw-success);
|
|
160
|
+
}
|
|
161
|
+
.nw-prose :where(code, kbd, samp) {
|
|
162
|
+
font-variant-ligatures: none;
|
|
163
|
+
}
|
|
164
|
+
.nw-prose :where(ul, ol) {
|
|
165
|
+
padding-inline-start: var(--nw-space-6);
|
|
166
|
+
}
|
|
167
|
+
.nw-prose :where(ul) {
|
|
168
|
+
list-style: disc;
|
|
169
|
+
}
|
|
170
|
+
.nw-prose :where(ul ul) {
|
|
171
|
+
list-style: circle;
|
|
172
|
+
}
|
|
173
|
+
.nw-prose :where(ol) {
|
|
174
|
+
list-style: decimal;
|
|
175
|
+
}
|
|
176
|
+
.nw-prose :where(li) {
|
|
177
|
+
padding-inline-start: var(--nw-space-1);
|
|
178
|
+
}
|
|
179
|
+
.nw-prose :where(li + li, li > ul, li > ol) {
|
|
180
|
+
margin-block-start: var(--nw-space-2);
|
|
181
|
+
}
|
|
182
|
+
.nw-prose :where(li)::marker {
|
|
183
|
+
color: var(--nw-primary);
|
|
184
|
+
font-family: var(--nw-font-mono);
|
|
185
|
+
font-size: var(--nw-text-xs);
|
|
186
|
+
}
|
|
187
|
+
.nw-prose :where(li > p + p) {
|
|
188
|
+
margin-block-start: var(--nw-space-2);
|
|
189
|
+
}
|
|
190
|
+
.nw-prose :where(ul.contains-task-list, ul:has(> li > input[type='checkbox'])) {
|
|
191
|
+
padding-inline-start: var(--nw-space-1);
|
|
192
|
+
}
|
|
193
|
+
.nw-prose :where(li:has(> input[type='checkbox'])) {
|
|
194
|
+
list-style: none;
|
|
195
|
+
}
|
|
196
|
+
.nw-prose :where(dd) {
|
|
197
|
+
margin-block-start: var(--nw-space-1);
|
|
198
|
+
margin-inline-start: var(--nw-space-6);
|
|
199
|
+
}
|
|
200
|
+
.nw-prose :where(dd + dt) {
|
|
201
|
+
margin-block-start: var(--nw-space-4);
|
|
202
|
+
}
|
|
203
|
+
.nw-prose :where(blockquote) {
|
|
204
|
+
padding-inline-start: var(--nw-space-5);
|
|
205
|
+
border-inline-start: 1px solid var(--nw-line-strong);
|
|
206
|
+
font-size: var(--nw-text-lg);
|
|
207
|
+
font-style: italic;
|
|
208
|
+
color: var(--nw-fg);
|
|
209
|
+
}
|
|
210
|
+
.nw-prose :where(blockquote p:first-of-type)::before {
|
|
211
|
+
content: open-quote;
|
|
212
|
+
}
|
|
213
|
+
.nw-prose :where(blockquote p:last-of-type)::after {
|
|
214
|
+
content: close-quote;
|
|
215
|
+
}
|
|
216
|
+
.nw-prose :where(blockquote cite, blockquote footer) {
|
|
217
|
+
display: block;
|
|
218
|
+
margin-block-start: var(--nw-space-2);
|
|
219
|
+
font-size: var(--nw-text-xs);
|
|
220
|
+
font-style: normal;
|
|
221
|
+
color: var(--nw-fg-subtle);
|
|
222
|
+
}
|
|
223
|
+
.nw-prose :where(:not(pre) > code, kbd) {
|
|
224
|
+
padding: var(--nw-space-0-5) var(--nw-space-1-5);
|
|
225
|
+
border: 1px solid var(--nw-line);
|
|
226
|
+
border-radius: var(--nw-radius-sm);
|
|
227
|
+
color: var(--nw-fg);
|
|
228
|
+
background-color: var(--nw-panel);
|
|
229
|
+
}
|
|
230
|
+
.nw-prose :where(a code) {
|
|
231
|
+
color: inherit;
|
|
232
|
+
}
|
|
233
|
+
.nw-prose :where(kbd) {
|
|
234
|
+
display: inline-block;
|
|
235
|
+
min-inline-size: 1.6em;
|
|
236
|
+
border-block-end-width: 2px;
|
|
237
|
+
border-color: var(--nw-line-strong);
|
|
238
|
+
text-align: center;
|
|
239
|
+
}
|
|
240
|
+
.nw-prose :where(pre) {
|
|
241
|
+
padding: var(--nw-space-4) var(--nw-space-5);
|
|
242
|
+
border: 1px solid var(--nw-line);
|
|
243
|
+
border-radius: var(--nw-radius-md);
|
|
244
|
+
overflow-x: auto;
|
|
245
|
+
font-size: var(--nw-text-sm);
|
|
246
|
+
line-height: var(--nw-leading-normal);
|
|
247
|
+
color: var(--nw-fg);
|
|
248
|
+
background-color: var(--nw-canvas-sunken);
|
|
249
|
+
scrollbar-width: thin;
|
|
250
|
+
scrollbar-color: var(--nw-line-strong) transparent;
|
|
251
|
+
}
|
|
252
|
+
.nw-prose :where(pre code) {
|
|
253
|
+
font-size: inherit;
|
|
254
|
+
}
|
|
255
|
+
.nw-prose :where(hr) {
|
|
256
|
+
block-size: 1px;
|
|
257
|
+
margin-block: var(--nw-space-10);
|
|
258
|
+
border: 0;
|
|
259
|
+
background-image: var(--nw-gradient-wire);
|
|
260
|
+
}
|
|
261
|
+
.nw-prose :where(img, video) {
|
|
262
|
+
border: 1px solid var(--nw-line);
|
|
263
|
+
border-radius: var(--nw-radius-md);
|
|
264
|
+
}
|
|
265
|
+
.nw-prose :where(figure > :is(svg, canvas, iframe)) {
|
|
266
|
+
display: block;
|
|
267
|
+
max-inline-size: 100%;
|
|
268
|
+
}
|
|
269
|
+
.nw-prose :where(figure > svg) {
|
|
270
|
+
block-size: auto;
|
|
271
|
+
}
|
|
272
|
+
.nw-prose :where(figcaption) {
|
|
273
|
+
margin-block-start: var(--nw-space-2);
|
|
274
|
+
font-size: var(--nw-text-sm);
|
|
275
|
+
color: var(--nw-fg-subtle);
|
|
276
|
+
text-align: center;
|
|
277
|
+
}
|
|
278
|
+
.nw-prose :where(.nw-prose-scroll) {
|
|
279
|
+
max-inline-size: 100%;
|
|
280
|
+
overflow-x: auto;
|
|
281
|
+
scrollbar-width: thin;
|
|
282
|
+
scrollbar-color: var(--nw-line-strong) transparent;
|
|
283
|
+
}
|
|
284
|
+
.nw-prose :where(table) {
|
|
285
|
+
inline-size: 100%;
|
|
286
|
+
font-size: var(--nw-text-sm);
|
|
287
|
+
line-height: var(--nw-leading-snug);
|
|
288
|
+
}
|
|
289
|
+
.nw-prose :where(th, td) {
|
|
290
|
+
padding: var(--nw-space-2) var(--nw-space-3);
|
|
291
|
+
border-block-end: 1px solid var(--nw-line);
|
|
292
|
+
text-align: start;
|
|
293
|
+
}
|
|
294
|
+
.nw-prose :where(th) {
|
|
295
|
+
font-weight: 600;
|
|
296
|
+
color: var(--nw-fg);
|
|
297
|
+
}
|
|
298
|
+
.nw-prose :where(thead th) {
|
|
299
|
+
border-block-end-color: var(--nw-line-strong);
|
|
300
|
+
font-size: var(--nw-text-xs);
|
|
301
|
+
letter-spacing: var(--nw-tracking-wide);
|
|
302
|
+
text-transform: uppercase;
|
|
303
|
+
vertical-align: bottom;
|
|
304
|
+
}
|
|
305
|
+
.nw-prose :where(tbody td, tbody th) {
|
|
306
|
+
vertical-align: top;
|
|
307
|
+
}
|
|
308
|
+
.nw-prose :where(tbody tr:hover) {
|
|
309
|
+
background-color: var(--nw-panel-hover);
|
|
310
|
+
}
|
|
311
|
+
.nw-prose :where(tfoot td, tfoot th) {
|
|
312
|
+
border-block-start: 1px solid var(--nw-line-strong);
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
}
|
|
315
|
+
.nw-prose :where(caption) {
|
|
316
|
+
padding-block: var(--nw-space-2);
|
|
317
|
+
caption-side: bottom;
|
|
318
|
+
font-size: var(--nw-text-xs);
|
|
319
|
+
color: var(--nw-fg-subtle);
|
|
320
|
+
text-align: start;
|
|
321
|
+
}
|
|
322
|
+
.nw-prose :where(details) {
|
|
323
|
+
padding: var(--nw-space-3) var(--nw-space-4);
|
|
324
|
+
border: 1px solid var(--nw-line);
|
|
325
|
+
border-radius: var(--nw-radius-md);
|
|
326
|
+
background-color: var(--nw-panel);
|
|
327
|
+
}
|
|
328
|
+
.nw-prose :where(summary) {
|
|
329
|
+
min-block-size: var(--nw-space-6);
|
|
330
|
+
font-weight: 600;
|
|
331
|
+
color: var(--nw-fg);
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
}
|
|
334
|
+
.nw-prose :where(details[open] > summary) {
|
|
335
|
+
margin-block-end: var(--nw-space-3);
|
|
336
|
+
}
|
|
337
|
+
.nw-prose :where(summary ~ * + *) {
|
|
338
|
+
margin-block-start: var(--nw-space-3);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
@media (forced-colors: active) {
|
|
342
|
+
.nw-prose :where(hr) {
|
|
343
|
+
background: CanvasText;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@layer utilities {
|
|
349
|
+
/* Type scale. From xl up a size brings a tighter leading with it. */
|
|
350
|
+
.nw-text-2xs {
|
|
351
|
+
font-size: var(--nw-text-2xs);
|
|
352
|
+
}
|
|
353
|
+
.nw-text-xs {
|
|
354
|
+
font-size: var(--nw-text-xs);
|
|
355
|
+
}
|
|
356
|
+
.nw-text-sm {
|
|
357
|
+
font-size: var(--nw-text-sm);
|
|
358
|
+
}
|
|
359
|
+
.nw-text-base {
|
|
360
|
+
font-size: var(--nw-text-base);
|
|
361
|
+
}
|
|
362
|
+
.nw-text-lg {
|
|
363
|
+
font-size: var(--nw-text-lg);
|
|
364
|
+
}
|
|
365
|
+
.nw-text-xl {
|
|
366
|
+
font-size: var(--nw-text-xl);
|
|
367
|
+
line-height: var(--nw-leading-snug);
|
|
368
|
+
}
|
|
369
|
+
.nw-text-2xl {
|
|
370
|
+
font-size: var(--nw-text-2xl);
|
|
371
|
+
line-height: var(--nw-leading-snug);
|
|
372
|
+
}
|
|
373
|
+
.nw-text-3xl {
|
|
374
|
+
font-size: var(--nw-text-3xl);
|
|
375
|
+
line-height: var(--nw-leading-tight);
|
|
376
|
+
}
|
|
377
|
+
.nw-text-4xl {
|
|
378
|
+
font-size: var(--nw-text-4xl);
|
|
379
|
+
line-height: var(--nw-leading-tight);
|
|
380
|
+
}
|
|
381
|
+
.nw-text-5xl {
|
|
382
|
+
font-size: var(--nw-text-5xl);
|
|
383
|
+
line-height: var(--nw-leading-tight);
|
|
384
|
+
}
|
|
385
|
+
.nw-text-6xl {
|
|
386
|
+
font-size: var(--nw-text-6xl);
|
|
387
|
+
line-height: var(--nw-leading-tight);
|
|
388
|
+
}
|
|
389
|
+
.nw-text-7xl {
|
|
390
|
+
font-size: var(--nw-text-7xl);
|
|
391
|
+
line-height: var(--nw-leading-tight);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* Text levels below the default --nw-fg */
|
|
395
|
+
.nw-text-muted {
|
|
396
|
+
color: var(--nw-fg-muted);
|
|
397
|
+
}
|
|
398
|
+
.nw-text-subtle {
|
|
399
|
+
color: var(--nw-fg-subtle);
|
|
400
|
+
}
|
|
401
|
+
.nw-text-faint {
|
|
402
|
+
color: var(--nw-fg-faint);
|
|
403
|
+
}
|
|
404
|
+
.nw-text-disabled {
|
|
405
|
+
color: var(--nw-fg-disabled);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* Intent colors */
|
|
409
|
+
.nw-text-primary {
|
|
410
|
+
color: var(--nw-primary);
|
|
411
|
+
}
|
|
412
|
+
.nw-text-secondary {
|
|
413
|
+
color: var(--nw-secondary);
|
|
414
|
+
}
|
|
415
|
+
.nw-text-tertiary {
|
|
416
|
+
color: var(--nw-tertiary);
|
|
417
|
+
}
|
|
418
|
+
.nw-text-info {
|
|
419
|
+
color: var(--nw-info);
|
|
420
|
+
}
|
|
421
|
+
.nw-text-success {
|
|
422
|
+
color: var(--nw-success);
|
|
423
|
+
}
|
|
424
|
+
.nw-text-warning {
|
|
425
|
+
color: var(--nw-warning);
|
|
426
|
+
}
|
|
427
|
+
.nw-text-danger {
|
|
428
|
+
color: var(--nw-danger);
|
|
429
|
+
}
|
|
430
|
+
}
|