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.74k stars 377 forks source link

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

Closed meteyou closed 4 months ago

meteyou commented 4 months 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