diff --git a/src/components/AppLayout/components/Html.astro b/src/components/AppLayout/components/Html.astro index 07ab651..f0d7039 100644 --- a/src/components/AppLayout/components/Html.astro +++ b/src/components/AppLayout/components/Html.astro @@ -226,7 +226,7 @@ const { currentTheme } = Astro.locals; --color-elevation-0: var(--color-base-150); --color-shadow-0: var(--color-base-500); - --color-shadow-1: var(--color-base-350); + --color-shadow-1: var(--color-base-400); --color-shadow-2: var(--color-base-300); --color-critical-error: #940000; @@ -397,15 +397,17 @@ const { currentTheme } = Astro.locals; } :root { + --font-size-increase: 4px + min(0.2vw, 3px); + --font-size-xs: 0.75rem; --font-size-s: 0.875rem; --font-size-m: 1rem; - --font-size-l: 1.125rem; - --font-size-xl: 1.25rem; - --font-size-2xl: 1.5rem; - --font-size-3xl: 1.875rem; - --font-size-4xl: 2.5rem; - --font-size-5xl: 4rem; + --font-size-l: calc(1rem + var(--font-size-increase) * 1); + --font-size-xl: calc(1rem + var(--font-size-increase) * 2); + --font-size-2xl: calc(1rem + var(--font-size-increase) * 3); + --font-size-3xl: calc(1rem + var(--font-size-increase) * 4); + --font-size-4xl: calc(1rem + var(--font-size-increase) * 6); + --font-size-5xl: calc(1rem + var(--font-size-increase) * 16); } html, @@ -700,6 +702,10 @@ const { currentTheme } = Astro.locals; } } + @view-transition { + navigation: auto; + } + .DEV_TODO { display: none !important; visibility: none !important; diff --git a/src/components/Previews/GenericPreview.astro b/src/components/Previews/GenericPreview.astro index 40e34c2..81940b0 100644 --- a/src/components/Previews/GenericPreview.astro +++ b/src/components/Previews/GenericPreview.astro @@ -78,9 +78,7 @@ const { {pretitle} )} - - {title} - + {title} {subtitle && ( {subtitle} @@ -168,18 +166,18 @@ const { & > p { transition: 150ms color; - display: grid; + line-height: 0.8; & > #pretitle { - margin-bottom: 0.4em; - } - - & > #title { - line-height: 0.8; + margin-bottom: 0.8em; } & > #subtitle { - margin-top: 0.4em; + margin-top: 0.5em; + } + + & > span { + display: block; } } diff --git a/src/pages/[locale]/dev/design-system/_components/ColorShowcase.astro b/src/pages/[locale]/dev/design-system/_components/ColorShowcase.astro index 50c905f..9695371 100644 --- a/src/pages/[locale]/dev/design-system/_components/ColorShowcase.astro +++ b/src/pages/[locale]/dev/design-system/_components/ColorShowcase.astro @@ -10,7 +10,7 @@ const { baseColors, theme } = Astro.props; ---
-

Base colors

+

Base colors

{ baseColors.map((color) => ( @@ -32,7 +32,7 @@ const { baseColors, theme } = Astro.props;
-

Elevation

+

Elevation

0
1
@@ -41,7 +41,7 @@ const { baseColors, theme } = Astro.props;
-

Shadows

+

Shadows

0
1
@@ -50,7 +50,7 @@ const { baseColors, theme } = Astro.props;
-

Others

+

Others

Error @@ -97,7 +97,6 @@ const { baseColors, theme } = Astro.props; h4 { line-height: 2; margin-bottom: 4px; - font-size: 120%; } .colors { diff --git a/src/pages/[locale]/dev/design-system/index.astro b/src/pages/[locale]/dev/design-system/index.astro index 2e7526c..54cdb0c 100644 --- a/src/pages/[locale]/dev/design-system/index.astro +++ b/src/pages/[locale]/dev/design-system/index.astro @@ -10,9 +10,9 @@ import ColorShowcase from "./_components/ColorShowcase.astro";
-

Colors

+

Colors

-

Light theme

+

Light theme

-

Dark theme

+

Dark theme

-

Fonts

+

Fonts

-

Lorem Ipsum 5XL

-

Lorem Ipsum 4XL

-

Lorem Ipsum 3XL

-

Lorem Ipsum 2XL

-

Lorem Ipsum XL

-

Lorem Ipsum L

-

Lorem Ipsum M

-

Lorem Ipsum S

-

Lorem Ipsum XS

+

Murencho Variable 5XL

+

Murencho Variable 4XL

+

Murencho Variable 3XL

+

Murencho Variable 2XL

+

Murencho Variable XL

+

Murencho Variable L

+

Murencho Variable M

+

Murencho Variable S

+

Murencho Variable XS

-

Lorem Ipsum 5XL

-

Lorem Ipsum 4XL

-

Lorem Ipsum 3XL

-

Lorem Ipsum 2XL

-

Lorem Ipsum XL

-

Lorem Ipsum L

-

Lorem Ipsum M

+

Vollkorn Variable 5XL

+

Vollkorn Variable 4XL

+

Vollkorn Variable 3XL

+

Vollkorn Variable 2XL

+

Vollkorn Variable XL

+

Vollkorn Variable L

+

Vollkorn Variable M

@@ -68,4 +68,17 @@ import ColorShowcase from "./_components/ColorShowcase.astro"; margin-top: 4em; max-width: unset; } + + h2 { + margin-top: 2em; + } + + h3 { + margin-top: 2em; + margin-bottom: 0.2em; + } + + h2 + h3 { + margin-top: 0.2em; + } diff --git a/src/pages/[locale]/folders/_components/FolderCard.astro b/src/pages/[locale]/folders/_components/FolderCard.astro index 4dde383..b219406 100644 --- a/src/pages/[locale]/folders/_components/FolderCard.astro +++ b/src/pages/[locale]/folders/_components/FolderCard.astro @@ -13,7 +13,7 @@ const { icon = "material-symbols:folder-outline", title, href } = Astro.props; -