Skip to content

Commit

Permalink
Release v2.6.1 - staging → main (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Davyd Melkon <131438868+davyd-akamai@users.noreply.github.com>
Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>
  • Loading branch information
3 people authored Jul 31, 2024
1 parent 7388c1b commit 228330f
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linode/design-language-system",
"version": "2.6.0",
"version": "2.6.1",
"type": "module",
"module": "dist/index.js",
"exports": {
Expand Down
14 changes: 9 additions & 5 deletions style-dictionary/configs/getStyleDictionaryConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ export function getStyleDictionaryConfig(
// If we want to show collisions, we can change `include` to `source`.
include: theme.selectedTokenSets.map(tokenset => `tokens/${tokenset}.json`),
preprocessors: ["tokens-studio"],
expand: {
typesMap: expandTypesMap,
log: {
warnings: 'warn',
verbosity: 'verbose',
errors: {
brokenReferences: 'throw',
},
},
platforms: {
js: {
transformGroup: 'tokens-studio',
transforms: ['name/pascal', 'size/px', 'color/hex', 'shadow/css/shorthand', 'typography/css/shorthand'],
transforms: ['name/pascal', 'color/hex', 'shadow/css/shorthand', 'typography/css/shorthand'],
buildPath,
prefix: `${PREFIX}-`,
files: [
Expand All @@ -50,7 +54,7 @@ export function getStyleDictionaryConfig(
},
scss: {
transformGroup: 'tokens-studio',
transforms: ['name/kebab', 'time/seconds', 'size/px', 'color/css', 'shadow/css/shorthand', 'typography/css/shorthand'],
transforms: ['name/kebab', 'time/seconds', 'color/css', 'shadow/css/shorthand', 'typography/css/shorthand'],
buildPath,
prefix: `${PREFIX}-`,
files: [
Expand All @@ -62,7 +66,7 @@ export function getStyleDictionaryConfig(
},
css: {
transformGroup: 'tokens-studio',
transforms: ['name/kebab', 'time/seconds', 'size/px', 'color/css', 'shadow/css/shorthand', 'typography/css/shorthand'],
transforms: ['name/kebab', 'time/seconds', 'color/css', 'shadow/css/shorthand', 'typography/css/shorthand'],
buildPath,
prefix: `${PREFIX}-`,
files: [
Expand Down
33 changes: 30 additions & 3 deletions tokens/alias/dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@
"value": "{global.color.neutrals.white}",
"type": "color",
"description": "Tooltip background"
},
"overlay": {
"value": "{global.color.neutrals.black}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.84",
"space": "lch"
}
}
}
}
},
"interaction": {
Expand Down Expand Up @@ -449,25 +462,39 @@
"blur": "6",
"spread": "0",
"color": "rgba(0,0,0,0.18)",
"type": "innerShadow"
"type": "dropShadow"
},
"type": "boxShadow"
},
"s-inverted": {
"value": {
"x": "0",
"y": "-2",
"blur": "6",
"spread": "0",
"color": "rgba(0,0,0,0.18)",
"type": "dropShadow"
},
"type": "boxShadow",
"description": "Inverted shadow for elements that appear above the component"
},
"l": {
"value": [
{
"x": "0",
"y": "16",
"blur": "32",
"spread": "0",
"color": "rgba(0,0,0,0.18)"
"color": "rgba(0,0,0,0.18)",
"type": "dropShadow"
},
{
"x": "0",
"y": "4",
"blur": "8",
"spread": "0",
"color": "rgba(0,0,0,0.08)"
"color": "rgba(0,0,0,0.08)",
"type": "dropShadow"
}
],
"type": "boxShadow"
Expand Down
61 changes: 49 additions & 12 deletions tokens/alias/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,20 @@
"neutralsubtle": {
"value": "{global.color.neutrals.20}",
"type": "color"
},
"overlay": {
"value": "{global.color.neutrals.black}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.24",
"space": "lch"
}
}
},
"description": "Page dimming when the modal component is active"
}
},
"action": {
Expand Down Expand Up @@ -352,9 +366,22 @@
"blur": "6",
"spread": "0",
"color": "rgba(58,59,63,0.18)",
"type": "innerShadow"
"type": "dropShadow"
},
"type": "boxShadow",
"description": "Default shadow for components, like notification banners, dropdowns, popups;"
},
"s-inverted": {
"value": {
"x": "0",
"y": "-2",
"blur": "6",
"spread": "0",
"color": "rgba(58,59,63,0.18)",
"type": "dropShadow"
},
"type": "boxShadow"
"type": "boxShadow",
"description": "Inverted shadow for elements that appear above the component"
},
"l": {
"value": [
Expand All @@ -363,17 +390,20 @@
"y": "16",
"blur": "32",
"spread": "0",
"color": "rgba(58,59,63,0.18)"
"color": "rgba(58,59,63,0.18)",
"type": "dropShadow"
},
{
"x": "0",
"y": "4",
"blur": "8",
"spread": "0",
"color": "rgba(58,59,63,0.08)"
"color": "rgba(58,59,63,0.08)",
"type": "dropShadow"
}
],
"type": "boxShadow"
"type": "boxShadow",
"description": "Shadow for modals"
}
},
"typography": {
Expand Down Expand Up @@ -453,12 +483,20 @@
"fontFamily": "{global.font.font-family.brand}",
"fontWeight": "{global.font.font-weight.extrabold}",
"fontSize": "{global.font.font-size.xxxs}",
"lineHeight": "{global.font.line-height.xxxs}",
"textCase": "{global.font.textcase.uppercase}",
"letterSpacing": "3%"
"lineHeight": "{global.font.line-height.xxxs}"
},
"type": "typography",
"description": "Custom labels for content blocks"
},
"overline-letter-spacing": {
"value": "0.023rem",
"type": "typography",
"description": "Overline letter spacing"
},
"overline-text-case": {
"value": "{global.font.textcase.uppercase}",
"type": "typography",
"description": "Overline text case"
}
},
"body": {
Expand Down Expand Up @@ -507,8 +545,7 @@
"fontFamily": "{global.font.font-family.brand}",
"fontWeight": "{global.font.font-weight.regular.normal}",
"fontSize": "{global.font.font-size.xs}",
"lineHeight": "{global.font.line-height.xs}",
"paragraphSpacing": "8"
"lineHeight": "{global.font.line-height.xs}"
},
"type": "typography",
"description": "For list items"
Expand Down Expand Up @@ -543,7 +580,7 @@
"lineHeight": "{global.font.line-height.xxxs}"
},
"type": "typography",
"description": "Large buttons, list, segmented buttons, side navigation, small tabls"
"description": "Large buttons, list, segmented buttons, side navigation, small tables"
},
"xs": {
"value": {
Expand Down Expand Up @@ -582,7 +619,7 @@
"fontFamily": "{global.font.font-family.brand}",
"fontWeight": "{global.font.font-weight.bold}",
"fontSize": "{global.font.font-size.xxxs}",
"lineHeight": "14px"
"lineHeight": "0.875rem"
},
"type": "typography",
"description": "Badge number"
Expand Down
6 changes: 6 additions & 0 deletions tokens/global/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,12 @@
"type": "textCase"
}
}
},
"borderRadius": {
"none": {
"value": "0",
"type": "borderRadius"
}
}
}
}

0 comments on commit 228330f

Please sign in to comment.