Skip to content

Commit 528226d

Browse files
committed
- improve text to background contrasts
- slightly reduce redundancy
1 parent cf47a42 commit 528226d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

index.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<title>GPTGames: Collection of AI-Generated HTML Games and Utilities</title>
1616
<style>
1717
:root {
18-
--primary:#0276a8; --primary-hover: #015f87; --secondary: #bf6b0b; --secondary-hover: #9c5b06;
18+
--primary:#005885; --primary-hover: #004a6e; --secondary: #166437; --secondary-hover: #114a2a;
1919
--bg:#f8f9fa; --card:#fff; --dark:#1e272e; --gray:#e2e6ea; --text:#1e272e; --border:#dee2e6;
2020
--shadow:0 2px 6px rgba(0,0,0,0.08); --radius:8px; --transition:all 0.2s ease;
2121
}
@@ -61,7 +61,7 @@
6161
.card-type {position:absolute; top:0.5rem; left:0.5rem; padding:0.25rem 0.5rem; border-radius:var(--radius); font-size:0.7rem; font-weight:600; color:white; z-index:2;}
6262
.card-type.game {background:var(--primary);}
6363
.card-type.tool {background:var(--secondary);}
64-
.new-badge {background:#2ecc71;}
64+
.new-badge {background:#166437;}
6565
.featured-badge {background:#9b59b6;}
6666
.card-content {padding:1rem; display:flex; flex-direction:column; flex-grow:1;}
6767
.card-title {font-size:1rem; font-weight:600; margin-bottom:0.5rem; color:var(--dark); display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;}
@@ -138,8 +138,17 @@
138138
.svg-inline--fa {display: inline-block;vertical-align: -0.125em;overflow: visible;}
139139
#themeToggleBtn:focus-visible {outline: 2px solid var(--primary);}
140140
.theme-icon-light, .theme-icon-dark {pointer-events: none;}
141-
.light-mode { --primary: #0276a8; --primary-hover: #015f87; --secondary: #bf6b0b; --secondary-hover: #9c5b06; --bg: #f8f9fa; --card: #fff; --dark: #1e272e; --gray: #e2e6ea; --text: #1e272e; --border: #dee2e6; --shadow: 0 2px 6px rgba(0,0,0,0.08); }
142-
.dark-mode { --primary: #029CDF; --primary-hover: #0276a8; --secondary: #bf6b0b; --secondary-hover: #9c5b06; --bg: #121212; --card: #1e1e1e; --dark: #d4d5d6; --gray: #2d2d2d; --text: #e4e6eb; --border: #333333; --shadow: 0 2px 6px rgba(0,0,0,0.2); }
141+
.dark-mode {
142+
--primary: #0068a0;
143+
--primary-hover: #005885;
144+
--bg: #121212;
145+
--card: #1e1e1e;
146+
--dark: #d4d5d6;
147+
--gray: #2d2d2d;
148+
--text: #e4e6eb;
149+
--border: #333333;
150+
--shadow: 0 2px 6px rgba(0,0,0,0.2);
151+
}
143152
.dark-mode body { background-color: var(--bg); background-blend-mode: color-burn; }
144153
.dark-mode header, .dark-mode .filter-bar, .dark-mode footer { background-color: var(--card); border-color: var(--border); }
145154
.dark-mode .card, .dark-mode .stat-card, .dark-mode .filter-dropdown { background-color: var(--card); box-shadow: var(--shadow); }

0 commit comments

Comments
 (0)