Skip to content

Commit

Permalink
use better accent colour + add libreddit styles (redlib-org#281)
Browse files Browse the repository at this point in the history
* update favicon with new logo

* only have 32x32 .ico file

* use #d74253 as new accent colour + add old libreddit styles + bolden accented buttons

* fix unrenamed libreddit themes
  • Loading branch information
DokterKaj authored Oct 10, 2024
1 parent b99412b commit 7dda8d9
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 6 deletions.
Binary file modified static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/favicon.ico
Binary file not shown.
Binary file modified static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
:root,
.dark {
/* Default & fallback theme (dark) */
--accent: red;
--accent: #d74253;
--green: #5cff85;
--text: white;
--foreground: #222;
Expand All @@ -62,7 +62,7 @@
/* Browser-defined light theme */
@media (prefers-color-scheme: light) {
:root {
--accent: #9a0000;
--accent: #aa2434;
--green: #00a229;
--text: black;
--foreground: #f5f5f5;
Expand Down Expand Up @@ -616,6 +616,7 @@ aside {
#feed_list > .selected {
background-color: var(--accent);
color: var(--foreground);
font-weight: 500;
}

#feed_list > a:not(.selected):hover {
Expand Down Expand Up @@ -870,6 +871,7 @@ main > * > footer > a {
#listing_options > a.selected {
background: var(--accent);
color: var(--foreground);
font-weight: 500;
}

#sort_options > a:not(.selected):hover,
Expand Down
2 changes: 1 addition & 1 deletion static/themes/black.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Black theme setting */
.black {
--accent: #9a0000;
--accent: #aa2434;
--green: #00a229;
--text: white;
--foreground: #0f0f0f;
Expand Down
2 changes: 1 addition & 1 deletion static/themes/dark.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Dark theme setting */
.dark{
--accent: red;
--accent: #d74253;
--green: #5cff85;
--text: white;
--foreground: #222;
Expand Down
14 changes: 14 additions & 0 deletions static/themes/libredditBlack.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Libreddit black theme setting */
.libredditBlack {
--accent: #009a9a;
--green: #00a229;
--text: white;
--foreground: #0f0f0f;
--background: black;
--outside: black;
--post: black;
--panel-border: 2px solid #0f0f0f;
--highlighted: #0f0f0f;
--visited: #aaa;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
14 changes: 14 additions & 0 deletions static/themes/libredditDark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Libreddit dark theme setting */
.libredditDark{
--accent: aqua;
--green: #5cff85;
--text: white;
--foreground: #222;
--background: #0f0f0f;
--outside: #1f1f1f;
--post: #161616;
--panel-border: 1px solid #333;
--highlighted: #333;
--visited: #aaa;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
19 changes: 19 additions & 0 deletions static/themes/libredditLight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Libreddit light theme setting */
.libredditLight {
--accent: #009a9a;
--green: #00a229;
--text: black;
--foreground: #f5f5f5;
--background: #ddd;
--outside: #ececec;
--post: #eee;
--panel-border: 1px solid #ccc;
--highlighted: white;
--visited: #555;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html:has(> .libredditLight) {
/* Hint color theme to browser for scrollbar */
color-scheme: light;
}
2 changes: 1 addition & 1 deletion static/themes/light.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Light theme setting */
.light {
--accent: #9a0000;
--accent: #aa2434;
--green: #00a229;
--text: black;
--foreground: #f5f5f5;
Expand Down

0 comments on commit 7dda8d9

Please sign in to comment.