Skip to content

Commit

Permalink
fix: remove brreg action colors, we have to agree upon hover behavior (
Browse files Browse the repository at this point in the history
…#758)

Co-authored-by: Michael Marszalek <[email protected]>
  • Loading branch information
mrosvik and mimarz authored Aug 28, 2023
1 parent f503271 commit 02ae6ee
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 241 deletions.
359 changes: 187 additions & 172 deletions design-tokens/$themes.json

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions design-tokens/Brand/Brreg.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,38 +141,6 @@
},
"semantic": {
"surface": {
"action": {
"primary": {
"default": {
"value": "{brand.primary.600}",
"type": "color"
},
"hover": {
"value": "$brand.primary.50",
"type": "color"
},
"active": {
"value": "$brand.primary.900",
"type": "color",
"description": "Standard farge for handlinger"
}
},
"secondary": {
"default": {
"value": "{brand.secondary.800}",
"type": "color"
},
"hover": {
"value": "{brand.secondary.50}",
"type": "color"
},
"active": {
"value": "{brand.secondary.900}",
"type": "color",
"description": "Standard farge for handlinger"
}
}
},
"primary": {
"light": {
"value": "{brand.primary.100}",
Expand Down
2 changes: 1 addition & 1 deletion design-tokens/Brand/Tilsynet.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,4 @@
}
}
}
}
}
12 changes: 6 additions & 6 deletions packages/tokens/brand/brreg/tokens.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ module.exports = {
"semantic_surface_neutral_inverted": "#1e2b3c",
"semantic_surface_action_primary_subtle": "#e6eff8",
"semantic_surface_action_primary_subtle_hover": "#b3d0ea",
"semantic_surface_action_primary_default": "#005FAE",
"semantic_surface_action_primary_hover": "$brand.primary.50",
"semantic_surface_action_primary_active": "$brand.primary.900",
"semantic_surface_action_primary_default": "#0062ba",
"semantic_surface_action_primary_hover": "#004e95",
"semantic_surface_action_primary_active": "#00315d",
"semantic_surface_action_primary_no_fill": "#ffffff",
"semantic_surface_action_primary_no_fill_hover": "#e6eff8",
"semantic_surface_action_primary_no_fill_active": "#b3d0ea",
"semantic_surface_action_secondary_subtle": "#f4f5f6",
"semantic_surface_action_secondary_subtle_hover": "#e9eaec",
"semantic_surface_action_secondary_default": "#133349",
"semantic_surface_action_secondary_hover": "#FFFFFF",
"semantic_surface_action_secondary_active": "#071D2C",
"semantic_surface_action_secondary_default": "#00315d",
"semantic_surface_action_secondary_hover": "rgba(#00315d, 0.9)",
"semantic_surface_action_secondary_active": "rgba(#00315d, 0.8)",
"semantic_surface_action_secondary_no_fill": "#ffffff",
"semantic_surface_action_secondary_no_fill_hover": "rgba(#00315d, 0.1)",
"semantic_surface_action_secondary_no_fill_active": "rgba(#00315d, 0.2)",
Expand Down
12 changes: 6 additions & 6 deletions packages/tokens/brand/brreg/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
--fds-semantic-surface-neutral-inverted: #1e2b3c;
--fds-semantic-surface-action-primary-subtle: #e6eff8;
--fds-semantic-surface-action-primary-subtle-hover: #b3d0ea;
--fds-semantic-surface-action-primary-default: #005FAE;
--fds-semantic-surface-action-primary-hover: $brand.primary.50;
--fds-semantic-surface-action-primary-active: $brand.primary.900;
--fds-semantic-surface-action-primary-default: #0062ba;
--fds-semantic-surface-action-primary-hover: #004e95;
--fds-semantic-surface-action-primary-active: #00315d;
--fds-semantic-surface-action-primary-no_fill: #ffffff;
--fds-semantic-surface-action-primary-no_fill-hover: #e6eff8;
--fds-semantic-surface-action-primary-no_fill-active: #b3d0ea;
--fds-semantic-surface-action-secondary-subtle: #f4f5f6;
--fds-semantic-surface-action-secondary-subtle-hover: #e9eaec;
--fds-semantic-surface-action-secondary-default: #133349;
--fds-semantic-surface-action-secondary-hover: #FFFFFF;
--fds-semantic-surface-action-secondary-active: #071D2C;
--fds-semantic-surface-action-secondary-default: #00315d;
--fds-semantic-surface-action-secondary-hover: rgba(#00315d, 0.9);
--fds-semantic-surface-action-secondary-active: rgba(#00315d, 0.8);
--fds-semantic-surface-action-secondary-no_fill: #ffffff;
--fds-semantic-surface-action-secondary-no_fill-hover: rgba(#00315d, 0.1);
--fds-semantic-surface-action-secondary-no_fill-active: rgba(#00315d, 0.2);
Expand Down
12 changes: 6 additions & 6 deletions packages/tokens/brand/brreg/tokens.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ export const semantic_surface_neutral_dark = "#68707c";
export const semantic_surface_neutral_inverted = "#1e2b3c";
export const semantic_surface_action_primary_subtle = "#e6eff8";
export const semantic_surface_action_primary_subtle_hover = "#b3d0ea";
export const semantic_surface_action_primary_default = "#005FAE";
export const semantic_surface_action_primary_hover = "$brand.primary.50";
export const semantic_surface_action_primary_active = "$brand.primary.900";
export const semantic_surface_action_primary_default = "#0062ba";
export const semantic_surface_action_primary_hover = "#004e95";
export const semantic_surface_action_primary_active = "#00315d";
export const semantic_surface_action_primary_no_fill = "#ffffff";
export const semantic_surface_action_primary_no_fill_hover = "#e6eff8";
export const semantic_surface_action_primary_no_fill_active = "#b3d0ea";
export const semantic_surface_action_secondary_subtle = "#f4f5f6";
export const semantic_surface_action_secondary_subtle_hover = "#e9eaec";
export const semantic_surface_action_secondary_default = "#133349";
export const semantic_surface_action_secondary_hover = "#FFFFFF";
export const semantic_surface_action_secondary_active = "#071D2C";
export const semantic_surface_action_secondary_default = "#00315d";
export const semantic_surface_action_secondary_hover = "rgba(#00315d, 0.9)";
export const semantic_surface_action_secondary_active = "rgba(#00315d, 0.8)";
export const semantic_surface_action_secondary_no_fill = "#ffffff";
export const semantic_surface_action_secondary_no_fill_hover = "rgba(#00315d, 0.1)";
export const semantic_surface_action_secondary_no_fill_active = "rgba(#00315d, 0.2)";
Expand Down
36 changes: 18 additions & 18 deletions storefront/tokens/brreg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ export const color = {
lastName: 'subtle-hover',
},
{
value: '#005FAE',
value: '#0062ba',
type: 'color',
filePath: '../../design-tokens/Brand/Brreg.json',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: '{brand.primary.600}',
value: '{colors.blue.700}',
type: 'color',
},
name: '--fds-semantic-surface-action-primary-default',
Expand All @@ -167,12 +167,12 @@ export const color = {
lastName: 'default',
},
{
value: '$brand.primary.50',
value: '#004e95',
type: 'color',
filePath: '../../design-tokens/Brand/Brreg.json',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: '$brand.primary.50',
value: '{colors.blue.800}',
type: 'color',
},
name: '--fds-semantic-surface-action-primary-hover',
Expand All @@ -181,13 +181,13 @@ export const color = {
lastName: 'hover',
},
{
value: '$brand.primary.900',
value: '#00315d',
type: 'color',
description: 'Standard farge for handlinger',
filePath: '../../design-tokens/Brand/Brreg.json',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: '$brand.primary.900',
value: '{colors.blue.900}',
type: 'color',
description: 'Standard farge for handlinger',
},
Expand Down Expand Up @@ -281,12 +281,12 @@ export const color = {
lastName: 'subtle-hover',
},
{
value: '#133349',
value: '#00315d',
type: 'color',
filePath: '../../design-tokens/Brand/Brreg.json',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: '{brand.secondary.800}',
value: '{colors.blue.900}',
type: 'color',
},
name: '--fds-semantic-surface-action-secondary-default',
Expand All @@ -295,12 +295,12 @@ export const color = {
lastName: 'default',
},
{
value: '#FFFFFF',
value: 'rgba(#00315d, 0.9)',
type: 'color',
filePath: '../../design-tokens/Brand/Brreg.json',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: '{brand.secondary.50}',
value: 'rgba({colors.blue.900}, 0.9)',
type: 'color',
},
name: '--fds-semantic-surface-action-secondary-hover',
Expand All @@ -309,13 +309,13 @@ export const color = {
lastName: 'hover',
},
{
value: '#071D2C',
value: 'rgba(#00315d, 0.8)',
type: 'color',
description: 'Standard farge for handlinger',
filePath: '../../design-tokens/Brand/Brreg.json',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: '{brand.secondary.900}',
value: 'rgba({colors.blue.900}, 0.8)',
type: 'color',
description: 'Standard farge for handlinger',
},
Expand Down

0 comments on commit 02ae6ee

Please sign in to comment.