Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
charm
UI
Toggle Theme
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } /* NOTE: This is just an experiment and could use some changes to improve performance: https://x.com/actualTimWilson/status/1730753841795158313 See a production optimized version here: https://charmui.com */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); body { font-family: Inter, sans-serif; } @keyframes jumbo { from { background-position: 50% 50%, 50% 50%; } to { background-position: 350% 50%, 350% 50%; } } .jumbo { --stripes: repeating-linear-gradient( 100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16% ); --stripesDark: repeating-linear-gradient( 100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16% ); --rainbow: repeating-linear-gradient( 100deg, #60a5fa 10%, #e879f9 15%, #60a5fa 20%, #5eead4 25%, #60a5fa 30% ); background-image: var(--stripes), var(--rainbow); background-size: 300%, 200%; background-position: 50% 50%, 50% 50%; filter: blur(10px) invert(100%); mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%); pointer-events: none; } .jumbo::after { content: ""; position: absolute; inset: 0; background-image: var(--stripes), var(--rainbow); background-size: 200%, 100%; animation: jumbo 60s linear infinite; background-attachment: fixed; mix-blend-mode: difference; } .dark .jumbo { background-image: var(--stripesDark), var(--rainbow); filter: blur(10px) opacity(50%) saturate(200%); } .dark .jumbo::after { background-image: var(--stripesDark), var(--rainbow); }
console.log("Event Fired") function toggleTheme() { if (document.body.classList.contains("dark")) document.body.classList.remove("dark"); else document.body.classList.add("dark"); }