Make builds of the editor and the website serve their own local fonts (#2186)

* WIP

* Done?

* Install fonts in CI

* Use absolute path so minified inlined CSS works

* Fix Bezier-rs demo fonts?

* Use opsz

* Revert removal of text balancer

* Pull in the text balancer from our static host
This commit is contained in:
Keavon Chambers
2025-05-19 02:38:29 -07:00
committed by GitHub
parent ea59f10b50
commit e57637aab1
28 changed files with 1305 additions and 755 deletions

View File

@@ -39,7 +39,7 @@ html,
body {
color: var(--color-navy);
background: white;
font-family: "Inter", sans-serif;
font-family: "Inter Variable", sans-serif;
line-height: 1.5;
font-weight: 500;
font-size: 18px;
@@ -157,12 +157,12 @@ body > .page {
background-image: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8,15C5.12471,9.753694 0.5,8.795225 0.5,4.736524 C0.5,-0.507473 7.468734,0 8,4.967381 C8.531266,0 15.5,-0.507473 15.5,4.736524 C15.5,8.795225 10.87529,9.753694 8,15z" fill="%23cc304f" /></svg>\
');
display: inline-block;
width: 0.75em;
height: 0.75em;
margin-left: 0.25em;
margin-bottom: -0.1em;
vertical-align: baseline;
display: inline-block;
width: 0.75em;
height: 0.75em;
margin-left: 0.25em;
margin-bottom: -0.1em;
vertical-align: baseline;
}
}
@@ -323,7 +323,6 @@ body > .page {
margin-top: 20px;
}
}
}
details[open] summary::before {
@@ -436,7 +435,7 @@ h3,
h4,
h5,
h6 {
font-family: "Inter", sans-serif;
font-family: "Inter Variable", sans-serif;
line-height: 1.5;
font-weight: 800;
display: inline-block;
@@ -663,7 +662,7 @@ hr,
.arrow::after {
content: " »";
font-family: "Inter", sans-serif;
font-family: "Inter Variable", sans-serif;
}
.video-background {