ADD: Font fallbacks

This commit is contained in:
Robert Kossessa
2024-02-11 22:40:44 +01:00
parent bfc053a937
commit 489228fa17
2 changed files with 7 additions and 7 deletions

View File

@@ -77,16 +77,16 @@
@font-face { @font-face {
font-family: 'ProtoMono'; font-family: 'ProtoMono';
src: url(fonts/ProtoMono-Regular.ttf); src: url(fonts/ProtoMono-Regular.ttf), local('monospace');
} }
@font-face { @font-face {
font-family: 'RenoMono'; font-family: 'RenoMono';
src: url(fonts/RenoMono.otf); src: url(fonts/RenoMono.otf), local('monospace');
} }
@font-face { @font-face {
font-family: 'JetBrainsMono'; font-family: 'JetBrainsMono';
src: url(fonts/JetBrainsMono[wght].ttf); src: url(fonts/JetBrainsMono[wght].ttf), local('monospace');
} }
@font-face { @font-face {
@@ -100,11 +100,11 @@
} }
.font-pixellg { .font-pixellg {
font-family: 'PixelLg'; font-family: 'PixelLg', monospace, sans-serif;
} }
.font-pixelsm { .font-pixelsm {
font-family: 'PixelSm'; font-family: 'PixelSm', monospace, sans-serif;
} }
.font-size-gui-extra { .font-size-gui-extra {

View File

@@ -80,8 +80,8 @@ module.exports = {
}, },
}, },
fontFamily: { fontFamily: {
sans: ['JetbrainsMono', 'sans-serif'], sans: ['JetbrainsMono', 'monospace', 'sans-serif'],
heading: ['ProtoMono', 'sans-serif'], heading: ['ProtoMono', 'monospace', 'sans-serif'],
}, },
animation: { animation: {
'accordion-down': 'accordion-down 0.2s ease-out', 'accordion-down': 'accordion-down 0.2s ease-out',