Skip to content

Commit c63c362

Browse files
committed
Fix variables colors
1 parent e4c56fe commit c63c362

File tree

1 file changed

+119
-119
lines changed

1 file changed

+119
-119
lines changed

src/client/lib/variables.ts

Lines changed: 119 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,135 @@
11
const spaceBaseSize = 8;
22

33
export const getSpace = (size: number) => {
4-
return spaceBaseSize * size;
4+
return spaceBaseSize * size;
55
};
66

77
export const Colors = {
8-
// question format
9-
formatDiscussion: "#4097DB", //blue60
10-
formatNotSet: "#bcbdbd", //gray40
11-
formatQuestion: "#f7a535", //yellow60
12-
formatDiscussionText: "#fff", //gray10
13-
formatNotSetText: "rgba(0, 0, 0, 0.87)", //highEmphasis
14-
formatQuestionText: "rgba(0, 0, 0, 0.87)", //highEmphasis
15-
16-
// subscribe action
17-
subscribeQuestion: "#5D707C",
18-
19-
// Gray
20-
gray0: "var(--color-gray-0)",
21-
gray5: "var(--color-gray-5)",
22-
gray10: "var(--color-gray-10)",
23-
gray20: "var(--color-gray-20)",
24-
gray30: "var(--color-gray-30)",
25-
gray40: "var(--color-gray-40)",
26-
gray50: "var(--color-gray-50)",
27-
gray60: "var(--color-gray-60)",
28-
gray70: "var(--color-gray-70)",
29-
gray80: "var(--color-gray-80)",
30-
gray90: "var(--color-gray-90)",
31-
gray100: "var(--color-gray-100)",
32-
gray110: "var(--color-gray-110)",
33-
34-
// Green
35-
green10: "var(--color-green-10)",
36-
green20: "var(--color-green-20)",
37-
green30: "var(--color-green-30)",
38-
green40: "var(--color-green-40)",
39-
green50: "var(--color-green-50)",
40-
green60: "var(--color-green-60)",
41-
green70: "var(--color-green-70)",
42-
green80: "var(--color-green-80)",
43-
green90: "var(--color-green-90)",
44-
green100: "var(--color-green-100)",
45-
green110: "var(--color-green-110)",
46-
47-
// Yellow
48-
yellow10: "var(--color-yellow-10)",
49-
yellow20: "var(--color-yellow-20)",
50-
yellow30: "var(--color-yellow-30)",
51-
yellow40: "var(--color-yellow-40)",
52-
yellow50: "var(--color-yellow-50)",
53-
yellow60: "var(--color-yellow-60)",
54-
yellow70: "var(--color-yellow-70)",
55-
yellow80: "var(--color-yellow-80)",
56-
yellow90: "var(--color-yellow-90)",
57-
yellow100: "var(--color-yellow-100)",
58-
yellow110: "var(--color-yellow-110)",
59-
60-
// Red
61-
red10: "var(--color-red-10)",
62-
red20: "var(--color-red-20)",
63-
red30: "var(--color-red-30)",
64-
red40: "var(--color-red-40)",
65-
red50: "var(--color-red-50)",
66-
red60: "var(--color-red-60)",
67-
red70: "var(--color-red-70)",
68-
red80: "var(--color-red-80)",
69-
red90: "var(--color-red-90)",
70-
red100: "var(--color-red-100)",
71-
red110: "var(--color-red-110)",
72-
73-
// Blue
74-
blue10: "var(--color-blue-10)",
75-
blue20: "var(--color-blue-20)",
76-
blue30: "var(--color-blue-30)",
77-
blue40: "var(--color-blue-40)",
78-
blue50: "var(--color-blue-50)",
79-
blue60: "var(--color-blue-60)",
80-
blue70: "var(--color-blue-70)",
81-
blue80: "var(--color-blue-80)",
82-
blue90: "var(--color-blue-90)",
83-
blue100: "var(--color-blue-100)",
84-
blue110: "var(--color-blue-110)",
85-
86-
// Base color
87-
background: "var(--color-background)",
88-
surface: "var(--color-surface)",
89-
surfaceVariant: "var(--color-surface-variant)",
90-
91-
// Divider
92-
divider: "var(--color-divider)",
93-
/** @deprecated use divider instead */
94-
onBackground: "rgba(255, 255, 255, 0.2)",
95-
/** @deprecated use divider instead */
96-
onSurface: "rgba(0, 0, 0, 0.12)",
97-
98-
// Text
99-
disabled: "var(--color-text-disabled)",
100-
mediumEmphasis: "var(--color-text-medium-emphasis)",
101-
highEmphasis: "var(--color-text-high-emphasis)",
102-
103-
// Scrim
104-
scrim: "var(--color-scrim)",
105-
/** @deprecated use scrim instead */
106-
scrimOnSurface: "rgba(0, 0, 0, 0.32)",
107-
108-
// Brand
109-
twitter: "#1d9Bf0",
110-
facebook: "#1877f2",
8+
// question format
9+
formatDiscussion: "#4097DB", //blue60
10+
formatNotSet: "#bcbdbd", //gray40
11+
formatQuestion: "#f7a535", //yellow60
12+
formatDiscussionText: "#fff", //gray10
13+
formatNotSetText: "rgba(0, 0, 0, 0.87)", //highEmphasis
14+
formatQuestionText: "rgba(0, 0, 0, 0.87)", //highEmphasis
15+
16+
// subscribe action
17+
subscribeQuestion: "#5D707C",
18+
19+
// Gray
20+
gray0: "var(--color-gray0)",
21+
gray5: "var(--color-gray5)",
22+
gray10: "var(--color-gray10)",
23+
gray20: "var(--color-gray20)",
24+
gray30: "var(--color-gray30)",
25+
gray40: "var(--color-gray40)",
26+
gray50: "var(--color-gray50)",
27+
gray60: "var(--color-gray60)",
28+
gray70: "var(--color-gray70)",
29+
gray80: "var(--color-gray80)",
30+
gray90: "var(--color-gray90)",
31+
gray100: "var(--color-gray100)",
32+
gray110: "var(--color-gray110)",
33+
34+
// Green
35+
green10: "var(--color-green10)",
36+
green20: "var(--color-green20)",
37+
green30: "var(--color-green30)",
38+
green40: "var(--color-green40)",
39+
green50: "var(--color-green50)",
40+
green60: "var(--color-green60)",
41+
green70: "var(--color-green70)",
42+
green80: "var(--color-green80)",
43+
green90: "var(--color-green90)",
44+
green100: "var(--color-green100)",
45+
green110: "var(--color-green110)",
46+
47+
// Yellow
48+
yellow10: "var(--color-yellow10)",
49+
yellow20: "var(--color-yellow20)",
50+
yellow30: "var(--color-yellow30)",
51+
yellow40: "var(--color-yellow40)",
52+
yellow50: "var(--color-yellow50)",
53+
yellow60: "var(--color-yellow60)",
54+
yellow70: "var(--color-yellow70)",
55+
yellow80: "var(--color-yellow80)",
56+
yellow90: "var(--color-yellow90)",
57+
yellow100: "var(--color-yellow100)",
58+
yellow110: "var(--color-yellow110)",
59+
60+
// Red
61+
red10: "var(--color-red10)",
62+
red20: "var(--color-red20)",
63+
red30: "var(--color-red30)",
64+
red40: "var(--color-red40)",
65+
red50: "var(--color-red50)",
66+
red60: "var(--color-red60)",
67+
red70: "var(--color-red70)",
68+
red80: "var(--color-red80)",
69+
red90: "var(--color-red90)",
70+
red100: "var(--color-red100)",
71+
red110: "var(--color-red110)",
72+
73+
// Blue
74+
blue10: "var(--color-blue10)",
75+
blue20: "var(--color-blue20)",
76+
blue30: "var(--color-blue30)",
77+
blue40: "var(--color-blue40)",
78+
blue50: "var(--color-blue50)",
79+
blue60: "var(--color-blue60)",
80+
blue70: "var(--color-blue70)",
81+
blue80: "var(--color-blue80)",
82+
blue90: "var(--color-blue90)",
83+
blue100: "var(--color-blue100)",
84+
blue110: "var(--color-blue110)",
85+
86+
// Base color
87+
background: "var(--color-background)",
88+
surface: "var(--color-surface)",
89+
surfaceVariant: "var(--color-surface-variant)",
90+
91+
// Divider
92+
divider: "var(--color-divider)",
93+
/** @deprecated use divider instead */
94+
onBackground: "rgba(255, 255, 255, 0.2)",
95+
/** @deprecated use divider instead */
96+
onSurface: "rgba(0, 0, 0, 0.12)",
97+
98+
// Text
99+
disabled: "var(--color-text-disabled)",
100+
mediumEmphasis: "var(--color-text-medium-emphasis)",
101+
highEmphasis: "var(--color-text-high-emphasis)",
102+
103+
// Scrim
104+
scrim: "var(--color-scrim)",
105+
/** @deprecated use scrim instead */
106+
scrimOnSurface: "rgba(0, 0, 0, 0.32)",
107+
108+
// Brand
109+
twitter: "#1d9Bf0",
110+
facebook: "#1877f2",
111111
} as const;
112112

113113
export const Typography = {
114-
headline1: "var(--font-size-headline-1)",
115-
headline2: "var(--font-size-headline-2)",
116-
subhead1: "var(--font-size-subhead-1)",
117-
subhead2: "var(--font-size-subhead-2)",
118-
body1: "var(--font-size-body-1)",
119-
body2: "var(--font-size-body-2)",
120-
body3: "var(--font-size-body-3)",
121-
overline: 10,
114+
headline1: "var(--font-size-headline-1)",
115+
headline2: "var(--font-size-headline-2)",
116+
subhead1: "var(--font-size-subhead-1)",
117+
subhead2: "var(--font-size-subhead-2)",
118+
body1: "var(--font-size-body-1)",
119+
body2: "var(--font-size-body-2)",
120+
body3: "var(--font-size-body-3)",
121+
overline: 10,
122122
} as const;
123123

124124
export const LineHeight = {
125-
headline: "var(--line-height-headline)",
126-
subhead: "var(--line-height-subhead)",
127-
subheadDense: "var(--line-height-subhead-dense)",
128-
body: "var(--line-height-body)",
129-
bodyDense: "var(--line-height-body-dense)",
125+
headline: "var(--line-height-headline)",
126+
subhead: "var(--line-height-subhead)",
127+
subheadDense: "var(--line-height-subhead-dense)",
128+
body: "var(--line-height-body)",
129+
bodyDense: "var(--line-height-body-dense)",
130130
} as const;
131131

132132
export const Weight = {
133-
normal: 400,
134-
bold: 600,
133+
normal: 400,
134+
bold: 600,
135135
} as const;

0 commit comments

Comments
 (0)