2.0.5 • Published 7 months ago

@palettebro/tailwind v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@palettebro/tailwind

License: MIT CI NPM version Downloads

A Tailwind 4 plugin for adding @palettebro/generator colors to Tailwind color utilities.

Installation

npm install @palettebro/tailwind
# or
yarn add @palettebro/tailwind

Usage

See Demo

Example

Add the plugin to your css:

@plugin '@palettebro/tailwind' {
  reverseLightDarkShades: true;
  primary: #412f9c;
}

Use classes as:

<MyComponent className="bg-surface-container text-on-surface">

Or CSS variables as:

<MyComponent className="bg-(--color-surface-container) text-(--color--on-surface)">

License

MIT

2.0.5

7 months ago

2.0.4

7 months ago

2.0.3

7 months ago

2.0.2

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.1.0

8 months ago