diff --git a/src/components/Computer.svelte b/src/components/Computer.svelte index bc9b167..86a9d97 100644 --- a/src/components/Computer.svelte +++ b/src/components/Computer.svelte @@ -98,7 +98,7 @@ }); -
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 178e17a..45a566c 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -10,7 +10,7 @@ import LocationIcon from "../assets/icons/location.svg";
---
Hey! I'm trafficlunar. I'm a
projects
diff --git a/src/style.css b/src/style.css
index eaeef3e..7c71b95 100644
--- a/src/style.css
+++ b/src/style.css
@@ -19,6 +19,39 @@
}
}
+ /* Catppuccin Latte */
+ --color-rosewater: #dc8a78;
+ --color-flamingo: #dd7878;
+ --color-pink: #ea76cb;
+ --color-mauve: #8839ef;
+ --color-red: #d20f39;
+ --color-maroon: #e64553;
+ --color-peach: #fe640b;
+ --color-yellow: #df8e1d;
+ --color-green: #40a02b;
+ --color-teal: #179287;
+ --color-sky: #04a5e5;
+ --color-sapphire: #209fb5;
+ --color-blue: #1e66f5;
+ --color-lavender: #7287fd;
+ --color-text: #4c4f69;
+ --color-subtext1: #5c5f77;
+ --color-subtext0: #6c6f85;
+ --color-overlay2: #7c7f93;
+ --color-overlay1: #8c8fa1;
+ --color-overlay0: #9ca0b0;
+ --color-surface2: #acb0be;
+ --color-surface1: #bcc0cc;
+ --color-surface0: #ccd0da;
+ --color-base: #eff1f5;
+ --color-mantle: #e6e9ef;
+ --color-crust: #dce0e8;
+
+ --color-base-darker: #eceef3;
+ --color-peach-darker: #ebcec1;
+}
+
+html[data-theme="dark"] {
/* Catppuccin Frappe */
--color-rosewater: #f2d5cf;
--color-flamingo: #eebebe;
@@ -121,3 +154,21 @@ section legend::after {
[data-tooltip]:hover::after {
@apply opacity-100 scale-100;
}
+
+/* Theme switching transition */
+::view-transition-new(root) {
+ mask: url('data:image/svg+xml,') right top / 0
+ no-repeat;
+ animation: scale 1s;
+ animation-fill-mode: both;
+}
+
+::view-transition-old(root) {
+ animation: none;
+}
+
+@keyframes scale {
+ to {
+ mask-size: 250vmax;
+ }
+}