Skip to content

Commit

Permalink
Back to sys fonts for now
Browse files Browse the repository at this point in the history
  • Loading branch information
brycewray committed Oct 6, 2023
1 parent 39aa60e commit 5cd09f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ html[data-theme="dark"] {
/* font-weight: var(--font-medium); */
letter-spacing: -0.025em;
padding-top: 0.5em;
line-height: normal;
line-height: 1.25em;
}

.homePost-Description {
Expand Down
8 changes: 4 additions & 4 deletions assets/css/partials/010-variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
/* Note from the relevant GitHub SCSS file: "SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome" */
--sans-serif: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, Ubuntu, Roboto, "Noto Sans", Noto, sans-serif;
--sans-serif: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, Ubuntu, Roboto, "Noto Sans", Noto, sans-serif;
--serif: ui-serif, Georgia, Cambria, "Bitstream Charter", serif;
--monospaced: ui-monospace, SFMono-Regular, "SF Mono", "Source Code Pro", Menlo, Consolas, monospace;
/* --social-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif; */
Expand All @@ -27,7 +27,7 @@
/* --font-black: 900; */
--font-weight-sm: var(--font-normal);
/* ^^^ for .pokey, .legal, footnotes, etc. if using font-light for `html` and `body` */
--pub-date-weight: var(--font-medium);
--pub-date-weight: var(--font-semibold);

/* like Tailwind **SIZES** but not the concomitant `line-height, which is in comments */
--text-xs: 0.75rem; /* LH 1rem */
Expand All @@ -48,8 +48,8 @@
--textDcThick: 0.05rem; /* always rem */
--textDcThickMd: 0.0625rem; /* always rem */
--textDcThickHA: 0.075rem; /* always rem -- for `header-anchor` */
--textUnOffst: 0.215em; /* always em -- min-width: 768px */
--textUnOffstMd: 0.215em; /* always em -- min-width: 768px */
--textUnOffst: 0.25em; /* always em -- min-width: 768px */
--textUnOffstMd: 0.275em; /* always em -- min-width: 768px */
/* ^^^ 0.225em is OK with Libre Franklin,
but Segoe UI needs at least 0.25em */

Expand Down
8 changes: 4 additions & 4 deletions assets/css/partials/050-global.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ html, body {
text-rendering: optimizeLegibility;
/* text-justify: inter-character; /* someday... */
font-kerning: normal;
font-family: var(--sans-serif);
font-family: var(--serif);
font-weight: var(--font-normal);
background-color: var(--bkgd);
color: var(--default);
}
/*

h1, .h1, h2, .h2, h3, .h3, h4, .h4,
header, footer, table, blockquote, summary, contact-button, search-button,
.container-home, .billboard-div, .posts-Wrapper, .FourOhFour-Wrapper,
Expand All @@ -101,7 +101,7 @@ header, footer, table, blockquote, summary, contact-button, search-button,
.legal, .pokey {
font-family: var(--sans-serif);
}
*/

b, strong {
font-weight: var(--font-semibold);
}
Expand All @@ -116,7 +116,7 @@ p, li {
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
font-weight: var(--font-medium);
font-weight: var(--font-semibold);
color: var(--head);
letter-spacing: -0.025rem;
}
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/head-criticalcss.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{{/*
{{- $fonts := resources.Get "css/fonts.css" | minify -}}
{{- with $fonts }}
<link rel="preload" as="font" href="/fonts/LibreFranklin-Roman-VariableFont_subset.woff2" type="font/woff2" crossorigin>
<link rel="preload" as="font" href="/fonts/LibreFranklin-Italic-VariableFont_subset.woff2" type="font/woff2" crossorigin>
<style media="screen">{{ .Content | safeCSS }}</style>
{{- end }}
*/}}
{{- $css := resources.Get "css/critical.css" | postCSS }}
{{- with $css }}
<style media="screen">{{ .Content | safeCSS }}</style>
Expand Down

0 comments on commit 5cd09f0

Please sign in to comment.