chore: theme optimization

This commit is contained in:
Harivansh Rathi 2025-01-03 17:59:37 +05:30
parent 6d17375685
commit 7bacec764b
3 changed files with 99 additions and 94 deletions

View file

@ -1,21 +1,23 @@
:root { :root {
--bg-color: #0c0c0c; --bg-color: #080808;
--primary-color: #0d0d0d; --primary-color: #0f0f0f;
--secondary-color: #fff; --secondary-color: #fff;
--text-color: #fff; --text-color: #fff;
--text-color-2: #fff; --text-color-2: #fff;
--text-color-3: rgb(204, 0, 0); --text-color-3: rgb(204, 0, 0);
--overlay-color: rgb(12 12 12 / 63%); --overlay-color: rgb(8 8 8 / 63%);
--image-container-bg: #060606;
} }
[data-theme="light"] { [data-theme="light"] {
--bg-color: #ffffff; --bg-color: #e3dac9;
--primary-color: #ffffff; --primary-color: #e3dac9;
--secondary-color: #000; --secondary-color: #000;
--text-color: #000; --text-color: #000;
--text-color-2: #000; --text-color-2: #000;
--text-color-3: rgb(204, 0, 0); --text-color-3: rgb(204, 0, 0);
--overlay-color: rgb(255 255 255 / 70%); --overlay-color: rgb(227 218 201 / 70%);
--image-container-bg: #d8c9b2;
} }
html, html,
@ -30,7 +32,7 @@ body {
overflow-y: visible; overflow-y: visible;
background-color: var(--bg-color); background-color: var(--bg-color);
color: var(--text-color); color: var(--text-color);
font-family: 'Raleway', sans-serif; font-family: "Raleway", sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
padding-top: 60px; padding-top: 60px;
@ -71,7 +73,8 @@ p {
} }
code { code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
} }
.cursor__dot div { .cursor__dot div {

View file

@ -102,6 +102,8 @@ section {
overflow: hidden; overflow: hidden;
margin: 0 auto; margin: 0 auto;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
background-color: var(--image-container-bg);
border: 0.5px solid var(--secondary-color);
} }
.ac_btn { .ac_btn {

View file

@ -10,9 +10,9 @@
text-align: center; text-align: center;
margin: 0.5rem; margin: 0.5rem;
position: relative; position: relative;
background: var(--secondary-color); background: var(--image-container-bg);
padding: 6px; padding: 6px;
border: 1px solid var(--secondary-color); border: 1px solid var(--image-container-bg);
transition: 0.3s ease; transition: 0.3s ease;
font-size: 0; font-size: 0;
min-height: 300px; min-height: 300px;