@navikt/ds-tokens 7.21.1 → 7.22.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/types.ts CHANGED
@@ -70,7 +70,7 @@ export type DefaultTextColorKeys = "logo";
70
70
  export type TextColorKeys =
71
71
  | SemanticColorRoles
72
72
  | `${SemanticColorRoles}-subtle`
73
- | `${SemanticColorRoles}-icon`
73
+ | `${SemanticColorRoles}-decoration`
74
74
  | `${SemanticColorRoles}-contrast`;
75
75
 
76
76
  export type BorderColorKeys = "focus";
@@ -90,7 +90,7 @@ export type SpaceKeys = `space-${(typeof spaceInPixels)[number]}`;
90
90
 
91
91
  export type ShadowKeys = "dialog";
92
92
 
93
- export type BorderRadiusKeys = "small" | "medium" | "large" | "xlarge" | "full";
93
+ export type BorderRadiusKeys = "2" | "4" | "8" | "12" | "full";
94
94
 
95
95
  export type BreakPointKeys =
96
96
  | "xs"
@@ -134,6 +134,13 @@ export type FontLineHeightKeys =
134
134
  export type FontWeightKeys = "weight-bold" | "weight-regular";
135
135
 
136
136
  /* Legacy tokens */
137
+ export type LegacyBorderRadiusKeys =
138
+ | "small"
139
+ | "medium"
140
+ | "large"
141
+ | "xlarge"
142
+ | "full";
143
+
137
144
  export type LegacyShadowKeys =
138
145
  | "xsmall"
139
146
  | "small"