Redesign: Change heading font to Cal Sans UI (#40233)

This commit is contained in:
diondiondion
2026-08-21 10:10:10 +00:00
committed by GitHub
parent 72baf43e1f
commit 4529926440
8 changed files with 18 additions and 14 deletions

View File

@@ -1,8 +1,9 @@
Copyright 2017 The Syne Project Authors (https://gitlab.com/bonjour-monde/fonderie/syne-typeface)
Copyright (c) 2025, Mark Davis <mark@wordmark.nyc> <https://www.designermarkdavis.com>,
with Font "Cal Sans UI" and “Cal Sans Text”. Commissioned by Peer Richelsen for Cal.com <https://refer.cal.com/davis>.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
http://scripts.sil.org/OFL
-----------------------------------------------------------

View File

@@ -3,7 +3,7 @@
@use 'fonts/roboto';
@use 'fonts/roboto-mono';
@use 'fonts/inter';
@use 'fonts/syne';
@use 'fonts/cal-sans-ui';
@use 'mastodon/reset';
@use 'mastodon/tokens';

View File

@@ -0,0 +1,7 @@
@font-face {
font-family: 'Cal Sans UI';
src: url('../../fonts/cal-sans-ui/CalSansUI[wght,GEOM].woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}

View File

@@ -1,7 +0,0 @@
@font-face {
font-family: Syne;
src: url('../../fonts/syne/syne-bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}

View File

@@ -5,7 +5,8 @@
@mixin type-heading-lg {
font-family: var(--font-heading);
font-size: var(--fs-3xl);
font-weight: bold;
font-weight: 500;
font-variation-settings: 'GEOM' 50;
line-height: var(--lh-tighter);
letter-spacing: var(--ls-tighter);
}
@@ -13,7 +14,8 @@
@mixin type-heading-md {
font-family: var(--font-heading);
font-size: var(--fs-2xl);
font-weight: bold;
font-weight: 500;
font-variation-settings: 'GEOM' 50;
line-height: var(--lh-tighter);
letter-spacing: var(--ls-tight);
}
@@ -21,7 +23,8 @@
@mixin type-heading-sm {
font-family: var(--font-heading);
font-size: var(--fs-xl);
font-weight: bold;
font-weight: 500;
font-variation-settings: 'GEOM' 50;
line-height: var(--lh-tight);
letter-spacing: var(--ls-tight);
}

View File

@@ -9,7 +9,7 @@ html {
}
--font-body: mastodon-font-sans-serif, sans-serif;
--font-heading: Syne, sans-serif;
--font-heading: Cal Sans UI, sans-serif;
--font-monospace: mastodon-font-monospace, monospace;
&[data-redesign='true'] {