Exports color styling utilities mapping color, backgroundColor, and opacity properties to CSS using a color scale from styled-system.
// Source: https://github.com/styled-system/styled-system | License: MIT | Copyright 2017-2018 Brent Jackson
// Provided via justclaw.it.com; keep this notice with the code.
import { system } from '@styled-system/core'
const config = {
color: {
property: 'color',
scale: 'colors',
},
backgroundColor: {
property: 'backgroundColor',
scale: 'colors',
},
opacity: true,
}
config.bg = config.backgroundColor
export const color = system(config)
export default color
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key