Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ErrorMessage): Add Large size token #839

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions design-tokens/Base/Semantic.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,20 @@
}
},
"error_message": {
"large": {
"value": {
"fontFamily": "{fontFamilies.inter}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.300}",
"fontSize": "{font-size.f1}",
"letterSpacing": "{letterSpacing.1}",
"paragraphSpacing": "{paragraphSpacing.0}",
"paragraphIndent": "{paragraphIndent.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"medium": {
"value": {
"fontFamily": "{fontFamilies.inter}",
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/altinn/tokens.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ module.exports = {
"typography_label_medium": "500 1.125rem/1.3 'Inter'",
"typography_label_small": "500 0.9375rem/1.3 'Inter'",
"typography_label_xsmall": "500 0.8125rem/1.3 'Inter'",
"typography_error_message_large": "400 1.3125rem/1.3 'Inter'",
"typography_error_message_medium": "400 1.125rem/1.3 'Inter'",
"typography_error_message_small": "400 0.9375rem/1.3 'Inter'",
"typography_error_message_xsmall": "400 0.8125rem/1.3 'Inter'",
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/altinn/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
--fds-typography-label-medium: 500 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-label-small: 500 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-label-xsmall: 500 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
--fds-typography-error_message-large: 400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter';
--fds-typography-error_message-medium: 400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-error_message-small: 400 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-error_message-xsmall: 400 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/altinn/tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large : string;
export const typography_label_medium : string;
export const typography_label_small : string;
export const typography_label_xsmall : string;
export const typography_error_message_large : string;
export const typography_error_message_medium : string;
export const typography_error_message_small : string;
export const typography_error_message_xsmall : string;
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/altinn/tokens.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large = "500 1.3125rem/1.3 'Inter'";
export const typography_label_medium = "500 1.125rem/1.3 'Inter'";
export const typography_label_small = "500 0.9375rem/1.3 'Inter'";
export const typography_label_xsmall = "500 0.8125rem/1.3 'Inter'";
export const typography_error_message_large = "400 1.3125rem/1.3 'Inter'";
export const typography_error_message_medium = "400 1.125rem/1.3 'Inter'";
export const typography_error_message_small = "400 0.9375rem/1.3 'Inter'";
export const typography_error_message_xsmall = "400 0.8125rem/1.3 'Inter'";
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/brreg/tokens.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ module.exports = {
"typography_label_medium": "500 1.125rem/1.3 'Inter'",
"typography_label_small": "500 0.9375rem/1.3 'Inter'",
"typography_label_xsmall": "500 0.8125rem/1.3 'Inter'",
"typography_error_message_large": "400 1.3125rem/1.3 'Inter'",
"typography_error_message_medium": "400 1.125rem/1.3 'Inter'",
"typography_error_message_small": "400 0.9375rem/1.3 'Inter'",
"typography_error_message_xsmall": "400 0.8125rem/1.3 'Inter'",
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/brreg/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
--fds-typography-label-medium: 500 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-label-small: 500 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-label-xsmall: 500 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
--fds-typography-error_message-large: 400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter';
--fds-typography-error_message-medium: 400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-error_message-small: 400 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-error_message-xsmall: 400 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/brreg/tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large : string;
export const typography_label_medium : string;
export const typography_label_small : string;
export const typography_label_xsmall : string;
export const typography_error_message_large : string;
export const typography_error_message_medium : string;
export const typography_error_message_small : string;
export const typography_error_message_xsmall : string;
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/brreg/tokens.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large = "500 1.3125rem/1.3 'Inter'";
export const typography_label_medium = "500 1.125rem/1.3 'Inter'";
export const typography_label_small = "500 0.9375rem/1.3 'Inter'";
export const typography_label_xsmall = "500 0.8125rem/1.3 'Inter'";
export const typography_error_message_large = "400 1.3125rem/1.3 'Inter'";
export const typography_error_message_medium = "400 1.125rem/1.3 'Inter'";
export const typography_error_message_small = "400 0.9375rem/1.3 'Inter'";
export const typography_error_message_xsmall = "400 0.8125rem/1.3 'Inter'";
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/digdir/tokens.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ module.exports = {
"typography_label_medium": "500 1.125rem/1.3 'Inter'",
"typography_label_small": "500 0.9375rem/1.3 'Inter'",
"typography_label_xsmall": "500 0.8125rem/1.3 'Inter'",
"typography_error_message_large": "400 1.3125rem/1.3 'Inter'",
"typography_error_message_medium": "400 1.125rem/1.3 'Inter'",
"typography_error_message_small": "400 0.9375rem/1.3 'Inter'",
"typography_error_message_xsmall": "400 0.8125rem/1.3 'Inter'",
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/digdir/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
--fds-typography-label-medium: 500 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-label-small: 500 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-label-xsmall: 500 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
--fds-typography-error_message-large: 400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter';
--fds-typography-error_message-medium: 400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-error_message-small: 400 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-error_message-xsmall: 400 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/digdir/tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large : string;
export const typography_label_medium : string;
export const typography_label_small : string;
export const typography_label_xsmall : string;
export const typography_error_message_large : string;
export const typography_error_message_medium : string;
export const typography_error_message_small : string;
export const typography_error_message_xsmall : string;
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/digdir/tokens.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large = "500 1.3125rem/1.3 'Inter'";
export const typography_label_medium = "500 1.125rem/1.3 'Inter'";
export const typography_label_small = "500 0.9375rem/1.3 'Inter'";
export const typography_label_xsmall = "500 0.8125rem/1.3 'Inter'";
export const typography_error_message_large = "400 1.3125rem/1.3 'Inter'";
export const typography_error_message_medium = "400 1.125rem/1.3 'Inter'";
export const typography_error_message_small = "400 0.9375rem/1.3 'Inter'";
export const typography_error_message_xsmall = "400 0.8125rem/1.3 'Inter'";
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/tilsynet/tokens.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ module.exports = {
"typography_label_medium": "500 1.125rem/1.3 'Inter'",
"typography_label_small": "500 0.9375rem/1.3 'Inter'",
"typography_label_xsmall": "500 0.8125rem/1.3 'Inter'",
"typography_error_message_large": "400 1.3125rem/1.3 'Inter'",
"typography_error_message_medium": "400 1.125rem/1.3 'Inter'",
"typography_error_message_small": "400 0.9375rem/1.3 'Inter'",
"typography_error_message_xsmall": "400 0.8125rem/1.3 'Inter'",
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/tilsynet/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
--fds-typography-label-medium: 500 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-label-small: 500 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-label-xsmall: 500 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
--fds-typography-error_message-large: 400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter';
--fds-typography-error_message-medium: 400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter';
--fds-typography-error_message-small: 400 clamp(0.91rem, calc(0.10vw + 0.89rem), 0.97rem)/1.3 'Inter';
--fds-typography-error_message-xsmall: 400 clamp(0.81rem, calc(0.05vw + 0.80rem), 0.84rem)/1.3 'Inter';
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/tilsynet/tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large : string;
export const typography_label_medium : string;
export const typography_label_small : string;
export const typography_label_xsmall : string;
export const typography_error_message_large : string;
export const typography_error_message_medium : string;
export const typography_error_message_small : string;
export const typography_error_message_xsmall : string;
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/brand/tilsynet/tokens.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const typography_label_large = "500 1.3125rem/1.3 'Inter'";
export const typography_label_medium = "500 1.125rem/1.3 'Inter'";
export const typography_label_small = "500 0.9375rem/1.3 'Inter'";
export const typography_label_xsmall = "500 0.8125rem/1.3 'Inter'";
export const typography_error_message_large = "400 1.3125rem/1.3 'Inter'";
export const typography_error_message_medium = "400 1.125rem/1.3 'Inter'";
export const typography_error_message_small = "400 0.9375rem/1.3 'Inter'";
export const typography_error_message_xsmall = "400 0.8125rem/1.3 'Inter'";
Expand Down
23 changes: 23 additions & 0 deletions storefront/tokens/altinn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2784,6 +2784,29 @@ export const typography = [
attributes: {},
path: ['typography', 'label', 'xsmall'],
},
{
value: "400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter'",
type: 'typography',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: {
fontFamily: '{fontFamilies.inter}',
fontWeight: '{fontWeights.regular}',
lineHeight: '{lineHeights.300}',
fontSize: '{font-size.f1}',
letterSpacing: '{letterSpacing.1}',
paragraphSpacing: '{paragraphSpacing.0}',
paragraphIndent: '{paragraphIndent.0}',
textCase: '{textCase.none}',
textDecoration: '{textDecoration.none}',
},
type: 'typography',
},
name: '--fds-typography-error_message-large',
attributes: {},
path: ['typography', 'error_message', 'large'],
},
{
value: "400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter'",
type: 'typography',
Expand Down
23 changes: 23 additions & 0 deletions storefront/tokens/brreg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,29 @@ export const typography = [
attributes: {},
path: ['typography', 'label', 'xsmall'],
},
{
value: "400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter'",
type: 'typography',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: {
fontFamily: '{fontFamilies.inter}',
fontWeight: '{fontWeights.regular}',
lineHeight: '{lineHeights.300}',
fontSize: '{font-size.f1}',
letterSpacing: '{letterSpacing.1}',
paragraphSpacing: '{paragraphSpacing.0}',
paragraphIndent: '{paragraphIndent.0}',
textCase: '{textCase.none}',
textDecoration: '{textDecoration.none}',
},
type: 'typography',
},
name: '--fds-typography-error_message-large',
attributes: {},
path: ['typography', 'error_message', 'large'],
},
{
value: "400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter'",
type: 'typography',
Expand Down
23 changes: 23 additions & 0 deletions storefront/tokens/digdir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2778,6 +2778,29 @@ export const typography = [
attributes: {},
path: ['typography', 'label', 'xsmall'],
},
{
value: "400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter'",
type: 'typography',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: {
fontFamily: '{fontFamilies.inter}',
fontWeight: '{fontWeights.regular}',
lineHeight: '{lineHeights.300}',
fontSize: '{font-size.f1}',
letterSpacing: '{letterSpacing.1}',
paragraphSpacing: '{paragraphSpacing.0}',
paragraphIndent: '{paragraphIndent.0}',
textCase: '{textCase.none}',
textDecoration: '{textDecoration.none}',
},
type: 'typography',
},
name: '--fds-typography-error_message-large',
attributes: {},
path: ['typography', 'error_message', 'large'],
},
{
value: "400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter'",
type: 'typography',
Expand Down
23 changes: 23 additions & 0 deletions storefront/tokens/tilsynet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,29 @@ export const typography = [
attributes: {},
path: ['typography', 'label', 'xsmall'],
},
{
value: "400 clamp(1.09rem, calc(0.34vw + 1.03rem), 1.31rem)/1.3 'Inter'",
type: 'typography',
filePath: '../../design-tokens/Base/Semantic.json',
isSource: false,
original: {
value: {
fontFamily: '{fontFamilies.inter}',
fontWeight: '{fontWeights.regular}',
lineHeight: '{lineHeights.300}',
fontSize: '{font-size.f1}',
letterSpacing: '{letterSpacing.1}',
paragraphSpacing: '{paragraphSpacing.0}',
paragraphIndent: '{paragraphIndent.0}',
textCase: '{textCase.none}',
textDecoration: '{textDecoration.none}',
},
type: 'typography',
},
name: '--fds-typography-error_message-large',
attributes: {},
path: ['typography', 'error_message', 'large'],
},
{
value: "400 clamp(1.00rem, calc(0.19vw + 0.96rem), 1.13rem)/1.3 'Inter'",
type: 'typography',
Expand Down
Loading