-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathb.fonts.scss
42 lines (38 loc) · 1.58 KB
/
b.fonts.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Load fonts in a cross-browser-compatible way. Font files themselves are
// located in /src/fonts and configuration is in the `fontFamily` item in
// tailwind.config.cjs at the root of the project. These fonts are also
// preloaded at the top of the example HTML file.
//
// As with everything in GET, this is meant as a starting example only --
// replace or remove these styles and font files as necessary.
//
// By default Tailwind provides three font families leveraging system font
// stacks: font-sans, font-serif and font-mono. If you only want to use system
// font stacks, you can remove this stylesheet and the font files entirely.
//
// For more, see:
// https://tailwindcss.com/docs/font-family
// https://stackoverflow.com/a/67190784
// https://tailwindcss.com/docs/theme#extending-the-default-theme
// https://google-webfonts-helper.herokuapp.com/fonts
@layer base {
@font-face {
font-family: 'Raleway';
// Raleway is a variable font, so the same font file is used for multiple
// weights. For more information about variable fonts, see:
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
src: url('../fonts/Raleway.woff2') format('woff2');
font-style: normal;
font-weight: 300 800;
}
@font-face {
font-family: 'Raleway';
src: url('../fonts/Raleway-Italic.woff2') format('woff2');
font-weight: 300 800;
font-style: italic;
}
// Want to apply the custom font to your entire page? Uncomment the next ruleset.
// body {
// @apply font-raleway; // This matches the name defined in tailwind.config.cjs
// }
}