mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-12-02 12:44:26 +01:00
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
const plugin = require('tailwindcss/plugin');
|
|
|
|
module.exports = {
|
|
future: {
|
|
removeDeprecatedGapUtilities: true,
|
|
purgeLayersByDefault: true,
|
|
},
|
|
purge: {
|
|
content: ['./src/**/*.svelte', './src/**/*.ts'],
|
|
},
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
// gray-400 hue-rotated 180deg
|
|
select: '#A8A297',
|
|
},
|
|
},
|
|
},
|
|
variants: {
|
|
extend: {},
|
|
},
|
|
plugins: [
|
|
plugin(function ({ addUtilities, theme }) {
|
|
const themeColors = theme('colors');
|
|
const individualBorderColors = Object.keys(themeColors).map((colorName) => ({
|
|
[`.border-b-${colorName}`]: {
|
|
borderBottomColor: themeColors[colorName],
|
|
},
|
|
[`.border-t-${colorName}`]: {
|
|
borderTopColor: themeColors[colorName],
|
|
},
|
|
[`.border-l-${colorName}`]: {
|
|
borderLeftColor: themeColors[colorName],
|
|
},
|
|
[`.border-r-${colorName}`]: {
|
|
borderRightColor: themeColors[colorName],
|
|
},
|
|
}));
|
|
|
|
addUtilities(individualBorderColors);
|
|
}),
|
|
],
|
|
};
|