Skip to content

Commit

Permalink
♻️ Default -> Soft token
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Jan 8, 2025
1 parent f57c346 commit 77f46f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion @navikt/core/tokens/darkside/tokens/semantic-roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { type StyleDictionaryTokenConfig } from "../tokens.util";
const configForRole = (role: SemanticColorRoles, theme: ColorTheme) => {
return {
bg: {
[role]: {
[`${role}-soft`]: {
value: `{ax.${role}.100.value}`,
type: "color",
group: `background.${role}`,
Expand Down
10 changes: 5 additions & 5 deletions @navikt/core/tokens/darkside/tokens/semantic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export function semanticTokenConfig(theme: ColorTheme) {
type: "color",
group: "background",
},
soft: {
value: `{ax.neutral.100.value}`,
type: "color",
group: `background`,
},
hover: {
value: `{ax.neutral.200.value}`,
type: "color",
Expand All @@ -83,11 +88,6 @@ export function semanticTokenConfig(theme: ColorTheme) {
type: "color",
group: `background`,
},
"moderate-subtle": {
value: `{ax.neutral.100.value}`,
type: "color",
group: `background`,
},
moderate: {
value: `{ax.neutral.200.value}`,
type: "color",
Expand Down
4 changes: 2 additions & 2 deletions @navikt/core/tokens/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export type StaticDefaultBgKeys =
| "raised"
| "sunken"
| "overlay"
| "soft"
| "moderate"
| "moderateA"
| "moderate-subtle"
| "strong";

export type StatefulDefaultBgKeys =
Expand All @@ -65,7 +65,7 @@ export type StatefulDefaultBgKeys =
| "strong-pressed";

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

0 comments on commit 77f46f1

Please sign in to comment.