1
1
/** @type {import('tailwindcss').Config } */
2
2
3
- import defaultTheme from 'tailwindcss/defaultTheme.js' ;
4
-
5
3
const colors = {
6
- primary : '#006798' ,
7
- hover : '#0082BF' ,
8
- attention : '#D00A0A' ,
9
- success : '#00B24E' ,
10
- negative : '#D00A6C' ,
11
- 'stage-desk-review' : '#9B6FF8' ,
12
- 'stage-in-review' : '#E08914' ,
13
- 'stage-in-internal-review' : '#42427F' ,
14
- 'stage-copyediting' : '#F66AAF' ,
15
- 'stage-production' : '#4AC7E2' ,
16
- 'stage-scheduled-for-publishing' : '#DED15D' ,
17
- 'stage-incomplete-submission' : '#777777' ,
18
- 'stage-published' : '#00B24E' ,
19
- 'stage-declined' : '#D00A0A' ,
20
- 'profile-1' : '#AB7D94' ,
21
- 'profile-2' : '#598D70' ,
22
- 'profile-3' : '#9B7CDC' ,
23
- 'profile-4' : '#89AAE0' ,
24
- 'profile-5' : '#EBDA68' ,
25
- 'profile-6' : '#BD726C' ,
26
- transparent : 'transparent' ,
4
+ primary : 'var(--color-primary)' ,
5
+ hover : 'var(--color-hover)' ,
6
+ attention : 'var(--color-attention)' ,
7
+ success : 'var(--color-success)' ,
8
+ negative : 'var(--color-negative)' ,
9
+ 'stage-desk-review' : 'var(--color-stage-desk-review)' ,
10
+ 'stage-in-review' : 'var(--color-stage-in-review)' ,
11
+ 'stage-in-internal-review' : 'var(--color-stage-in-internal-review)' ,
12
+ 'stage-copyediting' : 'var(--color-stage-copyediting)' ,
13
+ 'stage-production' : 'var(--color-stage-production)' ,
14
+ 'stage-scheduled-for-publishing' :
15
+ 'var(--color-stage-scheduled-for-publishing)' ,
16
+ 'stage-incomplete-submission' : 'var(--color-stage-incomplete-submission)' ,
17
+ 'stage-published' : 'var(--color-stage-published)' ,
18
+ 'stage-declined' : 'var(--color-stage-declined)' ,
19
+ 'profile-1' : 'var(--color-profile-1)' ,
20
+ 'profile-2' : 'var(--color-profile-2)' ,
21
+ 'profile-3' : 'var(--color-profile-3)' ,
22
+ 'profile-4' : 'var(--color-profile-4)' ,
23
+ 'profile-5' : 'var(--color-profile-5)' ,
24
+ 'profile-6' : 'var(--color-profile-6)' ,
25
+ transparent : 'var(--color-transparent)' ,
27
26
} ;
28
27
29
28
export default {
@@ -37,161 +36,161 @@ export default {
37
36
theme : {
38
37
backgroundColor : {
39
38
...colors ,
40
- default : '#EAEDEE ' ,
41
- secondary : '#FFFFFF ' ,
42
- tertiary : 'rgba(234, 237, 238, 0.3 )' ,
43
- blur : 'rgba(0,0,0,0.5 )' ,
44
- 'selection-light' : '#D5E9F2 ' ,
45
- 'selection-dark' : '#002C40 ' ,
46
- disabled : 'rgba(28, 27, 31, 0.1 )' ,
39
+ default : 'var(--background-color-default) ' ,
40
+ secondary : 'var(--background-color-secondary) ' ,
41
+ tertiary : 'var(--background-color-tertiary )' ,
42
+ blur : 'var(--background-color-blur )' ,
43
+ 'selection-light' : 'var(--background-color-selection-light) ' ,
44
+ 'selection-dark' : 'var(--background-color-selection-dark) ' ,
45
+ disabled : 'var(--background-color-disabled )' ,
47
46
} ,
48
47
textColor : {
49
48
...colors ,
50
- default : '#222222 ' ,
51
- secondary : '#505050 ' ,
52
- heading : '#01354F ' ,
53
- disabled : '#4E4F4F ' ,
54
- 'on-dark' : '#FFFFFF ' ,
49
+ default : 'var(--text-color-default) ' ,
50
+ secondary : 'var(--text-color-secondary) ' ,
51
+ heading : 'var(--text-color-heading) ' ,
52
+ disabled : 'var(--text-color-disabled) ' ,
53
+ 'on-dark' : 'var(--text-color-on-dark) ' ,
55
54
} ,
56
55
borderColor : {
57
56
...colors ,
58
- dark : '#696969 ' ,
59
- light : '#BBBBBB ' ,
60
- 'form-fields' : '#777777 ' ,
61
- transparent : 'transparent' ,
57
+ dark : 'var(--border-color-dark) ' ,
58
+ light : 'var(--border-color-light) ' ,
59
+ 'form-fields' : 'var(--border-color-form-fields) ' ,
60
+ transparent : 'var(--border-color- transparent) ' ,
62
61
} ,
63
62
borderRadius : {
64
- DEFAULT : '4px ' ,
65
- full : '9999px ' ,
63
+ DEFAULT : 'var(--radius) ' ,
64
+ full : 'var(--radius-full) ' ,
66
65
} ,
67
66
boxShadow : {
68
- DEFAULT : '0 0 4px rgba(0, 0, 0, 0.5); ' ,
67
+ DEFAULT : 'var(--shadow) ' ,
69
68
} ,
70
69
colors : {
71
70
...colors ,
72
71
} ,
73
72
fontFamily : {
74
73
// this sets default font
75
- sans : [ '"Noto Sans"' , ... defaultTheme . fontFamily . sans ] ,
74
+ sans : 'var(--font- sans)' ,
76
75
} ,
77
76
fontSize : {
78
77
'xs-normal' : [
79
- '0.625rem ' /** 10px */ ,
78
+ 'var(--text-xs-normal) ' /** 10px */ ,
80
79
{
81
- lineHeight : '0.75rem ' ,
82
- fontWeight : '400 ' ,
80
+ lineHeight : 'var(--text-xs-normal--line-height) ' ,
81
+ fontWeight : 'var(--text-xs-normal--font-weight) ' ,
83
82
} ,
84
83
] ,
85
84
'sm-light' : [
86
- '0.6875rem ' /** 11px */ ,
85
+ 'var(--text-sm-light) ' /** 11px */ ,
87
86
{
88
- lineHeight : '0.875rem ' ,
89
- fontWeight : '300 ' ,
87
+ lineHeight : 'var(--text-sm-light--line-height) ' ,
88
+ fontWeight : 'var(--text-sm-light--font-weight) ' ,
90
89
} ,
91
90
] ,
92
91
'sm-normal' : [
93
- '0.6875rem ' /** 11px */ ,
92
+ 'var(--text-sm-normal) ' /** 11px */ ,
94
93
{
95
- lineHeight : '0.875rem ' ,
96
- fontWeight : '400 ' ,
94
+ lineHeight : 'var(--text-sm-normal--line-height) ' ,
95
+ fontWeight : 'var(--text-sm-normal-font-weight) ' ,
97
96
} ,
98
97
] ,
99
98
'base-light' : [
100
- '0.75rem ' /** 12px */ ,
99
+ 'var(--text-base-light) ' /** 12px */ ,
101
100
{
102
- lineHeight : '1rem ' ,
103
- fontWeight : '300 ' ,
101
+ lineHeight : 'var(--text-base-light--line-height) ' ,
102
+ fontWeight : 'var(--text-base-light--font-weight) ' ,
104
103
} ,
105
104
] ,
106
105
'base-normal' : [
107
- '0.75rem ' /** 12px */ ,
106
+ 'var(--text-base-normal) ' /** 12px */ ,
108
107
{
109
- lineHeight : '1rem ' ,
110
- fontWeight : '400 ' ,
108
+ lineHeight : 'var(--text-base-normal--line-height) ' ,
109
+ fontWeight : 'var(--text-base-normal--font-weight) ' ,
111
110
} ,
112
111
] ,
113
112
'base-bold' : [
114
- '0.75rem ' /** 12px */ ,
113
+ 'var(--text-base-bold) ' /** 12px */ ,
115
114
{
116
- lineHeight : '1rem ' ,
117
- fontWeight : '700 ' ,
115
+ lineHeight : 'var(--text-base-bold--line-height) ' ,
116
+ fontWeight : 'var(--text-base-bold--font-weight) ' ,
118
117
} ,
119
118
] ,
120
119
'lg-normal' : [
121
- '0.875rem ' /** 14px */ ,
120
+ 'var(--text-lg-normal) ' /** 14px */ ,
122
121
{
123
- lineHeight : '1.25rem ' ,
124
- fontWeight : '400 ' ,
122
+ lineHeight : 'var(--text-lg-normal--line-height) ' ,
123
+ fontWeight : 'var(--text-lg-normal--font-weight) ' ,
125
124
} ,
126
125
] ,
127
126
'lg-medium' : [
128
- '0.875rem ' /** 14px */ ,
127
+ 'var(--text-lg-medium) ' /** 14px */ ,
129
128
{
130
- lineHeight : '1.25rem ' ,
131
- fontWeight : '500 ' ,
129
+ lineHeight : 'var(--text-lg-medium--line-height) ' ,
130
+ fontWeight : 'var(--text-lg-medium--font-weight) ' ,
132
131
} ,
133
132
] ,
134
133
'lg-semibold' : [
135
- '0.875rem ' /** 14px */ ,
134
+ 'var(--text-lg-semibold) ' /** 14px */ ,
136
135
{
137
- lineHeight : '1.25rem ' ,
138
- fontWeight : '600 ' ,
136
+ lineHeight : 'var(--text-lg-semibold--line-height) ' ,
137
+ fontWeight : 'var(--text-lg-semibold--font-weight) ' ,
139
138
} ,
140
139
] ,
141
140
'lg-bold' : [
142
- '0.875rem ' /** 14px */ ,
141
+ 'var(--text-lg-bold) ' /** 14px */ ,
143
142
{
144
- lineHeight : '1.25rem ' ,
145
- fontWeight : '700 ' ,
143
+ lineHeight : 'var(--text-lg-bold--line-height) ' ,
144
+ fontWeight : 'var(--text-lg-bold--font-weight) ' ,
146
145
} ,
147
146
] ,
148
147
'xl-bold' : [
149
- '1rem ' /** 16px */ ,
148
+ 'var(--text-xl-bold) ' /** 16px */ ,
150
149
{
151
- lineHeight : '1.5rem ' ,
152
- fontWeight : '700 ' ,
150
+ lineHeight : 'var(--text-xl-bold--line-height) ' ,
151
+ fontWeight : 'var(--text-xl-bold--font-weight) ' ,
153
152
} ,
154
153
] ,
155
154
'2xl-bold' : [
156
- '1.125rem ' /** 18px */ ,
155
+ 'var(--text-2xl-bold) ' /** 18px */ ,
157
156
{
158
- lineHeight : '1.75rem ' ,
159
- fontWeight : '700 ' ,
157
+ lineHeight : 'var(--text-2xl-bold--line-height) ' ,
158
+ fontWeight : 'var(--text-2xl-bold--font-weight) ' ,
160
159
} ,
161
160
] ,
162
161
'3xl-normal' : [
163
- '1.25rem ' /** 20px */ ,
162
+ 'var(--text-3xl-normal) ' /** 20px */ ,
164
163
{
165
- lineHeight : '1.75rem ' ,
166
- fontWeight : '400 ' ,
164
+ lineHeight : 'var(--text-3xl-normal--line-height) ' ,
165
+ fontWeight : 'var(--text-3xl-normal--font-weight) ' ,
167
166
} ,
168
167
] ,
169
168
'3xl-medium' : [
170
- '1.25rem ' /** 20px */ ,
169
+ 'var(--text-3xl-medium) ' /** 20px */ ,
171
170
{
172
- lineHeight : '1.75rem ' ,
173
- fontWeight : '500 ' ,
171
+ lineHeight : 'var(--text-3xl-medium--line-height) ' ,
172
+ fontWeight : 'var(--text-3xl-medium--font-weight) ' ,
174
173
} ,
175
174
] ,
176
175
'3xl-bold' : [
177
- '1.25rem ' /** 20px */ ,
176
+ 'var(--text-3xl-bold) ' /** 20px */ ,
178
177
{
179
- lineHeight : '1.75rem ' ,
180
- fontWeight : '700 ' ,
178
+ lineHeight : 'var(--text-3xl-bold--line-height) ' ,
179
+ fontWeight : 'var(--text-3xl-bold--font-weight) ' ,
181
180
} ,
182
181
] ,
183
182
'4xl-bold' : [
184
- '1.5rem ' /** 24px */ ,
183
+ 'var(--text-4xl-bold) ' /** 24px */ ,
185
184
{
186
- lineHeight : '2rem ' ,
187
- fontWeight : '700 ' ,
185
+ lineHeight : 'var(--text-4xl-bold--line-height) ' ,
186
+ fontWeight : 'var(--text-4xl-bold--font-weight) ' ,
188
187
} ,
189
188
] ,
190
189
'5xl-bold' : [
191
- '2.25rem ' /** 36px */ ,
190
+ 'var(--text-5xl-bold) ' /** 36px */ ,
192
191
{
193
- lineHeight : '2.5rem ' ,
194
- fontWeight : '700 ' ,
192
+ lineHeight : 'var(--text-5xl-bold--line-height) ' ,
193
+ fontWeight : 'var(--text-5xl-bold--font-weight) ' ,
195
194
} ,
196
195
] ,
197
196
} ,
0 commit comments