Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme support #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GeorgeSG
Copy link

@GeorgeSG GeorgeSG commented Feb 8, 2025

👋 Hi @oppiliappan,

Love the project you've built and I'm happily running it in my homelab! I'd be happy to contribute some features / improvements if you feel they're a good direction for lurker.

Apologies for the consecutive PR. I got a bit too eager to update my master 😅


This adds support for custom theming.

In order to enable a theme, you must do the following:

  1. Set the LURKER_THEME environment variable to the theme name
  2. Have a <theme-name>.css file present in src/public.

Example

  • LURKER_THEME=catppuccin
  • mount catppuccin.css in /src/public/
  • catppuccin.css content:
      @media (prefers-color-scheme: dark) {
      	:root {
      		--bg-color: #1e1e2e;
      		--bg-color-muted: #313244;
      		--text-color: #cdd6f4;
      		--text-color-muted: #bac2de;
      		--blockquote-color: #a6e3a1;
      		--sticky-color: #cba6f7;
      		--gilded: #f9e2af;
      		--link-color: #94e2d5;
      		--link-visited-color: #bac2de;
      		--accent: var(--link-color);
      		--error-text-color: #eba0ac;
      	}
      }

image

@oppiliappan
Copy link
Owner

this is very cool, thanks, will take this for a spin later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants