@grafctory/skin 0.0.0-stage → 0.3.2

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 (78) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +482 -2
  3. package/dist/index.core.d.ts +201 -0
  4. package/dist/index.core.d.ts.map +1 -0
  5. package/dist/index.core.js +17 -0
  6. package/dist/index.core.js.map +1 -0
  7. package/dist/index.css +130 -0
  8. package/dist/index.d.ts +432 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +184 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/markup/alerts.css +83 -0
  13. package/dist/markup/blocks.css +255 -0
  14. package/dist/markup/forms.css +552 -0
  15. package/dist/markup/headings.css +131 -0
  16. package/dist/markup/highlights.css +38 -0
  17. package/dist/markup/inlines.css +181 -0
  18. package/dist/markup/lists.css +202 -0
  19. package/dist/markup/reset.css +38 -0
  20. package/dist/markup/tables.css +87 -0
  21. package/dist/presets/inter.css +194 -0
  22. package/dist/presets/roboto.css +198 -0
  23. package/dist/tokens/borders.css +151 -0
  24. package/dist/tokens/borders.d.ts +61 -0
  25. package/dist/tokens/borders.d.ts.map +1 -0
  26. package/dist/tokens/borders.js +76 -0
  27. package/dist/tokens/borders.js.map +1 -0
  28. package/dist/tokens/colors.css +516 -0
  29. package/dist/tokens/colors.d.ts +172 -0
  30. package/dist/tokens/colors.d.ts.map +1 -0
  31. package/dist/tokens/colors.js +187 -0
  32. package/dist/tokens/colors.js.map +1 -0
  33. package/dist/tokens/elevations.css +110 -0
  34. package/dist/tokens/elevations.d.ts +54 -0
  35. package/dist/tokens/elevations.d.ts.map +1 -0
  36. package/dist/tokens/elevations.js +69 -0
  37. package/dist/tokens/elevations.js.map +1 -0
  38. package/dist/tokens/layers.css +57 -0
  39. package/dist/tokens/layers.d.ts +34 -0
  40. package/dist/tokens/layers.d.ts.map +1 -0
  41. package/dist/tokens/layers.js +49 -0
  42. package/dist/tokens/layers.js.map +1 -0
  43. package/dist/tokens/motions.css +91 -0
  44. package/dist/tokens/motions.d.ts +40 -0
  45. package/dist/tokens/motions.d.ts.map +1 -0
  46. package/dist/tokens/motions.js +55 -0
  47. package/dist/tokens/motions.js.map +1 -0
  48. package/dist/tokens/opacities.css +41 -0
  49. package/dist/tokens/opacities.d.ts +32 -0
  50. package/dist/tokens/opacities.d.ts.map +1 -0
  51. package/dist/tokens/opacities.js +47 -0
  52. package/dist/tokens/opacities.js.map +1 -0
  53. package/dist/tokens/palettes.css +546 -0
  54. package/dist/tokens/palettes.d.ts +140 -0
  55. package/dist/tokens/palettes.d.ts.map +1 -0
  56. package/dist/tokens/palettes.js +155 -0
  57. package/dist/tokens/palettes.js.map +1 -0
  58. package/dist/tokens/scalings.css +81 -0
  59. package/dist/tokens/scalings.d.ts +31 -0
  60. package/dist/tokens/scalings.d.ts.map +1 -0
  61. package/dist/tokens/scalings.js +46 -0
  62. package/dist/tokens/scalings.js.map +1 -0
  63. package/dist/tokens/spacings.css +78 -0
  64. package/dist/tokens/spacings.d.ts +34 -0
  65. package/dist/tokens/spacings.d.ts.map +1 -0
  66. package/dist/tokens/spacings.js +49 -0
  67. package/dist/tokens/spacings.js.map +1 -0
  68. package/dist/tokens/typography.css +156 -0
  69. package/dist/tokens/typography.d.ts +77 -0
  70. package/dist/tokens/typography.d.ts.map +1 -0
  71. package/dist/tokens/typography.js +92 -0
  72. package/dist/tokens/typography.js.map +1 -0
  73. package/dist/tokens/viewports.css +101 -0
  74. package/dist/tokens/viewports.d.ts +75 -0
  75. package/dist/tokens/viewports.d.ts.map +1 -0
  76. package/dist/tokens/viewports.js +90 -0
  77. package/dist/tokens/viewports.js.map +1 -0
  78. package/package.json +87 -4
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright © 2023-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /*
18
+ * Highlighted code, as highlight.js and the rehype and remark plugins built on it class its tokens. Kinds of tokens
19
+ * are told apart by the stroke roles, which hold AA contrast on the stripe the code block sits on: the colour only
20
+ * eases reading, the code saying the same thing without it to a reader who cannot tell the hues apart.
21
+ */
22
+
23
+ .hljs-keyword, .hljs-built_in, .hljs-type, .hljs-literal {
24
+ color: var(--skin--color-note-stroke);
25
+ }
26
+
27
+ .hljs-string, .hljs-regexp {
28
+ color: var(--skin--color-pass-stroke);
29
+ }
30
+
31
+ .hljs-number, .hljs-symbol, .hljs-attr, .hljs-attribute {
32
+ color: var(--skin--color-warn-stroke);
33
+ }
34
+
35
+ .hljs-comment, .hljs-meta {
36
+ font-style: italic;
37
+ color: var(--skin--color-label);
38
+ }
@@ -0,0 +1,181 @@
1
+ /*
2
+ * Copyright © 2023-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /* A link is set strong in the link colour, and the pointer adds an underline drawn just below the baseline. */
18
+
19
+ a, a:visited {
20
+
21
+ text-decoration-line: none;
22
+ text-decoration-thickness: 1px;
23
+ text-underline-offset: 0.15em;
24
+
25
+ font-weight: var(--skin--font-weight-strong);
26
+ color: var(--skin--color-link);
27
+
28
+ cursor: pointer;
29
+
30
+ /*
31
+ * A link answers the pointer by turning to the hover colour, and keeps it through the press rather than flashing a
32
+ * colour of its own. The focus is marked by the outline a native control carries, which no underline rule clears,
33
+ * rounded as the corners of a control are, so the mark reads the same wherever the keyboard lands.
34
+ */
35
+
36
+ &:focus-visible {
37
+ border-radius: var(--skin--border-radius-025);
38
+ outline: var(--skin--outline-focus);
39
+ outline-offset: var(--skin--border-width);
40
+ }
41
+
42
+ &:hover {
43
+ text-decoration-line: underline;
44
+ color: var(--skin--color-link-hover);
45
+ }
46
+
47
+ }
48
+
49
+ /*
50
+ * A focused link is lifted over the content following it, whose background would otherwise paint over the part of
51
+ * the ring drawn outside the box. The lift weighs nothing, so any rule positioning a link keeps its own value.
52
+ */
53
+
54
+ :where(a:focus-visible) {
55
+ position: relative;
56
+ }
57
+
58
+ /* Emphasis, a cited title, a term being defined and a variable are set in italics, the stress the text face carries. */
59
+
60
+ em, i, cite, dfn, var {
61
+ font-style: italic;
62
+ }
63
+
64
+ strong, b {
65
+ font-weight: var(--skin--font-weight-strong);
66
+ }
67
+
68
+ /* Code, keys and the output of a program are set in the mono face. */
69
+
70
+ code, kbd, samp {
71
+ font-family: var(--skin--font-family-mono);
72
+ }
73
+
74
+ /*
75
+ * A code span names one thing, so it is read as one word and moves to the next line whole rather than folding at a
76
+ * hyphen or a space. Only a span longer than the line wraps, within a box of its own, so it never widens the column.
77
+ * The mono face alone is too close to the text face to set it apart, so the span sits on a tint of its own ink,
78
+ * padded just enough to clear the glyphs. The share is an optical nudge below the colour scale: mixed from the ink
79
+ * rather than from a surface token, it darkens whatever it lies on, keeping the span apart on striped rows in either
80
+ * theme. Code within a preformatted block is left to the block, which keeps its line breaks and its stripe.
81
+ */
82
+
83
+ code:where(:not(pre > code)) {
84
+ display: inline-block;
85
+ max-width: 100%;
86
+ padding: var(--skin--spacing-010) var(--skin--spacing-025);
87
+ border-radius: var(--skin--border-radius-025);
88
+ background-color: color-mix(in oklab, currentColor 8%, transparent);
89
+ }
90
+
91
+ /*
92
+ * A key is drawn as the cap it is pressed on: outlined in the decorative line, the bottom edge doubled as the side a
93
+ * cap shows below its face, and padded and rounded as a code span is, so a chord reads as keys rather than as code.
94
+ */
95
+
96
+ kbd {
97
+ padding: var(--skin--spacing-010) var(--skin--spacing-025);
98
+ border-style: var(--skin--border-style);
99
+ border-bottom-width: calc(2 * var(--skin--border-width));
100
+ border-radius: var(--skin--border-radius-025);
101
+ white-space: nowrap;
102
+ }
103
+
104
+ /* A passage marked for reference, as a search hit is, lies on the tint a selected item takes. */
105
+
106
+ mark {
107
+ background-color: var(--skin--background-color-selected);
108
+ }
109
+
110
+ /* A subscript and a superscript are set smaller and take no height of their own, so the line spacing stays even. */
111
+
112
+ sub, sup {
113
+ font-size: smaller;
114
+ line-height: 0;
115
+ }
116
+
117
+ /* An abbreviation carrying its expansion keeps the dotted underline the platform draws, and offers it as help. */
118
+
119
+ abbr[title] {
120
+ text-underline-offset: 0.15em;
121
+ cursor: help;
122
+ }
123
+
124
+ /*
125
+ * Side comments and fine print recede in the placeholder colour, the faintest text the page holds to AA contrast, so
126
+ * they are set on the page and the stripe and never over a control tint, where only the label colour holds it.
127
+ */
128
+
129
+ small {
130
+ font-size: var(--skin--font-size-small);
131
+ color: var(--skin--color-placeholder);
132
+ }
133
+
134
+ /*
135
+ * An image carrying the `active` attribute is lifted out of the text over the blanket a modal dims the page with, and
136
+ * set on a card hugging the picture, scaled down without cropping to fit the viewport less a margin, so a picture
137
+ * with transparent areas stands on a surface rather than floating over the blanket. Whoever renders the page sets the
138
+ * attribute on a click and clears it on `Escape` or on a focus move, either of which returns the image to its place in
139
+ * the surrounding text, so a reader can enlarge and dismiss an image from the keyboard alone.
140
+ */
141
+
142
+ img:not(a img) {
143
+ cursor: zoom-in; /* A click on an image outside a link enlarges it. */
144
+ }
145
+
146
+ img[active] {
147
+
148
+ position: fixed;
149
+ inset: var(--skin--spacing-075);
150
+ z-index: var(--skin--z-index-modal);
151
+
152
+ /*
153
+ * The margin is narrow and the same at every size and in either orientation, leaving the picture as much of the
154
+ * screen as it can take. The card hugs the picture and is centred in the room inside the margin, overriding the
155
+ * `width` and `height` attributes the page set in the text, though not a `style` attribute: the picture keeps its
156
+ * own size, scaled down with its proportions kept wherever the card would otherwise overflow the room.
157
+ */
158
+
159
+ width: auto;
160
+ height: auto;
161
+ max-width: calc(100% - 2 * var(--skin--spacing-075));
162
+ max-height: calc(100% - 2 * var(--skin--spacing-075));
163
+
164
+ margin: auto;
165
+
166
+ /*
167
+ * The box is drawn as a dialog is, an overlay surface outlined, rounded and padded from the picture, while a
168
+ * spread past any viewport paints the blanket around it, so the card stands out over a page dimmed evenly from
169
+ * edge to edge; the spread follows the rounded corners, leaving no gap between the card and the blanket.
170
+ */
171
+
172
+ padding: var(--skin--spacing-150);
173
+ border-style: var(--skin--border-style);
174
+ border-radius: var(--skin--border-radius-075);
175
+
176
+ background-color: var(--skin--background-color-overlay);
177
+ box-shadow: var(--skin--box-shadow-overlay), 0 0 0 100vmax var(--skin--background-color-blanket);
178
+
179
+ cursor: zoom-out;
180
+
181
+ }
@@ -0,0 +1,202 @@
1
+ /*
2
+ * Copyright © 2023-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ ul, ol {
18
+
19
+ padding-left: var(--skin--spacing-150);
20
+
21
+ &:not(:last-child) {
22
+ margin-bottom: var(--skin--spacing-100);
23
+ }
24
+
25
+ & > li {
26
+
27
+ & > p:only-child {
28
+ margin: 0;
29
+ }
30
+
31
+ & > :is(ul, ol) {
32
+ margin-top: var(--skin--spacing-025);
33
+ margin-bottom: var(--skin--spacing-050);
34
+ }
35
+
36
+ & + li {
37
+ margin-top: var(--skin--spacing-025);
38
+ }
39
+
40
+ }
41
+
42
+ }
43
+
44
+ /*
45
+ * A nested list changes its marker at each level, so the depth of an item reads from the marker as well as from the
46
+ * indent. Bullets count every list they sit in, whatever its kind. Numbers count only the numbered lists above them,
47
+ * running 1, a, i as an outline does, so a numbered list under a bullet restarts the outline at its first level.
48
+ */
49
+
50
+ ul {
51
+
52
+ list-style-type: disc;
53
+
54
+ :is(ul, ol) & {
55
+ list-style-type: circle;
56
+ }
57
+
58
+ :is(ul, ol) :is(ul, ol) & {
59
+ list-style-type: square;
60
+ }
61
+
62
+ }
63
+
64
+ ol {
65
+
66
+ list-style-type: decimal;
67
+
68
+ ol & {
69
+ list-style-type: lower-alpha;
70
+ }
71
+
72
+ ol ol & {
73
+ list-style-type: lower-roman;
74
+ }
75
+
76
+ }
77
+
78
+ dl {
79
+
80
+ margin-bottom: var(--skin--spacing-100);
81
+
82
+ & > dt {
83
+
84
+ margin-bottom: var(--skin--spacing-050);
85
+
86
+ font-weight: var(--skin--font-weight-strong);
87
+ color: var(--skin--color-label);
88
+
89
+ & > p:only-child {
90
+ margin: 0;
91
+ }
92
+
93
+ }
94
+
95
+ & > dd:not(:last-child) {
96
+ margin-bottom: var(--skin--spacing-075);
97
+ }
98
+
99
+ }
100
+
101
+ /*
102
+ * A list in a navigation landmark reads as a compact outline of the sections it links to, quiet beside the document.
103
+ * Entries are set small, in the label colour and without markers. A label too long for the column, such as an
104
+ * identifier with no spaces, breaks where it meets the edge, so it never widens the column or spills into the
105
+ * content beside it. Each entry is a link, or a span naming a section with no heading to link to. Where any
106
+ * top-level entry heads subsections, every top-level entry is set in strong small capitals, so it stands out with no
107
+ * indent for the subsections beneath it. A wider gap then sets each open group apart from its neighbours with no
108
+ * separator. A top-level group may also fold behind its label as a disclosure. Its summary reads as the label it
109
+ * stands for, aligned with the entries beneath, and its chevron sits quietly at the far end of the line. Folded
110
+ * groups close up into a run of labels, and an opened one takes the gap of an unfolded group. An outline of
111
+ * top-level entries alone reads as a plain list, spaced as the entries beneath a group are, so it looks like one group
112
+ * of a nested outline with its label left out. From the third level on, each level is indented beneath the one
113
+ * above. The outline itself never hides an entry the markup lists, so each one stays reachable by every reader.
114
+ * Entries close up tighter than the labels of folded groups, yet siblings still sit further apart than the lines of
115
+ * one label, so a label wrapped onto several lines still reads as a single entry. Links answer the pointer as any
116
+ * link does. The link marked current by aria-current is strong in the strong accent, so the reader sees where they
117
+ * stand by weight as well as by colour, which holds for a reader who cannot tell the accent from the label colour.
118
+ */
119
+
120
+ nav {
121
+
122
+ & > ul {
123
+ font-size: var(--skin--font-size-small);
124
+ overflow-wrap: anywhere;
125
+ }
126
+
127
+ & ul {
128
+
129
+ padding-left: 0;
130
+
131
+ &:not(nav > ul:has(> li > details)) > li + li {
132
+ margin-top: 0;
133
+ }
134
+
135
+ & ul ul {
136
+ padding-left: var(--skin--spacing-075);
137
+ }
138
+
139
+ }
140
+
141
+ & li {
142
+
143
+ list-style-type: none;
144
+
145
+ & > :is(a, a:visited, span) {
146
+ display: block;
147
+ padding-block: var(--skin--spacing-010);
148
+ font-weight: var(--skin--font-weight);
149
+ color: var(--skin--color-label);
150
+ }
151
+
152
+ & > :is(a, a:visited) {
153
+
154
+ &:hover {
155
+ color: var(--skin--color-link-hover);
156
+ }
157
+
158
+ &[aria-current]:not([aria-current="false"]) {
159
+ font-weight: var(--skin--font-weight-strong);
160
+ color: var(--skin--color-strong);
161
+ }
162
+
163
+ }
164
+
165
+ }
166
+
167
+ & > ul:has(> li > :is(ul, details)) > li {
168
+
169
+ &:has(> ul, > details[open]) + li, & + li:has(> ul, > details[open]) {
170
+ margin-top: calc(var(--skin--spacing-100) + var(--skin--spacing-025)); /* A gap no single step holds. */
171
+ }
172
+
173
+ & > ul {
174
+ margin-top: var(--skin--spacing-050);
175
+ }
176
+
177
+ & > :is(a, a:visited, span), & > details > summary {
178
+ font-weight: var(--skin--font-weight-strong);
179
+ letter-spacing: var(--skin--letter-spacing-caps);
180
+ text-transform: var(--skin--text-transform-caps);
181
+ }
182
+
183
+ & > details {
184
+
185
+ margin-bottom: 0;
186
+
187
+ & > summary {
188
+
189
+ padding-block: var(--skin--spacing-010);
190
+ color: var(--skin--color-label);
191
+
192
+ &:hover {
193
+ color: var(--skin--color-link-hover);
194
+ }
195
+
196
+ }
197
+
198
+ }
199
+
200
+ }
201
+
202
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright © 2023-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ *, *::before, *::after {
18
+ box-sizing: border-box;
19
+ margin: 0;
20
+ padding: 0;
21
+ outline-style: none;
22
+ border-style: none;
23
+ border-radius: 0;
24
+ border-width: var(--skin--border-width);
25
+ border-color: var(--skin--border-color);
26
+ overflow: visible;
27
+ font-family: inherit;
28
+ font-style: inherit;
29
+ font-size: inherit;
30
+ font-weight: inherit;
31
+ line-height: inherit;
32
+ color: inherit;
33
+ background-color: inherit;
34
+ }
35
+
36
+ [hidden] {
37
+ display: none;
38
+ }
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Copyright © 2023-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /*
18
+ * A table wider than its container scrolls sideways within it rather than widening the page or squeezing its cells. A
19
+ * component keeping its header in view while the page scrolls restores the table display and visible overflow, since a
20
+ * table scrolling on its own would hold the header within itself. Cells stand separate rather than collapsed, so each
21
+ * draws its own rule and a header cell kept in view carries the rule under it. A border is therefore stated on a cell:
22
+ * a row or a row group draws none of its own, so a border set on one is ignored.
23
+ */
24
+
25
+ table {
26
+ display: block;
27
+ overflow-x: auto;
28
+ width: 100%;
29
+ max-width: 100%;
30
+ border-collapse: separate;
31
+ border-spacing: 0;
32
+ margin-bottom: var(--skin--spacing-150);
33
+ }
34
+
35
+ /*
36
+ * A table states no column widths, so its columns share the width of the container in proportion to their content,
37
+ * and a column sized as a share of its cell, as an image hinted to a percentage, keeps a share of its own. A table
38
+ * closing on a column with an empty header gives that column the room the others leave, keeping them as narrow as
39
+ * their content, so short keys such as names, types or counts can stand apart from a filler stretching the rows.
40
+ */
41
+
42
+ th {
43
+
44
+ white-space: nowrap;
45
+ font-weight: var(--skin--font-weight-strong);
46
+
47
+ &:empty:last-child {
48
+ width: 100%;
49
+ }
50
+
51
+ }
52
+
53
+ th,
54
+ td {
55
+
56
+ padding: var(--skin--spacing-050);
57
+ text-align: start;
58
+ vertical-align: top;
59
+ border-bottom-style: var(--skin--border-style);
60
+
61
+ /* A word in a cell is kept whole, so a long address scrolls the table rather than breaking in a narrow column. */
62
+
63
+ overflow-wrap: normal;
64
+
65
+ & > img {
66
+ margin: 0;
67
+ }
68
+
69
+ }
70
+
71
+ /* A caption titles the table above it, set at the start in the strong weight as a header cell is. */
72
+
73
+ caption {
74
+ padding-bottom: var(--skin--spacing-050);
75
+ text-align: start;
76
+ font-weight: var(--skin--font-weight-strong);
77
+ }
78
+
79
+ /*
80
+ * A table opts into stripes with a data-striped attribute, as an island opts into a scheme with data-scheme. Its body
81
+ * rows then alternate with the stripe from the second on, so the first row sits on the page under the header rule.
82
+ * The row paints its own background rather than retuning the page ground, which every derived colour reads.
83
+ */
84
+
85
+ table[data-striped] > tbody > tr:nth-child(even) {
86
+ background-color: var(--skin--background-color-stripe);
87
+ }