feat(ui): redesigned book card and menu (#2396)

This commit is contained in:
Alex
2026-09-21 13:01:58 +01:00
committed by GitHub
parent b7cfd20ecd
commit 5572fc2dbd
38 changed files with 2408 additions and 23 deletions
+28
View File
@@ -42,6 +42,26 @@
}
}
@keyframes skeleton-shimmer {
from {
background-position: 200% 0;
}
to {
background-position: -200% 0;
}
}
@utility animate-skeleton {
background-image: linear-gradient(
90deg,
var(--color-skeleton-base) 0%,
var(--color-skeleton-highlight) 50%,
var(--color-skeleton-base) 100%
);
background-size: 200% 100%;
animation: skeleton-shimmer 2s linear infinite;
}
@font-face {
font-family: "Inter";
font-style: normal;
@@ -80,6 +100,7 @@
@theme static {
--font-sans: var(--font-ui, "Inter", sans-serif);
--font-cover-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
--text-app-xs: 0.6563rem;
--text-app-sm: 0.7656rem;
@@ -134,9 +155,14 @@
--color-logo-start: var(--color-primary-400);
--color-logo-end: var(--color-primary-600);
--color-logo-bookmark: #FF2126;
--color-skeleton-base: var(--color-surface-200);
--color-skeleton-highlight: var(--color-surface-100);
--shadow-control: 0 1px 2px -1px rgb(0 0 0 / 6%), 0 2px 4px 0 rgb(0 0 0 / 4%);
--shadow-pop: 0 4px 12px -2px rgb(0 0 0 / 12%), 0 2px 6px -2px rgb(0 0 0 / 8%);
--shadow-card: inset 0 0 0 1px rgb(255 255 255 / 6%), 0 1px 3px rgb(0 0 0 / 25%);
--shadow-card-hover: inset 0 0 0 1px rgb(255 255 255 / 8%), 0 6px 12px rgb(0 0 0 / 30%);
--ease-glide: cubic-bezier(0.32, 0.72, 0, 1);
}
:root {
@@ -192,6 +218,8 @@
--color-logo-start: var(--color-primary-300);
--color-logo-end: var(--color-primary-500);
--color-logo-bookmark: var(--color-white);
--color-skeleton-base: var(--color-surface-700);
--color-skeleton-highlight: var(--color-surface-600);
--color-warning: var(--color-amber-400);
--color-info: var(--color-sky-400);
--shadow-control: 0 1px 2px -1px rgb(0 0 0 / 50%), 0 2px 4px 0 rgb(0 0 0 / 40%);