@mlola-ui/tokens 1.0.8 → 1.0.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.
@@ -1,4 +1,9 @@
1
1
  /* Generated by @mlola-ui/engine. React and Tailwind are not required. */
2
+ /* Where Mlola sits among a utility framework's layers, by Tailwind's names:
3
+ above its reset, so preflight never unstyles a component, whichever
4
+ stylesheet the app imports first. Without such a framework these layers
5
+ stay empty. */
6
+ @layer theme, base, mlola, components, utilities;
2
7
  @layer mlola.tokens, mlola.foundations, mlola.materials, mlola.recipes, mlola.motion, mlola.accessibility;
3
8
  @import "./tokens.css" layer(mlola.tokens);
4
9
  /* The project theme is a token source too, imported last within the same
@@ -7,9 +7,26 @@
7
7
  display: none !important;
8
8
  }
9
9
 
10
- /* Icons keep their size inside flex rows; a squeezed row shrinks text, not glyphs. */
10
+ /* Icons sit on the text's optical center and keep their size inside flex
11
+ rows; a squeezed row shrinks text, not glyphs. The same rules ship in
12
+ @mlola-ui/icons/glyphs.css for apps that use the icons without the engine. */
11
13
  :where(.mlola-glyph) {
14
+ display: inline-block;
12
15
  flex-shrink: 0;
16
+ overflow: visible;
17
+ vertical-align: -0.125em;
18
+ transform-box: fill-box;
19
+ transform-origin: center;
20
+ }
21
+
22
+ :where(.mlola-glyph[data-optical-size="small"]) {
23
+ --mlola-glyph-stroke: 2;
24
+ --mlola-glyph-optical-scale: 0.94;
25
+ }
26
+
27
+ :where(.mlola-glyph[data-optical-size="large"]) {
28
+ --mlola-glyph-stroke: 1.5;
29
+ --mlola-glyph-optical-scale: 1.03;
13
30
  }
14
31
 
15
32
  .ml-visually-hidden {
@@ -267,9 +267,9 @@
267
267
  --ml-text-faint: oklch(0.492 0.018 260);
268
268
  --ml-border: oklch(0.878 0.023 80);
269
269
  --ml-border-subtle: oklch(0.916 0.018 80);
270
- --ml-primary: oklch(0.638 0.153 58);
271
- --ml-primary-foreground: oklch(0.18 0.02 58);
272
- --ml-primary-hover: oklch(0.678 0.141 58);
270
+ --ml-primary: oklch(0.532 0.127 58);
271
+ --ml-primary-foreground: oklch(0.99 0 0);
272
+ --ml-primary-hover: oklch(0.482 0.115 58);
273
273
  --ml-primary-text: oklch(0.497 0.119 58);
274
274
  --ml-primary-subtle: oklch(0.95 0.031 58);
275
275
  --ml-success: oklch(0.507 0.14 150);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlola-ui/tokens",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Stable CSS entry for the framework-free Mlola UI design system",
5
5
  "main": "tokens.css",
6
6
  "sideEffects": [
package/tokens.json CHANGED
@@ -1361,8 +1361,8 @@
1361
1361
  "$value": {
1362
1362
  "colorSpace": "oklch",
1363
1363
  "components": [
1364
- 0.638,
1365
- 0.153,
1364
+ 0.532,
1365
+ 0.127,
1366
1366
  58
1367
1367
  ],
1368
1368
  "alpha": 1
@@ -1373,9 +1373,9 @@
1373
1373
  "$value": {
1374
1374
  "colorSpace": "oklch",
1375
1375
  "components": [
1376
- 0.18,
1377
- 0.02,
1378
- 58
1376
+ 0.99,
1377
+ 0,
1378
+ 0
1379
1379
  ],
1380
1380
  "alpha": 1
1381
1381
  }
@@ -1385,8 +1385,8 @@
1385
1385
  "$value": {
1386
1386
  "colorSpace": "oklch",
1387
1387
  "components": [
1388
- 0.678,
1389
- 0.141,
1388
+ 0.482,
1389
+ 0.115,
1390
1390
  58
1391
1391
  ],
1392
1392
  "alpha": 1