Skip to content

Commit 3b80cb9

Browse files
authored
Merge pull request #67 from ggfevans/feature/dracula-theme
feat: add Dracula dark & light themes
2 parents 4822339 + 5ea7942 commit 3b80cb9

File tree

8 files changed

+108
-3
lines changed

8 files changed

+108
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ A completely decentralized chat system built directly on top of the swarm topolo
5151

5252
### 3. Visualizations
5353
* **Particle Map:** Visualizes approximate peer locations (if enabled).
54-
* **Themes:** Built-in theme switcher (Hypermind, Hypermind Classic, Nord, Solarized, Tokyo Night, etc).<br>
55-
<img src="assets/images/hypermind-theme.png" width="100" alt="Hypermind" /> <img src="assets/images/hypermind-classic-theme.png" width="100" alt="Hypermind Classic" /> <img src="assets/images/nord-dark-theme.png" width="100" alt="Nord" /> <img src="assets/images/solarized-light-theme.png" width="100" alt="Solarized" /> <img src="assets/images/tokyo-night-theme.png" width="100" alt="Tokyo Night" /> <img src="assets/images/volcano-theme.png" width="100" alt="Volcano" /> <img src="assets/images/catppuccin-mocha-theme.png" width="100" alt="Catppuccin Mocha" /> <img src="assets/images/catppuccin-latte-theme.png" width="100" alt="Catppuccin Latte" />
54+
* **Themes:** Built-in theme switcher (Hypermind, Hypermind Classic, Nord, Solarized, Tokyo Night, etc).
55+
56+
<img src="assets/images/hypermind-theme.png" width="100" alt="Hypermind" /> <img src="assets/images/hypermind-classic-theme.png" width="100" alt="Hypermind Classic" /> <img src="assets/images/nord-dark-theme.png" width="100" alt="Nord" /> <img src="assets/images/solarized-light-theme.png" width="100" alt="Solarized" /><br>
57+
<img src="assets/images/tokyo-night-theme.png" width="100" alt="Tokyo Night" /> <img src="assets/images/volcano-theme.png" width="100" alt="Volcano" /> <img src="assets/images/catppuccin-mocha-theme.png" width="100" alt="Catppuccin Mocha" /> <img src="assets/images/catppuccin-latte-theme.png" width="100" alt="Catppuccin Latte" /><br>
58+
<img src="assets/images/dracula-theme.png" width="100" alt="Dracula" /> <img src="assets/images/alucard-theme.png" width="100" alt="Alucard" />
5659

5760
---
5861

THEMES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232

3333
![Catppuccin latte theme screenshot](assets/images/catppuccin-latte-theme.png)
3434

35+
### Dracula
36+
37+
![Dracula theme screenshot](assets/images/dracula-theme.png)
38+
39+
### Alucard
40+
41+
![Dracula Light theme screenshot](assets/images/dracula-light-theme.png)
42+
3543
# Contributing custom themes
3644

3745
1. Fork `main` and clone locally to your device.
@@ -50,6 +58,8 @@
5058
'volcano.css',
5159
'catppuccin-mocha.css',
5260
'catppuccin-latte.css',
61+
'dracula.css',
62+
'dracula-light.css',
5363
'new-theme.css' // always add to the end of the list
5464
];
5565
```
1.22 MB
Loading

assets/images/dracula-theme.png

1.23 MB
Loading

docker-compose.dev.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ services:
33
build: .
44
image: hypermind
55
container_name: hypermind
6-
network_mode: host
6+
#network_mode: host
7+
ports:
8+
- "3000:3000"
79
restart: unless-stopped
810
environment:
911
- PORT=3000
12+
- ENABLE_CHAT=true
13+
- ENABLE_MAP=true

public/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,8 @@ const themes = [
980980
"volcano.css",
981981
"catppuccin-mocha.css",
982982
"catppuccin-latte.css",
983+
"dracula.css",
984+
"dracula-light.css",
983985
];
984986

985987
let currentThemeIndex = 0;

public/themes/dracula-light.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
:root {
2+
--color-count: #644ac9;
3+
--color-particle: #a3144d;
4+
--color-particle-link: rgba(163, 20, 77, 0.15);
5+
--color-pulse: #036a96;
6+
--color-theme-toggle: #a3144d;
7+
--color-theme-toggle-hover: #036a96;
8+
--color-bg-main: #fffbeb;
9+
--color-bg-overlay: rgba(255, 251, 235, 0.8);
10+
11+
--color-text-default: #1f1f1f;
12+
--color-text-main-label: #644ac9;
13+
--color-text-footer: #6c664b;
14+
--color-text-footer-hover: #644ac9;
15+
--color-text-debug: #6c664b;
16+
--color-text-debug-link: #6c664b;
17+
--color-text-debug-link-hover: #644ac9;
18+
--color-text-anchor-link: #6c664b;
19+
20+
--color-modal-bg: #fffbeb;
21+
--color-modal-border: #cfcfde;
22+
--color-modal-title: #a3144d;
23+
--color-modal-close-btn: #6c664b;
24+
--color-modal-close-btn-hover: #cb3a2a;
25+
--color-modal-stat-div: #cfcfde;
26+
--color-modal-stat-label: #6c664b;
27+
--color-modal-stat-value: #036a96;
28+
--color-modal-footer: #644ac9;
29+
30+
--color-terminal-bg: rgba(255, 251, 235, 0.9);
31+
--color-terminal-border: #cfcfde;
32+
--color-terminal-shadow: rgba(0, 0, 0, 0.3);
33+
--color-terminal-input-text: #036a96;
34+
--color-terminal-input-divider: #cfcfde;
35+
--color-terminal-output-message: #3d3d3d;
36+
--color-terminal-tab-arrow: #a34d14;
37+
--color-terminal-tab-arrow-hover: #036a96;
38+
--color-terminal-tab-bg-hover: #cfcfde;
39+
--color-terminal-status-message: #8a8a8a;
40+
--color-terminal-scrollbar: #b8b8b8;
41+
--color-terminal-scrollbar-hover: #8a8a8a;
42+
--color-terminal-text-default: #a34d14;
43+
}

public/themes/dracula.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
:root {
2+
--color-count: #bd93f9;
3+
--color-particle: #ff79c6;
4+
--color-particle-link: rgba(255, 121, 198, 0.15);
5+
--color-pulse: #8be9fd;
6+
--color-theme-toggle: #ff79c6;
7+
--color-theme-toggle-hover: #8be9fd;
8+
--color-bg-main: #282a36;
9+
--color-bg-overlay: rgba(40, 42, 54, 0.8);
10+
11+
--color-text-default: #f8f8f2;
12+
--color-text-main-label: #bd93f9;
13+
--color-text-footer: #6272a4;
14+
--color-text-footer-hover: #bd93f9;
15+
--color-text-debug: #6272a4;
16+
--color-text-debug-link: #6272a4;
17+
--color-text-debug-link-hover: #bd93f9;
18+
--color-text-anchor-link: #6272a4;
19+
20+
--color-modal-bg: #282a36;
21+
--color-modal-border: #44475a;
22+
--color-modal-title: #ff79c6;
23+
--color-modal-close-btn: #6272a4;
24+
--color-modal-close-btn-hover: #ff5555;
25+
--color-modal-stat-div: #44475a;
26+
--color-modal-stat-label: #6272a4;
27+
--color-modal-stat-value: #8be9fd;
28+
--color-modal-footer: #bd93f9;
29+
30+
--color-terminal-bg: rgba(40, 42, 54, 0.9);
31+
--color-terminal-border: #44475a;
32+
--color-terminal-shadow: rgba(0, 0, 0, 0.3);
33+
--color-terminal-input-text: #8be9fd;
34+
--color-terminal-input-divider: #44475a;
35+
--color-terminal-output-message: #50fa7b;
36+
--color-terminal-tab-arrow: #ffb86c;
37+
--color-terminal-tab-arrow-hover: #8be9fd;
38+
--color-terminal-tab-bg-hover: #44475a;
39+
--color-terminal-status-message: #6272a4;
40+
--color-terminal-scrollbar: #bd93f9;
41+
--color-terminal-scrollbar-hover: #8be9fd;
42+
--color-terminal-text-default: #ffb86c;
43+
}

0 commit comments

Comments
 (0)