@mirror-physics/fractal-ui 0.2.0-next.74 → 0.2.0-next.76

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/tokens.css CHANGED
@@ -139,7 +139,7 @@
139
139
 
140
140
  /* Navigation */
141
141
  --nav-surface: var(--grey-50);
142
- --nav-border: var(--grey-200);
142
+ --nav-border: var(--border-on-surface-1);
143
143
  --nav-hover: var(--grey-100);
144
144
  --nav-selected: var(--grey-100);
145
145
 
@@ -153,8 +153,13 @@
153
153
  --fg-inverse-secondary: var(--grey-300);
154
154
 
155
155
  /* ---- Borders ---- */
156
- --border-subtle: var(--grey-200);
157
- --border-default: var(--grey-300);
156
+ /* Matched Oklab lightness step; calibrated to grey-200 on light canvas. */
157
+ --border-on-canvas: #E6E6E7;
158
+ --border-on-surface-1: #E2E2E2;
159
+ --border-on-surface-2: #CFCFD0;
160
+ --border-on-surface-3: #7D7D7F;
161
+ --border-subtle: var(--border-on-canvas);
162
+ --border-default: var(--border-subtle);
158
163
  --border-strong: var(--grey-400);
159
164
  --border-focus: var(--blue-500);
160
165
  --border-inverse: rgba(255, 255, 255, 0.12);
@@ -330,7 +335,7 @@
330
335
 
331
336
  /* Navigation */
332
337
  --nav-surface: var(--grey-700);
333
- --nav-border: var(--grey-600);
338
+ --nav-border: var(--border-on-surface-1);
334
339
  --nav-hover: var(--grey-600);
335
340
  --nav-selected: var(--grey-500);
336
341
 
@@ -344,8 +349,13 @@
344
349
  --fg-inverse-secondary: var(--grey-600);
345
350
 
346
351
  /* ---- Borders ---- */
347
- --border-subtle: var(--grey-700);
348
- --border-default: var(--grey-600);
352
+ /* Matched Oklab lightness step; calibrated to grey-200 on light canvas. */
353
+ --border-on-canvas: #2D2D2F;
354
+ --border-on-surface-1: #3F3F41;
355
+ --border-on-surface-2: #535355;
356
+ --border-on-surface-3: #6A6A6D;
357
+ --border-subtle: var(--border-on-canvas);
358
+ --border-default: var(--border-subtle);
349
359
  --border-strong: var(--grey-500);
350
360
  --border-focus: var(--blue-400);
351
361
  --border-inverse: rgba(0, 0, 0, 0.12);
@@ -432,6 +442,29 @@
432
442
  }
433
443
  }
434
444
 
445
+ /* Select the reference surface for a neutral boundary. This does not set a
446
+ background. Reset the scope at nested boundaries with a different pair. */
447
+ [data-fractal-border-surface="canvas"] {
448
+ --border-subtle: var(--border-on-canvas);
449
+ --border-default: var(--border-subtle);
450
+ --border-dashed-subtle: 1px dashed var(--border-subtle);
451
+ }
452
+ [data-fractal-border-surface="surface-1"] {
453
+ --border-subtle: var(--border-on-surface-1);
454
+ --border-default: var(--border-subtle);
455
+ --border-dashed-subtle: 1px dashed var(--border-subtle);
456
+ }
457
+ [data-fractal-border-surface="surface-2"] {
458
+ --border-subtle: var(--border-on-surface-2);
459
+ --border-default: var(--border-subtle);
460
+ --border-dashed-subtle: 1px dashed var(--border-subtle);
461
+ }
462
+ [data-fractal-border-surface="surface-3"] {
463
+ --border-subtle: var(--border-on-surface-3);
464
+ --border-default: var(--border-subtle);
465
+ --border-dashed-subtle: 1px dashed var(--border-subtle);
466
+ }
467
+
435
468
  /* =========================================
436
469
  Typography - Font Declarations & Tokens
437
470
  ========================================= */
@@ -625,6 +658,38 @@ body {
625
658
  --panel-width: 256px;
626
659
  }
627
660
 
661
+ /* Shared single-line control geometry. See layout-guide.md. */
662
+ :root {
663
+ --control-border-width: 1px;
664
+ --control-label-gap: var(--space-2);
665
+ --control-icon-gap: var(--space-2);
666
+ --control-xs-font-size: .75rem;
667
+ --control-xs-line-height: 1rem;
668
+ --control-xs-padding-block: var(--space-1);
669
+ --control-xs-padding-inline: var(--space-2);
670
+ --control-xs-icon-size: 1rem;
671
+ --control-sm-font-size: .75rem;
672
+ --control-sm-line-height: 1.25rem;
673
+ --control-sm-padding-block: var(--space-1);
674
+ --control-sm-padding-inline: var(--space-3);
675
+ --control-sm-icon-size: 1rem;
676
+ --control-md-font-size: .875rem;
677
+ --control-md-line-height: 1.25rem;
678
+ --control-md-padding-block: var(--space-2);
679
+ --control-md-padding-inline: var(--space-3);
680
+ --control-md-icon-size: 1.25rem;
681
+ --control-lg-font-size: .875rem;
682
+ --control-lg-line-height: 1.25rem;
683
+ --control-lg-padding-block: var(--space-3);
684
+ --control-lg-padding-inline: var(--space-4);
685
+ --control-lg-icon-size: 1.25rem;
686
+ --control-xl-font-size: .875rem;
687
+ --control-xl-line-height: 1.25rem;
688
+ --control-xl-padding-block: var(--space-4);
689
+ --control-xl-padding-inline: var(--space-5);
690
+ --control-xl-icon-size: 1.25rem;
691
+ }
692
+
628
693
  /* =========================================
629
694
  Design System Motion Tokens
630
695
  =========================================
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirror-physics/fractal-ui",
3
- "version": "0.2.0-next.74",
4
- "description": "Fractal UI — React components and CSS tokens for Mirror Physics products",
3
+ "version": "0.2.0-next.76",
4
+ "description": "Fractal UI \u2014 React components and CSS tokens for Mirror Physics products",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "@codemirror/language": "^6.12.4",
39
39
  "@codemirror/view": "^6.43.7",
40
40
  "@lezer/highlight": "^1.2.3",
41
- "@mirror-physics/fractal-icons": "^0.4.0",
41
+ "@mirror-physics/fractal-icons": "^0.4.2",
42
42
  "@uiw/react-codemirror": "^4.25.11",
43
43
  "clsx": "^2.1.1"
44
44
  },