From 982716766d884eaf62fb562899de93fb0d238b2e Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Tue, 9 Apr 2024 16:48:25 +0200 Subject: [PATCH 1/3] Publish - @digdir/designsystemet-css@0.3.3-alpha.0 - @digdir/designsystemet-react@0.56.3-alpha.0 - @digdir/design-system-react@0.53.7-alpha.0 - @digdir/designsystemet-theme@0.15.1-alpha.2 --- packages/css/CHANGELOG.md | 6 ++++++ packages/css/package.json | 2 +- packages/react-old/CHANGELOG.md | 4 ++++ packages/react-old/package.json | 2 +- packages/react/CHANGELOG.md | 6 ++++++ packages/react/package.json | 2 +- packages/theme/CHANGELOG.md | 6 ++++++ packages/theme/package.json | 2 +- 8 files changed, 26 insertions(+), 4 deletions(-) diff --git a/packages/css/CHANGELOG.md b/packages/css/CHANGELOG.md index 8106fa7b46..b635393375 100644 --- a/packages/css/CHANGELOG.md +++ b/packages/css/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.3-alpha.0](https://github.com/digdir/designsystemet/compare/@digdir/designsystemet-css@0.3.2...@digdir/designsystemet-css@0.3.3-alpha.0) (2024-04-09) + +### Features + +- 🎨 Use new sizing scale for typography and components ([#1696](https://github.com/digdir/designsystemet/issues/1696)) ([61b1af7](https://github.com/digdir/designsystemet/commit/61b1af79d96049b664c3fd5725fdffe0f34b27cb)) + ## [0.3.2](https://github.com/digdir/designsystemet/compare/@digdir/designsystemet-css@0.3.1...@digdir/designsystemet-css@0.3.2) (2024-04-08) ### Bug Fixes diff --git a/packages/css/package.json b/packages/css/package.json index 4d60221742..fdc0bb5d74 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/designsystemet-css", - "version": "0.3.2", + "version": "0.3.3-alpha.0", "description": "CSS for Designsystemet", "author": "Designsystemet team", "repository": "https://github.com/digdir/designsystemet", diff --git a/packages/react-old/CHANGELOG.md b/packages/react-old/CHANGELOG.md index 3800b8b6ff..2f3a70acb1 100644 --- a/packages/react-old/CHANGELOG.md +++ b/packages/react-old/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.53.7-alpha.0](https://github.com/digdir/designsystemet/compare/@digdir/design-system-react@0.53.6...@digdir/design-system-react@0.53.7-alpha.0) (2024-04-09) + +**Note:** Version bump only for package @digdir/design-system-react + ## [0.53.6](https://github.com/digdir/designsystemet/compare/@digdir/design-system-react@0.53.5...@digdir/design-system-react@0.53.6) (2024-04-08) **Note:** Version bump only for package @digdir/design-system-react diff --git a/packages/react-old/package.json b/packages/react-old/package.json index c3568e03e2..c038ed8a8a 100644 --- a/packages/react-old/package.json +++ b/packages/react-old/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/design-system-react", - "version": "0.53.6", + "version": "0.53.7-alpha.0", "description": "Legacy React components for Designsystemet", "author": "Designsystemet team", "repository": "https://github.com/digdir/designsystemet", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 8125f8cc5b..78a13443c5 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.56.3-alpha.0](https://github.com/digdir/designsystemet/compare/@digdir/designsystemet-react@0.56.2...@digdir/designsystemet-react@0.56.3-alpha.0) (2024-04-09) + +### Features + +- 🎨 Use new sizing scale for typography and components ([#1696](https://github.com/digdir/designsystemet/issues/1696)) ([61b1af7](https://github.com/digdir/designsystemet/commit/61b1af79d96049b664c3fd5725fdffe0f34b27cb)) + ## [0.56.2](https://github.com/digdir/designsystemet/compare/@digdir/designsystemet-react@0.56.1...@digdir/designsystemet-react@0.56.2) (2024-04-08) ### Bug Fixes diff --git a/packages/react/package.json b/packages/react/package.json index f340782fda..cef7bc55e2 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/designsystemet-react", - "version": "0.56.2", + "version": "0.56.3-alpha.0", "description": "React components for Designsystemet", "author": "Designsystemet team", "repository": "https://github.com/digdir/designsystemet", diff --git a/packages/theme/CHANGELOG.md b/packages/theme/CHANGELOG.md index 2ebde88e37..3f982445f2 100644 --- a/packages/theme/CHANGELOG.md +++ b/packages/theme/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.15.1-alpha.2](https://github.com/digdir/designsystemet/compare/@digdir/designsystemet-theme@0.15.0...@digdir/designsystemet-theme@0.15.1-alpha.2) (2024-04-09) + +### Features + +- 🎨 Use new sizing scale for typography and components ([#1696](https://github.com/digdir/designsystemet/issues/1696)) ([61b1af7](https://github.com/digdir/designsystemet/commit/61b1af79d96049b664c3fd5725fdffe0f34b27cb)) + ## [0.15.1-alpha.1](https://github.com/digdir/designsystemet/compare/@digdir/designsystemet-theme@0.15.0...@digdir/designsystemet-theme@0.15.1-alpha.1) (2024-04-04) ### Reverts diff --git a/packages/theme/package.json b/packages/theme/package.json index 2981abf4bc..f44336f633 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/designsystemet-theme", - "version": "0.15.1-alpha.1", + "version": "0.15.1-alpha.2", "description": "Tokens for Designsystemet", "author": "Designsystemet team", "repository": "https://github.com/digdir/designsystemet", From 0e0b35be735fa35b5b319e1b07e13896d077cc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marianne=20R=C3=B8svik?= Date: Wed, 10 Apr 2024 10:39:18 +0200 Subject: [PATCH 2/3] feat(Ingress): Change line height (#1793) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- apps/storefront/tokens/altinn.ts | 16 ++++++++-------- apps/storefront/tokens/brreg.ts | 16 ++++++++-------- apps/storefront/tokens/digdir.ts | 16 ++++++++-------- apps/storefront/tokens/tilsynet.ts | 16 ++++++++-------- design-tokens/Base/Semantic.json | 10 +++++----- packages/theme/brand/altinn/tokens.css | 8 ++++---- packages/theme/brand/brreg/tokens.css | 8 ++++---- packages/theme/brand/digdir/tokens.css | 8 ++++---- packages/theme/brand/tilsynet/tokens.css | 8 ++++---- 9 files changed, 53 insertions(+), 53 deletions(-) diff --git a/apps/storefront/tokens/altinn.ts b/apps/storefront/tokens/altinn.ts index 8b32f1fe96..360bcc7131 100644 --- a/apps/storefront/tokens/altinn.ts +++ b/apps/storefront/tokens/altinn.ts @@ -2526,7 +2526,7 @@ export const typography = [ path: ['typography', 'heading', 'xxsmall'], }, { - value: "400 1.875rem/1.6 'Inter'", + value: "400 1.875rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2534,7 +2534,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f4}', }, type: 'typography', @@ -2544,7 +2544,7 @@ export const typography = [ path: ['typography', 'ingress', 'large'], }, { - value: "400 1.5rem/1.6 'Inter'", + value: "400 1.5rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2552,7 +2552,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f3}', }, type: 'typography', @@ -2562,7 +2562,7 @@ export const typography = [ path: ['typography', 'ingress', 'medium'], }, { - value: "400 1.3125rem/1.6 'Inter'", + value: "400 1.3125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2570,7 +2570,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f2}', }, type: 'typography', @@ -2580,7 +2580,7 @@ export const typography = [ path: ['typography', 'ingress', 'small'], }, { - value: "400 1.125rem/1.6 'Inter'", + value: "400 1.125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2588,7 +2588,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f1}', }, type: 'typography', diff --git a/apps/storefront/tokens/brreg.ts b/apps/storefront/tokens/brreg.ts index 3b6c0e9313..0ea291475a 100644 --- a/apps/storefront/tokens/brreg.ts +++ b/apps/storefront/tokens/brreg.ts @@ -2544,7 +2544,7 @@ export const typography = [ path: ['typography', 'heading', 'xxsmall'], }, { - value: "400 1.875rem/1.6 'Inter'", + value: "400 1.875rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2552,7 +2552,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f4}', }, type: 'typography', @@ -2562,7 +2562,7 @@ export const typography = [ path: ['typography', 'ingress', 'large'], }, { - value: "400 1.5rem/1.6 'Inter'", + value: "400 1.5rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2570,7 +2570,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f3}', }, type: 'typography', @@ -2580,7 +2580,7 @@ export const typography = [ path: ['typography', 'ingress', 'medium'], }, { - value: "400 1.3125rem/1.6 'Inter'", + value: "400 1.3125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2588,7 +2588,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f2}', }, type: 'typography', @@ -2598,7 +2598,7 @@ export const typography = [ path: ['typography', 'ingress', 'small'], }, { - value: "400 1.125rem/1.6 'Inter'", + value: "400 1.125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2606,7 +2606,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f1}', }, type: 'typography', diff --git a/apps/storefront/tokens/digdir.ts b/apps/storefront/tokens/digdir.ts index 8e05630e1c..c2fbc4aaa2 100644 --- a/apps/storefront/tokens/digdir.ts +++ b/apps/storefront/tokens/digdir.ts @@ -2520,7 +2520,7 @@ export const typography = [ path: ['typography', 'heading', 'xxsmall'], }, { - value: "400 1.875rem/1.6 'Inter'", + value: "400 1.875rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2528,7 +2528,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f4}', }, type: 'typography', @@ -2538,7 +2538,7 @@ export const typography = [ path: ['typography', 'ingress', 'large'], }, { - value: "400 1.5rem/1.6 'Inter'", + value: "400 1.5rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2546,7 +2546,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f3}', }, type: 'typography', @@ -2556,7 +2556,7 @@ export const typography = [ path: ['typography', 'ingress', 'medium'], }, { - value: "400 1.3125rem/1.6 'Inter'", + value: "400 1.3125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2564,7 +2564,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f2}', }, type: 'typography', @@ -2574,7 +2574,7 @@ export const typography = [ path: ['typography', 'ingress', 'small'], }, { - value: "400 1.125rem/1.6 'Inter'", + value: "400 1.125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2582,7 +2582,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f1}', }, type: 'typography', diff --git a/apps/storefront/tokens/tilsynet.ts b/apps/storefront/tokens/tilsynet.ts index 28e5f1998f..4c9b120857 100644 --- a/apps/storefront/tokens/tilsynet.ts +++ b/apps/storefront/tokens/tilsynet.ts @@ -2466,7 +2466,7 @@ export const typography = [ path: ['typography', 'heading', 'xxsmall'], }, { - value: "400 1.875rem/1.6 'Inter'", + value: "400 1.875rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2474,7 +2474,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f4}', }, type: 'typography', @@ -2484,7 +2484,7 @@ export const typography = [ path: ['typography', 'ingress', 'large'], }, { - value: "400 1.5rem/1.6 'Inter'", + value: "400 1.5rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2492,7 +2492,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f3}', }, type: 'typography', @@ -2502,7 +2502,7 @@ export const typography = [ path: ['typography', 'ingress', 'medium'], }, { - value: "400 1.3125rem/1.6 'Inter'", + value: "400 1.3125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2510,7 +2510,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f2}', }, type: 'typography', @@ -2520,7 +2520,7 @@ export const typography = [ path: ['typography', 'ingress', 'small'], }, { - value: "400 1.125rem/1.6 'Inter'", + value: "400 1.125rem/1.7 'Inter'", type: 'typography', filePath: '../../design-tokens/Base/Semantic.json', isSource: false, @@ -2528,7 +2528,7 @@ export const typography = [ value: { fontFamily: '{fontFamilies.inter}', fontWeight: '{fontWeights.regular}', - lineHeight: '{lineHeights.600}', + lineHeight: '{lineHeights.700}', fontSize: '{font-size.f1}', }, type: 'typography', diff --git a/design-tokens/Base/Semantic.json b/design-tokens/Base/Semantic.json index ce70f88cbf..bb416047e3 100644 --- a/design-tokens/Base/Semantic.json +++ b/design-tokens/Base/Semantic.json @@ -519,7 +519,7 @@ "value": { "fontFamily": "{fontFamilies.inter}", "fontWeight": "{fontWeights.regular}", - "lineHeight": "{lineHeights.600}", + "lineHeight": "{lineHeights.700}", "fontSize": "{font-size.f4}" }, "type": "typography" @@ -528,7 +528,7 @@ "value": { "fontFamily": "{fontFamilies.inter}", "fontWeight": "{fontWeights.regular}", - "lineHeight": "{lineHeights.600}", + "lineHeight": "{lineHeights.700}", "fontSize": "{font-size.f3}" }, "type": "typography" @@ -537,7 +537,7 @@ "value": { "fontFamily": "{fontFamilies.inter}", "fontWeight": "{fontWeights.regular}", - "lineHeight": "{lineHeights.600}", + "lineHeight": "{lineHeights.700}", "fontSize": "{font-size.f2}" }, "type": "typography" @@ -546,7 +546,7 @@ "value": { "fontFamily": "{fontFamilies.inter}", "fontWeight": "{fontWeights.regular}", - "lineHeight": "{lineHeights.600}", + "lineHeight": "{lineHeights.700}", "fontSize": "{font-size.f1}" }, "type": "typography" @@ -1026,4 +1026,4 @@ "type": "boxShadow" } } -} +} \ No newline at end of file diff --git a/packages/theme/brand/altinn/tokens.css b/packages/theme/brand/altinn/tokens.css index a72c02e693..2477736eae 100644 --- a/packages/theme/brand/altinn/tokens.css +++ b/packages/theme/brand/altinn/tokens.css @@ -226,10 +226,10 @@ --fds-typography-heading-small: 500 1.5rem/1.3 'Inter'; --fds-typography-heading-xsmall: 500 1.3125rem/1.3 'Inter'; --fds-typography-heading-xxsmall: 500 1.125rem/1.3 'Inter'; - --fds-typography-ingress-large: 400 1.875rem/1.6 'Inter'; - --fds-typography-ingress-medium: 400 1.5rem/1.6 'Inter'; - --fds-typography-ingress-small: 400 1.3125rem/1.6 'Inter'; - --fds-typography-ingress-xsmall: 400 1.125rem/1.6 'Inter'; + --fds-typography-ingress-large: 400 1.875rem/1.7 'Inter'; + --fds-typography-ingress-medium: 400 1.5rem/1.7 'Inter'; + --fds-typography-ingress-small: 400 1.3125rem/1.7 'Inter'; + --fds-typography-ingress-xsmall: 400 1.125rem/1.7 'Inter'; --fds-typography-paragraph-large: 400 1.3125rem/1.5 'Inter'; --fds-typography-paragraph-medium: 400 1.125rem/1.5 'Inter'; --fds-typography-paragraph-small: 400 1rem/1.5 'Inter'; diff --git a/packages/theme/brand/brreg/tokens.css b/packages/theme/brand/brreg/tokens.css index 4476f25063..b8a0b4d8ab 100644 --- a/packages/theme/brand/brreg/tokens.css +++ b/packages/theme/brand/brreg/tokens.css @@ -232,10 +232,10 @@ --fds-typography-heading-small: 500 1.5rem/1.3 'Inter'; --fds-typography-heading-xsmall: 500 1.3125rem/1.3 'Inter'; --fds-typography-heading-xxsmall: 500 1.125rem/1.3 'Inter'; - --fds-typography-ingress-large: 400 1.875rem/1.6 'Inter'; - --fds-typography-ingress-medium: 400 1.5rem/1.6 'Inter'; - --fds-typography-ingress-small: 400 1.3125rem/1.6 'Inter'; - --fds-typography-ingress-xsmall: 400 1.125rem/1.6 'Inter'; + --fds-typography-ingress-large: 400 1.875rem/1.7 'Inter'; + --fds-typography-ingress-medium: 400 1.5rem/1.7 'Inter'; + --fds-typography-ingress-small: 400 1.3125rem/1.7 'Inter'; + --fds-typography-ingress-xsmall: 400 1.125rem/1.7 'Inter'; --fds-typography-paragraph-large: 400 1.3125rem/1.5 'Inter'; --fds-typography-paragraph-medium: 400 1.125rem/1.5 'Inter'; --fds-typography-paragraph-small: 400 1rem/1.5 'Inter'; diff --git a/packages/theme/brand/digdir/tokens.css b/packages/theme/brand/digdir/tokens.css index 7cdd2a6e5d..93983022df 100644 --- a/packages/theme/brand/digdir/tokens.css +++ b/packages/theme/brand/digdir/tokens.css @@ -226,10 +226,10 @@ --fds-typography-heading-small: 500 1.5rem/1.3 'Inter'; --fds-typography-heading-xsmall: 500 1.3125rem/1.3 'Inter'; --fds-typography-heading-xxsmall: 500 1.125rem/1.3 'Inter'; - --fds-typography-ingress-large: 400 1.875rem/1.6 'Inter'; - --fds-typography-ingress-medium: 400 1.5rem/1.6 'Inter'; - --fds-typography-ingress-small: 400 1.3125rem/1.6 'Inter'; - --fds-typography-ingress-xsmall: 400 1.125rem/1.6 'Inter'; + --fds-typography-ingress-large: 400 1.875rem/1.7 'Inter'; + --fds-typography-ingress-medium: 400 1.5rem/1.7 'Inter'; + --fds-typography-ingress-small: 400 1.3125rem/1.7 'Inter'; + --fds-typography-ingress-xsmall: 400 1.125rem/1.7 'Inter'; --fds-typography-paragraph-large: 400 1.3125rem/1.5 'Inter'; --fds-typography-paragraph-medium: 400 1.125rem/1.5 'Inter'; --fds-typography-paragraph-small: 400 1rem/1.5 'Inter'; diff --git a/packages/theme/brand/tilsynet/tokens.css b/packages/theme/brand/tilsynet/tokens.css index c3defca4a4..dda13172f3 100644 --- a/packages/theme/brand/tilsynet/tokens.css +++ b/packages/theme/brand/tilsynet/tokens.css @@ -226,10 +226,10 @@ --fds-typography-heading-small: 500 1.5rem/1.3 'Inter'; --fds-typography-heading-xsmall: 500 1.3125rem/1.3 'Inter'; --fds-typography-heading-xxsmall: 500 1.125rem/1.3 'Inter'; - --fds-typography-ingress-large: 400 1.875rem/1.6 'Inter'; - --fds-typography-ingress-medium: 400 1.5rem/1.6 'Inter'; - --fds-typography-ingress-small: 400 1.3125rem/1.6 'Inter'; - --fds-typography-ingress-xsmall: 400 1.125rem/1.6 'Inter'; + --fds-typography-ingress-large: 400 1.875rem/1.7 'Inter'; + --fds-typography-ingress-medium: 400 1.5rem/1.7 'Inter'; + --fds-typography-ingress-small: 400 1.3125rem/1.7 'Inter'; + --fds-typography-ingress-xsmall: 400 1.125rem/1.7 'Inter'; --fds-typography-paragraph-large: 400 1.3125rem/1.5 'Inter'; --fds-typography-paragraph-medium: 400 1.125rem/1.5 'Inter'; --fds-typography-paragraph-small: 400 1rem/1.5 'Inter'; From e8707209a1ff2eaf1f3379736ff2ed99988493b3 Mon Sep 17 00:00:00 2001 From: Persijn kwekkeboom <3340349+poi33@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:40:21 +0200 Subject: [PATCH 3/3] feat(css): Add autoprefixer with configuration (#1669 #1773) (#1783) --- packages/css/package.json | 9 ++++++++ packages/css/postcss.config.js | 1 + yarn.lock | 40 ++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/packages/css/package.json b/packages/css/package.json index fdc0bb5d74..9483c90a2b 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -13,6 +13,14 @@ "publishConfig": { "access": "public" }, + "browserslist": [ + "cover 90% in NO", + "last 2 versions", + "Firefox ESR", + "not dead", + "not ie <= 11", + "not op_mini all" + ], "keywords": [ "css", "designsystem", @@ -24,6 +32,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "devDependencies": { + "autoprefixer": "^10.4.19", "cssnano": "^6.0.2", "postcss": "^8.4.35", "postcss-cli": "^11.0.0", diff --git a/packages/css/postcss.config.js b/packages/css/postcss.config.js index 301dbea794..21a4ebbaf8 100644 --- a/packages/css/postcss.config.js +++ b/packages/css/postcss.config.js @@ -5,5 +5,6 @@ module.exports = { preset: 'default', }), require('./postcss-layers'), + require('autoprefixer'), ], }; diff --git a/yarn.lock b/yarn.lock index 9c104f499a..d171adc550 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2597,6 +2597,7 @@ __metadata: resolution: "@digdir/designsystemet-css@workspace:packages/css" dependencies: "@digdir/designsystemet-react": "workspace:^" + autoprefixer: "npm:^10.4.19" cssnano: "npm:^6.0.2" postcss: "npm:^8.4.35" postcss-cli: "npm:^11.0.0" @@ -7087,6 +7088,24 @@ __metadata: languageName: node linkType: hard +"autoprefixer@npm:^10.4.19": + version: 10.4.19 + resolution: "autoprefixer@npm:10.4.19" + dependencies: + browserslist: "npm:^4.23.0" + caniuse-lite: "npm:^1.0.30001599" + fraction.js: "npm:^4.3.7" + normalize-range: "npm:^0.1.2" + picocolors: "npm:^1.0.0" + postcss-value-parser: "npm:^4.2.0" + peerDependencies: + postcss: ^8.1.0 + bin: + autoprefixer: bin/autoprefixer + checksum: 98378eae37b8bf0f1515e4c91b4c9c1ce69ede311d4dea7e934f5afe147d23712c577f112c4019a4c40461c585d82d474d08044f8eb6cb8a063c3d5b7aca52d2 + languageName: node + linkType: hard + "available-typed-arrays@npm:^1.0.5": version: 1.0.5 resolution: "available-typed-arrays@npm:1.0.5" @@ -7620,6 +7639,13 @@ __metadata: languageName: node linkType: hard +"caniuse-lite@npm:^1.0.30001599": + version: 1.0.30001607 + resolution: "caniuse-lite@npm:1.0.30001607" + checksum: caab9ae1aa343e72da935c071041344c80338d8a12bd12a90b7d46eb8a97c7620dac72e95c994b94ce82d63f2f27151dab49206864620d8bfd7aa99f7fc75c83 + languageName: node + linkType: hard + "capital-case@npm:^1.0.4": version: 1.0.4 resolution: "capital-case@npm:1.0.4" @@ -10626,6 +10652,13 @@ __metadata: languageName: node linkType: hard +"fraction.js@npm:^4.3.7": + version: 4.3.7 + resolution: "fraction.js@npm:4.3.7" + checksum: bb5ebcdeeffcdc37b68ead3bdfc244e68de188e0c64e9702197333c72963b95cc798883ad16adc21588088b942bca5b6a6ff4aeb1362d19f6f3b629035dc15f5 + languageName: node + linkType: hard + "fresh@npm:0.5.2": version: 0.5.2 resolution: "fresh@npm:0.5.2" @@ -15396,6 +15429,13 @@ __metadata: languageName: node linkType: hard +"normalize-range@npm:^0.1.2": + version: 0.1.2 + resolution: "normalize-range@npm:0.1.2" + checksum: 9b2f14f093593f367a7a0834267c24f3cb3e887a2d9809c77d8a7e5fd08738bcd15af46f0ab01cc3a3d660386f015816b5c922cea8bf2ee79777f40874063184 + languageName: node + linkType: hard + "normalize-url@npm:^6.0.1": version: 6.1.0 resolution: "normalize-url@npm:6.1.0"