-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathtokens.js
98 lines (88 loc) · 2.13 KB
/
tokens.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
import {
red10,
gray80,
gray90,
green10,
blue10,
yellow10,
white0,
} from '@carbon/colors';
import {
textInverse as textInverseWhite,
textOnColorDisabled as textOnColorDisabledWhite,
} from '../../white';
import {
textInverse as textInverseG10,
textOnColorDisabled as textOnColorDisabledG10,
} from '../../g10';
import {
textInverse as textInverseG90,
textOnColorDisabled as textOnColorDisabledG90,
} from '../../g90';
import {
textInverse as textInverseG100,
textOnColorDisabled as textOnColorDisabledG100,
} from '../../g100';
import {
buttonTertiaryActive,
buttonTertiaryHover,
buttonTertiary,
} from '../button/tokens';
export const notificationBackgroundError = {
whiteTheme: red10,
g10: red10,
g90: gray80,
g100: gray90,
};
export const notificationBackgroundSuccess = {
whiteTheme: green10,
g10: green10,
g90: gray80,
g100: gray90,
};
export const notificationBackgroundInfo = {
whiteTheme: blue10,
g10: blue10,
g90: gray80,
g100: gray90,
};
export const notificationBackgroundWarning = {
whiteTheme: yellow10,
g10: yellow10,
g90: gray80,
g100: gray90,
};
export const notificationActionHover = {
whiteTheme: white0,
g10: white0,
};
export const notificationActionTertiaryInverse = {
whiteTheme: buttonTertiary.g100,
g10: buttonTertiary.g90,
g90: buttonTertiary.g10,
g100: buttonTertiary.whiteTheme,
};
export const notificationActionTertiaryInverseActive = {
whiteTheme: buttonTertiaryActive.g100,
g10: buttonTertiaryActive.g90,
g90: buttonTertiaryActive.g10,
g100: buttonTertiaryActive.whiteTheme,
};
export const notificationActionTertiaryInverseHover = {
whiteTheme: buttonTertiaryHover.g100,
g10: buttonTertiaryHover.g90,
g90: buttonTertiaryHover.g10,
g100: buttonTertiaryHover.whiteTheme,
};
export const notificationActionTertiaryInverseText = {
whiteTheme: textInverseG100,
g10: textInverseG90,
g90: textInverseG10,
g100: textInverseWhite,
};
export const notificationActionTertiaryInverseTextOnColorDisabled = {
whiteTheme: textOnColorDisabledG100,
g10: textOnColorDisabledG90,
g90: textOnColorDisabledG10,
g100: textOnColorDisabledWhite,
};