Use New York style display headings

This commit is contained in:
2026-05-16 22:15:29 +01:00
parent 6549b03d9a
commit 539437b824
3 changed files with 7 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ All notable changes to the New Optic website will be documented in this file.
### Changed ### Changed
- Added a New York-style display font stack for large latin headings while keeping SF-style UI text.
- Switched the latin typography to an SF Pro-style system font stack for a more Apple-like feel. - Switched the latin typography to an SF Pro-style system font stack for a more Apple-like feel.
- Removed the desktop liquid glass WebGL layer from navbar and CTA controls so text remains readable and glass surfaces do not show dark rendering artifacts while scrolling. - Removed the desktop liquid glass WebGL layer from navbar and CTA controls so text remains readable and glass surfaces do not show dark rendering artifacts while scrolling.
- Replaced the mobile hamburger dropdown with a fast, solid menu animation without bounce or stretch effects. - Replaced the mobile hamburger dropdown with a fast, solid menu animation without bounce or stretch effects.

View File

@@ -7,6 +7,7 @@
--bg: #f6f5f2; --bg: #f6f5f2;
--ink: #111317; --ink: #111317;
--font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-display: "New York Large", "New York", "NewYork", ui-serif, Georgia, Cambria, "Times New Roman", serif;
} }
* { * {
@@ -68,6 +69,10 @@ body[dir="rtl"] {
font-family: var(--font-arabic), system-ui, sans-serif; font-family: var(--font-arabic), system-ui, sans-serif;
} }
body:not([dir="rtl"]) :where(h1, h2) {
font-family: var(--font-display);
}
a { a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;

View File

@@ -12,6 +12,7 @@ const config: Config = {
}, },
fontFamily: { fontFamily: {
sans: ["var(--font-sans)"], sans: ["var(--font-sans)"],
display: ["var(--font-display)"],
arabic: ["var(--font-arabic)", "system-ui", "sans-serif"] arabic: ["var(--font-arabic)", "system-ui", "sans-serif"]
}, },
boxShadow: { boxShadow: {