WIP: improve font caching and partial fix on test

This commit is contained in:
Matthew Raymer
2025-07-27 01:56:42 +00:00
parent c628c78565
commit e04c9f3626
16 changed files with 338 additions and 87 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,81 @@
/* Work Sans font family - locally hosted */
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../fonts/WorkSans-Light.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/WorkSans-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../fonts/WorkSans-Medium.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../fonts/WorkSans-SemiBold.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/WorkSans-Bold.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url('../fonts/WorkSans-LightItalic.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('../fonts/WorkSans-Italic.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url('../fonts/WorkSans-MediumItalic.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: italic;
font-weight: 600;
font-display: swap;
src: url('../fonts/WorkSans-SemiBoldItalic.ttf') format('truetype');
}
@font-face {
font-family: 'Work Sans';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url('../fonts/WorkSans-BoldItalic.ttf') format('truetype');
}

View File

@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import './fonts.css';
@tailwind base;
@tailwind components;
@tailwind utilities;