@passui/tokens 0.1.3 → 0.1.4

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.
@@ -1,383 +1,399 @@
1
1
  @utility typeset {
2
- --_size: var(--typeset-size, 1em);
3
- --_leading: var(--typeset-leading, 1.75);
4
- --_font-body: var(--typeset-font-body, inherit);
5
- --_font-heading: var(--typeset-font-heading, var(--font-heading));
6
- --_font-mono: var(--typeset-font-mono, var(--font-mono));
7
- --_muted: var(--color-muted-foreground,
8
- color-mix(in oklab, currentColor 60%, transparent));
9
- --_rule: var(--color-border,
10
- color-mix(in oklab, currentColor 20%, transparent));
11
- font-family: var(--_font-body);
12
- font-size: calc(var(--_size) * var(--typeset-bump, 1.125));
13
- line-height: var(--_leading);
14
- color: var(--color-foreground, currentColor);
15
- overflow-wrap: break-word;
16
-
17
- @media (min-width: 48rem),
18
- print {
19
- font-size: var(--_size);
20
- }
21
-
22
- *:not(:where(.not-typeset,
23
- [data-not-typeset],
24
- .not-typeset *,
25
- [data-not-typeset] *)) {
26
- &:where(p) {
27
- margin-block: 0;
28
- line-height: normal;
29
- color: var(--muted-foreground) !important;
30
- }
31
-
32
- &:where(h1, h2, h3, h4, h5, h6) {
33
- color: var(--color-foreground, currentColor);
34
- font-family: var(--_font-heading);
35
- line-height: normal;
36
- font-weight: 600;
37
- margin-block: 0;
38
- }
39
-
40
- &:where(h1) {
41
- font-size: 1.75em;
42
- line-height: 1.3;
43
- }
44
-
45
- &:where(h2) {
46
- font-size: 1.25em;
47
- line-height: 1.4;
48
- }
49
-
50
- &:where(h3) {
51
- font-size: 1.125em;
52
- line-height: 1.45;
53
- }
54
-
55
- &:where(h4) {
56
- font-size: 1em;
57
- line-height: 1.5;
58
- }
59
-
60
- &:where(h5) {
61
- font-size: 0.875em;
62
- line-height: 1.5;
63
- font-weight: 500;
64
- color: var(--_muted);
65
- }
66
-
67
- &:where(h6) {
68
- font-size: 0.8125em;
69
- line-height: 1.5;
70
- font-weight: 500;
71
- letter-spacing: 0.08em;
72
- text-transform: uppercase;
73
- color: var(--_muted);
74
- }
75
-
76
- &:where([id]) {
77
- scroll-margin-block-start: 1em;
78
- }
79
-
80
- &:where(:is(h1, h2, h3, h4) :is(code)) {
81
- font-size: 0.9em;
82
- }
83
-
84
- &:where(a) {
85
- color: var(--muted-foreground);
86
- font-weight: 500;
87
- text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
88
- }
89
-
90
- &:where(a:hover) {
91
- color: var(--foreground);
92
- text-decoration-color: currentColor;
93
- }
94
-
95
- &:where(a:focus-visible) {
96
- outline: 2px solid var(--color-ring, currentColor);
97
- outline-offset: 2px;
98
- border-radius: 0.125em;
99
- }
100
-
101
- &:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
102
- font-weight: inherit;
103
- }
104
-
105
- &:where(strong, b) {
106
- font-weight: 600;
107
- }
108
-
109
- &:where(:is(h1, h2, h3, h4) :is(strong, b)) {
110
- font-weight: 600;
111
- }
112
-
113
- &:where(mark) {
114
- background-color: color-mix(in oklab,
115
- oklch(0.86 0.17 95) 40%,
116
- transparent);
117
- color: inherit;
118
- padding: 0.05em 0.15em;
119
- border-radius: 0.2em;
120
- }
121
-
122
- &:where(abbr[title]) {
123
- text-decoration-line: underline;
124
- text-decoration-style: dotted;
125
- text-underline-offset: 0.2em;
126
- cursor: help;
127
- }
128
-
129
- &:where(del, s) {
130
- color: var(--_muted);
131
- text-decoration-line: line-through;
132
- }
133
-
134
- &:where(sup, sub) {
135
- font-size: 0.75em;
136
- line-height: 0;
137
- position: relative;
138
- vertical-align: baseline;
139
- }
140
-
141
- &:where(sup) {
142
- top: -0.5em;
143
- }
144
-
145
- &:where(sub) {
146
- bottom: -0.25em;
147
- }
148
-
149
- &:where(sup a) {
150
- text-decoration-line: none;
151
- font-weight: 500;
152
- }
153
-
154
- &:where(ul) {
155
- list-style-type: disc;
156
- }
157
-
158
- &:where(ol) {
159
- list-style-type: decimal;
160
- }
161
-
162
- &:where(ul ul) {
163
- list-style-type: circle;
164
- }
165
-
166
- &:where(ul ul ul) {
167
- list-style-type: square;
168
- }
169
-
170
- &:where(ol[type="a" i]) {
171
- list-style-type: lower-alpha;
172
- }
173
-
174
- &:where(ol[type="i" i]) {
175
- list-style-type: lower-roman;
176
- }
177
-
178
- &:where(ol[type="A" s]) {
179
- list-style-type: upper-alpha;
180
- }
181
-
182
- &:where(ol[type="I" s]) {
183
- list-style-type: upper-roman;
184
- }
185
-
186
- &:where(ul, ol) {
187
- margin-block: 0;
188
- padding-inline-start: 1.5em;
189
- }
190
-
191
- &:where(li) {
192
- margin-block-start: 0em;
193
- padding-inline-start: 0.4em;
194
- }
195
-
196
- &:where(li > p, li > ul, li > ol) {
197
- margin-block-start: 0.5em;
198
- color: var(--muted-foreground) !important;
199
- }
200
-
201
- &:where(li > label) {
202
- color: var(--muted-foreground) !important;
203
- }
204
-
205
- &:where(ul > li)::marker {
206
- color: var(--_muted);
207
- }
208
-
209
- &:where(ol > li)::marker {
210
- color: var(--_muted);
211
- }
212
-
213
- &:where(ul.contains-task-list) {
214
- list-style-type: none;
215
- padding-left: 0.25em;
216
- padding-inline-start: 0em;
217
- }
218
-
219
- &:where(ul[data-type="taskList"]) {
220
- padding-left: 0.25em;
221
- }
222
-
223
- &:where(ul[data-type="taskList"] > li:not(:has(> p:first-child))) {
224
- list-style-type: none;
225
- }
226
-
227
- &:where(ul[data-type="taskList"] > li) {
228
- flex-direction: row;
229
- display: flex;
230
- align-items: center;
231
- gap: calc(var(--spacing) * 2);
232
- }
233
-
234
- &:where(ul[data-type="taskList"] > li > label) {
235
- display: flex;
236
- align-items: center;
237
- }
238
-
239
- &:where(ul[data-type="taskList"] > li > label > input[type="checkbox"]) {
240
- cursor: pointer;
241
- accent-color: var(--color-muted-foreground, inherit);
242
- }
243
-
244
- &:where(ul[data-type="taskList"] > li[data-checked="true"] > div > p) {
245
- text-decoration-line: line-through;
246
- text-decoration-color: var(--color-muted-foreground);
247
- }
248
-
249
- &:where(li.task-list-item > input[type="checkbox"]) {
250
- margin-inline-end: 0.5em;
251
- vertical-align: -0.1em;
252
- accent-color: var(--color-primary, inherit);
253
- }
254
-
255
- &:where(details) {
256
- margin-block: 0;
257
- }
258
-
259
- &:where(summary) {
260
- cursor: pointer;
261
- font-weight: 500;
262
- }
263
-
264
- &:where(summary)::marker {
265
- color: var(--_muted);
266
- }
267
-
268
- &:where(kbd) {
269
- font-family: inherit;
270
- font-size: 0.85em;
271
- font-weight: 500;
272
- border: 1px solid var(--_rule);
273
- border-block-end-width: 2px;
274
- border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
275
- padding: 0.0625em 0.35em;
276
- }
277
-
278
- &:where(dl) {
279
- margin-block: 0;
280
- }
281
-
282
- &:where(dt) {
283
- font-weight: 500;
284
- margin-block-start: 1em;
285
- }
286
-
287
- &:where(dt + dt) {
288
- margin-block-start: 0.25em;
289
- }
290
-
291
- &:where(dd) {
292
- margin-block-start: 0.25em;
293
- margin-inline-start: 0;
294
- padding-inline-start: 1em;
295
- color: var(--_muted);
296
- }
297
-
298
- &:where(:not(pre) > code) {
299
- background-color: var(--color-muted,
300
- color-mix(in oklab, currentColor 8%, transparent));
301
- font-family: var(--_font-mono);
302
- font-size: 0.85em;
303
- border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
304
- padding: 0.125em 0.3em;
305
- }
306
-
307
- &:where(pre) {
308
- background-color: var(--color-muted,
309
- color-mix(in oklab, currentColor 8%, transparent));
310
- font-family: "JetBrainsMono", monospace, var(--_font-mono);
311
- font-size: 0.875em;
312
- line-height: normal;
313
- tab-size: 2;
314
- direction: ltr;
315
- border-radius: var(--radius, 0.5em);
316
- padding: 0.75em 1em;
317
- overflow-x: auto;
318
- margin-block: 0;
319
- }
320
-
321
- &:where(pre code) {
322
- background-color: transparent;
323
- font-family: inherit;
324
- font-size: 0.8rem;
325
- padding: 0;
326
- border-radius: 0;
327
-
328
- .hljs-comment,
329
- .hljs-quote {
330
- color: #616161;
331
- }
332
-
333
- .hljs-variable,
334
- .hljs-template-variable,
335
- .hljs-attribute,
336
- .hljs-tag,
337
- .hljs-regexp,
338
- .hljs-link,
339
- .hljs-name,
340
- .hljs-selector-id,
341
- .hljs-selector-class {
342
- color: #f98181;
343
- }
344
-
345
- .hljs-number,
346
- .hljs-meta,
347
- .hljs-built_in,
348
- .hljs-builtin-name,
349
- .hljs-literal,
350
- .hljs-type,
351
- .hljs-params {
352
- color: #fbbc88;
353
- }
354
-
355
- .hljs-string,
356
- .hljs-symbol,
357
- .hljs-bullet {
358
- color: #b9f18d;
359
- }
360
-
361
- .hljs-title,
362
- .hljs-section {
363
- color: #faf594;
364
- }
365
-
366
- .hljs-keyword,
367
- .hljs-selector-tag {
368
- color: #70cff8;
369
- }
370
-
371
- .hljs-emphasis {
372
- font-style: italic;
373
- }
374
-
375
- .hljs-strong {
376
- font-weight: 700;
377
- }
378
- }
379
-
380
- /*
2
+ --_size: var(--typeset-size, 1em);
3
+ --_leading: var(--typeset-leading, 1.75);
4
+ --_font-body: var(--typeset-font-body, inherit);
5
+ --_font-heading: var(--typeset-font-heading, var(--font-heading));
6
+ --_font-mono: var(--typeset-font-mono, var(--font-mono));
7
+ --_muted: var(
8
+ --color-muted-foreground,
9
+ color-mix(in oklab, currentColor 60%, transparent)
10
+ );
11
+ --_rule: var(
12
+ --color-border,
13
+ color-mix(in oklab, currentColor 20%, transparent)
14
+ );
15
+ font-family: var(--_font-body);
16
+ font-size: calc(var(--_size) * var(--typeset-bump, 1.125));
17
+ line-height: var(--_leading);
18
+ color: var(--color-foreground, currentColor);
19
+ overflow-wrap: break-word;
20
+
21
+ @media (min-width: 48rem), print {
22
+ font-size: var(--_size);
23
+ }
24
+
25
+ *:not(
26
+ :where(
27
+ .not-typeset,
28
+ [data-not-typeset],
29
+ .not-typeset *,
30
+ [data-not-typeset] *
31
+ )
32
+ ) {
33
+ &:where(p) {
34
+ margin-block: 0;
35
+ line-height: normal;
36
+ /* biome-ignore lint/complexity/noImportantStyles: design token override */
37
+ color: var(--muted-foreground) !important;
38
+ }
39
+
40
+ &:where(h1, h2, h3, h4, h5, h6) {
41
+ color: var(--color-foreground, currentColor);
42
+ font-family: var(--_font-heading);
43
+ line-height: normal;
44
+ font-weight: 600;
45
+ margin-block: 0;
46
+ }
47
+
48
+ &:where(h1) {
49
+ font-size: 1.75em;
50
+ line-height: 1.3;
51
+ }
52
+
53
+ &:where(h2) {
54
+ font-size: 1.25em;
55
+ line-height: 1.4;
56
+ }
57
+
58
+ &:where(h3) {
59
+ font-size: 1.125em;
60
+ line-height: 1.45;
61
+ }
62
+
63
+ &:where(h4) {
64
+ font-size: 1em;
65
+ line-height: 1.5;
66
+ }
67
+
68
+ &:where(h5) {
69
+ font-size: 0.875em;
70
+ line-height: 1.5;
71
+ font-weight: 500;
72
+ color: var(--_muted);
73
+ }
74
+
75
+ &:where(h6) {
76
+ font-size: 0.8125em;
77
+ line-height: 1.5;
78
+ font-weight: 500;
79
+ letter-spacing: 0.08em;
80
+ text-transform: uppercase;
81
+ color: var(--_muted);
82
+ }
83
+
84
+ &:where([id]) {
85
+ scroll-margin-block-start: 1em;
86
+ }
87
+
88
+ &:where(:is(h1, h2, h3, h4) :is(code)) {
89
+ font-size: 0.9em;
90
+ }
91
+
92
+ &:where(a) {
93
+ color: var(--muted-foreground);
94
+ font-weight: 500;
95
+ text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
96
+ }
97
+
98
+ &:where(a:hover) {
99
+ color: var(--foreground);
100
+ text-decoration-color: currentColor;
101
+ }
102
+
103
+ &:where(a:focus-visible) {
104
+ outline: 2px solid var(--color-ring, currentColor);
105
+ outline-offset: 2px;
106
+ border-radius: 0.125em;
107
+ }
108
+
109
+ &:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
110
+ font-weight: inherit;
111
+ }
112
+
113
+ &:where(strong, b) {
114
+ font-weight: 600;
115
+ }
116
+
117
+ &:where(:is(h1, h2, h3, h4) :is(strong, b)) {
118
+ font-weight: 600;
119
+ }
120
+
121
+ &:where(mark) {
122
+ background-color: color-mix(
123
+ in oklab,
124
+ oklch(0.86 0.17 95) 40%,
125
+ transparent
126
+ );
127
+ color: inherit;
128
+ padding: 0.05em 0.15em;
129
+ border-radius: 0.2em;
130
+ }
131
+
132
+ &:where(abbr[title]) {
133
+ text-decoration-line: underline;
134
+ text-decoration-style: dotted;
135
+ text-underline-offset: 0.2em;
136
+ cursor: help;
137
+ }
138
+
139
+ &:where(del, s) {
140
+ color: var(--_muted);
141
+ text-decoration-line: line-through;
142
+ }
143
+
144
+ &:where(sup, sub) {
145
+ font-size: 0.75em;
146
+ line-height: 0;
147
+ position: relative;
148
+ vertical-align: baseline;
149
+ }
150
+
151
+ &:where(sup) {
152
+ top: -0.5em;
153
+ }
154
+
155
+ &:where(sub) {
156
+ bottom: -0.25em;
157
+ }
158
+
159
+ &:where(sup a) {
160
+ text-decoration-line: none;
161
+ font-weight: 500;
162
+ }
163
+
164
+ &:where(ul) {
165
+ list-style-type: disc;
166
+ }
167
+
168
+ &:where(ol) {
169
+ list-style-type: decimal;
170
+ }
171
+
172
+ &:where(ul ul) {
173
+ list-style-type: circle;
174
+ }
175
+
176
+ &:where(ul ul ul) {
177
+ list-style-type: square;
178
+ }
179
+
180
+ &:where(ol[type="a" i]) {
181
+ list-style-type: lower-alpha;
182
+ }
183
+
184
+ &:where(ol[type="i" i]) {
185
+ list-style-type: lower-roman;
186
+ }
187
+
188
+ &:where(ol[type="A" s]) {
189
+ list-style-type: upper-alpha;
190
+ }
191
+
192
+ &:where(ol[type="I" s]) {
193
+ list-style-type: upper-roman;
194
+ }
195
+
196
+ &:where(ul, ol) {
197
+ margin-block: 0;
198
+ padding-inline-start: 1.5em;
199
+ }
200
+
201
+ &:where(li) {
202
+ margin-block-start: 0em;
203
+ padding-inline-start: 0.4em;
204
+ }
205
+
206
+ &:where(li > p, li > ul, li > ol) {
207
+ margin-block-start: 0.5em;
208
+ /* biome-ignore lint/complexity/noImportantStyles: design token override */
209
+ color: var(--muted-foreground) !important;
210
+ }
211
+
212
+ &:where(li > label) {
213
+ /* biome-ignore lint/complexity/noImportantStyles: design token override */
214
+ color: var(--muted-foreground) !important;
215
+ }
216
+
217
+ &:where(ul > li)::marker {
218
+ color: var(--_muted);
219
+ }
220
+
221
+ &:where(ol > li)::marker {
222
+ color: var(--_muted);
223
+ }
224
+
225
+ &:where(ul.contains-task-list) {
226
+ list-style-type: none;
227
+ padding-left: 0.25em;
228
+ padding-inline-start: 0em;
229
+ }
230
+
231
+ &:where(ul[data-type="taskList"]) {
232
+ padding-left: 0.25em;
233
+ }
234
+
235
+ &:where(ul[data-type="taskList"] > li:not(:has(> p:first-child))) {
236
+ list-style-type: none;
237
+ }
238
+
239
+ &:where(ul[data-type="taskList"] > li) {
240
+ flex-direction: row;
241
+ display: flex;
242
+ align-items: center;
243
+ gap: calc(var(--spacing) * 2);
244
+ }
245
+
246
+ &:where(ul[data-type="taskList"] > li > label) {
247
+ display: flex;
248
+ align-items: center;
249
+ }
250
+
251
+ &:where(ul[data-type="taskList"] > li > label > input[type="checkbox"]) {
252
+ cursor: pointer;
253
+ accent-color: var(--color-muted-foreground, inherit);
254
+ }
255
+
256
+ &:where(ul[data-type="taskList"] > li[data-checked="true"] > div > p) {
257
+ text-decoration-line: line-through;
258
+ text-decoration-color: var(--color-muted-foreground);
259
+ }
260
+
261
+ &:where(li.task-list-item > input[type="checkbox"]) {
262
+ margin-inline-end: 0.5em;
263
+ vertical-align: -0.1em;
264
+ accent-color: var(--color-primary, inherit);
265
+ }
266
+
267
+ &:where(details) {
268
+ margin-block: 0;
269
+ }
270
+
271
+ &:where(summary) {
272
+ cursor: pointer;
273
+ font-weight: 500;
274
+ }
275
+
276
+ &:where(summary)::marker {
277
+ color: var(--_muted);
278
+ }
279
+
280
+ &:where(kbd) {
281
+ font-family: inherit;
282
+ font-size: 0.85em;
283
+ font-weight: 500;
284
+ border: 1px solid var(--_rule);
285
+ border-block-end-width: 2px;
286
+ border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
287
+ padding: 0.0625em 0.35em;
288
+ }
289
+
290
+ &:where(dl) {
291
+ margin-block: 0;
292
+ }
293
+
294
+ &:where(dt) {
295
+ font-weight: 500;
296
+ margin-block-start: 1em;
297
+ }
298
+
299
+ &:where(dt + dt) {
300
+ margin-block-start: 0.25em;
301
+ }
302
+
303
+ &:where(dd) {
304
+ margin-block-start: 0.25em;
305
+ margin-inline-start: 0;
306
+ padding-inline-start: 1em;
307
+ color: var(--_muted);
308
+ }
309
+
310
+ &:where(:not(pre) > code) {
311
+ background-color: var(
312
+ --color-muted,
313
+ color-mix(in oklab, currentColor 8%, transparent)
314
+ );
315
+ font-family: var(--_font-mono);
316
+ font-size: 0.85em;
317
+ border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
318
+ padding: 0.125em 0.3em;
319
+ }
320
+
321
+ &:where(pre) {
322
+ background-color: var(
323
+ --color-muted,
324
+ color-mix(in oklab, currentColor 8%, transparent)
325
+ );
326
+ font-family: "JetBrainsMono", monospace, var(--_font-mono);
327
+ font-size: 0.875em;
328
+ line-height: normal;
329
+ tab-size: 2;
330
+ direction: ltr;
331
+ border-radius: var(--radius, 0.5em);
332
+ padding: 0.75em 1em;
333
+ overflow-x: auto;
334
+ margin-block: 0;
335
+ }
336
+
337
+ &:where(pre code) {
338
+ background-color: transparent;
339
+ font-family: inherit;
340
+ font-size: 0.8rem;
341
+ padding: 0;
342
+ border-radius: 0;
343
+
344
+ .hljs-comment,
345
+ .hljs-quote {
346
+ color: #616161;
347
+ }
348
+
349
+ .hljs-variable,
350
+ .hljs-template-variable,
351
+ .hljs-attribute,
352
+ .hljs-tag,
353
+ .hljs-regexp,
354
+ .hljs-link,
355
+ .hljs-name,
356
+ .hljs-selector-id,
357
+ .hljs-selector-class {
358
+ color: #f98181;
359
+ }
360
+
361
+ .hljs-number,
362
+ .hljs-meta,
363
+ .hljs-built_in,
364
+ .hljs-builtin-name,
365
+ .hljs-literal,
366
+ .hljs-type,
367
+ .hljs-params {
368
+ color: #fbbc88;
369
+ }
370
+
371
+ .hljs-string,
372
+ .hljs-symbol,
373
+ .hljs-bullet {
374
+ color: #b9f18d;
375
+ }
376
+
377
+ .hljs-title,
378
+ .hljs-section {
379
+ color: #faf594;
380
+ }
381
+
382
+ .hljs-keyword,
383
+ .hljs-selector-tag {
384
+ color: #70cff8;
385
+ }
386
+
387
+ .hljs-emphasis {
388
+ font-style: italic;
389
+ }
390
+
391
+ .hljs-strong {
392
+ font-weight: 700;
393
+ }
394
+ }
395
+
396
+ /*
381
397
  * The docs `Preview`'s own line-numbered codeBlock view
382
398
  * (`@baseconfig/ui/basiccn`'s `nodes/code-block-preview.tsx`):
383
399
  * the gutter is a plain sibling column, not interleaved into
@@ -396,331 +412,530 @@
396
412
  * horizontally, so a long line never carries the gutter out of
397
413
  * view with it.
398
414
  */
399
- .code-block-preview {
400
- display: flex;
401
- align-items: flex-start;
402
- gap: 1em;
403
- overflow-x: hidden;
404
- }
405
-
406
- .code-block-gutter {
407
- display: flex;
408
- flex-direction: column;
409
- flex: none;
410
- font-size: 0.8rem;
411
- text-align: right;
412
- color: color-mix(in oklab, currentColor 35%, transparent);
413
- user-select: none;
414
- }
415
-
416
- .code-block-preview-code {
417
- display: block;
418
- flex: 1;
419
- overflow-x: auto;
420
- white-space: pre;
421
- }
422
-
423
- &:where(blockquote) {
424
- border-inline-start: 2px solid var(--_rule);
425
- padding-inline-start: 1em;
426
- margin-block: 0;
427
- margin-inline: 0;
428
- }
429
-
430
- &:where(hr) {
431
- border: 0;
432
- border-block-start: 1px solid var(--_rule);
433
- margin-block: 0;
434
- }
435
-
436
- &:where(.footnotes, [data-footnotes]) {
437
- margin-block: 0;
438
- border-block-start: 1px solid var(--_rule);
439
- padding-block-start: 1em;
440
- font-size: 0.875em;
441
- color: var(--_muted);
442
- }
443
-
444
- &:where(math[display="block"]) {
445
- margin-block: 0;
446
- overflow-x: auto;
447
- overflow-y: hidden;
448
- padding-block: 0.25em;
449
- }
450
-
451
- &:where(img, video) {
452
- border-radius: var(--radius, 0.5em);
453
- max-width: 100%;
454
- height: auto;
455
- margin-block: 0;
456
- }
457
-
458
- &:where(figure) {
459
- margin-block: 0;
460
- margin-inline: 0;
461
- }
462
-
463
- &:where(figcaption, caption) {
464
- color: var(--_muted);
465
- font-size: 0.875em;
466
- text-align: center;
467
- margin-block-start: calc(0.75em / 0.875);
468
- }
469
-
470
- &:where(caption) {
471
- caption-side: bottom;
472
- }
473
-
474
- &:where(table) {
475
- max-width: 100%;
476
- font-size: 1em;
477
- line-height: 1.5;
478
- font-variant-numeric: tabular-nums;
479
- border-collapse: separate;
480
- border-spacing: 0;
481
- border-block-end: 1px solid var(--_rule);
482
- margin-block: 0;
483
- }
484
-
485
- &:where(.typeset-scroll) {
486
- overflow-x: auto;
487
- }
488
-
489
- &:where(.typeset-scroll table) {
490
- width: max-content;
491
- max-width: none;
492
- }
493
-
494
- &:where(thead th) {
495
- font-weight: 500;
496
- text-align: start;
497
- white-space: nowrap;
498
- padding: 0.65em 1em;
499
- }
500
-
501
- &:where(:is(tbody, tfoot) :is(td, th)) {
502
- padding: 0.75em 1em;
503
- text-align: start;
504
- vertical-align: top;
505
- border-block-start: 1px solid var(--_rule);
506
- }
507
-
508
- &:where(tbody th, tfoot th) {
509
- font-weight: 500;
510
- }
511
-
512
- &:where(th:first-child, td:first-child) {
513
- padding-inline-start: 0;
514
- }
515
-
516
- &:where(th[align="center"], td[align="center"]) {
517
- text-align: center;
518
- }
519
-
520
- &:where(th[align="right"], td[align="right"]) {
521
- text-align: end;
522
- }
523
-
524
- &:where(li > blockquote, li > table, li > figure, li > pre) {
525
- margin-block-start: 0.5em;
526
- }
527
-
528
- @media print {
529
- &:where(pre, table, blockquote, figure) {
530
- break-inside: avoid;
531
- }
532
-
533
- &:where(h1, h2, h3, h4) {
534
- break-after: avoid;
535
- }
536
-
537
- &:where([data-basiccn-page-break]) {
538
- break-after: page;
539
- page-break-after: always;
540
- }
541
-
542
- &:where(.basiccn-page-break-marker) {
543
- display: none;
544
- }
545
- }
546
-
547
- @media (forced-colors: active) {
548
- &:where(:not(pre) > code) {
549
- border: 1px solid;
550
- }
551
- }
552
- }
553
-
554
- :where(li > :first-child,
555
- blockquote > :first-child,
556
- td > :first-child,
557
- th > :first-child,
558
- dd > :first-child,
559
- figure > :first-child,
560
- figure > picture > img):not(:where(.not-typeset,
561
- [data-not-typeset],
562
- .not-typeset *,
563
- [data-not-typeset] *)) {
564
- margin-block-start: 0;
565
- }
415
+ .code-block-preview {
416
+ display: flex;
417
+ align-items: flex-start;
418
+ gap: 1em;
419
+ overflow-x: hidden;
420
+ }
421
+
422
+ .code-block-gutter {
423
+ display: flex;
424
+ flex-direction: column;
425
+ flex: none;
426
+ font-size: 0.8rem;
427
+ text-align: right;
428
+ color: color-mix(in oklab, currentColor 35%, transparent);
429
+ user-select: none;
430
+ }
431
+
432
+ .code-block-preview-code {
433
+ display: block;
434
+ flex: 1;
435
+ overflow-x: auto;
436
+ white-space: pre;
437
+ }
438
+
439
+ &:where(blockquote) {
440
+ border-inline-start: 2px solid var(--_rule);
441
+ padding-inline-start: 1em;
442
+ margin-block: 0;
443
+ margin-inline: 0;
444
+ }
445
+
446
+ &:where(hr) {
447
+ border: 0;
448
+ border-block-start: 1px solid var(--_rule);
449
+ margin-block: 0;
450
+ }
451
+
452
+ &:where(.footnotes, [data-footnotes]) {
453
+ margin-block: 0;
454
+ border-block-start: 1px solid var(--_rule);
455
+ padding-block-start: 1em;
456
+ font-size: 0.875em;
457
+ color: var(--_muted);
458
+ }
459
+
460
+ &:where(math[display="block"]) {
461
+ margin-block: 0;
462
+ overflow-x: auto;
463
+ overflow-y: hidden;
464
+ padding-block: 0.25em;
465
+ }
466
+
467
+ &:where(img, video) {
468
+ border-radius: var(--radius, 0.5em);
469
+ max-width: 100%;
470
+ height: auto;
471
+ margin-block: 0;
472
+ }
473
+
474
+ &:where(figure) {
475
+ margin-block: 0;
476
+ margin-inline: 0;
477
+ }
478
+
479
+ &:where(figcaption, caption) {
480
+ color: var(--_muted);
481
+ font-size: 0.875em;
482
+ text-align: center;
483
+ margin-block-start: calc(0.75em / 0.875);
484
+ }
485
+
486
+ &:where(caption) {
487
+ caption-side: bottom;
488
+ }
489
+
490
+ &:where(table) {
491
+ max-width: 100%;
492
+ font-size: 1em;
493
+ line-height: 1.5;
494
+ font-variant-numeric: tabular-nums;
495
+ border-collapse: separate;
496
+ border-spacing: 0;
497
+ border-block-end: 1px solid var(--_rule);
498
+ margin-block: 0;
499
+ }
500
+
501
+ &:where(.typeset-scroll) {
502
+ overflow-x: auto;
503
+ }
504
+
505
+ &:where(.typeset-scroll table) {
506
+ width: max-content;
507
+ max-width: none;
508
+ }
509
+
510
+ &:where(thead th) {
511
+ font-weight: 500;
512
+ text-align: start;
513
+ white-space: nowrap;
514
+ padding: 0.65em 1em;
515
+ }
516
+
517
+ &:where(:is(tbody, tfoot) :is(td, th)) {
518
+ padding: 0.75em 1em;
519
+ text-align: start;
520
+ vertical-align: top;
521
+ border-block-start: 1px solid var(--_rule);
522
+ }
523
+
524
+ &:where(tbody th, tfoot th) {
525
+ font-weight: 500;
526
+ }
527
+
528
+ &:where(th:first-child, td:first-child) {
529
+ padding-inline-start: 0;
530
+ }
531
+
532
+ &:where(th[align="center"], td[align="center"]) {
533
+ text-align: center;
534
+ }
535
+
536
+ &:where(th[align="right"], td[align="right"]) {
537
+ text-align: end;
538
+ }
539
+
540
+ &:where(li > blockquote, li > table, li > figure, li > pre) {
541
+ margin-block-start: 0.5em;
542
+ }
543
+
544
+ @media print {
545
+ &:where(pre, table, blockquote, figure) {
546
+ break-inside: avoid;
547
+ }
548
+
549
+ &:where(h1, h2, h3, h4) {
550
+ break-after: avoid;
551
+ }
552
+
553
+ &:where([data-basiccn-page-break]) {
554
+ break-after: page;
555
+ page-break-after: always;
556
+ }
557
+
558
+ &:where(.basiccn-page-break-marker) {
559
+ display: none;
560
+ }
561
+ }
562
+
563
+ @media (forced-colors: active) {
564
+ &:where(:not(pre) > code) {
565
+ border: 1px solid;
566
+ }
567
+ }
568
+ }
569
+
570
+ :where(
571
+ li > :first-child,
572
+ blockquote > :first-child,
573
+ td > :first-child,
574
+ th > :first-child,
575
+ dd > :first-child,
576
+ figure > :first-child,
577
+ figure > picture > img
578
+ ):not(
579
+ :where(
580
+ .not-typeset,
581
+ [data-not-typeset],
582
+ .not-typeset *,
583
+ [data-not-typeset] *
584
+ )
585
+ ) {
586
+ margin-block-start: 0;
587
+ }
566
588
  }
567
589
 
568
590
  @utility typeset-sm {
569
- --typeset-size: 0.875rem;
570
- --typeset-leading: 1.65;
571
- --typeset-bump: 1;
591
+ --typeset-size: 0.875rem;
592
+ --typeset-leading: 1.65;
593
+ --typeset-bump: 1;
572
594
  }
573
595
 
574
596
  @utility typeset-base {
575
- --typeset-size: 1rem;
576
- --typeset-leading: 1.75;
577
- --typeset-bump: 1;
597
+ --typeset-size: 1rem;
598
+ --typeset-leading: 1.75;
599
+ --typeset-bump: 1;
578
600
  }
579
601
 
580
602
  @utility typeset-md {
581
- --typeset-size: 1.0625rem;
582
- --typeset-leading: 1.8;
583
- --typeset-bump: 1;
603
+ --typeset-size: 1.0625rem;
604
+ --typeset-leading: 1.8;
605
+ --typeset-bump: 1;
584
606
  }
585
607
 
586
608
  @utility typeset-lg {
587
- --typeset-size: 1.125rem;
588
- --typeset-leading: 1.85;
589
- --typeset-bump: 1;
609
+ --typeset-size: 1.125rem;
610
+ --typeset-leading: 1.85;
611
+ --typeset-bump: 1;
590
612
  }
591
613
 
592
614
  @utility typeset-xl {
593
- --typeset-size: 1.25rem;
594
- --typeset-leading: 1.9;
595
- --typeset-bump: 1;
615
+ --typeset-size: 1.25rem;
616
+ --typeset-leading: 1.9;
617
+ --typeset-bump: 1;
596
618
  }
597
619
 
598
620
  @utility typeset-size-* {
599
- --typeset-size: --value([length]);
600
- --typeset-bump: 1;
621
+ --typeset-size: --value([length]);
622
+ --typeset-bump: 1;
601
623
  }
602
624
 
603
625
  @utility typeset-leading-* {
604
- --typeset-leading: --value(number, [number]);
626
+ --typeset-leading: --value(number, [number]);
605
627
  }
606
628
 
607
629
  @utility typeset-scroll {
608
- overflow-x: auto;
630
+ overflow-x: auto;
609
631
  }
610
632
 
611
- @custom-variant typeset-headings (& h1:not(:where(.not-typeset,
612
- [data-not-typeset],
613
- .not-typeset *,
614
- [data-not-typeset] *)),
615
- & h2:not(:where(.not-typeset,
616
- [data-not-typeset],
617
- .not-typeset *,
618
- [data-not-typeset] *)),
619
- & h3:not(:where(.not-typeset,
620
- [data-not-typeset],
621
- .not-typeset *,
622
- [data-not-typeset] *)),
623
- & h4:not(:where(.not-typeset,
624
- [data-not-typeset],
625
- .not-typeset *,
626
- [data-not-typeset] *)),
627
- & h5:not(:where(.not-typeset,
628
- [data-not-typeset],
629
- .not-typeset *,
630
- [data-not-typeset] *)),
631
- & h6:not(:where(.not-typeset,
632
- [data-not-typeset],
633
- .not-typeset *,
634
- [data-not-typeset] *)));
635
- @custom-variant typeset-h1 (& h1:not(:where(.not-typeset,
636
- [data-not-typeset],
637
- .not-typeset *,
638
- [data-not-typeset] *)));
639
- @custom-variant typeset-h2 (& h2:not(:where(.not-typeset,
640
- [data-not-typeset],
641
- .not-typeset *,
642
- [data-not-typeset] *)));
643
- @custom-variant typeset-h3 (& h3:not(:where(.not-typeset,
644
- [data-not-typeset],
645
- .not-typeset *,
646
- [data-not-typeset] *)));
647
- @custom-variant typeset-h4 (& h4:not(:where(.not-typeset,
648
- [data-not-typeset],
649
- .not-typeset *,
650
- [data-not-typeset] *)));
651
- @custom-variant typeset-h5 (& h5:not(:where(.not-typeset,
652
- [data-not-typeset],
653
- .not-typeset *,
654
- [data-not-typeset] *)));
655
- @custom-variant typeset-h6 (& h6:not(:where(.not-typeset,
656
- [data-not-typeset],
657
- .not-typeset *,
658
- [data-not-typeset] *)));
659
- @custom-variant typeset-p (& p:not(:where(.not-typeset,
660
- [data-not-typeset],
661
- .not-typeset *,
662
- [data-not-typeset] *)));
663
- @custom-variant typeset-a (& a:not(:where(.not-typeset,
664
- [data-not-typeset],
665
- .not-typeset *,
666
- [data-not-typeset] *)));
667
- @custom-variant typeset-strong (& strong:not(:where(.not-typeset,
668
- [data-not-typeset],
669
- .not-typeset *,
670
- [data-not-typeset] *)));
671
- @custom-variant typeset-blockquote (& blockquote:not(:where(.not-typeset,
672
- [data-not-typeset],
673
- .not-typeset *,
674
- [data-not-typeset] *)));
675
- @custom-variant typeset-code (& code:not(:where(.not-typeset,
676
- [data-not-typeset],
677
- .not-typeset *,
678
- [data-not-typeset] *)));
679
- @custom-variant typeset-pre (& pre:not(:where(.not-typeset,
680
- [data-not-typeset],
681
- .not-typeset *,
682
- [data-not-typeset] *)));
683
- @custom-variant typeset-ul (& ul:not(:where(.not-typeset,
684
- [data-not-typeset],
685
- .not-typeset *,
686
- [data-not-typeset] *)));
687
- @custom-variant typeset-ol (& ol:not(:where(.not-typeset,
688
- [data-not-typeset],
689
- .not-typeset *,
690
- [data-not-typeset] *)));
691
- @custom-variant typeset-li (& li:not(:where(.not-typeset,
692
- [data-not-typeset],
693
- .not-typeset *,
694
- [data-not-typeset] *)));
695
- @custom-variant typeset-table (& table:not(:where(.not-typeset,
696
- [data-not-typeset],
697
- .not-typeset *,
698
- [data-not-typeset] *)));
699
- @custom-variant typeset-th (& th:not(:where(.not-typeset,
700
- [data-not-typeset],
701
- .not-typeset *,
702
- [data-not-typeset] *)));
703
- @custom-variant typeset-td (& td:not(:where(.not-typeset,
704
- [data-not-typeset],
705
- .not-typeset *,
706
- [data-not-typeset] *)));
707
- @custom-variant typeset-img (& img:not(:where(.not-typeset,
708
- [data-not-typeset],
709
- .not-typeset *,
710
- [data-not-typeset] *)));
711
- @custom-variant typeset-figure (& figure:not(:where(.not-typeset,
712
- [data-not-typeset],
713
- .not-typeset *,
714
- [data-not-typeset] *)));
715
- @custom-variant typeset-figcaption (& figcaption:not(:where(.not-typeset,
716
- [data-not-typeset],
717
- .not-typeset *,
718
- [data-not-typeset] *)));
719
- @custom-variant typeset-hr (& hr:not(:where(.not-typeset,
720
- [data-not-typeset],
721
- .not-typeset *,
722
- [data-not-typeset] *)));
723
- @custom-variant typeset-kbd (& kbd:not(:where(.not-typeset,
724
- [data-not-typeset],
725
- .not-typeset *,
726
- [data-not-typeset] *)));
633
+ @custom-variant typeset-headings (
634
+ &
635
+ h1:not(
636
+ :where(
637
+ .not-typeset,
638
+ [data-not-typeset],
639
+ .not-typeset *,
640
+ [data-not-typeset] *
641
+ )
642
+ ),
643
+ &
644
+ h2:not(
645
+ :where(
646
+ .not-typeset,
647
+ [data-not-typeset],
648
+ .not-typeset *,
649
+ [data-not-typeset] *
650
+ )
651
+ ),
652
+ &
653
+ h3:not(
654
+ :where(
655
+ .not-typeset,
656
+ [data-not-typeset],
657
+ .not-typeset *,
658
+ [data-not-typeset] *
659
+ )
660
+ ),
661
+ &
662
+ h4:not(
663
+ :where(
664
+ .not-typeset,
665
+ [data-not-typeset],
666
+ .not-typeset *,
667
+ [data-not-typeset] *
668
+ )
669
+ ),
670
+ &
671
+ h5:not(
672
+ :where(
673
+ .not-typeset,
674
+ [data-not-typeset],
675
+ .not-typeset *,
676
+ [data-not-typeset] *
677
+ )
678
+ ),
679
+ &
680
+ h6:not(
681
+ :where(
682
+ .not-typeset,
683
+ [data-not-typeset],
684
+ .not-typeset *,
685
+ [data-not-typeset] *
686
+ )
687
+ )
688
+ );
689
+ @custom-variant typeset-h1 (
690
+ &
691
+ h1:not(
692
+ :where(
693
+ .not-typeset,
694
+ [data-not-typeset],
695
+ .not-typeset *,
696
+ [data-not-typeset] *
697
+ )
698
+ )
699
+ );
700
+ @custom-variant typeset-h2 (
701
+ &
702
+ h2:not(
703
+ :where(
704
+ .not-typeset,
705
+ [data-not-typeset],
706
+ .not-typeset *,
707
+ [data-not-typeset] *
708
+ )
709
+ )
710
+ );
711
+ @custom-variant typeset-h3 (
712
+ &
713
+ h3:not(
714
+ :where(
715
+ .not-typeset,
716
+ [data-not-typeset],
717
+ .not-typeset *,
718
+ [data-not-typeset] *
719
+ )
720
+ )
721
+ );
722
+ @custom-variant typeset-h4 (
723
+ &
724
+ h4:not(
725
+ :where(
726
+ .not-typeset,
727
+ [data-not-typeset],
728
+ .not-typeset *,
729
+ [data-not-typeset] *
730
+ )
731
+ )
732
+ );
733
+ @custom-variant typeset-h5 (
734
+ &
735
+ h5:not(
736
+ :where(
737
+ .not-typeset,
738
+ [data-not-typeset],
739
+ .not-typeset *,
740
+ [data-not-typeset] *
741
+ )
742
+ )
743
+ );
744
+ @custom-variant typeset-h6 (
745
+ &
746
+ h6:not(
747
+ :where(
748
+ .not-typeset,
749
+ [data-not-typeset],
750
+ .not-typeset *,
751
+ [data-not-typeset] *
752
+ )
753
+ )
754
+ );
755
+ @custom-variant typeset-p (
756
+ &
757
+ p:not(
758
+ :where(
759
+ .not-typeset,
760
+ [data-not-typeset],
761
+ .not-typeset *,
762
+ [data-not-typeset] *
763
+ )
764
+ )
765
+ );
766
+ @custom-variant typeset-a (
767
+ &
768
+ a:not(
769
+ :where(
770
+ .not-typeset,
771
+ [data-not-typeset],
772
+ .not-typeset *,
773
+ [data-not-typeset] *
774
+ )
775
+ )
776
+ );
777
+ @custom-variant typeset-strong (
778
+ &
779
+ strong:not(
780
+ :where(
781
+ .not-typeset,
782
+ [data-not-typeset],
783
+ .not-typeset *,
784
+ [data-not-typeset] *
785
+ )
786
+ )
787
+ );
788
+ @custom-variant typeset-blockquote (
789
+ &
790
+ blockquote:not(
791
+ :where(
792
+ .not-typeset,
793
+ [data-not-typeset],
794
+ .not-typeset *,
795
+ [data-not-typeset] *
796
+ )
797
+ )
798
+ );
799
+ @custom-variant typeset-code (
800
+ &
801
+ code:not(
802
+ :where(
803
+ .not-typeset,
804
+ [data-not-typeset],
805
+ .not-typeset *,
806
+ [data-not-typeset] *
807
+ )
808
+ )
809
+ );
810
+ @custom-variant typeset-pre (
811
+ &
812
+ pre:not(
813
+ :where(
814
+ .not-typeset,
815
+ [data-not-typeset],
816
+ .not-typeset *,
817
+ [data-not-typeset] *
818
+ )
819
+ )
820
+ );
821
+ @custom-variant typeset-ul (
822
+ &
823
+ ul:not(
824
+ :where(
825
+ .not-typeset,
826
+ [data-not-typeset],
827
+ .not-typeset *,
828
+ [data-not-typeset] *
829
+ )
830
+ )
831
+ );
832
+ @custom-variant typeset-ol (
833
+ &
834
+ ol:not(
835
+ :where(
836
+ .not-typeset,
837
+ [data-not-typeset],
838
+ .not-typeset *,
839
+ [data-not-typeset] *
840
+ )
841
+ )
842
+ );
843
+ @custom-variant typeset-li (
844
+ &
845
+ li:not(
846
+ :where(
847
+ .not-typeset,
848
+ [data-not-typeset],
849
+ .not-typeset *,
850
+ [data-not-typeset] *
851
+ )
852
+ )
853
+ );
854
+ @custom-variant typeset-table (
855
+ &
856
+ table:not(
857
+ :where(
858
+ .not-typeset,
859
+ [data-not-typeset],
860
+ .not-typeset *,
861
+ [data-not-typeset] *
862
+ )
863
+ )
864
+ );
865
+ @custom-variant typeset-th (
866
+ &
867
+ th:not(
868
+ :where(
869
+ .not-typeset,
870
+ [data-not-typeset],
871
+ .not-typeset *,
872
+ [data-not-typeset] *
873
+ )
874
+ )
875
+ );
876
+ @custom-variant typeset-td (
877
+ &
878
+ td:not(
879
+ :where(
880
+ .not-typeset,
881
+ [data-not-typeset],
882
+ .not-typeset *,
883
+ [data-not-typeset] *
884
+ )
885
+ )
886
+ );
887
+ @custom-variant typeset-img (
888
+ &
889
+ img:not(
890
+ :where(
891
+ .not-typeset,
892
+ [data-not-typeset],
893
+ .not-typeset *,
894
+ [data-not-typeset] *
895
+ )
896
+ )
897
+ );
898
+ @custom-variant typeset-figure (
899
+ &
900
+ figure:not(
901
+ :where(
902
+ .not-typeset,
903
+ [data-not-typeset],
904
+ .not-typeset *,
905
+ [data-not-typeset] *
906
+ )
907
+ )
908
+ );
909
+ @custom-variant typeset-figcaption (
910
+ &
911
+ figcaption:not(
912
+ :where(
913
+ .not-typeset,
914
+ [data-not-typeset],
915
+ .not-typeset *,
916
+ [data-not-typeset] *
917
+ )
918
+ )
919
+ );
920
+ @custom-variant typeset-hr (
921
+ &
922
+ hr:not(
923
+ :where(
924
+ .not-typeset,
925
+ [data-not-typeset],
926
+ .not-typeset *,
927
+ [data-not-typeset] *
928
+ )
929
+ )
930
+ );
931
+ @custom-variant typeset-kbd (
932
+ &
933
+ kbd:not(
934
+ :where(
935
+ .not-typeset,
936
+ [data-not-typeset],
937
+ .not-typeset *,
938
+ [data-not-typeset] *
939
+ )
940
+ )
941
+ );