@slotted/theme 0.1.0-beta.2 → 0.1.0-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/theme",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
package/src/contract.json CHANGED
@@ -54,6 +54,15 @@
54
54
  "step": "open"
55
55
  }
56
56
  },
57
+ {
58
+ "id": "letter-spacing",
59
+ "reader": "application",
60
+ "purpose": "The tracking large type takes: the tight step at the md and lg display steps, the tighter step at 3xl and 4xl. Text at the body steps reads the face as drawn.",
61
+ "tokens": {
62
+ "--slotted-letter-spacing-tight": "The tracking of a display figure or a wordmark at the md and lg font-size steps.",
63
+ "--slotted-letter-spacing-tighter": "The tracking of a display figure at the 3xl and 4xl font-size steps."
64
+ }
65
+ },
57
66
  {
58
67
  "id": "font-weight",
59
68
  "reader": "application",
@@ -142,7 +151,11 @@
142
151
  "--slotted-surface": "The ground of the page's content and of a card.",
143
152
  "--slotted-surface-raised": "The ground of a surface above another: a popover, a menu, a dialog; paired with a step of `shadow`.",
144
153
  "--slotted-surface-sunken": "The canvas under the content: the ground a card and a field stand out from.",
145
- "--slotted-surface-inverse": "A ground in the opposite lightness, with `--slotted-text-inverse` on it."
154
+ "--slotted-surface-inverse": "A ground in the opposite lightness, with `--slotted-text-inverse` on it.",
155
+ "--slotted-surface-inverse-hover": "The inverse ground under the pointer: `--slotted-surface-inverse` moved a share toward the opposite lightness.",
156
+ "--slotted-surface-inverse-active": "The inverse ground while pressed, a step beyond the hover.",
157
+ "--slotted-surface-material": "The ground of a bar that floats over scrolling content, drawn as a material: `--slotted-surface` at a partial share over transparency, behind `--slotted-material-backdrop`. Under `prefers-reduced-transparency: reduce` it is `--slotted-surface`, and under forced colours the Canvas system colour.",
158
+ "--slotted-material-backdrop": "The backdrop filter a material is drawn with: the content scrolling under it, saturated and blurred. Under `prefers-reduced-transparency: reduce` it is `none`."
146
159
  }
147
160
  },
148
161
  {
@@ -200,12 +213,13 @@
200
213
  {
201
214
  "id": "tone",
202
215
  "reader": "application",
203
- "purpose": "What an element carrying an intent is painted with: five tones, each with the same nine roles.",
216
+ "purpose": "What an element carrying an intent is painted with: six tones, each with the same nine roles.",
204
217
  "pattern": "--slotted-tone-{tone}-{role}",
205
218
  "dimensions": {
206
219
  "tone": {
207
220
  "accent": "The product's intent: the primary action, the chosen option, the current place.",
208
221
  "secondary": "A second intent beside accent, for an action or a mark that must not compete with it.",
222
+ "neutral": "Ink: the inverse surface as a fill and the text colour as a label, for a primary action in a product that keeps the accent for data.",
209
223
  "success": "A result that completed or a state that is healthy.",
210
224
  "warning": "A state that needs attention before it becomes a failure.",
211
225
  "danger": "A failure, an error or an action that destroys data."
@@ -301,6 +315,16 @@
301
315
  "--slotted-current-edge": "The edge of the row the reader is on, drawn over its tone ground."
302
316
  }
303
317
  },
318
+ {
319
+ "id": "state",
320
+ "reader": "application",
321
+ "purpose": "Translucent layers laid over whatever surface an element stands on, so a hovered, pressed or selected row reads the same on the page and on a raised surface. Each is the scheme's text colour at a small share over transparency. Under forced colours every layer is the Canvas system colour: the state is carried by the system colours the family draws, Highlight for selection and an outline for focus.",
322
+ "tokens": {
323
+ "--slotted-state-hover": "The layer under the pointer.",
324
+ "--slotted-state-pressed": "The layer while the element is pressed; the strongest of the three.",
325
+ "--slotted-state-selected": "The layer of a selected or open element, between hover and pressed."
326
+ }
327
+ },
304
328
  {
305
329
  "id": "scrim",
306
330
  "reader": "application",
@@ -649,6 +673,20 @@
649
673
  "type": "number",
650
674
  "root": true
651
675
  },
676
+ {
677
+ "name": "--slotted-letter-spacing-tight",
678
+ "layer": "primitive",
679
+ "axis": "base",
680
+ "type": "length",
681
+ "root": true
682
+ },
683
+ {
684
+ "name": "--slotted-letter-spacing-tighter",
685
+ "layer": "primitive",
686
+ "axis": "base",
687
+ "type": "length",
688
+ "root": true
689
+ },
652
690
  {
653
691
  "name": "--slotted-font-weight-regular",
654
692
  "layer": "primitive",
@@ -1544,6 +1582,78 @@
1544
1582
  "root": true,
1545
1583
  "forcedColor": "Canvas"
1546
1584
  },
1585
+ {
1586
+ "name": "--slotted-tone-neutral-solid",
1587
+ "layer": "semantic",
1588
+ "axis": "scheme",
1589
+ "type": "color",
1590
+ "root": true,
1591
+ "forcedColor": "CanvasText"
1592
+ },
1593
+ {
1594
+ "name": "--slotted-tone-neutral-solid-hover",
1595
+ "layer": "semantic",
1596
+ "axis": "scheme",
1597
+ "type": "color",
1598
+ "root": true,
1599
+ "forcedColor": "CanvasText"
1600
+ },
1601
+ {
1602
+ "name": "--slotted-tone-neutral-solid-active",
1603
+ "layer": "semantic",
1604
+ "axis": "scheme",
1605
+ "type": "color",
1606
+ "root": true,
1607
+ "forcedColor": "CanvasText"
1608
+ },
1609
+ {
1610
+ "name": "--slotted-tone-neutral-on-solid",
1611
+ "layer": "semantic",
1612
+ "axis": "scheme",
1613
+ "type": "color",
1614
+ "root": true,
1615
+ "forcedColor": "Canvas"
1616
+ },
1617
+ {
1618
+ "name": "--slotted-tone-neutral-surface",
1619
+ "layer": "semantic",
1620
+ "axis": "scheme",
1621
+ "type": "color",
1622
+ "root": true,
1623
+ "forcedColor": "Canvas"
1624
+ },
1625
+ {
1626
+ "name": "--slotted-tone-neutral-subtle-hover",
1627
+ "layer": "semantic",
1628
+ "axis": "scheme",
1629
+ "type": "color",
1630
+ "root": true,
1631
+ "forcedColor": "Canvas"
1632
+ },
1633
+ {
1634
+ "name": "--slotted-tone-neutral-subtle-active",
1635
+ "layer": "semantic",
1636
+ "axis": "scheme",
1637
+ "type": "color",
1638
+ "root": true,
1639
+ "forcedColor": "Canvas"
1640
+ },
1641
+ {
1642
+ "name": "--slotted-tone-neutral-border",
1643
+ "layer": "semantic",
1644
+ "axis": "scheme",
1645
+ "type": "color",
1646
+ "root": true,
1647
+ "forcedColor": "ButtonBorder"
1648
+ },
1649
+ {
1650
+ "name": "--slotted-tone-neutral-text",
1651
+ "layer": "semantic",
1652
+ "axis": "scheme",
1653
+ "type": "color",
1654
+ "root": true,
1655
+ "forcedColor": "CanvasText"
1656
+ },
1547
1657
  {
1548
1658
  "name": "--slotted-tone-success-solid",
1549
1659
  "layer": "semantic",
@@ -1824,6 +1934,39 @@
1824
1934
  "root": true,
1825
1935
  "forcedColor": "CanvasText"
1826
1936
  },
1937
+ {
1938
+ "name": "--slotted-surface-inverse-hover",
1939
+ "layer": "semantic",
1940
+ "axis": "scheme",
1941
+ "type": "color",
1942
+ "root": true,
1943
+ "forcedColor": "CanvasText"
1944
+ },
1945
+ {
1946
+ "name": "--slotted-surface-inverse-active",
1947
+ "layer": "semantic",
1948
+ "axis": "scheme",
1949
+ "type": "color",
1950
+ "root": true,
1951
+ "forcedColor": "CanvasText"
1952
+ },
1953
+ {
1954
+ "name": "--slotted-surface-material",
1955
+ "layer": "semantic",
1956
+ "axis": "scheme",
1957
+ "type": "color",
1958
+ "root": true,
1959
+ "forcedColor": "Canvas",
1960
+ "reducedTransparency": "var(--slotted-surface)"
1961
+ },
1962
+ {
1963
+ "name": "--slotted-material-backdrop",
1964
+ "layer": "semantic",
1965
+ "axis": "base",
1966
+ "type": "filter",
1967
+ "literal": "a filter function names no other token",
1968
+ "reducedTransparency": "none"
1969
+ },
1827
1970
  {
1828
1971
  "name": "--slotted-text-inverse",
1829
1972
  "layer": "semantic",
@@ -1863,6 +2006,30 @@
1863
2006
  "root": true,
1864
2007
  "forcedColor": "Highlight"
1865
2008
  },
2009
+ {
2010
+ "name": "--slotted-state-hover",
2011
+ "layer": "semantic",
2012
+ "axis": "scheme",
2013
+ "type": "color",
2014
+ "root": true,
2015
+ "forcedColor": "Canvas"
2016
+ },
2017
+ {
2018
+ "name": "--slotted-state-pressed",
2019
+ "layer": "semantic",
2020
+ "axis": "scheme",
2021
+ "type": "color",
2022
+ "root": true,
2023
+ "forcedColor": "Canvas"
2024
+ },
2025
+ {
2026
+ "name": "--slotted-state-selected",
2027
+ "layer": "semantic",
2028
+ "axis": "scheme",
2029
+ "type": "color",
2030
+ "root": true,
2031
+ "forcedColor": "Canvas"
2032
+ },
1866
2033
  {
1867
2034
  "name": "--slotted-control-shadow",
1868
2035
  "layer": "semantic",