@skeletonlabs/skeleton 5.0.0-next.0 → 5.0.0-next.10

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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/src/base/globals.css +30 -47
  3. package/src/base/theme.css +137 -35
  4. package/src/index.css +6 -2
  5. package/src/themes/catppuccin.css +74 -30
  6. package/src/themes/cerberus.css +77 -33
  7. package/src/themes/concord.css +74 -30
  8. package/src/themes/crimson.css +74 -30
  9. package/src/themes/fennec.css +75 -30
  10. package/src/themes/hamlindigo.css +74 -30
  11. package/src/themes/legacy.css +74 -30
  12. package/src/themes/mint.css +74 -30
  13. package/src/themes/modern.css +74 -30
  14. package/src/themes/mona.css +74 -30
  15. package/src/themes/nosh.css +74 -30
  16. package/src/themes/nouveau.css +75 -30
  17. package/src/themes/pine.css +74 -30
  18. package/src/themes/reign.css +74 -30
  19. package/src/themes/rocket.css +75 -30
  20. package/src/themes/rose.css +74 -30
  21. package/src/themes/sahara.css +74 -30
  22. package/src/themes/seafoam.css +74 -30
  23. package/src/themes/terminus.css +74 -30
  24. package/src/themes/vintage.css +74 -30
  25. package/src/themes/vox.css +74 -30
  26. package/src/themes/wintry.css +74 -30
  27. package/src/utilities/badges.css +47 -12
  28. package/src/utilities/buttons.css +97 -57
  29. package/src/utilities/cards.css +3 -16
  30. package/src/utilities/chips.css +44 -19
  31. package/src/utilities/corner-shapes.css +541 -0
  32. package/src/utilities/dialogs.css +88 -0
  33. package/src/utilities/disclosures.css +62 -0
  34. package/src/utilities/dividers.css +3 -2
  35. package/src/utilities/form-core.css +49 -2
  36. package/src/utilities/form-groups.css +15 -126
  37. package/src/utilities/form-inputs.css +18 -10
  38. package/src/utilities/form-meter.css +58 -0
  39. package/src/utilities/form-progress.css +1 -1
  40. package/src/utilities/form-radios-checks.css +20 -22
  41. package/src/utilities/form-selects.css +8 -38
  42. package/src/utilities/form-textareas.css +15 -7
  43. package/src/utilities/masks.css +69 -0
  44. package/src/utilities/presets.css +25 -5
  45. package/src/utilities/tables.css +20 -12
  46. package/src/utilities/typography.css +213 -61
  47. package/src/variants/index.css +1 -0
  48. package/src/utilities/core.css +0 -119
  49. package/src/variants/themes.css +0 -22
@@ -0,0 +1,69 @@
1
+ /* Utiilties: Masks */
2
+
3
+ @utility mask {
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ mask-size: contain;
7
+ mask-repeat: no-repeat;
8
+ mask-position: center;
9
+ }
10
+
11
+ @utility mask-circle {
12
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='100' cy='100' r='100'/%3e%3c/svg%3e");
13
+ }
14
+
15
+ @utility mask-squircle {
16
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e");
17
+ }
18
+
19
+ @utility mask-triangle-up {
20
+ mask-image: url("data:image/svg+xml,%3csvg width='174' height='149' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m87 148.476-86.603.185L43.86 74.423 87 0l43.14 74.423 43.463 74.238z'/%3e%3c/svg%3e");
21
+ }
22
+
23
+ @utility mask-triangle-down {
24
+ mask-image: url("data:image/svg+xml,%3csvg width='174' height='150' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m87 .738 86.603-.184-43.463 74.238L87 149.214 43.86 74.792.397.554z'/%3e%3c/svg%3e");
25
+ }
26
+
27
+ @utility mask-triangle-right {
28
+ mask-image: url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.631 87.107.446.505l74.239 43.462 74.422 43.14-74.422 43.14L.446 173.71z'/%3e%3c/svg%3e");
29
+ }
30
+
31
+ @utility mask-triangle-left {
32
+ mask-image: url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m149.369 87.107.185 86.603-74.239-43.463L.893 87.107l74.422-43.14L149.554.505z'/%3e%3c/svg%3e");
33
+ }
34
+
35
+ @utility mask-diamond {
36
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m100 0 100 100-100 100L0 100z'/%3e%3c/svg%3e");
37
+ }
38
+
39
+ @utility mask-pentagon {
40
+ mask-image: url("data:image/svg+xml,%3csvg width='192' height='181' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m96 0 95.106 69.098-36.327 111.804H37.22L.894 69.098z'/%3e%3c/svg%3e");
41
+ }
42
+
43
+ @utility mask-hexagon {
44
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='182' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M64.786 181.4c-9.196 0-20.063-6.687-25.079-14.21L3.762 105.33c-5.016-8.36-5.016-20.9 0-29.259l35.945-61.86C44.723 5.851 55.59 0 64.786 0h71.055c9.196 0 20.063 6.688 25.079 14.211l35.945 61.86c4.18 8.36 4.18 20.899 0 29.258l-35.945 61.86c-4.18 8.36-15.883 14.211-25.079 14.211H64.786Z'/%3e%3c/svg%3e");
45
+ }
46
+
47
+ @utility mask-cube {
48
+ mask-image: url("data:image/svg+xml,%3csvg width='182' height='201' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.3 65.486c0-9.196 6.687-20.063 14.211-25.078l61.86-35.946c8.36-5.016 20.899-5.016 29.258 0l61.86 35.946c8.36 5.015 14.211 15.882 14.211 25.078v71.055c0 9.196-6.687 20.063-14.211 25.079l-61.86 35.945c-8.36 4.18-20.899 4.18-29.258 0L14.51 161.62C6.151 157.44.3 145.737.3 136.54V65.486Z'/%3e%3c/svg%3e");
49
+ }
50
+
51
+ @utility mask-octagon {
52
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpolygon points='59,0 141,0 200,59 200,141 141,200 59,200 0,141 0,59'/%3e%3c/svg%3e");
53
+ }
54
+
55
+ @utility mask-decagon {
56
+ mask-image: url("data:image/svg+xml,%3csvg width='192' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m96 0 58.779 19.098 36.327 50v61.804l-36.327 50L96 200l-58.779-19.098-36.327-50V69.098l36.327-50z'/%3e%3c/svg%3e");
57
+ }
58
+
59
+ @utility mask-star {
60
+ mask-image: url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z'/%3e%3c/svg%3e");
61
+ }
62
+
63
+ @utility mask-heart {
64
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='185' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z'/%3e%3c/svg%3e");
65
+ }
66
+
67
+ @utility mask-cross {
68
+ mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpolygon points='60,0 140,0 140,60 200,60 200,140 140,140 140,200 60,200 60,140 0,140 0,60 60,60'/%3e%3c/svg%3e");
69
+ }
@@ -1,9 +1,16 @@
1
- /* filled */
1
+ /* Filled --- */
2
+
2
3
  @utility preset-filled {
3
4
  background-color: var(--color-surface-950-50);
4
5
  color: var(--color-surface-50-950);
5
6
  }
6
7
 
8
+ /* filled - brand */
9
+ @utility preset-filled-brand {
10
+ background-color: light-dark(var(--color-brand-light), var(--color-brand-dark));
11
+ color: light-dark(var(--color-brand-contrast-light), var(--color-brand-contrast-dark));
12
+ }
13
+
7
14
  /* filled - primary */
8
15
  @utility preset-filled-primary-500 {
9
16
  background-color: var(--color-primary-500);
@@ -326,10 +333,16 @@
326
333
  color: var(--color-surface-contrast-950-50);
327
334
  }
328
335
 
329
- /* tonal */
336
+ /* Tonal --- */
337
+
330
338
  @utility preset-tonal {
331
- background-color: color-mix(in oklab, light-dark(var(--color-surface-950), var(--color-surface-50)) 5%, transparent);
332
- color: var(--color-primary-950-50);
339
+ background-color: color-mix(in oklab, light-dark(var(--color-surface-950), var(--color-surface-50)) 10%, transparent);
340
+ color: var(--color-surface-950-50);
341
+ }
342
+
343
+ @utility preset-tonal-brand {
344
+ background-color: color-mix(in oklab, light-dark(var(--color-brand-light), var(--color-brand-dark)) 25%, transparent);
345
+ color: var(--color-surface-950-50);
333
346
  }
334
347
 
335
348
  @utility preset-tonal-primary {
@@ -361,12 +374,19 @@
361
374
  color: var(--color-surface-950-50);
362
375
  }
363
376
 
364
- /* outlined */
377
+ /* Outlined --- */
378
+
365
379
  @utility preset-outlined {
366
380
  border-width: 1px;
367
381
  border-color: var(--color-surface-950-50);
368
382
  }
369
383
 
384
+ /* outlined - brand */
385
+ @utility preset-outlined-brand {
386
+ border-width: 1px;
387
+ border-color: light-dark(var(--color-brand-light), var(--color-brand-dark));
388
+ }
389
+
370
390
  /* outlined - primary */
371
391
  @utility preset-outlined-primary-500 {
372
392
  border-width: 1px;
@@ -1,5 +1,7 @@
1
1
  /* Components: Tables */
2
2
 
3
+ /* IMPORTANT: :where() is used to give user-land styles precedence. */
4
+
3
5
  @utility table-wrap {
4
6
  width: 100%;
5
7
  overflow: auto;
@@ -14,24 +16,24 @@
14
16
 
15
17
  /* Head --- */
16
18
 
17
- & thead {
19
+ & :where(thead) {
18
20
  color: var(--color-surface-700-300);
19
21
  border-bottom-width: 1px;
20
- border-color: var(--color-surface-200-800);
22
+ border-color: var(--color-surface-300-700);
21
23
  }
22
24
 
23
- & th {
25
+ & :where(th) {
24
26
  text-align: left;
25
27
  font-weight: 400;
26
28
  }
27
29
 
28
30
  /* Body --- */
29
31
 
30
- & tbody {
31
- & > :not(:last-child) {
32
- border-color: var(--color-surface-200-800);
32
+ & :where(tbody) {
33
+ & > :where(:not(:last-child)) {
34
+ border-color: var(--color-surface-300-700);
33
35
  }
34
- & > :not(:last-child) {
36
+ & > :where(:not(:last-child)) {
35
37
  border-top-width: 0px;
36
38
  border-bottom-width: 1px;
37
39
  }
@@ -39,27 +41,33 @@
39
41
 
40
42
  /* Foot --- */
41
43
 
42
- & tfoot {
44
+ & :where(tfoot) {
43
45
  border-top-width: 1px;
44
- border-color: var(--color-surface-200-800);
46
+ border-color: var(--color-surface-300-700);
45
47
  background-color: var(--color-surface-100-900);
46
48
  }
47
49
 
48
50
  /* Cells */
49
51
 
50
- & th {
52
+ & :where(th) {
51
53
  padding: --spacing(2);
52
54
  }
53
55
 
54
- & td {
56
+ & :where(td) {
55
57
  padding: --spacing(2);
56
58
  }
57
59
 
58
60
  /* Caption */
59
61
 
60
- & caption {
62
+ & :where(caption) {
61
63
  color: var(--color-surface-600-400);
62
64
  font-size: var(--text-xs);
63
65
  line-height: var(--text-xs--line-height);
64
66
  }
65
67
  }
68
+
69
+ @utility table-zebra {
70
+ & :where(tbody tr:nth-child(odd)) {
71
+ background-color: color-mix(in oklab, var(--color-surface-100-900) 25%, transparent);
72
+ }
73
+ }
@@ -1,11 +1,20 @@
1
1
  /* Components: Typography */
2
2
 
3
+ /* Headings --- */
4
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements */
5
+
3
6
  @utility h1 {
4
- color: var(--heading-font-color);
5
- font-family: var(--heading-font-family);
6
- font-weight: var(--heading-font-weight);
7
- font-style: var(--heading-font-style);
8
- letter-spacing: var(--heading-letter-spacing);
7
+ color: var(--typo-heading--color-light);
8
+ font-family: var(--typo-heading--font-family);
9
+ font-weight: var(--typo-heading--font-weight);
10
+ font-style: var(--typo-heading--font-style);
11
+ letter-spacing: var(--typo-heading--letter-spacing);
12
+ font-stretch: var(--typo-heading--font-stretch);
13
+ font-kerning: var(--typo-heading--font-kerning);
14
+ text-shadow: var(--typo-heading--text-shadow);
15
+ word-spacing: var(--typo-heading--word-spacing);
16
+ hyphens: var(--typo-heading--hyphens);
17
+ text-transform: var(--typo-heading--text-transform);
9
18
 
10
19
  font-size: var(--text-4xl);
11
20
  line-height: var(--text-4xl--line-height);
@@ -15,16 +24,22 @@
15
24
  line-height: var(--text-5xl--line-height);
16
25
  }
17
26
  @variant dark {
18
- color: var(--heading-font-color-dark);
27
+ color: var(--typo-heading--color-dark);
19
28
  }
20
29
  }
21
30
 
22
31
  @utility h2 {
23
- color: var(--heading-font-color);
24
- font-family: var(--heading-font-family);
25
- font-weight: var(--heading-font-weight);
26
- font-style: var(--heading-font-style);
27
- letter-spacing: var(--heading-letter-spacing);
32
+ color: var(--typo-heading--color-light);
33
+ font-family: var(--typo-heading--font-family);
34
+ font-weight: var(--typo-heading--font-weight);
35
+ font-style: var(--typo-heading--font-style);
36
+ letter-spacing: var(--typo-heading--letter-spacing);
37
+ font-stretch: var(--typo-heading--font-stretch);
38
+ font-kerning: var(--typo-heading--font-kerning);
39
+ text-shadow: var(--typo-heading--text-shadow);
40
+ word-spacing: var(--typo-heading--word-spacing);
41
+ hyphens: var(--typo-heading--hyphens);
42
+ text-transform: var(--typo-heading--text-transform);
28
43
 
29
44
  font-size: var(--text-3xl);
30
45
  line-height: var(--text-3xl--line-height);
@@ -34,16 +49,22 @@
34
49
  line-height: var(--text-4xl--line-height);
35
50
  }
36
51
  @variant dark {
37
- color: var(--heading-font-color-dark);
52
+ color: var(--typo-heading--color-dark);
38
53
  }
39
54
  }
40
55
 
41
56
  @utility h3 {
42
- color: var(--heading-font-color);
43
- font-family: var(--heading-font-family);
44
- font-weight: var(--heading-font-weight);
45
- font-style: var(--heading-font-style);
46
- letter-spacing: var(--heading-letter-spacing);
57
+ color: var(--typo-heading--color-light);
58
+ font-family: var(--typo-heading--font-family);
59
+ font-weight: var(--typo-heading--font-weight);
60
+ font-style: var(--typo-heading--font-style);
61
+ letter-spacing: var(--typo-heading--letter-spacing);
62
+ font-stretch: var(--typo-heading--font-stretch);
63
+ font-kerning: var(--typo-heading--font-kerning);
64
+ text-shadow: var(--typo-heading--text-shadow);
65
+ word-spacing: var(--typo-heading--word-spacing);
66
+ hyphens: var(--typo-heading--hyphens);
67
+ text-transform: var(--typo-heading--text-transform);
47
68
 
48
69
  font-size: var(--text-2xl);
49
70
  line-height: var(--text-2xl--line-height);
@@ -53,16 +74,22 @@
53
74
  line-height: var(--text-3xl--line-height);
54
75
  }
55
76
  @variant dark {
56
- color: var(--heading-font-color-dark);
77
+ color: var(--typo-heading--color-dark);
57
78
  }
58
79
  }
59
80
 
60
81
  @utility h4 {
61
- color: var(--heading-font-color);
62
- font-family: var(--heading-font-family);
63
- font-weight: var(--heading-font-weight);
64
- font-style: var(--heading-font-style);
65
- letter-spacing: var(--heading-letter-spacing);
82
+ color: var(--typo-heading--color-light);
83
+ font-family: var(--typo-heading--font-family);
84
+ font-weight: var(--typo-heading--font-weight);
85
+ font-style: var(--typo-heading--font-style);
86
+ letter-spacing: var(--typo-heading--letter-spacing);
87
+ font-stretch: var(--typo-heading--font-stretch);
88
+ font-kerning: var(--typo-heading--font-kerning);
89
+ text-shadow: var(--typo-heading--text-shadow);
90
+ word-spacing: var(--typo-heading--word-spacing);
91
+ hyphens: var(--typo-heading--hyphens);
92
+ text-transform: var(--typo-heading--text-transform);
66
93
 
67
94
  font-size: var(--text-xl);
68
95
  line-height: var(--text-xl--line-height);
@@ -73,16 +100,22 @@
73
100
  }
74
101
 
75
102
  @variant dark {
76
- color: var(--heading-font-color-dark);
103
+ color: var(--typo-heading--color-dark);
77
104
  }
78
105
  }
79
106
 
80
107
  @utility h5 {
81
- color: var(--heading-font-color);
82
- font-family: var(--heading-font-family);
83
- font-weight: var(--heading-font-weight);
84
- font-style: var(--heading-font-style);
85
- letter-spacing: var(--heading-letter-spacing);
108
+ color: var(--typo-heading--color-light);
109
+ font-family: var(--typo-heading--font-family);
110
+ font-weight: var(--typo-heading--font-weight);
111
+ font-style: var(--typo-heading--font-style);
112
+ letter-spacing: var(--typo-heading--letter-spacing);
113
+ font-stretch: var(--typo-heading--font-stretch);
114
+ font-kerning: var(--typo-heading--font-kerning);
115
+ text-shadow: var(--typo-heading--text-shadow);
116
+ word-spacing: var(--typo-heading--word-spacing);
117
+ hyphens: var(--typo-heading--hyphens);
118
+ text-transform: var(--typo-heading--text-transform);
86
119
 
87
120
  font-size: var(--text-lg);
88
121
  line-height: var(--text-lg--line-height);
@@ -92,16 +125,22 @@
92
125
  line-height: var(--text-xl--line-height);
93
126
  }
94
127
  @variant dark {
95
- color: var(--heading-font-color-dark);
128
+ color: var(--typo-heading--color-dark);
96
129
  }
97
130
  }
98
131
 
99
132
  @utility h6 {
100
- color: var(--heading-font-color);
101
- font-family: var(--heading-font-family);
102
- font-weight: var(--heading-font-weight);
103
- font-style: var(--heading-font-style);
104
- letter-spacing: var(--heading-letter-spacing);
133
+ color: var(--typo-heading--color-light);
134
+ font-family: var(--typo-heading--font-family);
135
+ font-weight: var(--typo-heading--font-weight);
136
+ font-style: var(--typo-heading--font-style);
137
+ letter-spacing: var(--typo-heading--letter-spacing);
138
+ font-stretch: var(--typo-heading--font-stretch);
139
+ font-kerning: var(--typo-heading--font-kerning);
140
+ text-shadow: var(--typo-heading--text-shadow);
141
+ word-spacing: var(--typo-heading--word-spacing);
142
+ hyphens: var(--typo-heading--hyphens);
143
+ text-transform: var(--typo-heading--text-transform);
105
144
 
106
145
  font-size: var(--text-base);
107
146
  line-height: var(--text-base--line-height);
@@ -111,55 +150,100 @@
111
150
  line-height: var(--text-lg--line-height);
112
151
  }
113
152
  @variant dark {
114
- color: var(--heading-font-color-dark);
153
+ color: var(--typo-heading--color-dark);
115
154
  }
116
155
  }
117
156
 
157
+ /* Anchor --- */
158
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a */
159
+
118
160
  @utility anchor {
119
- color: var(--anchor-font-color);
120
- font-family: var(--anchor-font-family);
121
- font-size: var(--anchor-font-size);
122
- line-height: var(--anchor-line-height);
123
- font-weight: var(--anchor-font-weight);
124
- font-style: var(--anchor-font-style);
125
- letter-spacing: var(--anchor-letter-spacing);
126
- text-decoration: var(--anchor-text-decoration);
161
+ color: var(--typo-anchor--color-light);
162
+ font-family: var(--typo-anchor--font-family);
163
+ font-size: var(--typo-anchor--font-size);
164
+ line-height: var(--typo-anchor--line-height);
165
+ font-weight: var(--typo-anchor--font-weight);
166
+ font-style: var(--typo-anchor--font-style);
167
+ letter-spacing: var(--typo-anchor--letter-spacing);
168
+ font-stretch: var(--typo-anchor--font-stretch);
169
+ font-kerning: var(--typo-anchor--font-kerning);
170
+ text-shadow: var(--typo-anchor--text-shadow);
171
+ word-spacing: var(--typo-anchor--word-spacing);
172
+ hyphens: var(--typo-anchor--hyphens);
173
+ text-transform: var(--typo-anchor--text-transform);
174
+ text-decoration-line: var(--typo-anchor--text-decoration-line);
175
+ text-decoration-color: var(--typo-anchor--text-decoration-color);
176
+ text-decoration-style: var(--typo-anchor--text-decoration-style);
177
+ text-decoration-thickness: var(--typo-anchor--text-decoration-thickness);
178
+ text-underline-offset: var(--typo-anchor--text-underline-offset);
179
+ text-underline-position: var(--typo-anchor--text-underline-position);
127
180
 
128
181
  @variant hover {
129
- text-decoration: var(--anchor-text-decoration-hover);
182
+ text-decoration-line: var(--typo-anchor--hover--text-decoration-line);
183
+ text-decoration-color: var(--typo-anchor--hover--text-decoration-color);
184
+ text-decoration-style: var(--typo-anchor--hover--text-decoration-style);
185
+ text-decoration-thickness: var(--typo-anchor--hover--text-decoration-thickness);
186
+ text-underline-offset: var(--typo-anchor--hover--text-underline-offset);
187
+ text-underline-position: var(--typo-anchor--hover--text-underline-position);
130
188
  }
131
189
  @variant active {
132
- text-decoration: var(--anchor-text-decoration-active);
190
+ text-decoration-line: var(--typo-anchor--active--text-decoration-line);
191
+ text-decoration-color: var(--typo-anchor--active--text-decoration-color);
192
+ text-decoration-style: var(--typo-anchor--active--text-decoration-style);
193
+ text-decoration-thickness: var(--typo-anchor--active--text-decoration-thickness);
194
+ text-underline-offset: var(--typo-anchor--active--text-underline-offset);
195
+ text-underline-position: var(--typo-anchor--active--text-underline-position);
133
196
  }
134
197
  @variant focus {
135
- text-decoration: var(--anchor-text-decoration-focus);
198
+ text-decoration-line: var(--typo-anchor--focus--text-decoration-line);
199
+ text-decoration-color: var(--typo-anchor--focus--text-decoration-color);
200
+ text-decoration-style: var(--typo-anchor--focus--text-decoration-style);
201
+ text-decoration-thickness: var(--typo-anchor--focus--text-decoration-thickness);
202
+ text-underline-offset: var(--typo-anchor--focus--text-underline-offset);
203
+ text-underline-position: var(--typo-anchor--focus--text-underline-position);
136
204
  }
137
205
  @variant dark {
138
- color: var(--anchor-font-color-dark);
206
+ color: var(--typo-anchor--color-dark);
139
207
  }
140
208
  }
141
209
 
210
+ /* Blockquote --- */
211
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote */
212
+
142
213
  @utility blockquote {
143
- border-left-width: 3px;
144
- border-left-color: var(--color-primary-500);
214
+ border-left-width: 2px;
215
+ border-left-color: light-dark(var(--color-brand-light), var(--color-brand-dark));
216
+ display: flex;
217
+ flex-direction: column;
218
+ gap: --spacing(4);
145
219
  padding-left: --spacing(4);
146
220
  font-style: italic;
147
221
  }
148
222
 
223
+ /* Keyboard Input --- */
224
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd */
225
+
149
226
  @utility kbd {
150
- background-color: var(--color-surface-300-700);
227
+ background-color: var(--color-surface-100-900);
151
228
  border-width: 1px;
229
+ border-right-width: 2px;
230
+ border-bottom-width: 3px;
152
231
  border-color: var(--color-surface-600-400);
153
- border-radius: var(--radius-base);
154
- color: var(--color-surface-contrast-500);
232
+ border-radius: 4px;
233
+ color: var(--color-surface-contrast-100);
155
234
  font-family: var(--font-mono);
156
235
  font-size: var(--text-sm);
157
236
  white-space: nowrap;
158
- overflow-x: auto;
159
- padding-inline: --spacing(1.5);
160
- padding-block: --spacing(0.25);
237
+ padding-inline: --spacing(1.25);
238
+
239
+ @variant dark {
240
+ color: var(--color-surface-contrast-900);
241
+ }
161
242
  }
162
243
 
244
+ /* Preformatted Text --- */
245
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre */
246
+
163
247
  @utility pre {
164
248
  background-color: rgba(0, 0, 0, 0.85);
165
249
  backdrop-filter: blur(var(--blur-sm));
@@ -171,17 +255,35 @@
171
255
  overflow-x: auto;
172
256
  }
173
257
 
174
- @utility code {
175
- &:not(pre &, .ec-line &) {
176
- background-color: var(--color-primary-100-900);
258
+ /* Code --- */
259
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code */
260
+
261
+ /* Affects <code>, but not <pre><code></code></pre> */
262
+ /* This enables the use of presets-* styling for standalone <code> */
263
+ @layer base {
264
+ code {
265
+ background-color: color-mix(in oklab, light-dark(var(--color-brand-light), var(--color-brand-dark)) 25%, transparent);
266
+ color: var(--color-surface-950-50);
177
267
  border-radius: var(--radius-base);
178
- color: var(--color-primary-contrast-50-950);
179
268
  font-family: var(--font-mono);
180
269
  font-size: var(--text-xs);
181
270
  white-space: nowrap;
182
271
  padding-inline: --spacing(1.5);
183
272
  padding-block: --spacing(0.75);
184
- overflow-x: auto;
273
+ }
274
+
275
+ /* Reset when code is inside pre or .ec-line */
276
+ pre code,
277
+ .ec-line code {
278
+ background-color: unset;
279
+ border-radius: unset;
280
+ color: unset;
281
+ font-family: unset;
282
+ font-size: unset;
283
+ white-space: unset;
284
+ padding-inline: unset;
285
+ padding-block: unset;
286
+ overflow-x: unset;
185
287
  }
186
288
  }
187
289
 
@@ -229,9 +331,59 @@
229
331
  }
230
332
  }
231
333
 
334
+ /* Mark --- */
335
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark */
336
+
232
337
  @utility mark {
233
338
  color: var(--color-tertiary-contrast-500);
234
339
  background-color: var(--color-tertiary-500);
235
340
  border-radius: var(--radius-sm);
236
341
  padding-inline: --spacing(1);
237
342
  }
343
+
344
+ /* Abbreviation --- */
345
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr */
346
+
347
+ @utility abbr {
348
+ font-weight: bold;
349
+ text-decoration: underline dotted;
350
+ text-decoration-color: var(--color-surface-600-400);
351
+ text-underline-offset: --spacing(1);
352
+ }
353
+
354
+ /* Citation --- */
355
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite */
356
+
357
+ @utility cite {
358
+ font-style: italic;
359
+ }
360
+
361
+ /* Quote --- */
362
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q */
363
+
364
+ @utility quote {
365
+ font-style: italic;
366
+ }
367
+
368
+ /* Subscript / Superscript --- */
369
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub */
370
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup */
371
+
372
+ @utility sub {
373
+ font-size: var(--text-xs);
374
+ line-height: 0;
375
+ vertical-align: sub;
376
+ }
377
+
378
+ @utility sup {
379
+ font-size: var(--text-xs);
380
+ line-height: 0;
381
+ vertical-align: super;
382
+ }
383
+
384
+ /* Time --- */
385
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time */
386
+
387
+ @utility time {
388
+ font-weight: bold;
389
+ }
@@ -0,0 +1 @@
1
+ /* ... */