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.
- package/README.md +2 -1
- package/bin/templates/app/components/rift/font.css +7 -4
- package/components/DataTable/DataTable.css +24 -4
- package/components/DataTable/DataTable.js +41 -40
- package/components/MegaMenu/MegaMenu.css +5 -3
- package/components/MegaMenu/MegaMenu.d.ts +4 -1
- package/components/MegaMenu/MegaMenu.js +34 -20
- package/components/ShaderScene/ShaderScene.css +11 -3
- package/components/ShaderScene/ShaderScene.d.ts +9 -7
- package/components/ShaderScene/scenes.d.ts +1 -1
- package/components/ShaderScene/scenes.js +22 -8
- package/package.json +1 -1
- package/tokens/presets/contrast.css +167 -290
- package/tokens/presets/coral.css +143 -254
- package/tokens/presets/forest.css +180 -310
- package/tokens/presets/gold.css +220 -391
- package/tokens/presets/marquee.css +150 -253
- package/tokens/presets/mono.css +162 -270
- package/tokens/presets/pink.css +228 -409
- package/tokens/presets/plum.css +228 -367
- package/tokens/presets/presets.css +1 -0
- package/tokens/presets/terminal.css +170 -301
- package/tokens/presets/violet.css +214 -380
- package/tokens/presets/warm.css +166 -293
- package/tokens/presets/zest.css +191 -335
- package/tokens/tokens-dark.css +9 -0
- package/tokens/tokens-forced-colors.css +4 -1
- package/tokens/tokens-light.css +9 -0
- package/tokens/tokens-motion.css +14 -0
- package/tokens/tokens-primitives.css +9 -0
- package/tokens/tokens-typography.css +9 -0
- package/tokens/tokens.css +12 -0
|
@@ -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';
|