@rsksmart/rif-ui
Version:
Exposes common components to be re used in RIF projects
106 lines (100 loc) • 1.85 kB
text/typescript
import { createMuiTheme } from '@material-ui/core/styles'
import '../assets/css/fonts/rubik.css'
export const colors = {
black: '#000000',
primary: '#008FF7',
darkBlue: '#197DC6',
gray1: '#F8F7F7',
gray2: '#E5E5E5',
gray3: '#C4C4C4',
gray4: '#919191',
gray5: '#4D4C4C',
gray6: '#15171B',
transparent: '#FFFFFF00',
white: '#FFFFFF',
}
export const fonts = {
family: 'Rubik',
size: {
tiny: 10,
small: 12,
normal: 14,
medium: 16,
subtitleSmall: 18,
subtitleBig: 22,
},
weight: {
light: 300,
regular: 400,
medium: 500,
bold: 700,
},
}
export const globalConstants = {
headerHeight: 8,
}
const theme = createMuiTheme({
palette: {
primary: {
main: colors.primary,
},
secondary: {
main: colors.gray4,
},
},
typography: {
fontFamily: fonts.family,
button: {
textTransform: 'none',
},
fontWeightLight: fonts.weight.light,
fontWeightRegular: fonts.weight.regular,
fontWeightMedium: fonts.weight.medium,
fontWeightBold: fonts.weight.bold,
body1: {
fontWeight: fonts.weight.light,
},
},
props: {},
overrides: {
MuiButton: {
root: {
fontWeight: fonts.weight.light,
},
},
MuiFormControlLabel: {
root: {
color: colors.gray3,
},
},
MuiSlider: {
rail: {
color: colors.gray3,
height: 4,
opacity: 1,
},
root: {
width: '100%',
color: colors.primary,
height: 4,
},
track: {
height: 4,
},
thumb: {
marginLeft: -4,
height: 14,
width: 14,
},
},
MuiTextField: {
root: {
color: colors.gray3,
'&:hover': {
color: colors.gray2,
},
},
},
},
})
export default theme