Skip to content

Instantly share code, notes, and snippets.

@gustavjorlov
gustavjorlov / index.html
Created January 18, 2024 21:46
A CSS Custom Property based theme toggle implementation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
:root {
--background: #dddddd;
--text-color: #333333;