0.0.5 • Published 2 years ago

@nevvon/tailwind-config v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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)),
  ],
}
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago