From 1a2e893a033e4dad77ee0c742b431cf38d4f16fc Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 23 Sep 2025 02:30:00 +0100 Subject: [PATCH] New themes, cyberpunk --- .../components/furniture/SettingsMenu.svelte | 71 ++++---- src/styles/variables.scss | 158 +++++++++++++++--- 2 files changed, 165 insertions(+), 64 deletions(-) diff --git a/src/lib/components/furniture/SettingsMenu.svelte b/src/lib/components/furniture/SettingsMenu.svelte index b2d2864..f615eae 100644 --- a/src/lib/components/furniture/SettingsMenu.svelte +++ b/src/lib/components/furniture/SettingsMenu.svelte @@ -5,7 +5,7 @@ import { accessibility, type AccessibilityOption } from '$lib/stores/accessibility'; import { tooltip } from '$lib/actions/tooltip'; import { browser } from '$app/environment'; - import { theme, themes, type ThemeOption } from '$lib/stores/theme'; + import { theme, themes, type ThemeOption, type Theme } from '$lib/stores/theme'; import { navbarDisplay, navbarDisplayOptions, type NavbarDisplayMode } from '$lib/stores/navbarDisplay'; import { site } from '$lib/constants/site'; @@ -132,6 +132,24 @@ {/snippet} +{#snippet themeButton(themeOption: Theme)} + +{/snippet} +
+ {@render themeButton(themeOption)} {/each} {#if showMoreThemes && themes.length > 6}
{#each themes.slice(6) as themeOption (themeOption.id)} - + {@render themeButton(themeOption)} {/each}
{/if} @@ -406,28 +396,29 @@ height: 1rem; border-radius: var(--radius-xs); border: 1px solid var(--border-secondary); - &.theme-light { + &.theme-preview-light { background: linear-gradient(135deg, #f4f2fa 50%, #fff 50%); } - &.theme-dark { + &.theme-preview-dark { background: linear-gradient(135deg, #0d1117 50%, #161b22 50%); } - &.theme-ocean { + &.theme-preview-ocean { background: linear-gradient(135deg, #131c2b 50%, #70edb7 50%); } - &.theme-purple { + &.theme-preview-purple { background: linear-gradient(135deg, #13182b 50%, #cca6ff 50%); } - &.theme-cyberpunk { - background: linear-gradient(135deg, #0a0614 50%, #ff00ff 50%); + &.theme-preview-cyberpunk { + background: linear-gradient(135deg, #000308 30%, #f700ff 70%); + box-shadow: 0 0 8px rgba(0, 255, 204, 0.4); } - &.theme-midnight { + &.theme-preview-midnight { background: linear-gradient(135deg, #0a0e27 50%, #5e72e4 50%); } - &.theme-arctic { + &.theme-preview-arctic { background: linear-gradient(135deg, #f0f4f8 50%, #00acc1 50%); } - &.theme-terminal { + &.theme-preview-terminal { background: linear-gradient(135deg, #000000 50%, #00ff00 50%); } } diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 4c18f23..6809de6 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -146,52 +146,162 @@ html[data-theme='light'] { --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.16); } -/* Cyberpunk Theme - Neon tech aesthetic with glowing effects */ +/* Cyberpunk Theme - Enhanced neon tech aesthetic with CRT effects */ .theme-cyberpunk, html[data-theme='cyberpunk'] { - /* Backgrounds - Dark with subtle purple undertones */ --bg-primary: #0a0614; --bg-secondary: #110a1f; --bg-tertiary: #1a0f2e; - /* Text - High contrast with slight glow */ --text-primary: #f0e6ff; --text-secondary: #b8a6d9; --text-tertiary: #8b7ba3; /* Primary - Hot pink neon */ - --color-primary: #ff00ff; - --color-primary-hover: #ff66ff; - --color-primary-dark: #cc00cc; + --color-primary: #e4ff00; + --color-primary-hover: #eaff2f; + --color-primary-dark: #b7cc00; - /* Action colors - Neon palette */ - --color-success: #00ff88; - --color-success-light: #66ffaa; - --color-warning: #ffaa00; - --color-warning-light: #ffcc66; - --color-error: #ff0055; - --color-error-light: #ff6688; + /* Action colors - Enhanced neon palette */ + --color-success: #39ff14; + --color-success-light: #7fff44; + --color-warning: #ffdd00; + --color-warning-light: #ffee55; + --color-error: #ff0066; + --color-error-light: #ff3388; --color-info: #00ddff; - --color-info-light: #66eeff; + --color-info-light: #44eeff; - --color-purple: #bf40ff; + --color-purple: #cc00ff; --color-pink: #ff0099; - /* Borders & surfaces - Subtle neon glow */ - --border-primary: #3d1f5c; - --border-secondary: #2a1540; - --surface-hover: #1f1033; - --surface-active: #2a1540; + /* Borders & surfaces - Enhanced neon glow */ + --border-primary: #004d66; + --border-secondary: #002233; + --surface-hover: #001122; + --surface-active: #003344; - /* Shadows with neon glow effect */ - --shadow-sm: 0 0 4px rgba(255, 0, 255, 0.2); - --shadow-md: 0 0 12px rgba(255, 0, 255, 0.3); - --shadow-lg: 0 0 24px rgba(255, 0, 255, 0.4); + /* Shadows with enhanced neon glow effects */ + --shadow-sm: 0 0 4px rgba(0, 255, 204, 0.2); + --shadow-md: 0 0 8px rgba(0, 255, 204, 0.3); + --shadow-lg: 0 0 16px rgba(0, 255, 204, 0.4); /* Fonts */ --font-heading: 'Orbitron', monospace; --font-body: 'Share Tech Mono', monospace; --font-mono: 'Share Tech Mono', monospace; + + h2 { + color: #fd3d90 !important; + } + + /* CRT Screen effect with moving scanlines */ + &::before { + content: ''; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 200vh; + pointer-events: none; + z-index: 9999; + background: linear-gradient( + 180deg, + rgba(68, 239, 255, 0.1), transparent 49%, rgb(253, 61, 144, 0.08) 50%, transparent + ); + background-size: 4px 4px; + animation: crt-scanlines 8s linear infinite; + } + + /* CRT Screen curvature effect on body */ + body::before { + content: ''; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + pointer-events: none; + z-index: 9998; + background: radial-gradient( + ellipse at center, + transparent 60%, + rgba(0, 0, 0, 0.2) 100% + ); + } + + /* Glitch effect for links */ + a { + transition: all 0.3s ease; + + &:hover { + animation: cyberpunk-glitch 0.3s ease-in-out; + text-shadow: -1px 0 #ff006f, 1px 0 #00ffcc; + } + + &:hover::before { + content: attr(href); + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + color: #ff006f; + background: transparent; + clip: rect(0, 0, 0, 0); + animation: cyberpunk-glitch-overlay 0.3s ease-in-out; + } + + &:hover::after { + content: attr(href); + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + color: #00ffcc; + background: transparent; + clip: rect(0, 0, 0, 0); + animation: cyberpunk-glitch-overlay-2 0.3s ease-in-out; + } + } +} + +/* Cyberpunk animations */ +@keyframes crt-scanlines { + 0% { transform: translateY(-5vh); } + 100% { transform: translateY(0); } +} + +@keyframes crt-flicker { + 0% { opacity: 1; } + 98% { opacity: 0.85; } + 99% { opacity: 0.99; } + 100% { opacity: 1; } +} + +@keyframes cyberpunk-glitch { + 0%, 100% { transform: translate(0); } + 20% { transform: translate(-2px, 2px); } + 40% { transform: translate(-2px, -2px); } + 60% { transform: translate(2px, 2px); } + 80% { transform: translate(2px, -2px); } +} + +@keyframes cyberpunk-glitch-overlay { + 0% { clip: rect(42px, 9999px, 44px, 0); } + 25% { clip: rect(12px, 9999px, 59px, 0); } + 50% { clip: rect(78px, 9999px, 23px, 0); } + 75% { clip: rect(34px, 9999px, 67px, 0); } + 100% { clip: rect(91px, 9999px, 18px, 0); } +} + +@keyframes cyberpunk-glitch-overlay-2 { + 0% { clip: rect(65px, 9999px, 23px, 0); } + 25% { clip: rect(34px, 9999px, 89px, 0); } + 50% { clip: rect(12px, 9999px, 56px, 0); } + 75% { clip: rect(78px, 9999px, 34px, 0); } + 100% { clip: rect(23px, 9999px, 67px, 0); } }