Add API to manually change color mode
ai opened this issue · comments
Andrey Sitnik commented
PostCSS, Logux Server and some other Nano Colors users have own options to change colors.
Can we have a way to manually change support mode like:
import { createColor } from 'picocolors'
let { red } = createColor(options.color)
Or:
import { setColors, isColorSupported } from 'picocolors'
setColors(options.color ?? isColorSupported)