troylusty.com/src/styles/global.css

65 lines
1.5 KiB
CSS
Raw Normal View History

@import "tailwindcss";
@plugin "@tailwindcss/typography";
2024-12-23 21:18:55 +00:00
@theme inline {
--font-sans: var(--font-outfit);
--font-mono: var(--font-red-hat-mono);
--color-primary: var(--primary);
--color-secondary: var(--secondary);
--color-tertiary: var(--tertiary);
--color-button: var(--button);
--color-button-active: var(--button-active);
}
@theme {
--animate-reveal: reveal 0.3s forwards ease-in-out;
@keyframes reveal {
0% {
opacity: 0;
transform: translateY(20px);
filter: blur(4px);
}
100% {
opacity: 1;
transform: translateY(0px);
filter: blur(0px);
}
2024-12-23 21:18:55 +00:00
}
}
:root {
2025-02-07 10:42:51 +00:00
color-scheme: light dark;
2025-07-19 20:42:21 +01:00
--primary: light-dark(oklch(0.855 0.01 264), oklch(0.145 0.01 264));
--secondary: light-dark(oklch(0.145 0.01 264), oklch(0.855 0.01 264));
--tertiary: light-dark(oklch(0.556 0.01 264), oklch(0.556 0.01 264));
2025-07-19 20:42:21 +01:00
--button: light-dark(oklch(0.731 0.01 264), oklch(0.269 0.01 264));
--button-active: light-dark(oklch(0.629 0.01 264), oklch(0.371 0.01 264));
}
2025-01-18 21:50:40 +00:00
@media (prefers-color-scheme: dark) {
.astro-code,
.astro-code span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}
}
2025-05-29 23:29:45 +01:00
@layer utilities {
.underline {
@apply underline decoration-2 underline-offset-2;
}
}
2025-06-04 18:51:58 +01:00
@media print {
a {
text-decoration: none;
}
}