Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: line-heights unitless instead of %
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed May 29, 2023
1 parent ff9ae08 commit 8b44e04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const getStyleDictionaryConfig = (theme) => {
source: [`tokens/tokens-${theme}.json`],
platforms: {
less: {
transforms: ['dt/size/pxToRem', 'dt/fonts/transformToStack', 'attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'color/hex'],
transforms: ['dt/size/pxToRem', 'dt/fonts/transformToStack', 'dt/lineHeight/percentToDecimal', 'attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'color/hex'],
prefix: 'dt',
buildPath: 'dist/less/',
files: [
Expand All @@ -14,7 +14,7 @@ const getStyleDictionaryConfig = (theme) => {
],
},
css: {
transforms: ['dt/size/pxToRem', 'dt/fonts/transformToStack', 'attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'size/rem', 'color/css'],
transforms: ['dt/size/pxToRem', 'dt/fonts/transformToStack', 'dt/lineHeight/percentToDecimal', 'attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'size/rem', 'color/css'],
actions: ['buildDocJson'],
prefix: 'dt',
buildPath: 'dist/css/',
Expand Down Expand Up @@ -82,7 +82,7 @@ const getStyleDictionaryConfig = (theme) => {
json: {
prefix: 'dt',
buildPath: 'dist/',
transforms: ['dt/size/pxToRem', 'dt/fonts/transformToStack', 'name/cti/camel'],
transforms: ['dt/size/pxToRem', 'dt/fonts/transformToStack', 'dt/lineHeight/percentToDecimal', 'name/cti/camel'],
files: [
{
destination: `tokens-${theme}.json`,
Expand Down

0 comments on commit 8b44e04

Please sign in to comment.