Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Drop self-hosted Manrope and DM Mono for Windows system fonts

Bitticf3da6779dcd
diff --git a/public/fonts/dmmono-01.woff2 b/public/fonts/dmmono-01.woff2
deleted file mode 100644
index 356705a..0000000
--- a/public/fonts/dmmono-01.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a52e19ebe0398c9c0f8fa28a0c5e9a6bc324f35d9f0881c9aa407d10af447175
-size 9552
diff --git a/public/fonts/dmmono-02.woff2 b/public/fonts/dmmono-02.woff2
deleted file mode 100644
index c1e449b..0000000
--- a/public/fonts/dmmono-02.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e1896b13b2b1bb112fac2f9571bd6c40e118746e77a4511edbf43fbb41bf3e1e
-size 14820
diff --git a/public/fonts/dmmono-03.woff2 b/public/fonts/dmmono-03.woff2
deleted file mode 100644
index 775ca0e..0000000
--- a/public/fonts/dmmono-03.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:8711f938c3f04f91e35ae64ebc7f2eecd800d2ae1c3542f6c837c758a50422f5
-size 9616
diff --git a/public/fonts/dmmono-04.woff2 b/public/fonts/dmmono-04.woff2
deleted file mode 100644
index 7511bca..0000000
--- a/public/fonts/dmmono-04.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:9964608a849396bd00c4bfd7034afe03486469dcf20b4f6b8cbdfdd310369951
-size 14988
diff --git a/public/fonts/manrope-01.woff2 b/public/fonts/manrope-01.woff2
deleted file mode 100644
index 54a9ecc..0000000
--- a/public/fonts/manrope-01.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:de37de877dc17e4577341fa68bb5cb526b53d54cb29721e674208546a3c7849d
-size 2552
diff --git a/public/fonts/manrope-02.woff2 b/public/fonts/manrope-02.woff2
deleted file mode 100644
index 9f586b4..0000000
--- a/public/fonts/manrope-02.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c268b459a9329e59fecf39a17618efd44c71735532048d60b12aab76a8c14914
-size 14500
diff --git a/public/fonts/manrope-03.woff2 b/public/fonts/manrope-03.woff2
deleted file mode 100644
index 53828cd..0000000
--- a/public/fonts/manrope-03.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2fb2e8cbfd52ae46179a8b6024eb162f1f9c6de3d22d6e3a30d8f395de7220be
-size 9444
diff --git a/public/fonts/manrope-04.woff2 b/public/fonts/manrope-04.woff2
deleted file mode 100644
index f71eb5f..0000000
--- a/public/fonts/manrope-04.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:6bbb044ab420e07edb0a3042d2eb314b85e83a0182e945a15ab3b9092668dfd5
-size 8520
diff --git a/public/fonts/manrope-05.woff2 b/public/fonts/manrope-05.woff2
deleted file mode 100644
index 9e920b5..0000000
--- a/public/fonts/manrope-05.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:3911b66d9f2e005a4b989223405d0e5032619c668597ba467cc76a23c8fffcfb
-size 15120
diff --git a/public/fonts/manrope-06.woff2 b/public/fonts/manrope-06.woff2
deleted file mode 100644
index 18fabc3..0000000
--- a/public/fonts/manrope-06.woff2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a30ddcd349703aff7464c34bef3fffdff405ee50c113440d7c8693c02d210972
-size 24836
diff --git a/src/lib/theme.test.ts b/src/lib/theme.test.ts
index f3667b6..5147433 100644
--- a/src/lib/theme.test.ts
+++ b/src/lib/theme.test.ts
@@ -557,7 +557,7 @@ describe("no stylesheet outside tokens.css names a colour", () => {
not, and `font-family: Silver, Tan, sans-serif` tripped the guard. */
expect(colourLiterals("a { font-family: Silver, Tan, sans-serif; }")).toEqual([]);
expect(colourLiterals("a { font: var(--weight-medium) 12px / 1 Silver, monospace; }")).toEqual([]);
- expect(colourLiterals(':root { --font-sans: "Manrope", Inter, system-ui, sans-serif; }')).toEqual([]);
+ expect(colourLiterals(':root { --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; }')).toEqual([]);
/* But skipping the font properties must not blind the REST of the rule. */
expect(colourLiterals("a { font-family: Silver; color: white; }")).toEqual(["white"]);
diff --git a/src/styles/fonts.css b/src/styles/fonts.css
deleted file mode 100644
index 516c0af..0000000
--- a/src/styles/fonts.css
+++ /dev/null
@@ -1,261 +0,0 @@
-/* Manrope and DM Mono, self-hosted.
- Generated from the Google Fonts CSS API and then cut loose from it: the
- app calls itself local-first ("Every project is an ordinary folder on this
- computer"), so it must not need a CDN to paint its own type. Fetching these
- remotely also meant an offline launch silently fell back to system-ui with
- different metrics. Files live in public/fonts and are served from /fonts.
- To update: refetch the CSS with a Chrome user agent, download the woff2
- files it names, and rewrite the URLs to /fonts. Keep every unicode-range. */
-
-/* latin-ext */
-@font-face {
- font-family: 'DM Mono';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/dmmono-01.woff2) format('woff2');
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: 'DM Mono';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/dmmono-02.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* latin-ext */
-@font-face {
- font-family: 'DM Mono';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/dmmono-03.woff2) format('woff2');
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: 'DM Mono';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/dmmono-04.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* cyrillic-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/manrope-01.woff2) format('woff2');
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
-}
-/* cyrillic */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/manrope-02.woff2) format('woff2');
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
-}
-/* greek */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/manrope-03.woff2) format('woff2');
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
-}
-/* vietnamese */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/manrope-04.woff2) format('woff2');
- unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
-}
-/* latin-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/manrope-05.woff2) format('woff2');
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(/fonts/manrope-06.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* cyrillic-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/manrope-01.woff2) format('woff2');
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
-}
-/* cyrillic */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/manrope-02.woff2) format('woff2');
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
-}
-/* greek */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/manrope-03.woff2) format('woff2');
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
-}
-/* vietnamese */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/manrope-04.woff2) format('woff2');
- unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
-}
-/* latin-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/manrope-05.woff2) format('woff2');
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(/fonts/manrope-06.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* cyrillic-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(/fonts/manrope-01.woff2) format('woff2');
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
-}
-/* cyrillic */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(/fonts/manrope-02.woff2) format('woff2');
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
-}
-/* greek */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(/fonts/manrope-03.woff2) format('woff2');
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
-}
-/* vietnamese */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(/fonts/manrope-04.woff2) format('woff2');
- unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
-}
-/* latin-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(/fonts/manrope-05.woff2) format('woff2');
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(/fonts/manrope-06.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* cyrillic-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url(/fonts/manrope-01.woff2) format('woff2');
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
-}
-/* cyrillic */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url(/fonts/manrope-02.woff2) format('woff2');
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
-}
-/* greek */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url(/fonts/manrope-03.woff2) format('woff2');
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
-}
-/* vietnamese */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url(/fonts/manrope-04.woff2) format('woff2');
- unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
-}
-/* latin-ext */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url(/fonts/manrope-05.woff2) format('woff2');
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: 'Manrope';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url(/fonts/manrope-06.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
diff --git a/src/styles/index.css b/src/styles/index.css
index 7446295..e6c2b41 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -2,14 +2,12 @@
Slopus — stylesheet entry point.
This is the ONLY file imported by the app (src/main.tsx). Everything else is
- pulled in from here, in cascade order. Keep the font @import first: CSS
- requires all @import rules to precede any other rule. The fonts are
- self-hosted (see fonts.css) — a local-first desktop app must not need a CDN
- to paint its own type, and offline it silently fell back to system metrics.
+ pulled in from here, in cascade order. No web fonts are loaded: the app
+ uses the Windows system faces (Segoe UI Variable, Cascadia Mono), named in
+ tokens.css, so there is nothing to self-host and nothing to fall back from
+ when offline. CSS requires every @import to precede any other rule.
========================================================================== */
-@import "./fonts.css";
-
/* Foundation */
@import "./tokens.css";
@import "./base.css";