From da21e38ae3d9da62ce5637da047f2bd84a90b95b Mon Sep 17 00:00:00 2001 From: Astreaprtcl Date: Sat, 21 Feb 2026 21:46:00 +0100 Subject: [PATCH] style: add catppuccin themes --- .env.example | 2 +- README.md | 4 ++-- static/themes/catppuccinFrappe.css | 13 +++++++++++++ static/themes/catppuccinLatte.css | 13 +++++++++++++ static/themes/catppuccinMacchiato.css | 13 +++++++++++++ static/themes/catppuccinMocha.css | 13 +++++++++++++ 6 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 static/themes/catppuccinFrappe.css create mode 100644 static/themes/catppuccinLatte.css create mode 100644 static/themes/catppuccinMacchiato.css create mode 100644 static/themes/catppuccinMocha.css diff --git a/.env.example b/.env.example index 5e60b082..4c637af4 100644 --- a/.env.example +++ b/.env.example @@ -12,7 +12,7 @@ REDLIB_ROBOTS_DISABLE_INDEXING=off REDLIB_PUSHSHIFT_FRONTEND=undelete.pullpush.io # Default user settings -# Set the default theme (options: system, light, dark, black, dracula, nord, laserwave, violet, gold, rosebox, gruvboxdark, gruvboxlight) +# Set the default theme (options: system, light, dark, black, dracula, nord, laserwave, violet, gold, rosebox, gruvboxdark, gruvboxlight, catppuccinLatte, catppuccinFrappe, catppuccinMacchiato, catppuccinMocha) REDLIB_DEFAULT_THEME=system # Set the default front page (options: default, popular, all) REDLIB_DEFAULT_FRONT_PAGE=default diff --git a/README.md b/README.md index 666ff6d3..ad9f3a3c 100644 --- a/README.md +++ b/README.md @@ -423,7 +423,7 @@ Assign a default value for each user-modifiable setting by passing environment v | Name | Possible values | Default value | | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------- | -| `THEME` | `["system", "light", "dark", "black", "dracula", "nord", "laserwave", "violet", "gold", "rosebox", "gruvboxdark", "gruvboxlight", "tokyoNight", "icebergDark", "doomone", "libredditBlack", "libredditDark", "libredditLight"]` | `system` | +| `THEME` | `["system", "light", "dark", "black", "dracula", "nord", "laserwave", "violet", "gold", "rosebox", "gruvboxdark", "gruvboxlight", "tokyoNight", "icebergDark", "doomone", "libredditBlack", "libredditDark", "libredditLight", "catppuccinLatte", "catppuccinFrappe", "catppuccinMacchiato", "catppuccinMocha"]` | `system` | | `FRONT_PAGE` | `["default", "popular", "all"]` | `default` | | `LAYOUT` | `["card", "clean", "compact"]` | `card` | | `WIDE` | `["on", "off"]` | `off` | @@ -441,4 +441,4 @@ Assign a default value for each user-modifiable setting by passing environment v | `HIDE_SCORE` | `["on", "off"]` | `off` | | `HIDE_SIDEBAR_AND_SUMMARY` | `["on", "off"]` | `off` | | `FIXED_NAVBAR` | `["on", "off"]` | `on` | -| `REMOVE_DEFAULT_FEEDS` | `["on", "off"]` | `off` | \ No newline at end of file +| `REMOVE_DEFAULT_FEEDS` | `["on", "off"]` | `off` | diff --git a/static/themes/catppuccinFrappe.css b/static/themes/catppuccinFrappe.css new file mode 100644 index 00000000..d054f8fd --- /dev/null +++ b/static/themes/catppuccinFrappe.css @@ -0,0 +1,13 @@ +/* Catppuccin-Frappe theme setting */ +.catppuccinFrappe { + --accent: #babbf1; + --green: #a6d189; + --text: #c6d0f5; + --foreground: #414559; + --background: #303446; + --outside: #292c3c; + --post: #51576d; + --panel-border: 1px solid #626880; + --highlighted: #737994; + --shadow: 0 1px 3px rgba(0, 0, 0, 0.5); +} diff --git a/static/themes/catppuccinLatte.css b/static/themes/catppuccinLatte.css new file mode 100644 index 00000000..df4e59f3 --- /dev/null +++ b/static/themes/catppuccinLatte.css @@ -0,0 +1,13 @@ +/* Catppuccin-Latte theme setting */ +.catppuccinLatte { + --accent: #7287fd; + --green: #40a02b; + --text: #4c4f69; + --foreground: #ccd0da; + --background: #eff1f5; + --outside: #e6e9ef; + --post: #bcc0cc; + --panel-border: 1px solid #acb0be; + --highlighted: #9ca0b0; + --shadow: 0 1px 3px rgba(0, 0, 0, 0.5); +} diff --git a/static/themes/catppuccinMacchiato.css b/static/themes/catppuccinMacchiato.css new file mode 100644 index 00000000..b34b5f0a --- /dev/null +++ b/static/themes/catppuccinMacchiato.css @@ -0,0 +1,13 @@ +/* Catppuccin-Macchiato theme setting */ +.catppuccinMacchiato { + --accent: #b7bdf8; + --green: #a6da95; + --text: #cad3f5; + --foreground: #363a4f; + --background: #24273a; + --outside: #1e2030; + --post: #494d64; + --panel-border: 1px solid #5b6078; + --highlighted: #6e738d; + --shadow: 0 1px 3px rgba(0, 0, 0, 0.5); +} diff --git a/static/themes/catppuccinMocha.css b/static/themes/catppuccinMocha.css new file mode 100644 index 00000000..f7e4fb90 --- /dev/null +++ b/static/themes/catppuccinMocha.css @@ -0,0 +1,13 @@ +/* Catppuccin-Mocha theme setting */ +.catppuccinMocha { + --accent: #b4befe; + --green: #a6e3a1; + --text: #cdd6f4; + --foreground: #313244; + --background: #1e1e2e; + --outside: #181825; + --post: #45475a; + --panel-border: 1px solid #585b70; + --highlighted: #6c7086; + --shadow: 0 1px 3px rgba(0, 0, 0, 0.5); +}