mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.68k stars 349 forks source link

feat(theme): add option for dedicated CSS file per theme #1958

Closed meteyou closed 1 month ago

meteyou commented 1 month ago

Description

This PR adds an option to load an optional CSS file per theme. To enable this theme file, you have to add the attribute css: true to the theme settings and add a CSS file in /public/css/themes/<themeName>.css. This file will be fetched and added to the header.

Related Tickets & Documents

none

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

none