0.2.0 • Published 3 years ago

@flame-ui/theme v0.2.0

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

flame-ui theme

flame-ui theme package

Install

yarn add @flame-ui/theme

// or using mpm

npm i @flame-ui/theme

Usage

import { createTheme } from '@flame-ui/theme'

const { theme } = createTheme({
  colors: {
    primary: '#1440FF',
    background: '#FFFFFF',
  },
  fonts: {
    primary: '"OpenSans", sans-serif',
    heading: '"Roboto", sans-serif',
  },
})

Theme Object

KeyTypeExample
colors{string: string}{ lightgray: '#EAEAEA' }
spacenumber[]0, 4, 8, 16, 24, 32, 40
shadowsstring[]'0px 4px 8px 0px #00000005'
fonts{string: string}{ primary: '"OpenSans", sans-serif' }
fontsSizes{string: string}{ small: '16px', body: '18px' }
bordersstring[]'1px solid', '2px solid'
breakpoints{string: string}{ xl: '1192px', lg: '1024px', sm: '768px' }