Skip to content

Commit

Permalink
[Darkside]: SoftA-token added for use in Table zebra-stripes
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Feb 1, 2025
1 parent 2303d6c commit ddd0436
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions @navikt/core/tokens/darkside/tokens/semantic-roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const configForRole = (role: SemanticColorRoles) => {
type: "color",
group: `background.${role}`,
},
[`${role}-softA`]: {
value: `{ax.${role}.100A.value}`,
type: "color",
group: `background.${role}`,
},
[`${role}-hover`]: {
value: `{ax.${role}.200.value}`,
type: "color",
Expand Down
5 changes: 5 additions & 0 deletions @navikt/core/tokens/darkside/tokens/semantic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ export function semanticTokenConfig(theme: ColorTheme) {
type: "color",
group: `background`,
},
softA: {
value: `{ax.neutral.100A.value}`,
type: "color",
group: `background`,
},
hover: {
value: `{ax.neutral.200.value}`,
type: "color",
Expand Down
2 changes: 2 additions & 0 deletions @navikt/core/tokens/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export type StaticDefaultBgKeys =
| "sunken"
| "overlay"
| "soft"
| "softA"
| "moderate"
| "moderateA"
| "strong";
Expand All @@ -66,6 +67,7 @@ export type StatefulDefaultBgKeys =

export type StaticBgKeys =
| `${SemanticColorRoles}-soft`
| `${SemanticColorRoles}-softA`
| `${SemanticColorRoles}-moderate`
| `${SemanticColorRoles}-moderateA`
| `${SemanticColorRoles}-strong`;
Expand Down

0 comments on commit ddd0436

Please sign in to comment.