rift-ds 1.26.0 → 1.27.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.
@@ -4,6 +4,13 @@
4
4
  All typography styles from Figma design system
5
5
  ============================================ */
6
6
 
7
+ @layer rift.tokens, rift.preset;
8
+
9
+ /* The whole file sits in the rift.tokens cascade layer, so any unlayered
10
+ rule outranks it whatever its selector (tokens.css owns why). The
11
+ contents are not re-indented. */
12
+ @layer rift.tokens {
13
+
7
14
  :root {
8
15
  /* ============================================
9
16
  FONT FAMILIES
@@ -214,3 +221,5 @@
214
221
  --font-sub-display-line-height: var(--font-line-height-900);
215
222
  }
216
223
  }
224
+
225
+ } /* @layer rift.tokens */
package/tokens/tokens.css CHANGED
@@ -2,8 +2,20 @@
2
2
  TOKENS — MAIN ENTRY POINT
3
3
  Import this file once in your app
4
4
  Order matters: primitives first, then themes
5
+
6
+ CASCADE LAYERS
7
+ Every token sits in a cascade layer: these files in rift.tokens, the
8
+ shipped presets (presets/) in rift.preset, which outranks it. Any rule
9
+ outside a layer outranks both, whatever its selector, so a consumer
10
+ overrides one token, of the base theme or of a preset, in both modes,
11
+ with a plain :root rule. To supply a base value a preset still
12
+ replaces (a default face, say), declare it inside the rift.tokens
13
+ layer instead. The forced-colors sheet stays unlayered (its own
14
+ header says why).
5
15
  ============================================ */
6
16
 
17
+ @layer rift.tokens, rift.preset;
18
+
7
19
  @import './tokens-primitives.css';
8
20
  @import './tokens-typography.css';
9
21
  @import './tokens-motion.css';