0.0.3 • Published 3 years ago
@rosebox/colors v0.0.3
@rosebox/colors
A package to manipulate colors from @rosebox/core
. Built on top of the color
package
Example
import { rgb, RBStyle } from '@rosebox/core'
import { lighten, darken } from '@rosebox/colors'
const baseBgColor = rgb(255, 255, 255)
const StyleObject: RBStyle = {
backgroundColor: lighten(baseBgColor, 0.5)
}
const StyleObject2: RBStyle = {
backgroundColor: darken(baseBgColor, 0.5)
}