nuvio 0.0.3 → 1.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 +1 -1
- package/README.md +337 -6
- package/dist/nuvio-base-dark.css +1497 -0
- package/dist/nuvio-base-dark.min.css +1 -0
- package/dist/nuvio-base-light.css +1497 -0
- package/dist/nuvio-base-light.min.css +1 -0
- package/dist/nuvio-base-prefer.css +1549 -0
- package/dist/nuvio-base-prefer.min.css +1 -0
- package/dist/nuvio-base.css +1655 -0
- package/dist/nuvio-base.min.css +1 -0
- package/dist/nuvio-dark.css +9755 -0
- package/dist/nuvio-dark.min.css +1 -0
- package/dist/nuvio-light.css +9755 -0
- package/dist/nuvio-light.min.css +1 -0
- package/dist/nuvio-prefer.css +9876 -0
- package/dist/nuvio-prefer.min.css +1 -0
- package/dist/nuvio.css +10104 -17
- package/dist/nuvio.min.css +1 -1
- package/package.json +37 -22
- package/src/_config-base.scss +6 -0
- package/src/_includes-base.scss +10 -0
- package/src/_includes-full.scss +44 -0
- package/src/base/_index.scss +295 -0
- package/src/config/_index.scss +322 -0
- package/src/config/_layers.scss +27 -0
- package/src/config/themes.scss +308 -0
- package/src/config/utilities.scss +106 -0
- package/src/elements/accordion.scss +65 -0
- package/src/elements/block.scss +14 -0
- package/src/elements/box.scss +66 -0
- package/src/elements/dropdown.scss +149 -0
- package/src/elements/footer.scss +9 -0
- package/src/elements/icon.scss +63 -0
- package/src/elements/image.scss +36 -0
- package/src/elements/modal.scss +123 -0
- package/src/elements/navbar.scss +463 -0
- package/src/elements/notification.scss +53 -0
- package/src/elements/placeholder.scss +55 -0
- package/src/elements/progress.scss +85 -0
- package/src/elements/table.scss +149 -0
- package/src/elements/tag.scss +88 -0
- package/src/forms/button.scss +415 -0
- package/src/forms/checkbox-radio.scss +38 -0
- package/src/forms/controls.scss +181 -0
- package/src/forms/file.scss +237 -0
- package/src/forms/form-utilities.scss +109 -0
- package/src/forms/input.scss +27 -0
- package/src/forms/range.scss +96 -0
- package/src/forms/segmented.scss +130 -0
- package/src/forms/select.scss +100 -0
- package/src/forms/textarea.scss +26 -0
- package/src/forms/toggle.scss +106 -0
- package/src/layout/border.scss +34 -0
- package/src/layout/container.scss +36 -0
- package/src/layout/flexbox-base.scss +204 -0
- package/src/layout/flexbox-shorthands.scss +48 -0
- package/src/layout/grid.scss +72 -0
- package/src/layout/overflow.scss +23 -0
- package/src/layout/position.scss +16 -0
- package/src/layout/spacing.scss +70 -0
- package/src/layout/visibility.scss +50 -0
- package/src/main-base-auto.scss +4 -0
- package/src/main-base-dark.scss +4 -0
- package/src/main-base-light.scss +4 -0
- package/src/main-base-prefer.scss +4 -0
- package/src/main-full-auto.scss +4 -0
- package/src/main-full-dark.scss +6 -0
- package/src/main-full-light.scss +6 -0
- package/src/main-full-prefer.scss +6 -0
- package/src/typography/color.scss +25 -0
- package/src/typography/content.scss +185 -0
- package/src/typography/interaction.scss +20 -0
- package/src/typography/text.scss +71 -0
- package/src/typography/title.scss +76 -0
- package/src/_buttons.scss +0 -19
- package/src/_reset.scss +0 -5
- package/src/_typography.scss +0 -13
- package/src/_variables.scss +0 -5
- package/src/main.scss +0 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use "config/themes";
|
|
2
|
+
@use "base";
|
|
3
|
+
|
|
4
|
+
@use "layout/border";
|
|
5
|
+
@use "layout/container";
|
|
6
|
+
@use "layout/flexbox-base";
|
|
7
|
+
@use "layout/flexbox-shorthands";
|
|
8
|
+
@use "layout/grid";
|
|
9
|
+
@use "layout/overflow";
|
|
10
|
+
@use "layout/position";
|
|
11
|
+
@use "layout/spacing";
|
|
12
|
+
@use "layout/visibility";
|
|
13
|
+
|
|
14
|
+
@use "typography/color";
|
|
15
|
+
@use "typography/content";
|
|
16
|
+
@use "typography/interaction";
|
|
17
|
+
@use "typography/text";
|
|
18
|
+
@use "typography/title";
|
|
19
|
+
|
|
20
|
+
@use "elements/accordion";
|
|
21
|
+
@use "elements/block";
|
|
22
|
+
@use "elements/box";
|
|
23
|
+
@use "elements/dropdown";
|
|
24
|
+
@use "elements/footer";
|
|
25
|
+
@use "elements/icon";
|
|
26
|
+
@use "elements/image";
|
|
27
|
+
@use "elements/modal";
|
|
28
|
+
@use "elements/navbar";
|
|
29
|
+
@use "elements/notification";
|
|
30
|
+
@use "elements/progress";
|
|
31
|
+
@use "elements/placeholder";
|
|
32
|
+
@use "elements/table";
|
|
33
|
+
@use "elements/tag";
|
|
34
|
+
|
|
35
|
+
@use "forms/button";
|
|
36
|
+
@use "forms/checkbox-radio";
|
|
37
|
+
@use "forms/controls";
|
|
38
|
+
@use "forms/file";
|
|
39
|
+
@use "forms/input";
|
|
40
|
+
@use "forms/select";
|
|
41
|
+
@use "forms/textarea";
|
|
42
|
+
@use "forms/toggle";
|
|
43
|
+
@use "forms/range";
|
|
44
|
+
@use "forms/segmented";
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
@use "../config" as c;
|
|
2
|
+
@use "../config/themes" as t;
|
|
3
|
+
@use "../config/utilities" as u;
|
|
4
|
+
@use "../config/layers" as l;
|
|
5
|
+
|
|
6
|
+
@include l.layer("reset") {
|
|
7
|
+
html {
|
|
8
|
+
@include t.theme("background-color", "bg");
|
|
9
|
+
font-size: c.$font-size-base;
|
|
10
|
+
min-width: 300px;
|
|
11
|
+
overflow-x: hidden;
|
|
12
|
+
overflow-y: scroll;
|
|
13
|
+
scrollbar-gutter: stable;
|
|
14
|
+
text-size-adjust: 100%;
|
|
15
|
+
-webkit-text-size-adjust: 100%;
|
|
16
|
+
tab-size: 4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
20
|
+
html { scroll-behavior: smooth; }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
*,
|
|
24
|
+
*::before,
|
|
25
|
+
*::after {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body {
|
|
30
|
+
@include t.theme("background-color", "bg");
|
|
31
|
+
@include t.theme("color", "text");
|
|
32
|
+
font-family: c.$font-family-sans;
|
|
33
|
+
font-size: c.$font-size-base;
|
|
34
|
+
font-weight: c.$font-weight-normal;
|
|
35
|
+
line-height: c.$line-height-base;
|
|
36
|
+
-webkit-font-smoothing: antialiased;
|
|
37
|
+
-moz-osx-font-smoothing: grayscale;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
html,
|
|
41
|
+
body,
|
|
42
|
+
p,
|
|
43
|
+
ol,
|
|
44
|
+
ul,
|
|
45
|
+
li,
|
|
46
|
+
dl,
|
|
47
|
+
dt,
|
|
48
|
+
dd,
|
|
49
|
+
blockquote,
|
|
50
|
+
figure,
|
|
51
|
+
fieldset,
|
|
52
|
+
legend,
|
|
53
|
+
textarea,
|
|
54
|
+
pre,
|
|
55
|
+
iframe,
|
|
56
|
+
hr,
|
|
57
|
+
h1,
|
|
58
|
+
h2,
|
|
59
|
+
h3,
|
|
60
|
+
h4,
|
|
61
|
+
h5,
|
|
62
|
+
h6 { margin: 0; }
|
|
63
|
+
|
|
64
|
+
h1,
|
|
65
|
+
h2,
|
|
66
|
+
h3,
|
|
67
|
+
h4,
|
|
68
|
+
h5,
|
|
69
|
+
h6 {
|
|
70
|
+
font-size: 100%;
|
|
71
|
+
font-weight: normal;
|
|
72
|
+
text-wrap: balance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
a {
|
|
76
|
+
@include t.theme("color", "ink-link");
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
transition-duration: c.$duration;
|
|
80
|
+
transition-property: background-color, border-color, color;
|
|
81
|
+
|
|
82
|
+
strong {
|
|
83
|
+
color: currentColor;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include u.on-hover {
|
|
87
|
+
@include t.theme("color", "fill-link-hover");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:active {
|
|
91
|
+
@include t.theme("color", "fill-link-active");
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:focus-visible {
|
|
95
|
+
outline: 2px solid;
|
|
96
|
+
@include t.theme("outline-color", "focus-ring");
|
|
97
|
+
outline-offset: 2px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Default: lists are naked – no markers, no indentation, no padding/margin.
|
|
102
|
+
// Use .is-list to opt into prose styling.
|
|
103
|
+
ul,
|
|
104
|
+
ol {
|
|
105
|
+
list-style: none;
|
|
106
|
+
padding: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
ul.is-list {
|
|
110
|
+
padding-inline-start: c.$ul-list-indent;
|
|
111
|
+
|
|
112
|
+
> li {
|
|
113
|
+
position: relative;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
content: "–";
|
|
117
|
+
position: absolute;
|
|
118
|
+
inset-inline-start: -#{c.$ul-list-indent};
|
|
119
|
+
width: c.$ul-list-indent;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
ol.is-list {
|
|
125
|
+
padding-inline-start: c.$ol-list-indent;
|
|
126
|
+
counter-reset: nvol;
|
|
127
|
+
|
|
128
|
+
> li {
|
|
129
|
+
position: relative;
|
|
130
|
+
counter-increment: nvol;
|
|
131
|
+
|
|
132
|
+
&::before {
|
|
133
|
+
content: counter(nvol) ".";
|
|
134
|
+
position: absolute;
|
|
135
|
+
inset-inline-start: -#{c.$ol-list-indent};
|
|
136
|
+
width: c.$ol-list-indent;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.is-short {
|
|
141
|
+
padding-inline-start: c.$ul-list-indent;
|
|
142
|
+
|
|
143
|
+
> li::before {
|
|
144
|
+
inset-inline-start: -#{c.$ul-list-indent};
|
|
145
|
+
width: c.$ul-list-indent;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
ol.is-list ol.is-list > li::before {
|
|
151
|
+
content: counter(nvol, lower-alpha) ".";
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
ol.is-list ol.is-list ol.is-list > li::before {
|
|
155
|
+
content: counter(nvol, lower-roman) ".";
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
img, picture, video, canvas, svg {
|
|
159
|
+
display: block;
|
|
160
|
+
max-width: 100%;
|
|
161
|
+
height: auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
button, input, select, textarea { font: inherit; margin: 0; }
|
|
165
|
+
|
|
166
|
+
button {
|
|
167
|
+
appearance: none;
|
|
168
|
+
background: none;
|
|
169
|
+
border: none;
|
|
170
|
+
color: inherit;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
margin: 0;
|
|
173
|
+
padding: 0;
|
|
174
|
+
transition-duration: c.$duration;
|
|
175
|
+
transition-property: background-color, border-color, color;
|
|
176
|
+
|
|
177
|
+
&:focus-visible {
|
|
178
|
+
outline: 2px solid;
|
|
179
|
+
@include t.theme("outline-color", "focus-ring");
|
|
180
|
+
outline-offset: 2px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
code,
|
|
185
|
+
pre,
|
|
186
|
+
kbd,
|
|
187
|
+
samp {
|
|
188
|
+
font-family: c.$font-family-mono;
|
|
189
|
+
-moz-osx-font-smoothing: auto;
|
|
190
|
+
-webkit-font-smoothing: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
code {
|
|
194
|
+
@include t.theme("background-color", "surface-1");
|
|
195
|
+
@include t.theme("color", "text-highlight");
|
|
196
|
+
@include t.theme("border-color", "border");
|
|
197
|
+
border-width: 1px;
|
|
198
|
+
border-style: solid;
|
|
199
|
+
border-radius: c.$radius-sm;
|
|
200
|
+
font-size: c.$font-size-sm;
|
|
201
|
+
padding: 0.125em 0.375em;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
pre {
|
|
205
|
+
@include t.theme("background-color", "surface-1");
|
|
206
|
+
@include t.theme("color", "text");
|
|
207
|
+
@include t.theme("border-color", "border");
|
|
208
|
+
border-width: 1px;
|
|
209
|
+
border-style: solid;
|
|
210
|
+
border-radius: c.$radius;
|
|
211
|
+
font-size: c.$font-size-sm;
|
|
212
|
+
line-height: c.$line-height-base;
|
|
213
|
+
overflow-x: auto;
|
|
214
|
+
padding: 1.25rem 1.5rem;
|
|
215
|
+
white-space: pre;
|
|
216
|
+
overflow-wrap: normal;
|
|
217
|
+
|
|
218
|
+
code {
|
|
219
|
+
background: none;
|
|
220
|
+
border: none;
|
|
221
|
+
color: inherit;
|
|
222
|
+
font-size: 1em;
|
|
223
|
+
padding: 0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
hr {
|
|
228
|
+
@include t.theme("background-color", "border");
|
|
229
|
+
border: none;
|
|
230
|
+
display: block;
|
|
231
|
+
height: 1px;
|
|
232
|
+
margin: 1.5rem 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
input[type="checkbox"],
|
|
236
|
+
input[type="radio"] {
|
|
237
|
+
vertical-align: baseline;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
small {
|
|
241
|
+
font-size: c.$font-size-sm;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
span {
|
|
245
|
+
font-style: inherit;
|
|
246
|
+
font-weight: inherit;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
strong,
|
|
250
|
+
b {
|
|
251
|
+
@include t.theme("color", "text-highlight");
|
|
252
|
+
font-weight: c.$font-weight-bold;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
fieldset {
|
|
256
|
+
border: none;
|
|
257
|
+
padding: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:target {
|
|
261
|
+
scroll-margin-block: 5ex;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
table {
|
|
265
|
+
border-collapse: collapse;
|
|
266
|
+
border-spacing: 0;
|
|
267
|
+
width: 100%;
|
|
268
|
+
|
|
269
|
+
td,
|
|
270
|
+
th {
|
|
271
|
+
vertical-align: top;
|
|
272
|
+
|
|
273
|
+
&:not([align]) {
|
|
274
|
+
text-align: inherit;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
th {
|
|
279
|
+
@include t.theme("color", "text-highlight");
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
abbr[title] { text-decoration: underline dotted; cursor: help; }
|
|
284
|
+
address { font-style: normal; }
|
|
285
|
+
|
|
286
|
+
@keyframes spinAround {
|
|
287
|
+
from {
|
|
288
|
+
transform: rotate(0deg);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
to {
|
|
292
|
+
transform: rotate(359deg);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:math";
|
|
4
|
+
|
|
5
|
+
// ── Theme Mode ───────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
$output-mode: "auto" !default;
|
|
8
|
+
|
|
9
|
+
// ── Cascade Layers ───────────────────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
// Wraps all emitted CSS in @layer nuvio.tokens / .reset / .components /
|
|
12
|
+
// .utilities so consumer styles can override Nuvio without specificity fights.
|
|
13
|
+
// Off by default – see README, "Cascade layers", for the !important caveat.
|
|
14
|
+
$css-layers: false !default;
|
|
15
|
+
|
|
16
|
+
// ── Typography ───────────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
$font-family-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
|
|
19
|
+
$font-family-serif: "Georgia", "Times New Roman", Times, serif !default;
|
|
20
|
+
$font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !default;
|
|
21
|
+
|
|
22
|
+
$font-size-xs: 0.75rem !default;
|
|
23
|
+
$font-size-sm: 0.875rem !default;
|
|
24
|
+
$font-size-base: 1rem !default;
|
|
25
|
+
$font-size-lg: 1.125rem !default;
|
|
26
|
+
$font-size-xl: 1.25rem !default;
|
|
27
|
+
$font-size-2xl: 1.375rem !default;
|
|
28
|
+
$font-size-3xl: 1.5rem !default;
|
|
29
|
+
$font-size-4xl: 1.75rem !default;
|
|
30
|
+
$font-size-5xl: 2.25rem !default;
|
|
31
|
+
|
|
32
|
+
$font-weight-light: 300 !default;
|
|
33
|
+
$font-weight-normal: 400 !default;
|
|
34
|
+
$font-weight-medium: 500 !default;
|
|
35
|
+
$font-weight-semibold: 600 !default;
|
|
36
|
+
$font-weight-bold: 700 !default;
|
|
37
|
+
$font-weight-extrabold: 800 !default;
|
|
38
|
+
|
|
39
|
+
$line-height-base: 1.5 !default;
|
|
40
|
+
|
|
41
|
+
$heading-line-height: 1.25 !default;
|
|
42
|
+
$heading-levels: (
|
|
43
|
+
1: (title: (size: $font-size-5xl, weight: $font-weight-extrabold), subtitle: (size: $font-size-4xl, weight: $font-weight-medium)),
|
|
44
|
+
2: (title: (size: $font-size-4xl, weight: $font-weight-extrabold), subtitle: (size: $font-size-3xl, weight: $font-weight-medium)),
|
|
45
|
+
3: (title: (size: $font-size-3xl, weight: $font-weight-bold), subtitle: (size: $font-size-2xl, weight: $font-weight-normal)),
|
|
46
|
+
4: (title: (size: $font-size-2xl, weight: $font-weight-bold), subtitle: (size: $font-size-xl, weight: $font-weight-normal)),
|
|
47
|
+
5: (title: (size: $font-size-xl, weight: $font-weight-bold), subtitle: (size: $font-size-lg, weight: $font-weight-normal)),
|
|
48
|
+
6: (title: (size: $font-size-lg, weight: $font-weight-bold), subtitle: (size: $font-size-base, weight: $font-weight-normal)),
|
|
49
|
+
) !default;
|
|
50
|
+
|
|
51
|
+
// ── Spacing ──────────────────────────────────────────────────────────────────
|
|
52
|
+
|
|
53
|
+
$viewport-gap: 32px !default;
|
|
54
|
+
$block-spacing: 1.5rem !default;
|
|
55
|
+
|
|
56
|
+
$spacing-gaps: (
|
|
57
|
+
"0": 0,
|
|
58
|
+
"1": math.div($block-spacing, 6),
|
|
59
|
+
"2": math.div($block-spacing, 3),
|
|
60
|
+
"3": math.div($block-spacing, 2),
|
|
61
|
+
"4": math.div($block-spacing * 2, 3),
|
|
62
|
+
"5": $block-spacing,
|
|
63
|
+
"6": math.div($block-spacing * 3, 2),
|
|
64
|
+
"7": math.div($block-spacing * 5, 2),
|
|
65
|
+
"8": math.div($block-spacing * 7, 2),
|
|
66
|
+
) !default;
|
|
67
|
+
|
|
68
|
+
$ul-list-indent: 1.2em !default;
|
|
69
|
+
$ol-list-indent: 1.5em !default;
|
|
70
|
+
|
|
71
|
+
// Emits the flow-relative .ms-* / .me-* / .ps-* / .pe-* helpers alongside the
|
|
72
|
+
// physical .ml-* / .mr-* / .pl-* / .pr-* ones.
|
|
73
|
+
$spacing-logical: true !default;
|
|
74
|
+
|
|
75
|
+
// ── Breakpoints ──────────────────────────────────────────────────────────────
|
|
76
|
+
|
|
77
|
+
$breakpoints: (
|
|
78
|
+
"sm": (min: 769px, container: 769px - $viewport-gap - 1px), // ensures smooth viewport transition as the smallest viewport has half a $viewport-gap on each side
|
|
79
|
+
"md": (min: 1152px, container: 1152px - $viewport-gap * 2),
|
|
80
|
+
"lg": (min: 1600px, container: 1600px - $viewport-gap * 3),
|
|
81
|
+
"xl": (min: 1920px, container: 1920px - $viewport-gap * 3),
|
|
82
|
+
) !default;
|
|
83
|
+
|
|
84
|
+
// ── Columns ──────────────────────────────────────────────────────────────────
|
|
85
|
+
|
|
86
|
+
$column-count: 24 !default;
|
|
87
|
+
|
|
88
|
+
// ── Border Radii and Widths ──────────────────────────────────────────────────
|
|
89
|
+
|
|
90
|
+
$radius-sm: 0.25rem !default;
|
|
91
|
+
$radius: 0.4rem !default;
|
|
92
|
+
$radius-lg: 0.75rem !default;
|
|
93
|
+
$radius-pill: 9999px !default;
|
|
94
|
+
|
|
95
|
+
$border-sm: 1px !default;
|
|
96
|
+
$border: 2px !default;
|
|
97
|
+
$border-lg: 3px !default;
|
|
98
|
+
|
|
99
|
+
// ── Transitions ──────────────────────────────────────────────────────────────
|
|
100
|
+
|
|
101
|
+
$duration: 250ms !default;
|
|
102
|
+
$easing: ease-out !default;
|
|
103
|
+
|
|
104
|
+
// ── Background and Foreground Colors ─────────────────────────────────────────
|
|
105
|
+
|
|
106
|
+
$light-bg: hsl(221, 14%, 95%) !default;
|
|
107
|
+
$light-text: hsl(221, 14%, 21%) !default;
|
|
108
|
+
$dark-bg: hsl(221, 14%, 9%) !default;
|
|
109
|
+
$dark-text: hsl(221, 14%, 77%) !default;
|
|
110
|
+
|
|
111
|
+
// Text derivation offsets
|
|
112
|
+
$text-muted-lightness-offset: 16% !default;
|
|
113
|
+
$text-muted-saturation-offset: 9% !default;
|
|
114
|
+
$text-highlight-lightness-offset: 9% !default;
|
|
115
|
+
$text-highlight-saturation-offset: 6% !default;
|
|
116
|
+
|
|
117
|
+
// ── Semantic Colors ──────────────────────────────────────────────────────────
|
|
118
|
+
|
|
119
|
+
// light/dark: the exact fill color per theme mode
|
|
120
|
+
// text-light/text-dark: foreground text on that surface
|
|
121
|
+
$semantic-colors: (
|
|
122
|
+
"primary": (light: hsl(216, 98%, 52%), dark: hsl(216, 98%, 52%), text-light: #fff, text-dark: #fff),
|
|
123
|
+
"secondary": (light: hsl(208, 12%, 86%), dark: hsl(209, 11%, 38%), text-light: #000, text-dark: #fff),
|
|
124
|
+
"link": (light: hsl(216, 98%, 52%), dark: hsl(216, 98%, 52%), text-light: #fff, text-dark: #fff),
|
|
125
|
+
"info": (light: hsl(190, 90%, 50%), dark: hsl(190, 90%, 50%), text-light: #000, text-dark: #000),
|
|
126
|
+
"success": (light: hsl(152, 69%, 31%), dark: hsl(152, 69%, 31%), text-light: #fff, text-dark: #fff),
|
|
127
|
+
"warning": (light: hsl(45, 99%, 51%), dark: hsl(45, 99%, 51%), text-light: #000, text-dark: #000),
|
|
128
|
+
"danger": (light: hsl(354, 70%, 54%), dark: hsl(354, 70%, 54%), text-light: #fff, text-dark: #fff),
|
|
129
|
+
"bright": (light: hsl(210, 17%, 98%), dark: hsl(210, 17%, 98%), text-light: #000, text-dark: #000),
|
|
130
|
+
"dim": (light: hsl(210, 11%, 15%), dark: hsl(210, 11%, 15%), text-light: #fff, text-dark: #fff),
|
|
131
|
+
) !default;
|
|
132
|
+
|
|
133
|
+
$semantic-color-additions: () !default;
|
|
134
|
+
$semantic-color-excludes: () !default;
|
|
135
|
+
|
|
136
|
+
$semantic-colors: map.merge($semantic-colors, $semantic-color-additions);
|
|
137
|
+
@each $key in $semantic-color-excludes {
|
|
138
|
+
$semantic-colors: map.remove($semantic-colors, $key);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// ── Color Derivation Offsets ─────────────────────────────────────────────────
|
|
142
|
+
|
|
143
|
+
$hover-lightness-offset: 7% !default;
|
|
144
|
+
$active-lightness-offset: 14% !default;
|
|
145
|
+
|
|
146
|
+
$outline-light-max-lightness: 40% !default;
|
|
147
|
+
$outline-dark-min-lightness: 60% !default;
|
|
148
|
+
|
|
149
|
+
$tint-light-weight-light: 7% !default;
|
|
150
|
+
$tint-light-weight-dark: 35% !default;
|
|
151
|
+
$tint-light-text-weight-light: 75% !default;
|
|
152
|
+
$tint-light-text-weight-dark: 30% !default;
|
|
153
|
+
$tint-dark-weight-light: 35% !default;
|
|
154
|
+
$tint-dark-weight-dark: 35% !default;
|
|
155
|
+
|
|
156
|
+
$surface-step-light: 3% !default;
|
|
157
|
+
$surface-step-dark: 4% !default;
|
|
158
|
+
$surface-hover-step: 3% !default;
|
|
159
|
+
|
|
160
|
+
$border-light-lightness-offset: 12% !default;
|
|
161
|
+
$border-light-saturation-offset: 4% !default;
|
|
162
|
+
$border-dark-lightness-offset: 17% !default;
|
|
163
|
+
$border-dark-saturation-offset: 6% !default;
|
|
164
|
+
$control-border-lightness-offset: 12% !default;
|
|
165
|
+
|
|
166
|
+
$focus-ring-opacity: 40% !default;
|
|
167
|
+
$focus-ring-color-light: map.get(map.get($semantic-colors, "link"), "light") !default;
|
|
168
|
+
$focus-ring-color-dark: map.get(map.get($semantic-colors, "link"), "dark") !default;
|
|
169
|
+
|
|
170
|
+
// ── Light Theme Surfaces ─────────────────────────────────────────────────────
|
|
171
|
+
|
|
172
|
+
$light-border: color.adjust($light-bg, $lightness: -$border-light-lightness-offset, $saturation: -$border-light-saturation-offset) !default;
|
|
173
|
+
$light-text-muted: color.adjust($light-text, $lightness: +$text-muted-lightness-offset, $saturation: -$text-muted-saturation-offset) !default;
|
|
174
|
+
$light-text-highlight: color.adjust($light-text, $lightness: -$text-highlight-lightness-offset, $saturation: +$text-highlight-saturation-offset) !default;
|
|
175
|
+
$light-control-bg: color.adjust($light-bg, $lightness: -$surface-step-light) !default;
|
|
176
|
+
$light-control-border: color.adjust($light-border, $lightness: -$control-border-lightness-offset) !default;
|
|
177
|
+
$light-control-text: $light-text !default;
|
|
178
|
+
$light-control-hover: color.adjust($light-bg, $lightness: -($surface-step-light + $surface-hover-step)) !default;
|
|
179
|
+
|
|
180
|
+
$light-surface-1: color.adjust($light-bg, $lightness: -$surface-step-light) !default;
|
|
181
|
+
$light-surface-2: color.adjust($light-bg, $lightness: -($surface-step-light * 2)) !default;
|
|
182
|
+
$light-surface-3: color.adjust($light-bg, $lightness: -($surface-step-light * 3)) !default;
|
|
183
|
+
$light-surface-4: color.adjust($light-bg, $lightness: -($surface-step-light * 4)) !default;
|
|
184
|
+
$light-surface-1-hover: color.adjust($light-bg, $lightness: -($surface-step-light + $surface-hover-step)) !default;
|
|
185
|
+
$light-surface-2-hover: color.adjust($light-bg, $lightness: -($surface-step-light * 2 + $surface-hover-step)) !default;
|
|
186
|
+
$light-surface-3-hover: color.adjust($light-bg, $lightness: -($surface-step-light * 3 + $surface-hover-step)) !default;
|
|
187
|
+
$light-surface-4-hover: color.adjust($light-bg, $lightness: -($surface-step-light * 4 + $surface-hover-step)) !default;
|
|
188
|
+
|
|
189
|
+
// ── Dark Theme Surfaces ──────────────────────────────────────────────────────
|
|
190
|
+
|
|
191
|
+
$dark-border: color.adjust($dark-bg, $lightness: +$border-dark-lightness-offset, $saturation: -$border-dark-saturation-offset) !default;
|
|
192
|
+
$dark-text-muted: color.adjust($dark-text, $lightness: -$text-muted-lightness-offset, $saturation: -$text-muted-saturation-offset) !default;
|
|
193
|
+
$dark-text-highlight: color.adjust($dark-text, $lightness: +$text-highlight-lightness-offset, $saturation: +$text-highlight-saturation-offset) !default;
|
|
194
|
+
$dark-control-bg: color.adjust($dark-bg, $lightness: +$surface-step-dark) !default;
|
|
195
|
+
$dark-control-border: color.adjust($dark-border, $lightness: +$control-border-lightness-offset) !default;
|
|
196
|
+
$dark-control-text: $dark-text !default;
|
|
197
|
+
$dark-control-hover: color.adjust($dark-bg, $lightness: +($surface-step-dark + $surface-hover-step)) !default;
|
|
198
|
+
|
|
199
|
+
$dark-surface-1: color.adjust($dark-bg, $lightness: +$surface-step-dark) !default;
|
|
200
|
+
$dark-surface-2: color.adjust($dark-bg, $lightness: +($surface-step-dark * 2)) !default;
|
|
201
|
+
$dark-surface-3: color.adjust($dark-bg, $lightness: +($surface-step-dark * 3)) !default;
|
|
202
|
+
$dark-surface-4: color.adjust($dark-bg, $lightness: +($surface-step-dark * 4)) !default;
|
|
203
|
+
$dark-surface-1-hover: color.adjust($dark-bg, $lightness: +($surface-step-dark + $surface-hover-step)) !default;
|
|
204
|
+
$dark-surface-2-hover: color.adjust($dark-bg, $lightness: +($surface-step-dark * 2 + $surface-hover-step)) !default;
|
|
205
|
+
$dark-surface-3-hover: color.adjust($dark-bg, $lightness: +($surface-step-dark * 3 + $surface-hover-step)) !default;
|
|
206
|
+
$dark-surface-4-hover: color.adjust($dark-bg, $lightness: +($surface-step-dark * 4 + $surface-hover-step)) !default;
|
|
207
|
+
|
|
208
|
+
// ── Buttons ──────────────────────────────────────────────────────────────────
|
|
209
|
+
|
|
210
|
+
$button-padding-y: 0.375em !default;
|
|
211
|
+
$button-padding-x: 1em !default;
|
|
212
|
+
$button-font-size: $font-size-base !default;
|
|
213
|
+
$button-font-weight: $font-weight-medium !default;
|
|
214
|
+
$button-border-width: $border !default;
|
|
215
|
+
$button-radius: $radius !default;
|
|
216
|
+
$button-line-height: $line-height-base !default;
|
|
217
|
+
$button-icon-x-compensation: 0 !default; // added horizontal padding for button icons, in px
|
|
218
|
+
$button-icon-y-compensation: .5px !default; // vertical alignment adjustment for button icons (depends on the icon library/fonts used), in px
|
|
219
|
+
|
|
220
|
+
// ── Text ─────────────────────────────────────────────────────────────────────
|
|
221
|
+
|
|
222
|
+
$text-icon-y-compensation: 0 !default; // vertical alignment adjustment for text inline icons (depends on the icon library/fonts used), in px
|
|
223
|
+
|
|
224
|
+
// Optical centering for labels inside fixed-height controls (button, tag,
|
|
225
|
+
// navbar item, segmented). A font reserves more room below the baseline than
|
|
226
|
+
// its glyphs use, so a metrically centered label renders slightly low.
|
|
227
|
+
// Set it to 0 for pure metric centering. In em, so it follows the size modifiers.
|
|
228
|
+
// Defaults to 0.5px at 16px.
|
|
229
|
+
$control-label-y-compensation: 0.03125em !default;
|
|
230
|
+
|
|
231
|
+
// ── Form Fields ──────────────────────────────────────────────────────────────
|
|
232
|
+
|
|
233
|
+
$input-border-width: $border !default;
|
|
234
|
+
$input-padding-y: calc(0.5em - #{$input-border-width}) !default;
|
|
235
|
+
$input-padding-x: 0.75em !default;
|
|
236
|
+
$input-font-size: $font-size-base !default;
|
|
237
|
+
$input-line-height: $line-height-base !default;
|
|
238
|
+
$input-radius: $radius !default;
|
|
239
|
+
$input-height: 2.5em !default;
|
|
240
|
+
|
|
241
|
+
// Styles :user-invalid / :user-valid on .input, .textarea and .select select.
|
|
242
|
+
// Both pseudo-classes only match after the user has interacted, so no premature
|
|
243
|
+
// error state. Set false to opt out of automatic validation feedback.
|
|
244
|
+
$form-validation-styling: true !default;
|
|
245
|
+
|
|
246
|
+
$file-name-max-width: 16em !default;
|
|
247
|
+
|
|
248
|
+
$label-font-size: $font-size-sm !default;
|
|
249
|
+
$label-font-weight: $font-weight-medium !default;
|
|
250
|
+
|
|
251
|
+
$checkbox-size: 1.1em !default;
|
|
252
|
+
$checkbox-gap: 0.6em !default;
|
|
253
|
+
|
|
254
|
+
$toggle-height: 1.5em !default;
|
|
255
|
+
$toggle-width: 2.6em !default;
|
|
256
|
+
$toggle-thumb-gap: 0.2em !default;
|
|
257
|
+
|
|
258
|
+
$range-thumb-size: 1.25em !default;
|
|
259
|
+
|
|
260
|
+
// ── Accordion Component ──────────────────────────────────────────────────────
|
|
261
|
+
|
|
262
|
+
// Padding is em-based so the .is-small / .is-medium / .is-large modifiers scale
|
|
263
|
+
// the whole disclosure, not just its type.
|
|
264
|
+
$accordion-padding-y: 0.625em !default;
|
|
265
|
+
$accordion-padding-x: 1em !default;
|
|
266
|
+
$accordion-radius: $radius !default;
|
|
267
|
+
$accordion-border-width: $border-sm !default;
|
|
268
|
+
$accordion-summary-weight: $font-weight-medium !default;
|
|
269
|
+
|
|
270
|
+
// ── Box Component ────────────────────────────────────────────────────────────
|
|
271
|
+
|
|
272
|
+
$box-padding: 1.25rem !default;
|
|
273
|
+
$box-radius: $radius-lg !default;
|
|
274
|
+
$box-border-width: 0 !default;
|
|
275
|
+
|
|
276
|
+
// ── Dropdown Component ───────────────────────────────────────────────────────
|
|
277
|
+
|
|
278
|
+
$dropdown-border-width: $border !default;
|
|
279
|
+
|
|
280
|
+
// ── Modal Component ──────────────────────────────────────────────────────────
|
|
281
|
+
|
|
282
|
+
$modal-radius: $radius-lg !default;
|
|
283
|
+
$modal-border-width: $border-sm !default;
|
|
284
|
+
$modal-padding: 1.1rem 1.25rem !default;
|
|
285
|
+
$modal-max-width: 40rem !default;
|
|
286
|
+
$modal-max-width-small: 26rem !default;
|
|
287
|
+
$modal-max-width-large: 60rem !default;
|
|
288
|
+
|
|
289
|
+
// The scrim is deliberately theme-invariant – it darkens whatever is behind it.
|
|
290
|
+
$modal-backdrop-color: rgb(0 0 0 / 55%) !default;
|
|
291
|
+
$modal-backdrop-blur: 5px !default;
|
|
292
|
+
|
|
293
|
+
// ── Progress Bar Component ───────────────────────────────────────────────────
|
|
294
|
+
|
|
295
|
+
$progress-height: 1rem !default;
|
|
296
|
+
$progress-radius: $radius-pill !default;
|
|
297
|
+
|
|
298
|
+
// ── Tag Component ────────────────────────────────────────────────────────────
|
|
299
|
+
|
|
300
|
+
$tag-radius: $radius-sm !default;
|
|
301
|
+
$tag-padding-x: 0.75em !default;
|
|
302
|
+
|
|
303
|
+
// ── Table Component ──────────────────────────────────────────────────────────
|
|
304
|
+
|
|
305
|
+
$table-cell-padding-y: 0.5em !default;
|
|
306
|
+
$table-cell-padding-x: 0.75em !default;
|
|
307
|
+
$table-border-width: $border-sm !default;
|
|
308
|
+
|
|
309
|
+
// ── Placeholder Component ────────────────────────────────────────────────────
|
|
310
|
+
|
|
311
|
+
$placeholder-block-min-height: 4.5em !default;
|
|
312
|
+
$placeholder-lines-gap: .75em !default;
|
|
313
|
+
$placeholder-line-height: .75em !default;
|
|
314
|
+
|
|
315
|
+
// ── Navbar Component ─────────────────────────────────────────────────────────
|
|
316
|
+
|
|
317
|
+
$navbar-height-sm: 3rem !default;
|
|
318
|
+
$navbar-height: 4rem !default;
|
|
319
|
+
$navbar-height-lg: 5rem !default;
|
|
320
|
+
$navbar-img-padding: .75rem !default;
|
|
321
|
+
$navbar-z: 30 !default;
|
|
322
|
+
$navbar-breakpoint: "sm" !default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use "." as c;
|
|
2
|
+
|
|
3
|
+
// ── Layer Order ──────────────────────────────────────────────────────────────
|
|
4
|
+
// Declared up front so precedence never depends on emission order. Loaded from
|
|
5
|
+
// config/themes, which every include list pulls in first.
|
|
6
|
+
|
|
7
|
+
@if c.$css-layers {
|
|
8
|
+
@layer nuvio.tokens, nuvio.reset, nuvio.components, nuvio.utilities;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// ── Public: layer() Mixin ────────────────────────────────────────────────────
|
|
12
|
+
// Wraps a module's emission in its layer, or passes it straight through when
|
|
13
|
+
// layers are off – so the default build stays byte-identical.
|
|
14
|
+
//
|
|
15
|
+
// @include l.layer("components") {
|
|
16
|
+
// .my-element { … }
|
|
17
|
+
// }
|
|
18
|
+
|
|
19
|
+
@mixin layer($name) {
|
|
20
|
+
@if c.$css-layers {
|
|
21
|
+
@layer nuvio.#{$name} {
|
|
22
|
+
@content;
|
|
23
|
+
}
|
|
24
|
+
} @else {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
}
|