340 lines
5.9 KiB
CSS
340 lines
5.9 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
:root{
|
|
--copy-btn-margin:10px;
|
|
/* Pastel Palette Colors for Spaghetti Theme */
|
|
--spaghetti-yellow: #FDE68A;
|
|
--spaghetti-red: #FECACA;
|
|
--spaghetti-cream: #FEF3C7;
|
|
--spaghetti-brown: #78350F;
|
|
}
|
|
|
|
@layer base {
|
|
@font-face {
|
|
font-family: "Atkinson";
|
|
src: url("/fonts/atkinson-regular.woff") format("woff");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Atkinson";
|
|
src: url("/fonts/atkinson-bold.woff") format("woff");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
}
|
|
|
|
html {
|
|
overflow-y: scroll;
|
|
color-scheme: light;
|
|
background-color: var(--spaghetti-cream);
|
|
font-family: "Atkinson", sans-serif;
|
|
|
|
}
|
|
|
|
html.dark {
|
|
color-scheme: dark;
|
|
background-color: #000000; /* Darker black for better contrast */
|
|
}
|
|
|
|
/* Apply pastel cream background to main content areas */
|
|
main {
|
|
@apply flex flex-col flex-1 bg-spaghetti-cream dark:bg-black;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
@apply h-full w-full antialiased;
|
|
@apply text-black/75 dark:text-white/75;
|
|
}
|
|
|
|
/* Better dark mode text contrast */
|
|
.dark {
|
|
--tw-text-opacity: 1;
|
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
}
|
|
|
|
/* Improved border visibility in dark mode */
|
|
.border-black\/15 {
|
|
border-color: rgba(255, 255, 255, 0.15) !important;
|
|
}
|
|
|
|
.border-white\/20 {
|
|
border-color: rgba(255, 255, 255, 0.2) !important;
|
|
}
|
|
|
|
/* Better contrast for links and important text */
|
|
.prose a {
|
|
color: var(--spaghetti-red) !important;
|
|
}
|
|
|
|
.prose h1,
|
|
.prose h2,
|
|
.prose h3,
|
|
.prose h4,
|
|
.prose h5,
|
|
.prose h6 {
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.prose code {
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.prose blockquote {
|
|
border-left-color: var(--spaghetti-yellow) !important;
|
|
}
|
|
|
|
.prose th,
|
|
.prose td {
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.page-heading {
|
|
@apply font-semibold text-black dark:text-white;
|
|
}
|
|
|
|
/* Better contrast for text elements */
|
|
.text-spaghetti-brown {
|
|
color: #f59e0b !important; /* Amber-400 for better visibility */
|
|
}
|
|
|
|
/* Better background for code blocks in dark mode */
|
|
.prose pre {
|
|
background-color: #1f2937 !important; /* gray-800 */
|
|
color: #f9fafb !important; /* gray-50 */
|
|
}
|
|
|
|
/* Improved dark mode for cards and buttons */
|
|
.group:hover .border-black\/15,
|
|
.group:hover .border-white\/20 {
|
|
border-color: rgba(255, 255, 255, 0.3) !important;
|
|
}
|
|
|
|
/* Pastel Theme Colors */
|
|
.text-spaghetti-yellow {
|
|
color: var(--spaghetti-yellow);
|
|
}
|
|
|
|
.text-spaghetti-red {
|
|
color: var(--spaghetti-red);
|
|
}
|
|
|
|
.text-spaghetti-brown {
|
|
color: var(--spaghetti-brown);
|
|
}
|
|
|
|
.bg-spaghetti-cream {
|
|
background-color: var(--spaghetti-cream);
|
|
}
|
|
|
|
body {
|
|
@apply relative flex flex-col;
|
|
@apply bg-white dark:bg-black;
|
|
}
|
|
|
|
main {
|
|
@apply flex flex-col flex-1 bg-white dark:bg-black;
|
|
}
|
|
|
|
header {
|
|
@apply border-b;
|
|
@apply transition-all duration-300 ease-in-out;
|
|
}
|
|
|
|
header:not(.scrolled) {
|
|
@apply bg-transparent border-transparent;
|
|
}
|
|
|
|
header.scrolled {
|
|
@apply bg-white/75 dark:bg-black/50;
|
|
@apply border-black/10 dark:border-white/25;
|
|
@apply backdrop-blur-sm saturate-200;
|
|
}
|
|
|
|
article {
|
|
@apply prose dark:prose-invert max-w-full pb-12;
|
|
/* Ensure our theme colors are applied properly in prose */
|
|
color: var(--spaghetti-brown);
|
|
}
|
|
|
|
/* Override default prose styles that conflict with our theme */
|
|
.prose {
|
|
color: var(--spaghetti-brown);
|
|
}
|
|
|
|
.prose a {
|
|
color: var(--spaghetti-red);
|
|
}
|
|
|
|
.prose h1,
|
|
.prose h2,
|
|
.prose h3,
|
|
.prose h4,
|
|
.prose h5,
|
|
.prose h6 {
|
|
color: var(--spaghetti-brown);
|
|
}
|
|
|
|
.prose code {
|
|
color: var(--spaghetti-brown);
|
|
}
|
|
|
|
.prose pre {
|
|
background-color: var(--spaghetti-cream);
|
|
}
|
|
|
|
.prose blockquote {
|
|
border-left-color: var(--spaghetti-yellow);
|
|
}
|
|
|
|
.prose th,
|
|
.prose td {
|
|
color: var(--spaghetti-brown);
|
|
}
|
|
|
|
.page-heading {
|
|
@apply font-semibold text-black dark:text-white;
|
|
}
|
|
|
|
.blend {
|
|
@apply transition-all duration-300 ease-in-out;
|
|
}
|
|
|
|
/** Light theme particles on home page */
|
|
@keyframes animateParticle {
|
|
from {
|
|
transform: translateY(0px);
|
|
}
|
|
to {
|
|
transform: translateY(-2000px);
|
|
}
|
|
}
|
|
|
|
/** styles for public /animation.js */
|
|
.animate {
|
|
opacity: 0;
|
|
transform: translateY(50px);
|
|
transition: opacity 1s ease, transform 1s ease;
|
|
}
|
|
|
|
.animate.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
article img {
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/**
|
|
* TWINKLE STARS
|
|
*/
|
|
|
|
#twinkle-star.template {
|
|
@apply absolute -left-full; /* hide offscreen */
|
|
}
|
|
|
|
#twinkle-star.twinkle {
|
|
@apply animate-twinkle; /* defined in tailwind.config */
|
|
}
|
|
|
|
|
|
/**
|
|
* Meteors
|
|
*/
|
|
|
|
#meteors .shower {
|
|
@apply absolute inset-0 top-0;;
|
|
@apply left-1/2 -translate-x-1/2;
|
|
@apply w-screen aspect-square;
|
|
}
|
|
|
|
#meteors .meteor {
|
|
@apply animate-meteor; /* defined in tailwind.config */
|
|
@apply absolute top-1/2 left-1/2 w-px h-[75vh];
|
|
@apply bg-gradient-to-b from-white to-transparent;
|
|
}
|
|
|
|
#meteors .shower.ur {
|
|
@apply rotate-45;
|
|
}
|
|
|
|
#meteors .shower.dr {
|
|
@apply rotate-135;
|
|
}
|
|
|
|
#meteors .shower.dl {
|
|
@apply rotate-225;
|
|
}
|
|
|
|
#meteors .shower.ul {
|
|
@apply rotate-315;
|
|
}
|
|
|
|
/**
|
|
* TWINKLE NOODLES
|
|
*/
|
|
|
|
#noodle.template {
|
|
@apply absolute -left-full; /* hide offscreen */
|
|
}
|
|
|
|
#noodle.twinkle {
|
|
@apply animate-twinkle; /* defined in tailwind.config */
|
|
}
|
|
|
|
|
|
/**
|
|
* Meatballs
|
|
*/
|
|
|
|
#meatballs .shower {
|
|
@apply absolute inset-0 top-0;;
|
|
@apply left-1/2 -translate-x-1/2;
|
|
@apply w-screen aspect-square;
|
|
}
|
|
|
|
#meatballs .meatball {
|
|
@apply animate-meatball; /* defined in tailwind.config */
|
|
@apply absolute top-1/2 left-1/2 w-px h-[75vh];
|
|
@apply bg-gradient-to-b from-white to-transparent;
|
|
}
|
|
|
|
#meatballs .shower.ur {
|
|
@apply rotate-45;
|
|
}
|
|
|
|
#meatballs .shower.dr {
|
|
@apply rotate-135;
|
|
}
|
|
|
|
#meatballs .shower.dl {
|
|
@apply rotate-225;
|
|
}
|
|
|
|
#meatballs .shower.ul {
|
|
@apply rotate-315;
|
|
}
|
|
.copy-cnt{
|
|
@apply absolute w-full;
|
|
top:var(--copy-btn-margin);
|
|
}
|
|
.copy-btn {
|
|
@apply w-[30px] fixed;
|
|
left:calc(100% - var(--copy-btn-margin));
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.copy-svg {
|
|
@apply w-full aspect-square text-white opacity-70 hover:opacity-90;
|
|
}
|