@byzanteam/jet-theme
v0.3.0
Published
## Install
Downloads
55
Readme
jet-theme
Install
pnpm add @byzanteam/jet-theme -D
Usage
set custom colors
// tailwindcss.config.ts
import { colors } from '@byzanteam/jet-theme'
const config: Config = {
theme: {
extend: {
colors: colors({
customColor: '#000',
red: {
200: '#000', // set custom color cover our base color
},
}),
},
},
}
custom operation for colors
we provide a function to set the alias, and you can custom yourself action
// tailwindcss.config.ts
import { colors, getAliasTransformer } from '@byzanteam/jet-theme'
const config: Config = {
theme: {
extend: {
colors: colors(null, [
getAliasTransformer({
'blue-modern': 'primary',
'red-modern': ['error', 'fire'],
'yellow-modern': 'warning',
orange: {
'600': ['warning-600'],
},
}),
setAliasedColors => {
// your custom action
return setAliasedColors
},
]),
},
},
}