Skip to content

Commit e88e67f

Browse files
authored
Merge pull request #63 from Larguma/main
theme: add catppuccin mocha/latte
2 parents 4e53e69 + 171ec63 commit e88e67f

7 files changed

Lines changed: 100 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ A completely decentralized chat system built directly on top of the swarm topolo
5252
### 3. Visualizations
5353
* **Particle Map:** Visualizes approximate peer locations (if enabled).
5454
* **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" />
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" />
5656

5757
---
5858

THEMES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424

2525
![Volcano theme screenshot](assets/images/volcano-theme.png)
2626

27+
### Catppuccin Mocha
28+
29+
![Catppuccin mocha theme screenshot](assets/images/catppuccin-mocha-theme.png)
30+
31+
### Catppuccin Latte
32+
33+
![Catppuccin latte theme screenshot](assets/images/catppuccin-latte-theme.png)
34+
2735
# Contributing custom themes
2836

2937
1. Fork `main` and clone locally to your device.
@@ -40,7 +48,9 @@
4048
'nord-dark.css',
4149
'solarized-light.css',
4250
'volcano.css',
43-
'new-theme.css' /* always add to the end of the list
51+
'catppuccin-mocha.css',
52+
'catppuccin-latte.css',
53+
'new-theme.css' // always add to the end of the list
4454
];
4555
```
4656
4. Change the colors as you desire. Reference [`index.html`](public/index.html) and [`style.css`](public/style.css) as needed.
1.92 MB
Loading
2.29 MB
Loading

public/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,8 @@ const themes = [
978978
"nord-dark.css",
979979
"solarized-light.css",
980980
"volcano.css",
981+
"catppuccin-mocha.css",
982+
"catppuccin-latte.css",
981983
];
982984

983985
let currentThemeIndex = 0;

public/themes/catppuccin-latte.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
:root {
2+
--color-count: #8839ef;
3+
--color-particle: #7287fd;
4+
--color-particle-link: rgba(114, 135, 253, 0.15);
5+
--color-pulse: #ea76cb;
6+
--color-theme-toggle: #7287fd;
7+
--color-theme-toggle-hover: #8839ef;
8+
--color-bg-main: #eff1f5;
9+
--color-bg-overlay: rgba(239, 241, 245, 0.8);
10+
11+
--color-text-default: #4c4f69;
12+
--color-text-main-label: #179299;
13+
--color-text-footer: #6c6f85;
14+
--color-text-footer-hover: #179299;
15+
--color-text-debug: #8c8fa1;
16+
--color-text-debug-link: #8c8fa1;
17+
--color-text-debug-link-hover: #179299;
18+
--color-text-anchor-link: #6c6f85;
19+
20+
--color-modal-bg: #eff1f5;
21+
--color-modal-border: #dce0e8;
22+
--color-modal-title: #8839ef;
23+
--color-modal-close-btn: #8c8fa1;
24+
--color-modal-close-btn-hover: #d20f39;
25+
--color-modal-stat-div: #e6e9ef;
26+
--color-modal-stat-label: #6c6f85;
27+
--color-modal-stat-value: #179299;
28+
--color-modal-footer: #8839ef;
29+
30+
--color-terminal-bg: rgba(230, 233, 239, 0.9);
31+
--color-terminal-border: #dce0e8;
32+
--color-terminal-shadow: rgba(0, 0, 0, 0.3);
33+
--color-terminal-input-text: #4c4f69;
34+
--color-terminal-input-divider: #ccd0da;
35+
--color-terminal-output-message: #5c5f77;
36+
--color-terminal-tab-arrow: #7287fd;
37+
--color-terminal-tab-arrow-hover: #8839ef;
38+
--color-terminal-tab-bg-hover: #ccd0da;
39+
--color-terminal-status-message: #9ca0b0;
40+
--color-terminal-scrollbar: #7287fd;
41+
--color-terminal-scrollbar-hover: #8839ef;
42+
--color-terminal-text-default: #7287fd;
43+
}

public/themes/catppuccin-mocha.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
:root {
2+
--color-count: #cba6f7;
3+
--color-particle: #b4befe;
4+
--color-particle-link: rgba(180, 190, 254, 0.15);
5+
--color-pulse: #f5c2e7;
6+
--color-theme-toggle: #b4befe;
7+
--color-theme-toggle-hover: #cba6f7;
8+
--color-bg-main: #1e1e2e;
9+
--color-bg-overlay: rgba(30, 30, 46, 0.8);
10+
11+
--color-text-default: #cdd6f4;
12+
--color-text-main-label: #94e2d5;
13+
--color-text-footer: #a6adc8;
14+
--color-text-footer-hover: #94e2d5;
15+
--color-text-debug: #7f849c;
16+
--color-text-debug-link: #7f849c;
17+
--color-text-debug-link-hover: #94e2d5;
18+
--color-text-anchor-link: #a6adc8;
19+
20+
--color-modal-bg: #1e1e2e;
21+
--color-modal-border: #11111b;
22+
--color-modal-title: #cba6f7;
23+
--color-modal-close-btn: #7f849c;
24+
--color-modal-close-btn-hover: #f38ba8;
25+
--color-modal-stat-div: #181825;
26+
--color-modal-stat-label: #a6adc8;
27+
--color-modal-stat-value: #94e2d5;
28+
--color-modal-footer: #cba6f7;
29+
30+
--color-terminal-bg: rgba(24, 24, 37, 0.9);
31+
--color-terminal-border: #11111b;
32+
--color-terminal-shadow: rgba(0, 0, 0, 0.3);
33+
--color-terminal-input-text: #cdd6f4;
34+
--color-terminal-input-divider: #313244;
35+
--color-terminal-output-message: #bac2de;
36+
--color-terminal-tab-arrow: #b4befe;
37+
--color-terminal-tab-arrow-hover: #cba6f7;
38+
--color-terminal-tab-bg-hover: #313244;
39+
--color-terminal-status-message: #6c7086;
40+
--color-terminal-scrollbar: #b4befe;
41+
--color-terminal-scrollbar-hover: #cba6f7;
42+
--color-terminal-text-default: #b4befe;
43+
}

0 commit comments

Comments
 (0)