@stokelp/styled-system 2.124.1 → 2.125.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/package.json +1 -1
- package/tokens/index.mjs +12 -0
- package/tokens/tokens.d.ts +4 -1
- package/types/prop-type.d.ts +4 -3
- package/types/style-props.d.ts +2 -2
package/package.json
CHANGED
package/tokens/index.mjs
CHANGED
|
@@ -1351,6 +1351,18 @@ const tokens = {
|
|
|
1351
1351
|
"value": "var(--colors-primary-900)",
|
|
1352
1352
|
"variable": "var(--colors-text-heading)"
|
|
1353
1353
|
},
|
|
1354
|
+
"gradients.band.violet": {
|
|
1355
|
+
"value": "linear-gradient(to left, var(--colors-primary-700), var(--colors-primary-800))",
|
|
1356
|
+
"variable": "var(--gradients-band-violet)"
|
|
1357
|
+
},
|
|
1358
|
+
"gradients.band.night": {
|
|
1359
|
+
"value": "linear-gradient(to left, var(--colors-primary-800), var(--colors-primary-900))",
|
|
1360
|
+
"variable": "var(--gradients-band-night)"
|
|
1361
|
+
},
|
|
1362
|
+
"gradients.band.quality": {
|
|
1363
|
+
"value": "linear-gradient(180deg, #1B1038, #241546)",
|
|
1364
|
+
"variable": "var(--gradients-band-quality)"
|
|
1365
|
+
},
|
|
1354
1366
|
"spacing.-space-0": {
|
|
1355
1367
|
"value": "calc(var(--spacing-space-0) * -1)",
|
|
1356
1368
|
"variable": "var(--spacing-space-0)"
|
package/tokens/tokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token = `animations.${AnimationToken}` | `aspectRatios.${AspectRatioToken}` | `blurs.${BlurToken}` | `borders.${BorderToken}` | `colors.${ColorToken}` | `durations.${DurationToken}` | `easings.${EasingToken}` | `fontSizes.${FontSizeToken}` | `fontWeights.${FontWeightToken}` | `fonts.${FontToken}` | `letterSpacings.${LetterSpacingToken}` | `radii.${RadiusToken}` | `shadows.${ShadowToken}` | `sizes.${SizeToken}` | `spacing.${SpacingToken}` | `zIndex.${ZIndexToken}` | `breakpoints.${BreakpointToken}`
|
|
2
|
+
export type Token = `animations.${AnimationToken}` | `aspectRatios.${AspectRatioToken}` | `blurs.${BlurToken}` | `borders.${BorderToken}` | `colors.${ColorToken}` | `durations.${DurationToken}` | `easings.${EasingToken}` | `fontSizes.${FontSizeToken}` | `fontWeights.${FontWeightToken}` | `fonts.${FontToken}` | `letterSpacings.${LetterSpacingToken}` | `radii.${RadiusToken}` | `shadows.${ShadowToken}` | `sizes.${SizeToken}` | `spacing.${SpacingToken}` | `zIndex.${ZIndexToken}` | `breakpoints.${BreakpointToken}` | `gradients.${GradientToken}`
|
|
3
3
|
|
|
4
4
|
export type ColorPalette = "black" | "current" | "transparent" | "white" | "purple" | "blue" | "grey" | "red" | "green" | "yellow" | "decorative" | "decorative.red" | "decorative.blue" | "decorative.yellow" | "decorative.purple" | "decorative.green" | "decorative.brown" | "typology" | "typology.fish" | "typology.meat" | "typology.fruit" | "typology.vegetable" | "typology.cereal" | "typology.oil" | "typology.aromatic" | "primary" | "secondary" | "error" | "success" | "warning" | "text"
|
|
5
5
|
|
|
@@ -37,6 +37,8 @@ export type ZIndexToken = "banner" | "base" | "docked" | "dropdown" | "hide" | "
|
|
|
37
37
|
|
|
38
38
|
export type BreakpointToken = "xl" | "lg" | "md" | "sm"
|
|
39
39
|
|
|
40
|
+
export type GradientToken = "band.violet" | "band.night" | "band.quality"
|
|
41
|
+
|
|
40
42
|
export type Tokens = {
|
|
41
43
|
animations: AnimationToken
|
|
42
44
|
aspectRatios: AspectRatioToken
|
|
@@ -55,6 +57,7 @@ export type Tokens = {
|
|
|
55
57
|
spacing: SpacingToken
|
|
56
58
|
zIndex: ZIndexToken
|
|
57
59
|
breakpoints: BreakpointToken
|
|
60
|
+
gradients: GradientToken
|
|
58
61
|
} & { [token: string]: never }
|
|
59
62
|
|
|
60
63
|
export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "cursor" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
|
package/types/prop-type.d.ts
CHANGED
|
@@ -94,9 +94,10 @@ export interface UtilityValues {
|
|
|
94
94
|
truncate: boolean;
|
|
95
95
|
background: Tokens["colors"];
|
|
96
96
|
backgroundColor: Tokens["colors"];
|
|
97
|
-
backgroundGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
98
|
-
backgroundLinear: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
99
|
-
|
|
97
|
+
backgroundGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
98
|
+
backgroundLinear: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
99
|
+
backgroundRadial: Tokens["gradients"];
|
|
100
|
+
textGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
100
101
|
gradientFrom: Tokens["colors"];
|
|
101
102
|
gradientTo: Tokens["colors"];
|
|
102
103
|
gradientVia: Tokens["colors"];
|
package/types/style-props.d.ts
CHANGED
|
@@ -7578,7 +7578,7 @@ bgBlendMode?: ConditionalValue<CssProperties["backgroundBlendMode"] | AnyString>
|
|
|
7578
7578
|
bgSize?: ConditionalValue<CssProperties["backgroundSize"] | AnyString>
|
|
7579
7579
|
bgGradient?: ConditionalValue<UtilityValues["backgroundGradient"] | CssVars | AnyString>
|
|
7580
7580
|
bgLinear?: ConditionalValue<UtilityValues["backgroundLinear"] | CssVars | AnyString>
|
|
7581
|
-
bgRadial?: ConditionalValue<
|
|
7581
|
+
bgRadial?: ConditionalValue<UtilityValues["backgroundRadial"] | CssVars | AnyString>
|
|
7582
7582
|
bgConic?: ConditionalValue<string | number | AnyString>
|
|
7583
7583
|
/**
|
|
7584
7584
|
* This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
|
|
@@ -7962,7 +7962,7 @@ scrollPaddingX?: ConditionalValue<UtilityValues["scrollPaddingInline"] | CssVars
|
|
|
7962
7962
|
truncate?: ConditionalValue<UtilityValues["truncate"] | CssVars | AnyString>
|
|
7963
7963
|
backgroundGradient?: ConditionalValue<UtilityValues["backgroundGradient"] | CssVars | AnyString>
|
|
7964
7964
|
backgroundLinear?: ConditionalValue<UtilityValues["backgroundLinear"] | CssVars | AnyString>
|
|
7965
|
-
backgroundRadial?: ConditionalValue<
|
|
7965
|
+
backgroundRadial?: ConditionalValue<UtilityValues["backgroundRadial"] | CssVars | AnyString>
|
|
7966
7966
|
backgroundConic?: ConditionalValue<string | number | AnyString>
|
|
7967
7967
|
textGradient?: ConditionalValue<UtilityValues["textGradient"] | CssVars | AnyString>
|
|
7968
7968
|
gradientFromPosition?: ConditionalValue<string | number | AnyString>
|