Skip to content

Commit 1c82822

Browse files
Merge pull request #306 from codex-team/inter-font-integration
feat(styles): replaced cdn fonts to local
2 parents af77679 + dce54b4 commit 1c82822

14 files changed

+141
-3
lines changed
112 KB
Binary file not shown.
109 KB
Binary file not shown.
112 KB
Binary file not shown.
111 KB
Binary file not shown.
106 KB
Binary file not shown.
111 KB
Binary file not shown.
379 KB
Binary file not shown.
344 KB
Binary file not shown.

codex-ui/src/fonts/Inter/inter.css

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/* Variable fonts usage:
2+
:root { font-family: "Inter", sans-serif; }
3+
@supports (font-variation-settings: normal) {
4+
:root { font-family: "InterVariable", sans-serif; font-optical-sizing: auto; }
5+
} */
6+
@font-face {
7+
font-family: InterVariable;
8+
font-style: normal;
9+
font-weight: 100 900;
10+
font-display: swap;
11+
src: url("InterVariable.woff2") format("woff2");
12+
}
13+
@font-face {
14+
font-family: InterVariable;
15+
font-style: italic;
16+
font-weight: 100 900;
17+
font-display: swap;
18+
src: url("InterVariable-Italic.woff2") format("woff2");
19+
}
20+
21+
/* static fonts */
22+
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("Inter-Regular.woff2") format("woff2"); }
23+
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("Inter-SemiBold.woff2") format("woff2"); }
24+
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("Inter-Bold.woff2") format("woff2"); }
25+
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 400; font-display: swap; src: url("InterDisplay-Regular.woff2") format("woff2"); }
26+
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 600; font-display: swap; src: url("InterDisplay-SemiBold.woff2") format("woff2"); }
27+
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 700; font-display: swap; src: url("InterDisplay-Bold.woff2") format("woff2"); }
28+
29+
@font-feature-values InterVariable {
30+
@character-variant {
31+
cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
32+
cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
33+
alt-1: 1; /* Alternate one */
34+
alt-3: 9; /* Flat-top three */
35+
open-4: 2; /* Open four */
36+
open-6: 3; /* Open six */
37+
open-9: 4; /* Open nine */
38+
lc-l-with-tail: 5; /* Lower-case L with tail */
39+
simplified-u: 6; /* Simplified u */
40+
alt-double-s: 7; /* Alternate German double s */
41+
uc-i-with-serif: 8; /* Upper-case i with serif */
42+
uc-g-with-spur: 10; /* Capital G with spur */
43+
single-story-a: 11; /* Single-story a */
44+
compact-lc-f: 12; /* Compact f */
45+
compact-lc-t: 13; /* Compact t */
46+
}
47+
@styleset {
48+
ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
49+
open-digits: 1; /* Open digits */
50+
disambiguation: 2; /* Disambiguation (with zero) */
51+
disambiguation-except-zero: 4; /* Disambiguation (no zero) */
52+
round-quotes-and-commas: 3; /* Round quotes & commas */
53+
square-punctuation: 7; /* Square punctuation */
54+
square-quotes: 8; /* Square quotes */
55+
circled-characters: 5; /* Circled characters */
56+
squared-characters: 6; /* Squared characters */
57+
}
58+
}
59+
@font-feature-values Inter {
60+
@character-variant {
61+
cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
62+
cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
63+
alt-1: 1; /* Alternate one */
64+
alt-3: 9; /* Flat-top three */
65+
open-4: 2; /* Open four */
66+
open-6: 3; /* Open six */
67+
open-9: 4; /* Open nine */
68+
lc-l-with-tail: 5; /* Lower-case L with tail */
69+
simplified-u: 6; /* Simplified u */
70+
alt-double-s: 7; /* Alternate German double s */
71+
uc-i-with-serif: 8; /* Upper-case i with serif */
72+
uc-g-with-spur: 10; /* Capital G with spur */
73+
single-story-a: 11; /* Single-story a */
74+
compact-lc-f: 12; /* Compact f */
75+
compact-lc-t: 13; /* Compact t */
76+
}
77+
@styleset {
78+
ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
79+
open-digits: 1; /* Open digits */
80+
disambiguation: 2; /* Disambiguation (with zero) */
81+
disambiguation-except-zero: 4; /* Disambiguation (no zero) */
82+
round-quotes-and-commas: 3; /* Round quotes & commas */
83+
square-punctuation: 7; /* Square punctuation */
84+
square-quotes: 8; /* Square quotes */
85+
circled-characters: 5; /* Circled characters */
86+
squared-characters: 6; /* Squared characters */
87+
}
88+
}
89+
@font-feature-values InterDisplay {
90+
@character-variant {
91+
cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
92+
cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
93+
alt-1: 1; /* Alternate one */
94+
alt-3: 9; /* Flat-top three */
95+
open-4: 2; /* Open four */
96+
open-6: 3; /* Open six */
97+
open-9: 4; /* Open nine */
98+
lc-l-with-tail: 5; /* Lower-case L with tail */
99+
simplified-u: 6; /* Simplified u */
100+
alt-double-s: 7; /* Alternate German double s */
101+
uc-i-with-serif: 8; /* Upper-case i with serif */
102+
uc-g-with-spur: 10; /* Capital G with spur */
103+
single-story-a: 11; /* Single-story a */
104+
compact-lc-f: 12; /* Compact f */
105+
compact-lc-t: 13; /* Compact t */
106+
}
107+
@styleset {
108+
ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
109+
open-digits: 1; /* Open digits */
110+
disambiguation: 2; /* Disambiguation (with zero) */
111+
disambiguation-except-zero: 4; /* Disambiguation (no zero) */
112+
round-quotes-and-commas: 3; /* Round quotes & commas */
113+
square-punctuation: 7; /* Square punctuation */
114+
square-quotes: 8; /* Square quotes */
115+
circled-characters: 5; /* Circled characters */
116+
squared-characters: 6; /* Squared characters */
117+
}
118+
}
92.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)