This configuration relies on TailwindCSS 2.1. So to install, you'll also need to install TailwindCSS and its dependencies.
npm install @nick-mazuk/ui-config tailwindcss postcss autoprefixer
Then, just add the config to your tailwind.config.js
, postcss.config.js
, and your global css stylesheet.
Create a tailwind.config.js
file if you haven't already. Then add @nick-mazuk/ui-config
as a preset.
module.exports = {
presets: [require('@nick-mazuk/ui-config')],
}
Create a postcss.config.js
file if you haven't already.
module.exports = {
plugins: [
'tailwindcss',
'autoprefixer',
],
}
Just import the CSS stylesheets.
import '@nick-mazuk/ui-config/lib/colors.css'
import '@nick-mazuk/ui-config/lib/styles.css'