Skip to content

Commit

Permalink
fix: add currentColor to reserved color values
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Feb 3, 2023
1 parent db1201a commit 77f7cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokens/style-dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { formattedVariables, fileHeader, sortByReference } = StyleDictionary.form

const colorTransform = (token) => {
const { value, modify = [], original } = token;
const reservedColorValues = ['inherit', 'initial', 'revert', 'unset'];
const reservedColorValues = ['inherit', 'initial', 'revert', 'unset', 'currentColor'];

if (reservedColorValues.includes(original.value)) {
return original.value;
Expand Down

0 comments on commit 77f7cf8

Please sign in to comment.