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;
}Installation
Node
npm install tailwindcss-colors-css-variablesBrowser
<link
rel="stylesheet"
href="https://unpkg.com/tailwindcss-colors-css-variables"
/>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 informationFull palette
