mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-01-03 20:28:54 +01:00
e6a18fa0d8
* Don’t color Page in change color * Tailwind: expose colors as CSS variables
36 lines
977 B
JavaScript
36 lines
977 B
JavaScript
module.exports = {
|
|
future: {
|
|
removeDeprecatedGapUtilities: true,
|
|
purgeLayersByDefault: true,
|
|
},
|
|
purge: {
|
|
content: ['./src/**/*.svelte', './src/**/*.ts'],
|
|
},
|
|
theme: {
|
|
extend: {},
|
|
},
|
|
variants: {
|
|
extend: {},
|
|
},
|
|
plugins: [
|
|
function ({ addBase, theme }) {
|
|
function extractColorVars(colorObj, colorGroup = '') {
|
|
return Object.keys(colorObj).reduce((vars, colorKey) => {
|
|
const value = colorObj[colorKey];
|
|
|
|
const newVars =
|
|
typeof value === 'string'
|
|
? { [`--color${colorGroup}-${colorKey}`]: value }
|
|
: extractColorVars(value, `-${colorKey}`);
|
|
|
|
return { ...vars, ...newVars };
|
|
}, {});
|
|
}
|
|
|
|
addBase({
|
|
':root': extractColorVars(theme('colors')),
|
|
});
|
|
},
|
|
],
|
|
};
|