To import MUI colors into your project first install the MUI package with Bower:
$ bower install mui
Then import the MUI SASS `colors` file into your project:
@import "bower_components/mui/src/sass/mui/colors";
body {
background-color: mui-color('purple', '700');
}
The `colors` file defines mui-color() function which accepts two arguments and returns the hex value of the color:
name
- Color name (e.g. "red", "blue-grey")shade
- Color shade (e.g. "600", "A100") [Default: "500"]mui-color('red'[, shade])
#F44336
mui-color('pink'[, shade])
#E91E63
mui-color('purple'[, shade])
#9C27B0
mui-color('deep-purple'[, shade])
#673AB7
mui-color('indigo'[, shade])
#3F51B5
mui-color('blue'[, shade])
#2196F3
mui-color('light-blue'[, shade])
#03A9F4
mui-color('cyan'[, shade])
#00BCD4
mui-color('teal'[, shade])
#009688
mui-color('green'[, shade])
#4CAF50
mui-color('light-green'[, shade])
#8BC34A
mui-color('lime'[, shade])
#CDDC39
mui-color('yellow'[, shade])
#FFEB3B
mui-color('amber'[, shade])
#FFC107
mui-color('orange'[, shade])
#FF9800
mui-color('deep-orange'[, shade])
#FF5722
mui-color('brown'[, shade])
#795548
mui-color('grey'[, shade])
#9E9E9E
mui-color('blue-grey'[, shade])
#607D8B
mui-color('black')
#000000
mui-color('black-alpha-12')
12%
mui-color('black-alpha-38')
38%
mui-color('black-alpha-54')
54%
mui-color('black-alpha-87')
87%
mui-color('white')
#FFFFFF
mui-color('white-alpha-12')
12%
mui-color('white-alpha-30')
30%
mui-color('white-alpha-70')
70%