@weasel-js/theme 1.9.4 → 1.10.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/dist/engine.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { overrideKey, AXES_EXT, ALPHA_EXT } from './chunk-Z675UQ26.js';
2
- import { mergeAxes, toLch, toHex, generate, DEFAULT_CONSTRAINTS, fullSelection, pick, enumerateSelections, resolveTokens, mixAlpha, pickAll, themeAxes, tokensAt, selectionKey, isByAxis, contrast, tokenAt } from './chunk-7LCRXZDY.js';
3
- export { CHROMA_WEIGHT, DEFAULT_CONSTRAINTS, anchorFromHex, chromaCap, contrast, deltaE, floorDegrees, generate, hexToRgb, hueGap, hueName, luminance, toHex, toHexPreview, toLab, toLch, vividAt } from './chunk-7LCRXZDY.js';
2
+ import { toLch, toHex, generate, DEFAULT_CONSTRAINTS, resolveTokens, mixAlpha, themeAxes, tokensAt, contrast, tokenAt } from './chunk-2PY2YTDY.js';
3
+ export { CHROMA_WEIGHT, DEFAULT_CONSTRAINTS, anchorFromHex, chromaCap, contrast, deltaE, floorDegrees, generate, hexToRgb, hueGap, hueName, luminance, toHex, toHexPreview, toLab, toLch, vividAt } from './chunk-2PY2YTDY.js';
4
+ import { mergeAxes, fullSelection, pick, enumerateSelections, pickAll, selectionKey, isByAxis } from './chunk-P5F3GZV6.js';
4
5
  import { isPlainObject } from '@weasel-js/registry';
5
6
 
6
7
  // src/engine/steps.ts
@@ -1249,6 +1250,138 @@ function toDTCG(theme) {
1249
1250
 
1250
1251
  // src/hooks.ts
1251
1252
  var TOKEN_HOOKS = [
1253
+ {
1254
+ name: "titlebar-surface",
1255
+ type: "color",
1256
+ value: "var(--_edge)",
1257
+ description: "Background of the strip a `titlebar` frame carries its title in: a color, a gradient, or stripes. Unset, the frame\u2019s edge color. A frame that names a tone paints the tone instead."
1258
+ },
1259
+ {
1260
+ name: "titlebar-fg",
1261
+ type: "color",
1262
+ value: "var(--_edge-ink)",
1263
+ description: "Text color on a `titlebar` frame\u2019s strip. Unset, black or white, whichever reads on the edge color."
1264
+ },
1265
+ {
1266
+ name: "titlebar-align",
1267
+ type: "string",
1268
+ value: "start",
1269
+ description: "Text alignment of a `titlebar` frame\u2019s title along its strip."
1270
+ },
1271
+ {
1272
+ name: "titlebar-weight",
1273
+ type: "fontWeight",
1274
+ value: "var(--wzl-font-weight-bold)",
1275
+ description: "Font weight of a `titlebar` frame\u2019s title."
1276
+ },
1277
+ {
1278
+ name: "titlebar-label-surface",
1279
+ type: "color",
1280
+ value: "transparent",
1281
+ description: "Background behind a `titlebar` frame\u2019s title alone, for a strip drawn in stripes that must not run through the letters."
1282
+ },
1283
+ {
1284
+ name: "titlebar-label-pad",
1285
+ type: "dimension",
1286
+ value: "0",
1287
+ description: "Inline padding of the patch --wzl-titlebar-label-surface paints behind a `titlebar` frame\u2019s title."
1288
+ },
1289
+ {
1290
+ name: "titlebar-border",
1291
+ type: "border",
1292
+ value: "1px solid var(--_edge)",
1293
+ description: "Border of a `titlebar` frame. A theme whose --wzl-bevel-raised draws the edge sets it to a border of no width."
1294
+ },
1295
+ {
1296
+ name: "titlebar-inset",
1297
+ type: "dimension",
1298
+ value: "0",
1299
+ description: "Padding between a `titlebar` frame\u2019s edge and its strip and body: the width of the bevel a theme draws there."
1300
+ },
1301
+ {
1302
+ name: "bevel-raised",
1303
+ type: "shadow",
1304
+ value: "none",
1305
+ description: "Box shadow of a raised face: a Button, a PropertyPanel, a menu, popover, tooltip, or Dialog, a thumb, the chosen segment of a segmented control, a toolbar\u2019s strip, and every edge of a tab but the one its panel is on. A theme that draws its edges in relief declares it; unset, each keeps the shadow it draws for itself, which for most is none."
1306
+ },
1307
+ {
1308
+ name: "bevel-pressed",
1309
+ type: "shadow",
1310
+ value: "none",
1311
+ description: "Box shadow of a Button held down, or of a Button or a toolbar\u2019s button that stays down. Unset, a Button draws its own inset (--btn-relief-pressed) and a toolbar\u2019s button none."
1312
+ },
1313
+ {
1314
+ name: "bevel-sunken",
1315
+ type: "shadow",
1316
+ value: "none",
1317
+ description: "Box shadow of a well: the frame a field draws its value in, a checkbox, a radio, the track of a switch, a slider, or a segmented control, and a cell of a flat one."
1318
+ },
1319
+ {
1320
+ name: "field-border",
1321
+ type: "border",
1322
+ value: "1px solid var(--wzl-border)",
1323
+ description: "Border of a field\u2019s frame. A theme whose --wzl-bevel-sunken draws the edge sets it to a border of no width."
1324
+ },
1325
+ {
1326
+ name: "field-focus-shadow",
1327
+ type: "shadow",
1328
+ value: "0 0 0 1px var(--wzl-focus-ring)",
1329
+ description: "Box shadow of a field\u2019s frame while it holds focus. It replaces --wzl-bevel-sunken there, so a beveled theme restates the bevel in it."
1330
+ },
1331
+ {
1332
+ name: "button-radius",
1333
+ type: "dimension",
1334
+ value: "calc(var(--btn-height) * 0.1)",
1335
+ description: "Corner radius of a Button. Unset, a tenth of its height."
1336
+ },
1337
+ {
1338
+ name: "button-surface",
1339
+ type: "color",
1340
+ value: "var(--btn-glass)",
1341
+ description: "Background of a secondary Button. Unset, neutral glass mixed from the surfaces."
1342
+ },
1343
+ {
1344
+ name: "button-pressed-surface",
1345
+ type: "color",
1346
+ value: "var(--btn-glass-pressed)",
1347
+ description: "Background of a secondary Button while it is held down."
1348
+ },
1349
+ {
1350
+ name: "button-primary-surface",
1351
+ type: "color",
1352
+ value: "var(--btn-glass)",
1353
+ description: "Background of a primary Button. Unset, glass tinted with --wzl-accent."
1354
+ },
1355
+ {
1356
+ name: "button-primary-pressed-surface",
1357
+ type: "color",
1358
+ value: "var(--btn-glass-pressed)",
1359
+ description: "Background of a primary Button while it is held down."
1360
+ },
1361
+ {
1362
+ name: "button-primary-fg",
1363
+ type: "color",
1364
+ value: "var(--wzl-fg-on-accent)",
1365
+ description: "Text color of a primary Button, for a theme whose --wzl-button-primary-surface is not an accent fill."
1366
+ },
1367
+ {
1368
+ name: "button-primary-bevel",
1369
+ type: "shadow",
1370
+ value: "var(--wzl-bevel-raised)",
1371
+ description: "Box shadow of a primary Button, where it differs from --wzl-bevel-raised: the heavier frame of a default button."
1372
+ },
1373
+ {
1374
+ name: "button-gloss",
1375
+ type: "number",
1376
+ value: "1",
1377
+ description: "Opacity of the specular sheen over a Button\u2019s upper half. 0 for a flat face."
1378
+ },
1379
+ {
1380
+ name: "button-text-shadow",
1381
+ type: "shadow",
1382
+ value: "var(--btn-engraving)",
1383
+ description: "Text shadow of a primary or secondary Button\u2019s label. Unset, an engraving stamp under the glyphs in dark mode."
1384
+ },
1252
1385
  {
1253
1386
  name: "detail-figure-min-width",
1254
1387
  type: "dimension",
@@ -1321,6 +1454,12 @@ var TOKEN_HOOKS = [
1321
1454
  value: "300px",
1322
1455
  description: "Width of the Prefs category column."
1323
1456
  },
1457
+ {
1458
+ name: "prop-columns",
1459
+ type: "string",
1460
+ value: "1fr 1fr",
1461
+ description: "Column tracks of a Properties list, group body, and subpanel. A container too narrow for two columns sets `minmax(0, 1fr)` to stack every row."
1462
+ },
1324
1463
  {
1325
1464
  name: "prop-number-width",
1326
1465
  type: "dimension",
@@ -1399,6 +1538,12 @@ var TOKEN_HOOKS = [
1399
1538
  value: "var(--wzl-fg-subtle)",
1400
1539
  description: "Color of the bracket a Tree draws down a branch."
1401
1540
  },
1541
+ {
1542
+ name: "tree-leaf-indent",
1543
+ type: "dimension",
1544
+ value: "0",
1545
+ description: "How far in from its branches' glyphs a Tree with guides sets a row that folds nothing."
1546
+ },
1402
1547
  {
1403
1548
  name: "dialog-max-width",
1404
1549
  type: "dimension",
@@ -1422,6 +1567,12 @@ var TOKEN_HOOKS = [
1422
1567
  type: "dimension",
1423
1568
  value: "auto",
1424
1569
  description: "Width a PropertyPanel\u2019s title row gives its actions. Set, it holds that width whatever the actions are."
1570
+ },
1571
+ {
1572
+ name: "prop-panel-actions-align",
1573
+ type: "string",
1574
+ value: "center",
1575
+ description: "How a PropertyPanel\u2019s title row lines its actions up with the title: center, or baseline for actions that are text."
1425
1576
  }
1426
1577
  ];
1427
1578