this post was submitted on 13 Aug 2024
5 points (100.0% liked)

Lemmy Support

4656 readers
15 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

New Lemmy admin here. I found the Theming Guide in the Lemmy docs, but it jumps directly to the 'After a theme is added' section without explaining how to add or create themes. I've searched for examples but couldn't find any configuration that includes these details.

I found hanubeki-lemmy-themes, which actually contains some good themes. However, when I copied the 5 folder to my extra_theme folder, nothing happened. Can someone guide me on how to add these themes to my instance?

Update: You should put all your css file in the extra_themes folder, each .css is a theme. For hanubeki-lemmy-themes I put all the dist and src files in extra_themes and it works. I already done this before, but my browser was [caching lemmy-ui static files for 24 hours], so when I delete the cache it just works.

Thank you Sami, it was a cash problem, I updated the post with more details

you are viewing a single comment's thread
view the rest of the comments
[–] awiteb@lemmy.4rs.nl 1 points 3 months ago (1 children)

I tried putting all the css files, but nothing works. Should I put them together in one file? Or is each file a single theme?

I set the LEMMY_UI_EXTRA_THEMES_FOLDER environment variable to /app/extra_themes then volume my extra_theme to it, which is

# ...
volumes:
      - ./lemmy-ui/extra_themes:/app/extra_themes
# ...

Is this right?

[–] Sami@lemmy.zip 3 points 3 months ago (2 children)

That looks correct to me. Try doing a Ctrl+F5 on the theme selection page in settings for it to show up in the dropdown if you haven't done that.

[–] awiteb@lemmy.4rs.nl 2 points 3 months ago

Thanks Sami, it was a cache issue, I've updated the post with more details

[–] awiteb@lemmy.4rs.nl 1 points 3 months ago

I'll try that, hope it works, thank you