Skip to content

Commit

Permalink
Revert "feat(tokens): removed inverted color tokens that should not e…
Browse files Browse the repository at this point in the history
…xist (#1829)"

This reverts commit ea9e670.
  • Loading branch information
mimarz committed Apr 18, 2024
1 parent d11e8ca commit 21bd572
Show file tree
Hide file tree
Showing 10 changed files with 577 additions and 8 deletions.
142 changes: 134 additions & 8 deletions apps/storefront/tokens/altinn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,114 @@ export const color = [
"subtle-hover"
]
},
{
value: "#ffffff",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "{colors.white}",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-default",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"default"
]
},
{
value: "#ffffffe6",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffffe6",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-hover",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"hover"
]
},
{
value: "#ffffffcc",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffffcc",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-active",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"active"
]
},
{
value: "#ffffff00",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffff00",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-no_fill",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"no_fill"
]
},
{
value: "#ffffff1a",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffff1a",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-no_fill-hover",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"no_fill-hover"
]
},
{
value: "#ffffff33",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffff33",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-no_fill-active",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"no_fill-active"
]
},
{
value: "#ffda06",
type: "color",
Expand Down Expand Up @@ -2493,6 +2601,24 @@ export const color = [
"boxshadow"
]
},
{
value: "#ffffff",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "{colors.white}",
type: "color"
},
name: "--fds-semantic-border-on_inverted-default",
attributes: {},
path: [
"semantic",
"border",
"on_inverted",
"default"
]
},
{
value: "#00315d",
type: "color",
Expand Down Expand Up @@ -3147,7 +3273,7 @@ export const color = [
"subtle"
]
}
]
]

export const typography = [
{
Expand Down Expand Up @@ -3918,7 +4044,7 @@ export const typography = [
"small"
]
}
]
]

export const opacity = [
{
Expand All @@ -3937,7 +4063,7 @@ export const opacity = [
"disabled"
]
}
]
]

export const borderRadius = [
{
Expand Down Expand Up @@ -4084,7 +4210,7 @@ export const borderRadius = [
"full"
]
}
]
]

export const spacing = [
{
Expand Down Expand Up @@ -4407,7 +4533,7 @@ export const spacing = [
"30"
]
}
]
]

export const sizing = [
{
Expand Down Expand Up @@ -4730,7 +4856,7 @@ export const sizing = [
"30"
]
}
]
]

export const borderWidth = [
{
Expand Down Expand Up @@ -4781,7 +4907,7 @@ export const borderWidth = [
"tab_focus"
]
}
]
]

export const boxShadow = [
{
Expand Down Expand Up @@ -4864,4 +4990,4 @@ export const boxShadow = [
"xlarge"
]
}
]
]
126 changes: 126 additions & 0 deletions apps/storefront/tokens/brreg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1775,6 +1775,114 @@ export const color = [
"subtle-hover"
]
},
{
value: "#ffffff",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "{colors.white}",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-default",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"default"
]
},
{
value: "#ffffffe6",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffffe6",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-hover",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"hover"
]
},
{
value: "#ffffffcc",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffffcc",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-active",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"active"
]
},
{
value: "#ffffff00",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffff00",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-no_fill",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"no_fill"
]
},
{
value: "#ffffff1a",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffff1a",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-no_fill-hover",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"no_fill-hover"
]
},
{
value: "#ffffff33",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "#ffffff33",
type: "color"
},
name: "--fds-semantic-surface-on_inverted-no_fill-active",
attributes: {},
path: [
"semantic",
"surface",
"on_inverted",
"no_fill-active"
]
},
{
value: "#ffda06",
type: "color",
Expand Down Expand Up @@ -2541,6 +2649,24 @@ export const color = [
"boxshadow"
]
},
{
value: "#ffffff",
type: "color",
filePath: "../../design-tokens/Base/Semantic.json",
isSource: false,
original: {
value: "{colors.white}",
type: "color"
},
name: "--fds-semantic-border-on_inverted-default",
attributes: {},
path: [
"semantic",
"border",
"on_inverted",
"default"
]
},
{
value: "#00315d",
type: "color",
Expand Down
Loading

0 comments on commit 21bd572

Please sign in to comment.