generated from designsystemet/design-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typografi-tokens og mappestruktur på fargetokens
Mappestruktur for design-tokens endret. I tillegg er det lagt til tokens for typografi. "Theme" er gitt navnet "BRREG" slik at det i Figma vises som BRREG og ikke Theme1 (i $themes fila).
- Loading branch information
Showing
17 changed files
with
807 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
{ | ||
"tokenSetOrder": [ | ||
"primitives/globals", | ||
"primitives/typography/default", | ||
"primitives/colors/dark/global", | ||
"primitives/colors/dark/theme", | ||
"primitives/colors/dark/theme2", | ||
"primitives/colors/light/global", | ||
"primitives/colors/light/theme", | ||
"primitives/colors/light/theme2", | ||
"primitives/size/default", | ||
"primitives/size/compact", | ||
"primitives/modes/typography/primary/theme", | ||
"primitives/modes/typography/primary/theme2", | ||
"primitives/modes/typography/secondary/theme", | ||
"primitives/modes/typography/secondary/theme2", | ||
"primitives/modes/colors/dark/global", | ||
"primitives/modes/colors/dark/theme", | ||
"primitives/modes/colors/dark/theme2", | ||
"primitives/modes/colors/light/global", | ||
"primitives/modes/colors/light/theme", | ||
"primitives/modes/colors/light/theme2", | ||
"themes/theme", | ||
"themes/theme2", | ||
"semantic/color", | ||
"semantic/style" | ||
"semantic/style", | ||
"Figma/components" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"switch": { | ||
"circle": { | ||
"small": { | ||
"type": "sizing", | ||
"value": "{sizing.5} - {switch.border}" | ||
}, | ||
"medium": { | ||
"type": "sizing", | ||
"value": "{sizing.6} - {switch.border}" | ||
}, | ||
"large": { | ||
"type": "sizing", | ||
"value": "{sizing.7} - {switch.border}" | ||
} | ||
}, | ||
"border": { | ||
"type": "sizing", | ||
"value": "4" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
30 changes: 30 additions & 0 deletions
30
design-tokens/primitives/modes/typography/primary/theme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"theme": { | ||
"main": { | ||
"type": "fontFamilies", | ||
"value": "Inter" | ||
}, | ||
"bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Medium" | ||
}, | ||
"extra-bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Semi bold" | ||
}, | ||
"regular": { | ||
"type": "fontWeights", | ||
"value": "Regular" | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
design-tokens/primitives/modes/typography/primary/theme2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"theme2": { | ||
"main": { | ||
"type": "fontFamilies", | ||
"value": "Open Sans" | ||
}, | ||
"bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Medium" | ||
}, | ||
"extra-bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Bold" | ||
}, | ||
"regular": { | ||
"type": "fontWeights", | ||
"value": "Regular" | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
design-tokens/primitives/modes/typography/secondary/theme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"theme": { | ||
"main": { | ||
"type": "fontFamilies", | ||
"value": "IBM Plex Mono" | ||
}, | ||
"bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Medium" | ||
}, | ||
"extra-bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "SemiBold" | ||
}, | ||
"regular": { | ||
"type": "fontWeights", | ||
"value": "Regular" | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
design-tokens/primitives/modes/typography/secondary/theme2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"theme2": { | ||
"main": { | ||
"type": "fontFamilies", | ||
"value": "IBM Plex Mono" | ||
}, | ||
"bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Regular" | ||
}, | ||
"extra-bold": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontWeights", | ||
"value": "Bold" | ||
}, | ||
"regular": { | ||
"type": "fontWeights", | ||
"value": "Regular" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
{ | ||
"line-height": { | ||
"sm": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "lineHeights", | ||
"value": "130%" | ||
}, | ||
"md": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "lineHeights", | ||
"value": "150%" | ||
}, | ||
"lg": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "lineHeights", | ||
"value": "170%" | ||
} | ||
}, | ||
"font-size": { | ||
"1": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "12" | ||
}, | ||
"2": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "13" | ||
}, | ||
"3": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "14" | ||
}, | ||
"4": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "16" | ||
}, | ||
"5": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "18" | ||
}, | ||
"6": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "20" | ||
}, | ||
"7": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "22" | ||
}, | ||
"8": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "26" | ||
}, | ||
"9": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "32" | ||
}, | ||
"10": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "40" | ||
}, | ||
"11": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "fontSizes", | ||
"value": "48" | ||
} | ||
}, | ||
"letter-spacing": { | ||
"1": { | ||
"type": "letterSpacing", | ||
"value": "-1%" | ||
}, | ||
"2": { | ||
"type": "letterSpacing", | ||
"value": "-0.5%" | ||
}, | ||
"3": { | ||
"type": "letterSpacing", | ||
"value": "-0.25%" | ||
}, | ||
"4": { | ||
"type": "letterSpacing", | ||
"value": "-0.15%" | ||
}, | ||
"5": { | ||
"type": "letterSpacing", | ||
"value": "0%" | ||
}, | ||
"6": { | ||
"type": "letterSpacing", | ||
"value": "0.15%" | ||
}, | ||
"7": { | ||
"type": "letterSpacing", | ||
"value": "0.25%" | ||
}, | ||
"8": { | ||
"type": "letterSpacing", | ||
"value": "0.5%" | ||
}, | ||
"9": { | ||
"$extensions": { | ||
"studio.tokens": { | ||
"modify": {} | ||
} | ||
}, | ||
"type": "letterSpacing", | ||
"value": "1.5%" | ||
} | ||
} | ||
} |
Oops, something went wrong.