0.3.0 • Published 3 years ago

@amendable/colors v0.3.0

Weekly downloads
105
License
MIT
Repository
github
Last release
3 years ago

Colors

Colors converter is helpful when you want to define app-wide color theme and reuse them easily.

Usage

import { render } from 'react-dom'
import Box, { AmendableProvider } from '@amendable/core'
import colors from '@amendable/colors'
import inlineStyles from '@amendable/inline-styles'

render(
  <AmendableProvider
    resolvers={[
      colors({ colors: { primary: '#0055ff', red: '#F5BCCF' } }),
      inlineStyles(),
    ]}
  >
    <Box color='primary' backgroundColor='red'>
      Primary color
    </Box>
  </AmendableProvider>
)

Note

You can both create your own color names or redefine existing CSS colors (like red, blue, etc.)

Supported props

color
backgroundColor
borderColor
// ...and anything else that matches /color/i
0.3.0

3 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago