Skip to content

Instantly share code, notes, and snippets.

@dsebastien
Created October 17, 2021 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsebastien/7e6160f55f11b5caef1a025513001ee9 to your computer and use it in GitHub Desktop.
Save dsebastien/7e6160f55f11b5caef1a025513001ee9 to your computer and use it in GitHub Desktop.
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