Debian Codegraph @

src/pydata_sphinx_theme/assets/styles/variables/_fonts.scss

raw
1 html {
2 /*****************************************************************************
3 * Font features used in this theme
4 */
5
6 // base font size - applied at body/html level
7 --pst-font-size-base: 1rem;
8
9 // heading font sizes based on a medium contrast type scale
10 // - see: https://github.com/Quansight-Labs/czi-scientific-python-mgmt/issues/97#issuecomment-2310531483
11 --pst-font-size-h1: 2.625rem;
12 --pst-font-size-h2: 2.125rem;
13 --pst-font-size-h3: 1.75rem;
14 --pst-font-size-h4: 1.5rem;
15 --pst-font-size-h5: 1.25rem;
16 --pst-font-size-h6: 1rem;
17
18 // smaller than heading font sizes
19 --pst-font-size-milli: 0.9rem;
20
21 // Sidebar styles
22 --pst-sidebar-font-size: 0.9rem;
23 --pst-sidebar-font-size-mobile: 1.1rem;
24 --pst-sidebar-header-font-size: 1.2rem;
25 --pst-sidebar-header-font-weight: 600;
26
27 // Admonition styles
28 --pst-admonition-font-weight-heading: 600;
29
30 // Font weights
31 --pst-font-weight-caption: 300;
32 --pst-font-weight-heading: 600;
33
34 // Font family
35 // https://modernfontstacks.com/?stack=system-ui
36 --pst-font-family-base-system:
37 system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
38 "Segoe UI Symbol", "Noto Color Emoji";
39
40 // https://modernfontstacks.com/?stack=monospace-code
41 --pst-font-family-monospace-system:
42 ui-monospace, "Cascadia Code", "Source Code Pro", "Menlo", "Consolas",
43 "DejaVu Sans Mono", monospace;
44 --pst-font-family-base: var(--pst-font-family-base-system);
45 --pst-font-family-heading: var(--pst-font-family-base-system);
46 --pst-font-family-monospace: var(--pst-font-family-monospace-system);
47 }
48
49 $line-height-body: 1.65;
50 $fa-font-path: "vendor/fontawesome/webfonts/";