tailwindcss-universal-colors
v1.1.1
Published
universal color palette for tailwindcss
Downloads
8
Maintainers
Readme
tailwindcss-universal-colors
universal color palette for tailwindcss
install
# npm
npm install tailwindcss-universal-colors -D
# yarn
yarn add tailwindcss-universal-colors -D
# pnpm
pnpm add tailwindcss-universal-colors -D
usage
use as extended colors
// tailwind.config.mjs
import universalColors from 'tailwindcss-universal-colors';
export default {
theme: {
extend: {
colors: {
...universalColors,
},
},
},
// ...
};
getColors
helps get color value
import { getColors } from 'tailwindcss-universal-colors';
getColors('gray.0'); // #F8FAFB