1
- import { lighten , darken , tint } from 'polished' ;
1
+ import { lighten , darken , tint , rgba } from 'polished' ;
2
2
import { palette } from '../../color/palette' ;
3
3
import { makeTokens } from '../baseTokens/apac' ;
4
4
@@ -15,4 +15,176 @@ export default makeTokens({
15
15
brandAccentSoft : tint ( 0.925 , brandAccent ) ,
16
16
brandAccentSoftActive : tint ( 0.85 , brandAccent ) ,
17
17
brandAccentSoftHover : tint ( 0.9 , brandAccent ) ,
18
+ tokenOverrides : {
19
+ legacy : false ,
20
+ typography : {
21
+ fontFamily : 'SeekSans, "SeekSans Fallback", Arial, Tahoma, sans-serif' ,
22
+ webFont : 'https://www.seek.com.au/static/shared-web/seeksans.css' ,
23
+ fontMetrics : {
24
+ capHeight : 783 ,
25
+ ascent : 1057 ,
26
+ descent : - 274 ,
27
+ lineGap : 0 ,
28
+ unitsPerEm : 1000 ,
29
+ } ,
30
+ fontWeight : {
31
+ regular : 400 ,
32
+ medium : 500 ,
33
+ strong : 700 ,
34
+ } ,
35
+ heading : {
36
+ weight : {
37
+ weak : 'regular' ,
38
+ regular : 'medium' ,
39
+ } ,
40
+ level : {
41
+ '1' : {
42
+ mobile : {
43
+ fontSize : 28 ,
44
+ lineGap : 11 ,
45
+ } ,
46
+ tablet : {
47
+ fontSize : 36 ,
48
+ lineGap : 14 ,
49
+ } ,
50
+ } ,
51
+ '2' : {
52
+ mobile : {
53
+ fontSize : 24 ,
54
+ lineGap : 11 ,
55
+ } ,
56
+ tablet : {
57
+ fontSize : 30 ,
58
+ lineGap : 13 ,
59
+ } ,
60
+ } ,
61
+ '3' : {
62
+ mobile : {
63
+ fontSize : 22 ,
64
+ lineGap : 10 ,
65
+ } ,
66
+ tablet : {
67
+ fontSize : 24 ,
68
+ lineGap : 11 ,
69
+ } ,
70
+ } ,
71
+ '4' : {
72
+ mobile : {
73
+ fontSize : 20 ,
74
+ lineGap : 9 ,
75
+ } ,
76
+ tablet : {
77
+ fontSize : 20 ,
78
+ lineGap : 9 ,
79
+ } ,
80
+ } ,
81
+ } ,
82
+ } ,
83
+ text : {
84
+ large : {
85
+ mobile : {
86
+ fontSize : 18 ,
87
+ lineGap : 13 ,
88
+ } ,
89
+ tablet : {
90
+ fontSize : 18 ,
91
+ lineGap : 13 ,
92
+ } ,
93
+ } ,
94
+ standard : {
95
+ mobile : {
96
+ fontSize : 16 ,
97
+ lineGap : 12 ,
98
+ } ,
99
+ tablet : {
100
+ fontSize : 16 ,
101
+ lineGap : 12 ,
102
+ } ,
103
+ } ,
104
+ small : {
105
+ mobile : {
106
+ fontSize : 14 ,
107
+ lineGap : 10 ,
108
+ } ,
109
+ tablet : {
110
+ fontSize : 14 ,
111
+ lineGap : 10 ,
112
+ } ,
113
+ } ,
114
+ xsmall : {
115
+ mobile : {
116
+ fontSize : 12 ,
117
+ lineGap : 9 ,
118
+ } ,
119
+ tablet : {
120
+ fontSize : 12 ,
121
+ lineGap : 9 ,
122
+ } ,
123
+ } ,
124
+ } ,
125
+ } ,
126
+ space : {
127
+ gutter : 6 ,
128
+ xxsmall : 2 ,
129
+ xsmall : 3 ,
130
+ small : 4 ,
131
+ medium : 6 ,
132
+ large : 8 ,
133
+ xlarge : 12 ,
134
+ xxlarge : 16 ,
135
+ xxxlarge : 24 ,
136
+ } ,
137
+ focusRingSize : 6 ,
138
+ touchableSize : 12 ,
139
+ border : {
140
+ width : {
141
+ standard : 2 ,
142
+ large : 4 ,
143
+ } ,
144
+ radius : {
145
+ small : '4px' ,
146
+ standard : '8px' ,
147
+ large : '16px' ,
148
+ xlarge : '24px' ,
149
+ } ,
150
+ color : {
151
+ formAccent : palette . seekBlueLight [ '700' ] ,
152
+ formAccentLight : palette . seekBlueLight [ '300' ] ,
153
+ focus : rgba ( palette . seekBlueLight [ '300' ] , 0.7 ) ,
154
+ promote : palette . purple [ '700' ] ,
155
+ promoteLight : palette . purple [ '300' ] ,
156
+ neutralLight : palette . grey [ '100' ] ,
157
+ } ,
158
+ } ,
159
+ color : {
160
+ foreground : {
161
+ formAccent : palette . seekBlueLight [ '700' ] ,
162
+ formAccentLight : palette . seekBlueLight [ '300' ] ,
163
+ link : palette . grey [ '700' ] ,
164
+ linkHover : palette . grey [ '700' ] ,
165
+ linkLight : '#fff' ,
166
+ linkVisited : palette . purple [ '800' ] ,
167
+ linkLightVisited : palette . purple [ '200' ] ,
168
+ promote : palette . purple [ '700' ] ,
169
+ promoteLight : palette . purple [ '300' ] ,
170
+ rating : palette . orange [ '600' ] ,
171
+ } ,
172
+ background : {
173
+ body : '#fff' ,
174
+ bodyDark : palette . grey [ '800' ] ,
175
+ formAccent : palette . seekBlueLight [ '700' ] ,
176
+ formAccentActive : darken ( 0.05 , palette . seekBlueLight [ '700' ] ) ,
177
+ formAccentHover : lighten ( 0.075 , palette . seekBlueLight [ '700' ] ) ,
178
+ formAccentSoft : palette . seekBlueLight [ '50' ] ,
179
+ formAccentSoftActive : darken ( 0.05 , palette . seekBlueLight [ '50' ] ) ,
180
+ formAccentSoftHover : darken ( 0.025 , palette . seekBlueLight [ '50' ] ) ,
181
+ promote : palette . purple [ '700' ] ,
182
+ promoteLight : palette . purple [ '100' ] ,
183
+ neutralLight : palette . grey [ '75' ] ,
184
+ neutralSoft : palette . grey [ '75' ] ,
185
+ neutralSoftActive : darken ( 0.05 , palette . grey [ '75' ] ) ,
186
+ neutralSoftHover : darken ( 0.025 , palette . grey [ '75' ] ) ,
187
+ } ,
188
+ } ,
189
+ } ,
18
190
} ) ;
0 commit comments