0.0.5 • Published 2 years ago
@nevvon/tailwind-config v0.0.5
Nevvon Tailwind Config
This package is designed to be the single source of truth for Nevvon's design system tokens manifested into a Tailwind config, for use in any application that utilizes Tailwind.
Installation
$ npm install --save @nevvon/tailwind-config
# install mandatory plugins
$ npm install --save-dev @tailwindcss/line-clamp
Line Clamp Utils
https://github.com/tailwindlabs/tailwindcss-line-clamp
Setup
Follow Tailwind's setup process to create a tailwind.config.cjs
file, and then paste this content into that file:
Tailwind Installation
https://tailwindcss.com/docs/guides/vite
tailwind.config.cjs
const { defaultContent, defaultTheme, defaultPlugins } = require('@nevvon/tailwind-config');
module.exports = {
content: [
...defaultContent,
],
theme: {
...defaultTheme,
},
plugins: [
...defaultPlugins.map(plugin => require(plugin)),
],
}