Skip to content

Commit

Permalink
Updated to new focus css variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Jun 13, 2024
1 parent 0592d78 commit 16f89c2
Show file tree
Hide file tree
Showing 22 changed files with 128 additions and 112 deletions.
22 changes: 12 additions & 10 deletions apps/storefront/tokens/altinn/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#dddfe1",
filePath: "../../design-tokens/semantic/style.json",
value: "#131c27",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#131c27",
filePath: "../../design-tokens/semantic/style.json",
value: "#cee1f2",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/altinn/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#243142",
filePath: "../../design-tokens/semantic/style.json",
value: "#fefefe",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#fefefe",
filePath: "../../design-tokens/semantic/style.json",
value: "#00315c",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/digdir/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#c9ccd0",
filePath: "../../design-tokens/semantic/style.json",
value: "#131c27",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#131c27",
filePath: "../../design-tokens/semantic/style.json",
value: "#b0cfea",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/digdir/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#243142",
filePath: "../../design-tokens/semantic/style.json",
value: "#fefefe",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#fefefe",
filePath: "../../design-tokens/semantic/style.json",
value: "#00315c",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/portal/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#dddfe1",
filePath: "../../design-tokens/semantic/style.json",
value: "#131c27",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#131c27",
filePath: "../../design-tokens/semantic/style.json",
value: "#ebdcdb",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/portal/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#243142",
filePath: "../../design-tokens/semantic/style.json",
value: "#fefefe",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#fefefe",
filePath: "../../design-tokens/semantic/style.json",
value: "#561e19",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/uutilsynet/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#dddfe1",
filePath: "../../design-tokens/semantic/style.json",
value: "#131c27",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#131c27",
filePath: "../../design-tokens/semantic/style.json",
value: "#cee1f2",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
22 changes: 12 additions & 10 deletions apps/storefront/tokens/uutilsynet/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2300,34 +2300,36 @@ export const color = [
},
{
type: "color",
value: "#243142",
filePath: "../../design-tokens/semantic/style.json",
value: "#fefefe",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.text-default}"
value: "{color.neutral.background-default}"
},
name: "--ds-focus-outer",
name: "--ds-color-focus-inner",
attributes: {},
path: [
"color",
"focus",
"outer"
"inner"
]
},
{
type: "color",
value: "#fefefe",
filePath: "../../design-tokens/semantic/style.json",
value: "#00315c",
filePath: "../../design-tokens/semantic/color.json",
isSource: false,
original: {
type: "color",
value: "{color.neutral.background-default}"
value: "{color.accent.text-default}"
},
name: "--ds-focus-inner",
name: "--ds-color-focus-outer",
attributes: {},
path: [
"color",
"focus",
"inner"
"outer"
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions apps/theme/utils/tokenMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const mapTokens = () => {
setToken('--ds-color-brand3-contrast-default', 'var(--brandThree14)');
setToken('--ds-color-brand3-contrast-sublte', 'var(--brandThree15)');

setToken('--ds-focus-outer', 'var(--grey13)');
setToken('--ds-focus-inner', 'var(--grey1)');
setToken('--ds-color-focus-outer', 'var(--grey13)');
setToken('--ds-color-focus-inner', 'var(--grey1)');
};

const setToken = (token: string, color: string) => {
Expand Down
Loading

0 comments on commit 16f89c2

Please sign in to comment.