@botiverse/raft-ui 0.19.0 → 0.21.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/tokens.json CHANGED
@@ -1492,44 +1492,8 @@
1492
1492
  }
1493
1493
  }
1494
1494
  },
1495
- "frame-pressed": {
1496
- "$value": {
1497
- "colorSpace": "oklch",
1498
- "components": [0.1813, 0.005, 17.62],
1499
- "alpha": 0.122
1500
- },
1501
- "$extensions": {
1502
- "build.botiverse.raft": {
1503
- "modes": {
1504
- "dark": {
1505
- "colorSpace": "oklch",
1506
- "components": [0.9843, 0.004, 106.47],
1507
- "alpha": 0.078
1508
- }
1509
- }
1510
- }
1511
- }
1512
- },
1513
- "pressed": {
1514
- "$value": {
1515
- "colorSpace": "oklch",
1516
- "components": [0.1813, 0.005, 17.62],
1517
- "alpha": 0.078
1518
- },
1519
- "$extensions": {
1520
- "build.botiverse.raft": {
1521
- "modes": {
1522
- "dark": {
1523
- "colorSpace": "oklch",
1524
- "components": [0.9843, 0.004, 106.47],
1525
- "alpha": 0.078
1526
- }
1527
- }
1528
- }
1529
- }
1530
- },
1531
- "row-hover": {
1532
- "$description": "Hover on a whole row (sidebar, list, inbox, search result, table, file row): one perceptible step (OKLab dE about 2.8 in both modes), below every selection tint, so text keeps its contrast.",
1495
+ "subtle": {
1496
+ "$description": "Hover tier subtle (light): hover on large things people read, a row, a message, a readable card, and a row whose menu is open. About 2.5 to 3 OKLab dE in both modes, on paper, the sidebar and cards alike, under every selection tint, so text keeps its contrast.",
1533
1497
  "$value": {
1534
1498
  "colorSpace": "oklch",
1535
1499
  "components": [0.1813, 0.005, 17.62],
@@ -1547,12 +1511,12 @@
1547
1511
  }
1548
1512
  }
1549
1513
  },
1550
- "message-hover": {
1551
- "$description": "Hover on a message: the lightest perceptible step (OKLab dE about 2.1 in both modes), because a message is a large block someone reads with the pointer resting on it.",
1514
+ "medium": {
1515
+ "$description": "Hover tier medium: hover on small controls (buttons, icon buttons, chips, tabs, segment items) and press on everything, on paper-coloured surfaces. About 5.5 to 6.5 OKLab dE; dark is lighter than light because the same ink alpha shows more on a dark surface.",
1552
1516
  "$value": {
1553
1517
  "colorSpace": "oklch",
1554
1518
  "components": [0.1813, 0.005, 17.62],
1555
- "alpha": 0.03
1519
+ "alpha": 0.078
1556
1520
  },
1557
1521
  "$extensions": {
1558
1522
  "build.botiverse.raft": {
@@ -1560,18 +1524,18 @@
1560
1524
  "dark": {
1561
1525
  "colorSpace": "oklch",
1562
1526
  "components": [0.9843, 0.004, 106.47],
1563
- "alpha": 0.022
1527
+ "alpha": 0.065
1564
1528
  }
1565
1529
  }
1566
1530
  }
1567
1531
  }
1568
1532
  },
1569
- "row-open": {
1570
- "$description": "Any row with its menu open (right-click, its menu button, press and hold): one step over a hover (OKLab dE 3.4 to 4.3 on every row surface), because on a phone, which has no hover, it is the only sign of which row the menu acts on. Still under info-soft and brand-soft on every surface.",
1533
+ "frame-medium": {
1534
+ "$description": "Hover tier medium on the frame (rail items, on-frame buttons, the workspace button): hover and press. Its own alphas because ink shows differently on the yellow and on the near-black frame: 10% on the yellow and 6% on the dark frame land on the medium step, about 6 OKLab dE.",
1571
1535
  "$value": {
1572
1536
  "colorSpace": "oklch",
1573
1537
  "components": [0.1813, 0.005, 17.62],
1574
- "alpha": 0.05
1538
+ "alpha": 0.1
1575
1539
  },
1576
1540
  "$extensions": {
1577
1541
  "build.botiverse.raft": {
@@ -1579,7 +1543,7 @@
1579
1543
  "dark": {
1580
1544
  "colorSpace": "oklch",
1581
1545
  "components": [0.9843, 0.004, 106.47],
1582
- "alpha": 0.04
1546
+ "alpha": 0.06
1583
1547
  }
1584
1548
  }
1585
1549
  }
@@ -1907,7 +1871,7 @@
1907
1871
  "dark": {
1908
1872
  "colorSpace": "oklch",
1909
1873
  "components": [0.5501, 0.0999, 91.5],
1910
- "alpha": 0.161
1874
+ "alpha": 0.2
1911
1875
  }
1912
1876
  }
1913
1877
  }
@@ -1923,8 +1887,8 @@
1923
1887
  }
1924
1888
  },
1925
1889
  "hover": {
1926
- "$value": "color-mix(in srgb, var(--brand-400) 88%, var(--sticker-ink))",
1927
- "$description": "Pressing a sticker lays sticker-pressed (12% ink) over its colour.",
1890
+ "$value": "color-mix(in srgb, var(--brand-400) 90%, var(--sticker-ink))",
1891
+ "$description": "Hovering or pressing a sticker lays sticker-medium (10% ink) over its colour.",
1928
1892
  "$extensions": {
1929
1893
  "build.botiverse.raft": {
1930
1894
  "css": true
@@ -2007,7 +1971,7 @@
2007
1971
  }
2008
1972
  },
2009
1973
  "hover": {
2010
- "$value": "color-mix(in srgb, var(--attention-400) 88%, var(--sticker-ink))",
1974
+ "$value": "color-mix(in srgb, var(--attention-400) 90%, var(--sticker-ink))",
2011
1975
  "$extensions": {
2012
1976
  "build.botiverse.raft": {
2013
1977
  "css": true
@@ -2072,7 +2036,7 @@
2072
2036
  }
2073
2037
  },
2074
2038
  "hover": {
2075
- "$value": "color-mix(in srgb, var(--info) 88%, var(--sticker-ink))",
2039
+ "$value": "color-mix(in srgb, var(--info) 90%, var(--sticker-ink))",
2076
2040
  "$extensions": {
2077
2041
  "build.botiverse.raft": {
2078
2042
  "css": true
@@ -2195,7 +2159,7 @@
2195
2159
  }
2196
2160
  },
2197
2161
  "hover": {
2198
- "$value": "color-mix(in srgb, var(--warning) 88%, var(--sticker-ink))",
2162
+ "$value": "color-mix(in srgb, var(--warning) 90%, var(--sticker-ink))",
2199
2163
  "$extensions": {
2200
2164
  "build.botiverse.raft": {
2201
2165
  "css": true
@@ -2266,7 +2230,7 @@
2266
2230
  }
2267
2231
  },
2268
2232
  "hover": {
2269
- "$value": "color-mix(in srgb, var(--danger) 88%, var(--sticker-ink))",
2233
+ "$value": "color-mix(in srgb, var(--danger) 90%, var(--sticker-ink))",
2270
2234
  "$extensions": {
2271
2235
  "build.botiverse.raft": {
2272
2236
  "css": true
@@ -2698,6 +2662,52 @@
2698
2662
  }
2699
2663
  }
2700
2664
  }
2665
+ },
2666
+ "embedded-inset": {
2667
+ "$value": {
2668
+ "value": 6,
2669
+ "unit": "px"
2670
+ },
2671
+ "$description": "How far a chip or a button embedded in a field, the composer or a corner sits inside its frame's outer edge, and from its sibling."
2672
+ },
2673
+ "embedded-size": {
2674
+ "$value": {
2675
+ "value": 32,
2676
+ "unit": "px"
2677
+ },
2678
+ "$description": "A chip or a button embedded in a field: the control height less the embedded inset above and below, so the field keeps its height.",
2679
+ "$extensions": {
2680
+ "build.botiverse.raft": {
2681
+ "desktop": {
2682
+ "value": 20,
2683
+ "unit": "px"
2684
+ }
2685
+ }
2686
+ }
2687
+ }
2688
+ },
2689
+ "timeline": {
2690
+ "$type": "dimension",
2691
+ "gap-message": {
2692
+ "$value": {
2693
+ "value": 16,
2694
+ "unit": "px"
2695
+ },
2696
+ "$description": "The message step of a timeline: from the last line of one turn to the first line of the next (a sender line, an event line). Every row keeps the row inset above and below its text; the first row of a turn adds the rest above it."
2697
+ },
2698
+ "gap-section": {
2699
+ "$value": {
2700
+ "value": 24,
2701
+ "unit": "px"
2702
+ },
2703
+ "$description": "The section step of a timeline, one step wider than the message step: either side of a date line, from the top of the list to the first line, and from the last line to the composer, so a boundary reads as one and the last message never sits on the composer."
2704
+ },
2705
+ "row-inset": {
2706
+ "$value": {
2707
+ "value": 4,
2708
+ "unit": "px"
2709
+ },
2710
+ "$description": "How far a timeline row's hover and selected highlight reaches above and below its text. Two rows of one turn sit two insets apart."
2701
2711
  }
2702
2712
  },
2703
2713
  "sticker": {
@@ -2732,11 +2742,12 @@
2732
2742
  }
2733
2743
  }
2734
2744
  },
2735
- "pressed": {
2745
+ "medium": {
2746
+ "$description": "Hover tier medium on a colour sticker (primary, warning and danger buttons, colour badges, the selected segment on press): hover and press, 10% ink in both modes.",
2736
2747
  "$value": {
2737
2748
  "colorSpace": "oklch",
2738
2749
  "components": [0.1813, 0.005, 17.62],
2739
- "alpha": 0.122
2750
+ "alpha": 0.1
2740
2751
  }
2741
2752
  }
2742
2753
  },
@@ -2775,6 +2786,30 @@
2775
2786
  },
2776
2787
  "deprecated": {
2777
2788
  "$description": "Former names, kept as aliases until raft-ui 1.0. Keys are the CSS custom property names.",
2789
+ "fill-pressed": {
2790
+ "$value": "{fill.medium}",
2791
+ "$deprecated": "Use {fill.medium}."
2792
+ },
2793
+ "fill-frame-pressed": {
2794
+ "$value": "{fill.frame-medium}",
2795
+ "$deprecated": "Use {fill.frame-medium}."
2796
+ },
2797
+ "fill-row-hover": {
2798
+ "$value": "{fill.subtle}",
2799
+ "$deprecated": "Use {fill.subtle}."
2800
+ },
2801
+ "fill-row-open": {
2802
+ "$value": "{fill.subtle}",
2803
+ "$deprecated": "Use {fill.subtle}."
2804
+ },
2805
+ "fill-message-hover": {
2806
+ "$value": "{fill.subtle}",
2807
+ "$deprecated": "Use {fill.subtle}."
2808
+ },
2809
+ "sticker-pressed": {
2810
+ "$value": "{sticker.medium}",
2811
+ "$deprecated": "Use {sticker.medium}."
2812
+ },
2778
2813
  "layer-panel": {
2779
2814
  "$value": "{layer.canvas}",
2780
2815
  "$deprecated": "Use {layer.canvas}."