JSPM

tailwindcss-colors-css-variables

1.1.2-rc.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 65
  • Score
    100M100P100Q71544F
  • License MIT

Tailwind CSS color palette as CSS variables

Package Exports

  • tailwindcss-colors-css-variables

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tailwindcss-colors-css-variables) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tailwindcss-colors-css-variables

The default color palette from Tailwind CSS as CSS custom properties (CSS variables).

css/tailwindcss-colors.css:

:root {
  --tw-color-transparent: transparent;
  --tw-color-black: #000;
  --tw-color-white: #fff;
  --tw-color-gray-100: #f7fafc;
  --tw-color-gray-200: #edf2f7;
  /* ... */
  --tw-color-pink-800: #97266d;
  --tw-color-pink-900: #702459;
}

CLI usage

$ ./src/cli.js --help
Usage: cli [options]

Options:
  -o, --outFile <file>   output file (default: "css/tailwindcss-colors.css")
  -p, --prefix <string>  variable name prefix (default: "tw-color-")
  -h, --help             output usage information

Full palette

Color palette