Skip to content

Commit 200fbc7

Browse files
authored
Merge pull request #17 from GreenB0t/main
Fix Twemoji font load order and improve fallback logic
2 parents e96e952 + 9457259 commit 200fbc7

4 files changed

Lines changed: 7 additions & 14 deletions

File tree

themes/blue-nord.sable.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Blue Nord
55
author: userspring
66
kind: dark
77
contrast: low
8-
tags: dark, grey, nord, blue
8+
tags: nord, grey, blue
99
fullThemeUrl: https://raw.githubusercontent.com/SableClient/themes/main/themes/blue-nord.sable.css
1010
*/
1111

themes/shark-deep-blue.sable.css

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Shark Deep Blue
55
author: userspring
66
kind: dark
77
contrast: low
8-
tags: dark, ocean, red bleed
8+
tags: ocean, red bleed
99
fullThemeUrl: https://raw.githubusercontent.com/SableClient/themes/main/themes/shark-deep-blue.sable.css
1010
*/
1111

@@ -44,15 +44,8 @@ fullThemeUrl: https://raw.githubusercontent.com/SableClient/themes/main/themes/s
4444
font-display: swap;
4545
}
4646

47-
@font-face {
48-
font-family: 'Twemoji';
49-
src: url('https://raw.githubusercontent.com/SableClient/Sable/dev/public/font/Twemoji.Mozilla.v15.1.0.woff2') format('woff2'),
50-
url('https://raw.githubusercontent.com/SableClient/Sable/dev/public/font/Twemoji.Mozilla.v15.1.0.ttf') format('truetype');
51-
font-display: swap;
52-
}
53-
5447
body.sable-remote-theme {
55-
font-family: 'Rajdhani', serif, 'Twemoji', system-ui;
48+
font-family: 'Rajdhani', 'Twemoji', 'Nunito Variable', system-ui, -apple-system, sans-serif;
5649

5750
/* --- Background --- */
5851
--sable-bg-container: hsl(207, 34.72%, 12.56%);

tweaks/clear-sable-font.sable.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@sable-tweak
33
id: clear-sable-font
44
name: Clear Sable Font
5-
description: Use default system/browser font.
5+
description: Use default system/browser font
66
author: userspring
77
tags: global, font
88
*/
99

1010
body.sable-remote-theme,
1111
body.sable-remote-theme * {
12-
font-family: system-ui, Twemoji, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
12+
font-family: 'Twemoji', system-ui, -apple-system, sans-serif !important;
1313
}

tweaks/clear-theme-font.sable.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@sable-tweak
33
id: clear-theme-font
44
name: Clear Theme Font
5-
description: Remove custom theme font where applicable.
5+
description: Remove custom theme font where applicable
66
author: userspring
77
tags: global, font
88
*/
99

1010
body.sable-remote-theme,
1111
body.sable-remote-theme * {
12-
font-family: Nunito Variable, system-ui, Twemoji, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
12+
font-family: 'Nunito Variable', 'Twemoji', system-ui, -apple-system, sans-serif !important;
1313
}

0 commit comments

Comments
 (0)