You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feat(web-react): Generate types and constants directly from tokens #DS-1650
- Emotion colors now use tokens instead of hardcoded dictionaries
- Button colors now use tokens instead of hardcoded dictionaries
- Button sizes now use tokens instead of hardcoded dictionaries
- Container sizes now use tokens instead of hardcoded dictionaries
- Radii now use tokens instead of hardcoded dictionaries
|`backgroundColor`|\[[Background Color dictionary][dictionary-color]\|Accent Color \|[Emotion Color dictionary][dictionary-color] ✕ [Intensity dictionary][dictionary-intensity]]| - | ✕ | Background color of the Box |
93
-
|`backgroundGradient`|[Background Gradient dictionary][dictionary-gradient]| - | ✕ | Background gradient of the Box |
94
-
|`borderColor`|\[[Border Color dictionary][dictionary-border-properities]\|Accent Color \|[Emotion Color dictionary][dictionary-color] ✕ [Intensity dictionary][dictionary-intensity]]| - | ✕ | Border color of the Box |
95
-
|`borderRadius`|\[`BorderRadiiDictionaryType`\|`Partial<Record<BreakpointToken, BorderRadiiDictionaryType>>`]| - | ✕ | Border radius of the Box |
96
-
|`borderStyle`|[Border Style dictionary][dictionary-border-properities]|`solid`| ✕ | Border style of the Box |
97
-
|`borderWidth`|[Border Width dictionary][dictionary-border-properities]| - | ✕ | Border width of the Box |
98
-
|`elementType`|`ElementType`|`div`| ✕ | Type of element |
99
-
|`padding`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding of the Box |
100
-
|`paddingX`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Horizontal padding of the Box |
101
-
|`paddingY`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Vertical padding of the Box |
102
-
|`paddingTop`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding top of the Box |
103
-
|`paddingRight`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding right of the Box |
104
-
|`paddingBottom`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding bottom of the Box |
105
-
|`paddingLeft`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding left of the Box |
106
-
|`textColor`|\[[Text Color dictionary][dictionary-color]\|Accent Color \|[Emotion Color dictionary][dictionary-color] ✕ [Intensity dictionary][dictionary-intensity]]| - | ✕ | Color of the text |
90
+
| Name | Type | Default | Required | Description |
|`backgroundColor`|\[[Background Color dictionary][dictionary-color]\|[AccentColorNamesType][readme-generated-types]\|[EmotionColorNamesType][readme-generated-types] ✕ [Intensity dictionary][dictionary-intensity]]| - | ✕ | Background color of the Box |
93
+
|`backgroundGradient`|[Background Gradient dictionary][dictionary-gradient]| - | ✕ | Background gradient of the Box |
94
+
|`borderColor`|\[[Border Color dictionary][dictionary-border-properities]\|[AccentColorNamesType][readme-generated-types]\|[EmotionColorNamesType][readme-generated-types] ✕ [Intensity dictionary][dictionary-intensity]]| - | ✕ | Border color of the Box |
95
+
|`borderRadius`|\[[BorderRadiiTokenType\|`Partial<Record<BreakpointToken, BorderRadiiTokenType>>`][readme-generated-types]| - | ✕ | Border radius of the Box |
96
+
|`borderStyle`|[Border Style dictionary][dictionary-border-properities]|`solid`| ✕ | Border style of the Box |
97
+
|`borderWidth`|[Border Width dictionary][dictionary-border-properities]| - | ✕ | Border width of the Box |
98
+
|`elementType`|`ElementType`|`div`| ✕ | Type of element |
99
+
|`padding`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding of the Box |
100
+
|`paddingX`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Horizontal padding of the Box |
101
+
|`paddingY`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Vertical padding of the Box |
102
+
|`paddingTop`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding top of the Box |
103
+
|`paddingRight`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding right of the Box |
104
+
|`paddingBottom`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding bottom of the Box |
105
+
|`paddingLeft`|\[`SpaceToken`\|`Partial<Record<BreakpointToken, SpaceToken>>`]| - | ✕ | Padding left of the Box |
106
+
|`textColor`|\[[TextColorNamesType \|AccentColorNamesType \|EmotionColorNamesType][readme-generated-types] ✕ [Intensity dictionary][dictionary-intensity]]| - | ✕ | Color of the text |
107
107
108
108
On top of the API options, the components accept [additional attributes][readme-additional-attributes].
109
109
If you need more control over the styling of a component, you can use [style props][readme-style-props]
0 commit comments