@nonoun/native-tokens 0.5.2 → 0.5.6
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/dist/foundation.css +111 -1
- package/package.json +1 -1
package/dist/foundation.css
CHANGED
|
@@ -1254,7 +1254,8 @@
|
|
|
1254
1254
|
box-sizing: border-box;
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
|
-
body {
|
|
1257
|
+
:where(body) {
|
|
1258
|
+
font-family: var(--n-font-family);
|
|
1258
1259
|
margin: 0;
|
|
1259
1260
|
}
|
|
1260
1261
|
|
|
@@ -1297,6 +1298,100 @@
|
|
|
1297
1298
|
:where(n-card, n-panel, n-section) :where(h2) { font-size: var(--n-font-lg); }
|
|
1298
1299
|
:where(n-card, n-panel, n-section) :where(h3) { font-size: var(--n-font-md); }
|
|
1299
1300
|
|
|
1301
|
+
/* ── Prose content reset ── */
|
|
1302
|
+
/* WHY: Reusable scoped reset for rich text / markdown output regions.
|
|
1303
|
+
Zeroes browser-default margins, sets vertical rhythm via gap on
|
|
1304
|
+
the container. Consumers apply via [n-prose] or .n-prose. */
|
|
1305
|
+
|
|
1306
|
+
:where([n-prose]),
|
|
1307
|
+
:where(.n-prose) {
|
|
1308
|
+
display: flex;
|
|
1309
|
+
flex-direction: column;
|
|
1310
|
+
gap: calc(var(--n-space) * 2);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
:where([n-prose]) :where(
|
|
1314
|
+
p, h1, h2, h3, h4, h5, h6,
|
|
1315
|
+
ul, ol, li,
|
|
1316
|
+
blockquote, pre, hr,
|
|
1317
|
+
div, figure, figcaption,
|
|
1318
|
+
dl, dt, dd, details, summary
|
|
1319
|
+
),
|
|
1320
|
+
:where(.n-prose) :where(
|
|
1321
|
+
p, h1, h2, h3, h4, h5, h6,
|
|
1322
|
+
ul, ol, li,
|
|
1323
|
+
blockquote, pre, hr,
|
|
1324
|
+
div, figure, figcaption,
|
|
1325
|
+
dl, dt, dd, details, summary
|
|
1326
|
+
) {
|
|
1327
|
+
margin: 0;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
:where([n-prose]) :where(h1, h2, h3, h4, h5, h6),
|
|
1331
|
+
:where(.n-prose) :where(h1, h2, h3, h4, h5, h6) {
|
|
1332
|
+
font-weight: var(--n-button-font-weight);
|
|
1333
|
+
color: var(--n-ink-strong);
|
|
1334
|
+
line-height: 1.3;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
:where([n-prose]) :where(h1),
|
|
1338
|
+
:where(.n-prose) :where(h1) { font-size: 1.5em; }
|
|
1339
|
+
:where([n-prose]) :where(h2),
|
|
1340
|
+
:where(.n-prose) :where(h2) { font-size: 1.25em; }
|
|
1341
|
+
:where([n-prose]) :where(h3),
|
|
1342
|
+
:where(.n-prose) :where(h3) { font-size: 1.125em; }
|
|
1343
|
+
|
|
1344
|
+
:where([n-prose]) :where(code),
|
|
1345
|
+
:where(.n-prose) :where(code) {
|
|
1346
|
+
font-family: var(--n-font-mono);
|
|
1347
|
+
font-size: 0.875em;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
:where([n-prose]) :where(pre),
|
|
1351
|
+
:where(.n-prose) :where(pre) {
|
|
1352
|
+
padding: calc(var(--n-space) * 2);
|
|
1353
|
+
background: var(--n-control);
|
|
1354
|
+
border-radius: var(--n-radius);
|
|
1355
|
+
overflow-x: auto;
|
|
1356
|
+
white-space: pre;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
:where([n-prose]) :where(pre) :where(code),
|
|
1360
|
+
:where(.n-prose) :where(pre) :where(code) {
|
|
1361
|
+
font-size: inherit;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
:where([n-prose]) :where(blockquote),
|
|
1365
|
+
:where(.n-prose) :where(blockquote) {
|
|
1366
|
+
border-inline-start: 3px solid var(--n-border-muted);
|
|
1367
|
+
padding-inline-start: calc(var(--n-space) * 3);
|
|
1368
|
+
color: var(--n-ink-muted);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
:where([n-prose]) :where(a),
|
|
1372
|
+
:where(.n-prose) :where(a) {
|
|
1373
|
+
color: var(--n-ink);
|
|
1374
|
+
text-decoration: underline;
|
|
1375
|
+
text-underline-offset: 0.15em;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
:where([n-prose]) :where(ul, ol),
|
|
1379
|
+
:where(.n-prose) :where(ul, ol) {
|
|
1380
|
+
padding-inline-start: 1.5em;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
:where([n-prose]) :where(li + li),
|
|
1384
|
+
:where(.n-prose) :where(li + li) {
|
|
1385
|
+
margin-block-start: calc(var(--n-space) * 0.5);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
:where([n-prose]) :where(hr),
|
|
1389
|
+
:where(.n-prose) :where(hr) {
|
|
1390
|
+
border: none;
|
|
1391
|
+
height: 1px;
|
|
1392
|
+
background: var(--n-border-muted);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1300
1395
|
/* ── Reduced Motion ── */
|
|
1301
1396
|
|
|
1302
1397
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1870,6 +1965,21 @@
|
|
|
1870
1965
|
--n-ink-disabled: var(--n-ink-disabled-danger);
|
|
1871
1966
|
}
|
|
1872
1967
|
|
|
1968
|
+
/* ─── Disabled intent override ─── */
|
|
1969
|
+
/* WHY: Disabled components should look neutral regardless of intent.
|
|
1970
|
+
Same (0,1,0) specificity as intent selectors — wins by source order. */
|
|
1971
|
+
|
|
1972
|
+
[aria-disabled="true"] {
|
|
1973
|
+
--n-panel-disabled: var(--n-panel-disabled-neutral);
|
|
1974
|
+
--n-button-disabled: var(--n-button-disabled-neutral);
|
|
1975
|
+
--n-control-disabled: var(--n-control-disabled-neutral);
|
|
1976
|
+
--n-widget-disabled: var(--n-control-disabled-neutral);
|
|
1977
|
+
--n-surface-disabled: var(--n-surface-disabled-neutral);
|
|
1978
|
+
--n-surface-ink-disabled: var(--n-surface-ink-disabled-neutral);
|
|
1979
|
+
--n-border-disabled: var(--n-color-neutral-highest);
|
|
1980
|
+
--n-ink-disabled: var(--n-ink-disabled-neutral);
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1873
1983
|
/* ─── Variant ─── */
|
|
1874
1984
|
|
|
1875
1985
|
[variant="primary"] {
|