React primitive UI components built with styled-components.
npm i ui-cubic
or
yarn add ui-cubic
Note: For now, You have to wrap your main Component with CubeThemeProvider
import React from 'react'
import {Button, CubeThemeProvider} from 'ui-cubic'
export default props =>
<CubeThemeProvider>
<Button>UI-Cubic</Button>
</CubeThemeProvider>
By proving theme props ypu can customize styling
import React from 'react'
import {Button, CubeThemeProvider} from 'ui-cubic'
const theme = {
shadows: {
sm: '',
md: '',
lg: ''
},
palette: {
primary: {
main: '',
light: '',
dark: '',
hover: '',
active: '',
focus: ''
},
secondary: {
main: '',
light: '',
dark: '',
hover: '',
active: '',
focus: ''
},
danger: {
main: '',
light: '',
dark: '',
hover: '',
active: '',
focus: ''
}
},
borderRadius: {
md: '',
sm: '',
lg: ''
},
input: {
colors: {
background: '',
hover: '',
label: '',
placeholder: '',
border: ''
}
}
}
export default props =>
<CubeThemeProvider theme={theme}>
<Button>UI-Cubic</Button>
</CubeThemeProvider>
UI-Cubic is built with the following principles in mind.
- Minimal
- Useful
- Themeable