wealth/packages/island/src/styles/island.css

39 lines
1.1 KiB
CSS

/* Entry that apps import after `tailwindcss`. Never load fonts with next/font: it hashes them (0011). */
@import './fonts.css';
@import './theme.css';
@import './utilities.css';
@source '../';
@layer base {
html {
background-color: var(--color-bg-page);
color: var(--color-text-primary);
font-family: var(--font-sans);
/* Every number is tabular: prices, dates, OTP, stats, countdowns. */
font-variant-numeric: tabular-nums;
-webkit-text-size-adjust: 100%;
}
/* An open modal dialog or sheet freezes the page behind its scrim. */
html:has(dialog:modal) {
overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
*,
::before,
::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
/* Nothing loops except a spinner while waiting; it slows down instead of stopping. */
.animate-spin {
animation-duration: 2.4s !important;
animation-iteration-count: infinite !important;
}
}
}