Created
January 14, 2021 09:08
-
-
Save fResult/c45d66ee163aad6861cddd1f1308c348 to your computer and use it in GitHub Desktop.
Config Darkmode for TailwindCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'], | |
darkMode: 'class', | |
theme: { | |
extend: { | |
colors: { | |
dark: { | |
elem: '#2B3945', | |
bg: '#202C37', | |
text: '#FFFFFF' | |
}, | |
light: { | |
elem: '#FFFFFF', | |
bg: '#FAFAFA', | |
text: '#111517' | |
} | |
} | |
}, | |
}, | |
variants: { | |
extend: {}, | |
}, | |
plugins: [], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment