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); }), ], };