feat(web): new fonts (#5165)

* feat(web): new fonts

* remove old fonts and make default font size larger

* fine tunning
This commit is contained in:
Alex 2023-11-19 21:06:16 -06:00 committed by GitHub
parent c1239a7337
commit f5d73b0499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 15 additions and 6 deletions

View file

@ -23,11 +23,18 @@
--immich-dark-warning: 245 124 0; --immich-dark-warning: 245 124 0;
} }
} }
@font-face {
font-family: 'Overpass';
src: url('$lib/assets/fonts/overpass/Overpass.ttf') format('truetype-variations');
font-weight: 1 999;
font-style: normal;
}
@font-face { @font-face {
font-family: 'Work Sans'; font-family: 'Overpass Mono';
src: url('$lib/assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype-variations'); src: url('$lib/assets/fonts/overpass/OverpassMono.ttf') format('truetype-variations');
font-weight: 1 999; font-weight: 1 999;
font-style: monospace;
} }
@font-face { @font-face {
@ -36,7 +43,7 @@
} }
:root { :root {
font-family: 'Work Sans', sans-serif; font-family: 'Overpass', sans-serif;
/* Used by layouts to ensure proper spacing between navbar and content */ /* Used by layouts to ensure proper spacing between navbar and content */
--navbar-height: calc(theme(spacing.18) + 4px); --navbar-height: calc(theme(spacing.18) + 4px);
} }
@ -44,6 +51,7 @@
html { html {
height: 100%; height: 100%;
width: 100%; width: 100%;
font-size: 17px;
} }
html::-webkit-scrollbar { html::-webkit-scrollbar {

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -134,7 +134,7 @@
{#if segment.hasLabel} {#if segment.hasLabel}
<div <div
aria-label={segment.timeGroup + ' ' + segment.count} aria-label={segment.timeGroup + ' ' + segment.count}
class="absolute right-0 bottom-0 z-10 pr-5 text-xs font-medium dark:text-immich-dark-fg font-mono" class="absolute right-0 bottom-0 z-10 pr-5 text-xs dark:text-immich-dark-fg font-immich-mono font-semibold"
> >
{segment.date.year} {segment.date.year}
</div> </div>

View file

@ -118,7 +118,7 @@
<p class="text-immich-fg dark:text-immich-dark-fg"> <p class="text-immich-fg dark:text-immich-dark-fg">
{partner.user.name} {partner.user.name}
</p> </p>
<p class="text-xs text-immich-fg/75 dark:text-immich-dark-fg/75"> <p class="text-sm text-immich-fg/75 dark:text-immich-dark-fg/75">
{partner.user.email} {partner.user.email}
</p> </p>
</div> </div>

View file

@ -37,7 +37,7 @@
$: { $: {
if (innerWidth && screenSize) { if (innerWidth && screenSize) {
// Set the number of faces according to the screen size and the div size // Set the number of faces according to the screen size and the div size
MAX_ITEMS = screenSize < 768 ? Math.floor(innerWidth / 96) : Math.floor(innerWidth / 112); MAX_ITEMS = screenSize < 768 ? Math.floor(innerWidth / 96) : Math.floor(innerWidth / 120);
} }
} }
</script> </script>

View file

@ -25,6 +25,7 @@ module.exports = {
}, },
fontFamily: { fontFamily: {
'immich-title': ['Snowburst One', 'cursive'], 'immich-title': ['Snowburst One', 'cursive'],
'immich-mono': ['Overpass Mono', 'monospace'],
}, },
spacing: { spacing: {
18: '4.5rem', 18: '4.5rem',