0.0.5 • Published 11 months ago

@timephy/tui-colors-tw v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

tui-colors-tw

This is a tailwind plugin that adds a selection of colors.

There are automatic or manual light and dark mode variants.

  • CSS Variables --COLOR-XXX, --COLOR-XXX-light, --COLOR-XXX-dark (+ ...-value)
  • Tailwind Colors COLOR-XXX, COLOR-XXX-light, COLOR-XXX-dark

How to install

npm install @timephy/tui-colors-tw

Add it to your tailwind.config.js:

import tui_colors from "@timephy/tui-colors-tw"

/** @type {import('tailwindcss').Config} */
module.exports = {
    ...
    darkMode: "class", // supports "media" (default) and "class"
    ...
    plugins: [
        tui_colors({}),
        ...
    ],
}

List of colors

black
white

primary (black in light mode, white in dark mode)
secondary (step-700)
tertiary (step-500)

step-base
step-000 to step-900

[COLOR-000 to COLOR-250]
red
orange
yellow
green
mint
teal
cyan
blue
indigo
purple
pink
brown
gray

Colors are originally inspired by Apple Design Color.

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

1 year ago

0.0.1

1 year ago