Add JS CSS variables

This commit is contained in:
Adolfo Panizo 2018-03-05 09:36:33 +01:00
parent 03daec796d
commit e8cd758ca9
2 changed files with 10 additions and 2 deletions

View File

@ -1,12 +1,13 @@
import red from 'material-ui/colors/red';
import { createMuiTheme } from 'material-ui/styles'
import { primary, secondary } from './variables'
const palette = {
primary: {
main: '#1798cc',
main: primary,
},
secondary: {
main: '#6b7c93',
main: secondary,
},
error: red,
contrastThreshold: 3,

7
src/theme/variables.js Normal file
View File

@ -0,0 +1,7 @@
var primary = '#1798cc'
var secondary = '#6b7c93'
module.exports = Object.assign({}, {
primary,
secondary,
});