Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tailwind configuration for Svelte app in NX
'use strict';
module.exports = {
mode: 'jit',
purge: {
content: [
'./apps/**/*.{html,svelte,tsx,ts,jsx,js,pcss,scss,css}',
'./libs/**/*.{html,svelte,tsx,ts,jsx,js,pcss,scss,css}',
],
// PurgeCSS options
// Reference: https://purgecss.com/
//enable: production, // disable purge in dev
options: {
rejected: true,
printRejected: true,
safelist: ['html', 'body', 'dark'],
safelistPatterns: [/svelte-/],
},
},
/**
* Enable dark mode
*/
darkMode: 'class',
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment