-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
g100.js
208 lines (174 loc) · 3.88 KB
/
g100.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/**
* Copyright IBM Corp. 2018, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { adjustLightness } from './tools';
import {
// Blue
blue30,
blue40,
blue50,
blue60,
blue80,
// Gray
gray10,
gray30,
gray50,
gray60,
gray70,
gray80,
gray90,
gray100,
// Support
green40,
green50,
yellow,
red40,
red50,
red60,
red80,
purple40,
// Constants
white,
// Tools
rgba,
} from '@carbon/colors';
export const interactive01 = blue60;
export const interactive02 = gray60;
export const interactive03 = white;
export const interactive04 = blue50;
export const uiBackground = gray100;
export const ui01 = gray90;
export const ui02 = gray80;
export const ui03 = gray80;
export const ui04 = gray60;
export const ui05 = gray10;
export const text01 = gray10;
export const text02 = gray30;
export const text03 = gray60;
export const text04 = white;
export const text05 = gray50;
export const textError = red40;
export const icon01 = gray10;
export const icon02 = gray30;
export const icon03 = white;
export const link01 = blue40;
export const inverseLink = blue60;
export const field01 = gray90;
export const field02 = gray80;
export const inverse01 = gray100;
export const inverse02 = gray10;
export const support01 = red50;
export const support02 = green40;
export const support03 = yellow;
export const support04 = blue50;
export const inverseSupport01 = red60;
export const inverseSupport02 = green50;
export const inverseSupport03 = yellow;
export const inverseSupport04 = blue60;
export const overlay01 = rgba(gray100, 0.7);
export const danger = red60;
// Interaction states
export const focus = white;
export const inverseFocusUi = blue60;
export const hoverPrimary = '#0353e9';
export const activePrimary = blue80;
export const hoverPrimaryText = blue30;
export const hoverSecondary = '#606060';
export const activeSecondary = gray80;
export const hoverTertiary = gray10;
export const activeTertiary = gray30;
export const hoverUI = '#353535';
export const activeUI = gray70;
export const selectedUI = gray80;
export const inverseHoverUI = '#e5e5e5';
export const hoverSelectedUI = '#4c4c4c';
export const hoverDanger = adjustLightness(danger, -8);
export const activeDanger = red80;
export const hoverRow = '#353535';
export const visitedLink = purple40;
export const disabled01 = gray90;
export const disabled02 = gray70;
export const disabled03 = gray50;
export const highlight = blue80;
export const decorative01 = gray70;
export const skeleton01 = '#353535';
export const skeleton02 = gray80;
export {
// Type
caption01,
label01,
helperText01,
bodyShort01,
bodyLong01,
bodyShort02,
bodyLong02,
code01,
code02,
heading01,
productiveHeading01,
heading02,
productiveHeading02,
productiveHeading03,
productiveHeading04,
productiveHeading05,
productiveHeading06,
productiveHeading07,
expressiveHeading01,
expressiveHeading02,
expressiveHeading03,
expressiveHeading04,
expressiveHeading05,
expressiveHeading06,
expressiveParagraph01,
quotation01,
quotation02,
display01,
display02,
display03,
display04,
// Layout
// Spacing
spacing01,
spacing02,
spacing03,
spacing04,
spacing05,
spacing06,
spacing07,
spacing08,
spacing09,
spacing10,
spacing11,
spacing12,
// Fluid spacing
fluidSpacing01,
fluidSpacing02,
fluidSpacing03,
fluidSpacing04,
// Layout
layout01,
layout02,
layout03,
layout04,
layout05,
layout06,
layout07,
// Containers
container01,
container02,
container03,
container04,
container05,
// Icon sizes
iconSize01,
iconSize02,
} from './white';
// Deprecated ☠️
export const brand01 = interactive01;
export const brand02 = interactive02;
export const brand03 = interactive03;
export const active01 = activeUI;
export const hoverField = hoverUI;