@hkdigital/lib-core 0.4.17 → 0.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,13 +109,13 @@ function generateColorStyles() {
|
|
|
109
109
|
for (const colorName of colorNames) {
|
|
110
110
|
colors[colorName] = {};
|
|
111
111
|
for (const shade of shades) {
|
|
112
|
-
colors[colorName][shade] = `
|
|
112
|
+
colors[colorName][shade] = `var(--color-${colorName}-${shade})`;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
// Add contrast colors
|
|
116
116
|
for (const shade of shades) {
|
|
117
117
|
colors[`${colorName}-contrast`] = colors[`${colorName}-contrast`] || {};
|
|
118
|
-
colors[`${colorName}-contrast`][shade] = `
|
|
118
|
+
colors[`${colorName}-contrast`][shade] = `var(--color-${colorName}-contrast-${shade})`;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -107,7 +107,7 @@ export function customUtilitiesPlugin({ addUtilities, theme }) {
|
|
|
107
107
|
* // fontFamily: 'var(--heading-font-family)',
|
|
108
108
|
* // fontStyle: 'var(--heading-font-style)',
|
|
109
109
|
* // letterSpacing: 'var(--heading-letter-spacing)',
|
|
110
|
-
* // color: '
|
|
110
|
+
* // color: 'var(--heading-font-color)'
|
|
111
111
|
* // }
|
|
112
112
|
* // }
|
|
113
113
|
*/
|