diff --git a/lib/tailwind.config.js b/lib/tailwind.config.js index 4146b4a0..2d95471e 100644 --- a/lib/tailwind.config.js +++ b/lib/tailwind.config.js @@ -1,3 +1,29 @@ +const colors = [ + 'slate', + 'gray', + 'zinc', + 'neutral', + 'stone', + 'red', + 'orange', + 'amber', + 'yellow', + 'lime', + 'green', + 'emerald', + 'teal', + 'cyan', + 'sky', + 'blue', + 'indigo', + 'violet', + 'purple', + 'fuchsia', + 'pink', + 'rose', +] +const weights = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950] + module.exports = { content: ['./client/**/*.{js,ts,jsx,tsx,html}', './themes/**/**/*.{js,ts,jsx,tsx,html}'], theme: { @@ -7,6 +33,10 @@ module.exports = { }, }, }, + safelist: [ + { pattern: new RegExp(`bg-(${colors.join('|')})-(${weights.join('|')})$`) }, + { pattern: new RegExp(`text-(${colors.join('|')})-(${weights.join('|')})$`) }, + ], variants: {}, plugins: [], }