refactor(ui): new standard and accessible UI font (#1777)

This commit is contained in:
Alex
2026-06-20 07:50:47 +01:00
committed by GitHub
parent 08ec10b4e7
commit 8ce487b9d0
26 changed files with 474 additions and 11 deletions
+40 -1
View File
@@ -29,8 +29,42 @@
--tw-enter-translate-y: 0.25rem;
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../fonts/Inter-latin[wght].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;
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../fonts/Inter-latin-ext[wght].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;
}
@font-face {
font-family: "Atkinson Hyperlegible Next";
font-style: normal;
font-weight: 200 800;
font-display: swap;
src: url("../fonts/AtkinsonHyperlegibleNext[wght].woff2") format("woff2");
}
@font-face {
font-family: "Atkinson Hyperlegible Next";
font-style: italic;
font-weight: 200 800;
font-display: swap;
src: url("../fonts/AtkinsonHyperlegibleNext-Italic[wght].woff2") format("woff2");
}
@theme static {
--font-sans: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
--font-sans: var(--font-ui, "Inter", sans-serif);
--text-app-xs: 0.6563rem;
--text-app-sm: 0.7656rem;
@@ -91,6 +125,7 @@
}
:root {
--font-ui: "Inter", sans-serif;
--font-size-root: 16px;
--app-text-xs: var(--text-app-xs);
--app-text-sm: var(--text-app-sm);
@@ -98,6 +133,10 @@
--app-text-lg: var(--text-app-lg);
}
[data-ui-font="atkinson"] {
--font-ui: "Atkinson Hyperlegible Next", sans-serif;
}
[data-app-theme] {
--color-surface-150: color-mix(in srgb, var(--color-surface-100) 70%, var(--color-surface-200));
--color-app: color-mix(in srgb, var(--color-surface-150), var(--color-primary-200) var(--app-primary-tint, 0%));