Skip to content

Commit 54b62bb

Browse files
authored
Merge pull request #10 from openSVM/copilot/improve-themes-colors
Improve theme variety: add distinctive color schemes, fix Solarized yellow, add DOS/Borland theme
2 parents f447eda + a87fb5c commit 54b62bb

File tree

1 file changed

+78
-27
lines changed

1 file changed

+78
-27
lines changed

index.html

Lines changed: 78 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@
4040
}
4141

4242
[data-theme="night"] {
43-
--bg-primary: #1a1d29;
44-
--bg-secondary: #22252e;
45-
--bg-tertiary: #2a2d38;
46-
--text-primary: #d4d7dd;
47-
--text-secondary: #9ca3af;
48-
--text-muted: #6b7280;
49-
--border-primary: #3b3f4c;
50-
--border-secondary: #2a2d38;
51-
--accent-primary: #60a5fa;
52-
--accent-hover: #3b82f6;
53-
--error-color: #f87171;
54-
--selection-bg: #3b82f6;
55-
--checkbox-bg: #22252e;
43+
--bg-primary: #0f0f23;
44+
--bg-secondary: #1a1a3e;
45+
--bg-tertiary: #252550;
46+
--text-primary: #ccccff;
47+
--text-secondary: #9999ff;
48+
--text-muted: #6666cc;
49+
--border-primary: #9966ff;
50+
--border-secondary: #252550;
51+
--accent-primary: #ff6ec7;
52+
--accent-hover: #ffcc00;
53+
--error-color: #ff3366;
54+
--selection-bg: #ff6ec7;
55+
--checkbox-bg: #1a1a3e;
5656
}
5757

5858
[data-theme="terminal"] {
@@ -75,18 +75,66 @@
7575
--bg-primary: #002b36;
7676
--bg-secondary: #073642;
7777
--bg-tertiary: #094251;
78-
--text-primary: #839496;
79-
--text-secondary: #657b83;
80-
--text-muted: #586e75;
81-
--border-primary: #2aa198;
78+
--text-primary: #93a1a1;
79+
--text-secondary: #839496;
80+
--text-muted: #657b83;
81+
--border-primary: #b58900;
8282
--border-secondary: #094251;
83-
--accent-primary: #268bd2;
84-
--accent-hover: #2aa198;
83+
--accent-primary: #b58900;
84+
--accent-hover: #cb4b16;
8585
--error-color: #dc322f;
86-
--selection-bg: #268bd2;
86+
--selection-bg: #b58900;
8787
--checkbox-bg: #073642;
8888
}
8989

90+
[data-theme="solarized-light"] {
91+
--bg-primary: #fdf6e3;
92+
--bg-secondary: #eee8d5;
93+
--bg-tertiary: #e8e2d0;
94+
--text-primary: #657b83;
95+
--text-secondary: #839496;
96+
--text-muted: #93a1a1;
97+
--border-primary: #b58900;
98+
--border-secondary: #e8e2d0;
99+
--accent-primary: #b58900;
100+
--accent-hover: #cb4b16;
101+
--error-color: #dc322f;
102+
--selection-bg: #b58900;
103+
--checkbox-bg: #eee8d5;
104+
}
105+
106+
[data-theme="monokai-light"] {
107+
--bg-primary: #fafafa;
108+
--bg-secondary: #f5f5f5;
109+
--bg-tertiary: #eeeeee;
110+
--text-primary: #272822;
111+
--text-secondary: #75715e;
112+
--text-muted: #999988;
113+
--border-primary: #f92672;
114+
--border-secondary: #eeeeee;
115+
--accent-primary: #f92672;
116+
--accent-hover: #fd971f;
117+
--error-color: #f92672;
118+
--selection-bg: #a6e22e;
119+
--checkbox-bg: #f5f5f5;
120+
}
121+
122+
[data-theme="dos"] {
123+
--bg-primary: #0000aa;
124+
--bg-secondary: #0000bb;
125+
--bg-tertiary: #1111cc;
126+
--text-primary: #ffff55;
127+
--text-secondary: #ffffff;
128+
--text-muted: #aaaaaa;
129+
--border-primary: #ffff55;
130+
--border-secondary: #5555ff;
131+
--accent-primary: #00ffff;
132+
--accent-hover: #ffff00;
133+
--error-color: #ff5555;
134+
--selection-bg: #00ffff;
135+
--checkbox-bg: #0000bb;
136+
}
137+
90138
[data-theme="dracula"] {
91139
--bg-primary: #282a36;
92140
--bg-secondary: #21222c;
@@ -112,8 +160,8 @@
112160
--text-muted: #4c566a;
113161
--border-primary: #88c0d0;
114162
--border-secondary: #434c5e;
115-
--accent-primary: #81a1c1;
116-
--accent-hover: #88c0d0;
163+
--accent-primary: #88c0d0;
164+
--accent-hover: #8fbcbb;
117165
--error-color: #bf616a;
118166
--selection-bg: #5e81ac;
119167
--checkbox-bg: #3b4252;
@@ -126,10 +174,10 @@
126174
--text-primary: #abb2bf;
127175
--text-secondary: #5c6370;
128176
--text-muted: #4b5263;
129-
--border-primary: #61afef;
177+
--border-primary: #98c379;
130178
--border-secondary: #2c313a;
131-
--accent-primary: #61afef;
132-
--accent-hover: #56b6c2;
179+
--accent-primary: #e5c07b;
180+
--accent-hover: #e06c75;
133181
--error-color: #e06c75;
134182
--selection-bg: #528bff;
135183
--checkbox-bg: #282c34;
@@ -964,13 +1012,16 @@ <h1>idlhub.com - Solana IDL Registry</h1>
9641012
</button>
9651013
<div class="theme-dropdown" id="themeDropdown">
9661014
<div class="theme-option" data-theme="light">Light</div>
1015+
<div class="theme-option" data-theme="monokai-light">Monokai Light</div>
1016+
<div class="theme-option" data-theme="solarized-light">Solarized Light</div>
9671017
<div class="theme-option" data-theme="dark">Dark</div>
1018+
<div class="theme-option" data-theme="solarized">Solarized Dark</div>
9681019
<div class="theme-option" data-theme="night">Night</div>
969-
<div class="theme-option" data-theme="terminal">Terminal</div>
970-
<div class="theme-option" data-theme="solarized">Solarized</div>
9711020
<div class="theme-option" data-theme="dracula">Dracula</div>
9721021
<div class="theme-option" data-theme="nord">Nord</div>
9731022
<div class="theme-option" data-theme="onedark">One Dark</div>
1023+
<div class="theme-option" data-theme="terminal">Terminal</div>
1024+
<div class="theme-option" data-theme="dos">DOS / Borland</div>
9741025
</div>
9751026
</div>
9761027
<button class="bookmark-btn" id="showBookmarksBtn">

0 commit comments

Comments
 (0)