Skip to content

Instantly share code, notes, and snippets.

@jefftriplett
Created August 30, 2020 21:34
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 jefftriplett/ef9ae2cbca4abf6a74210c5881ea8254 to your computer and use it in GitHub Desktop.
Save jefftriplett/ef9ae2cbca4abf6a74210c5881ea8254 to your computer and use it in GitHub Desktop.
Minimal TailwindCSS setup
@tailwind base;
@tailwind components;
@tailwind utilities;
.PHONY: static
static:
@npx -p tailwindcss@1.7.5 tailwindcss build ./assets/index.css \
--config ./assets/tailwind.config.js \
--output ./frontend/css/output.css
module.exports = {
purge: {
enabled: true, // Set this to False while you dev
mode: 'all',
content: [
'./templates/**/*.html',
],
},
theme: {},
variants: {},
plugins: [
require('@tailwindcss/typography'), // optional, but useful
require('tailwindcss-debug-screens'), // optional, but useful
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment