tailwindcss-open-color

1.0.2 • Public • Published

tailwindcss-open-color

Build Status Test Coverage

Replace Tailwind CSS's default color palette with Open color.

Installation

To install the package, run

npm install tailwindcss-open-color

To activate the color palette, modify your Tailwind CSS config file:

module.exports = {
  theme: {
    colors: require('tailwindcss-open-color')
  }
}

To learn more about how to customize colors for your Tailwind CSS project, see https://tailwindcss.com/docs/customizing-colors/.

Basic usage

tailwindcss-open-color uses Open color's naming convention {color}-{number}. Here are examples of how you can use the color palette with Tailwind CSS's utilities:

<h1 class="text-grape-5">Hello, world</h1>
 
<button class="bg-blue-0">Button</button>
 
<div class="border-orange-7">...</div>

Black #000 and white #fff can be accessed the same way when using the default color palette with postfixes -black and -white:

<h1 class="text-black bg-white">...</h1>

To browse all available colors, see https://yeun.github.io/open-color/.

/tailwindcss-open-color/

    Package Sidebar

    Install

    npm i tailwindcss-open-color

    Weekly Downloads

    7

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.69 kB

    Total Files

    8

    Last publish

    Collaborators

    • jonaskay