From 77f7cf8e242036e3aa2c717e138c966570382e7e Mon Sep 17 00:00:00 2001 From: Viktor Rusakov Date: Fri, 3 Feb 2023 10:27:03 +0200 Subject: [PATCH] fix: add currentColor to reserved color values --- tokens/style-dictionary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/style-dictionary.js b/tokens/style-dictionary.js index e4ad2d593d..c2d52c2733 100644 --- a/tokens/style-dictionary.js +++ b/tokens/style-dictionary.js @@ -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;