0.0.16 • Published 15 days ago

@bronzelabs/tribe-tailwind-preset v0.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
15 days ago

@bronzelabs/tribe-tailwind-preset

This package contains the Tribe Tailwind preset.

The default exported preset includes all of the Tribe's foundation styles (typography, colors, spacing, etc…) and all the needed configuration for component-specific classes used internally.

Installation

yarn add -D @bronzelabs/tribe-tailwind-preset

# or with npm:

npm i --save-dev @bronzelabs/tribe-tailwind-preset

Usage

In your tailwind.config.js file (or equivalent), add the following:

import tribe from "@bronzelabs/tribe-tailwind-preset"

module.exports = {
  presets: [tribe],
}

As an example, the classNames applied below become available right away. They apply, respectively, the CSS properties color with the value of the theme token blue.tone and background-color with the value of the theme token grey.alpha30.

export const MyComponent = () => {
  return (
    <p className="text-blue-tone bg-grey-alpha30">
      Hello World
    </p>
  )
}
0.0.16

15 days ago

0.0.15

26 days ago

0.0.14

1 month ago

0.0.12

2 months ago

0.0.13

2 months ago

0.0.11

2 months ago

0.0.10

3 months ago

0.0.9

3 months ago

0.0.8

4 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago