@@ -8,6 +8,10 @@ import {
8
8
} from '../../utils/cssVariables' ;
9
9
import { SemanticColorsSchema } from './types' ;
10
10
11
+ if ( process . env . NODE_ENV !== 'test' ) {
12
+ import ( '../fonts/fonts' ) ;
13
+ }
14
+
11
15
export const createThemeGlobalStyle = (
12
16
bareVariables : TokenObject ,
13
17
lightScheme : SemanticColorsSchema ,
@@ -23,7 +27,7 @@ export const createThemeGlobalStyle = (
23
27
color-scheme: dark;
24
28
${ generateSemanticTierCssVariables ( darkScheme ) }
25
29
}
26
-
30
+
27
31
.light-scheme {
28
32
color-scheme: light;
29
33
${ generateSemanticTierCssVariables ( lightScheme ) }
@@ -35,12 +39,92 @@ export const createThemeGlobalStyle = (
35
39
${ generateSemanticTierCssVariables ( darkScheme ) }
36
40
}
37
41
}
38
-
42
+
39
43
body, .wave {
40
44
color: ${ getSemanticValue ( 'foreground-primary' ) } ;
41
- background-color: ${ getSemanticValue ( 'background-page-default' ) }
45
+ background-color: ${ getSemanticValue ( 'background-page-default' ) } ;
46
+ font-family: "Roboto Flex Variable", system-ui, sans-serif;
47
+ font-style: normal;
48
+ font-variation-settings:
49
+ "GRAD" 0,
50
+ "XOPQ" 100,
51
+ "XTRA" 506,
52
+ "YOPQ" 85,
53
+ "YTAS" 730,
54
+ "YTDE" -203,
55
+ "YTFI" 738,
56
+ "YTLC" 550,
57
+ "YTUC" 712;
58
+
59
+ /* roboto-flex-latin-wght-normal */
60
+ @font-face {
61
+ font-family: "Roboto Flex Variable";
62
+ font-style: oblique 0deg 10deg;
63
+ font-display: swap;
64
+ font-weight: 100 1000;
65
+ font-stretch: 25% 151%;
66
+ src: url(@fontsource-variable/roboto-flex/files/roboto-flex-latin-full-normal.woff2)
67
+ format("woff2-variations");
68
+ unicode-range:
69
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
70
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
71
+ U+2215, U+FEFF, U+FFFD;
72
+ }
73
+
74
+ /* roboto-flex-cyrillic-wght-normal */
75
+ @font-face {
76
+ font-family: "Roboto Flex Variable";
77
+ font-style: oblique 0deg 10deg;
78
+ font-display: swap;
79
+ font-weight: 100 1000;
80
+ font-stretch: 25% 151%;
81
+ src: url(@fontsource-variable/roboto-flex/files/roboto-flex-cyrillic-full-normal.woff2)
82
+ format("woff2-variations");
83
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
84
+ }
85
+
86
+ /* roboto-flex-cyrillic-ext-wght-normal */
87
+ @font-face {
88
+ font-family: "Roboto Flex Variable";
89
+ font-style: oblique 0deg 10deg;
90
+ font-display: swap;
91
+ font-weight: 100 1000;
92
+ font-stretch: 25% 151%;
93
+ src: url(@fontsource-variable/roboto-flex/files/roboto-flex-cyrillic-ext-full-normal.woff2)
94
+ format("woff2-variations");
95
+ unicode-range:
96
+ U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
97
+ }
98
+
99
+ /* roboto-flex-greek-wght-normal */
100
+ @font-face {
101
+ font-family: "Roboto Flex Variable";
102
+ font-style: oblique 0deg 10deg;
103
+ font-display: swap;
104
+ font-weight: 100 1000;
105
+ font-stretch: 25% 151%;
106
+ src: url(@fontsource-variable/roboto-flex/files/roboto-flex-greek-full-normal.woff2)
107
+ format("woff2-variations");
108
+ unicode-range:
109
+ U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
110
+ }
111
+
112
+ /* roboto-flex-latin-ext-wght-normal */
113
+ @font-face {
114
+ font-family: "Roboto Flex Variable";
115
+ font-style: oblique 0deg 10deg;
116
+ font-display: swap;
117
+ font-weight: 100 1000;
118
+ font-stretch: 25% 151%;
119
+ src: url(@fontsource-variable/roboto-flex/files/roboto-flex-latin-ext-full-normal.woff2)
120
+ format("woff2-variations");
121
+ unicode-range:
122
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
123
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
124
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
125
+ }
42
126
}
43
-
127
+
44
128
svg {
45
129
fill: currentColor;
46
130
}
0 commit comments