Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 515abf2

Browse files
committed
Colors: Initial pass on Chassis palette for component use.
Closes gh-140
1 parent 7ebf328 commit 515abf2

File tree

1 file changed

+66
-34
lines changed

1 file changed

+66
-34
lines changed

scss/variables/colors.js

+66-34
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,74 @@
88
}
99
}( this, function( chassis ) {
1010

11-
var colors = {
12-
"chassis-gray-dark": {
13-
"value": "#383838",
14-
"name": "Chassis Gray - Dark"
15-
},
16-
"chassis-gray": {
17-
"value": "#c1c1c1",
18-
"name": "Chassis Gray"
19-
},
20-
"chassis-gray-light": {
21-
"value": "#f2f2f2",
22-
"name": "Chassis Gray - Light"
23-
},
24-
"chassis-blue-dark": {
25-
"value": "#388695",
26-
"name": "Chassis Blue - Dark"
11+
chassis.colors = {
12+
"default": {
13+
name: "Default Colors",
14+
value: {
15+
"base": "#FAFAFA",
16+
"light": "#FFFFFF",
17+
"dark": "#FAFAFA",
18+
"darker": "#F5F5F5"
19+
}
2720
},
28-
"chassis-blue": {
29-
"value": "#4fc0c8",
30-
"name": "Chassis Blue"
21+
"primary": {
22+
name: "Primary Colors",
23+
value: {
24+
"base": "#3F51B5",
25+
"light": "#5C6BC0",
26+
"dark": "#3949AB",
27+
"darker": "#303F9F"
28+
}
3129
},
32-
"chassis-yellow": {
33-
"value": "#fadf51",
34-
"name": "Chassis Yellow"
35-
}
36-
};
37-
chassis.colors = {
38-
"background": colors[ "chassis-gray-dark" ],
39-
"font": colors[ "chassis-gray-dark" ],
40-
"link": colors[ "chassis-blue-dark" ],
41-
"button": colors[ "chassis-blue" ],
42-
"buttonText": colors[ "chassis-gray-light" ],
43-
"blockquoteBorder": {
44-
name: "Chassis - Blockquote color",
45-
value: "#eee"
46-
}
30+
"success": {
31+
name: "Success Colors",
32+
value: {
33+
"base": "#43A047",
34+
"light": "#4CAF50",
35+
"dark": "#388E3C",
36+
"darker": "#2E7D32"
37+
}
38+
},
39+
"warning": {
40+
name: "Warning Colors",
41+
value: {
42+
"base": "#FF5722",
43+
"light": "#FF7043",
44+
"dark": "#F4511E",
45+
"darker": "#E64A19"
46+
}
47+
},
48+
"info": {
49+
name: "Info Colors",
50+
value: {
51+
"base": "#039BE5",
52+
"light": "#03A9F4",
53+
"dark": "#0288D1",
54+
"darker": "#0277BD"
55+
}
56+
},
57+
"error": {
58+
name: "Error Colors",
59+
value: {
60+
"base": "#F44336",
61+
"light": "#EF5350",
62+
"dark": "#E53935",
63+
"darker": "#D32F2F"
64+
}
65+
},
66+
"text": {
67+
name: "Text Colors",
68+
value: {
69+
"base": "#212121",
70+
"light": "#727272"
71+
}
72+
},
73+
"background": {
74+
name: "Background Colors",
75+
value: {
76+
"base": "#fff"
77+
}
78+
}
4779
};
4880
return chassis;
4981
} ) );

0 commit comments

Comments
 (0)