Badgerati / Pode.Web

Web template framework for use with the Pode PowerShell web server
MIT License
194 stars 27 forks source link

Suggestion - bootswatch support #17

Closed mintminttea closed 3 years ago

mintminttea commented 3 years ago

Suggest to support bootswatch from https://bootswatch.com in theme. This could be easily done with switching with the theme name by changing the css or cdn url.

Use-PodeWebTemplates -Title 'Some Title' -Theme cyborg
Badgerati commented 3 years ago

I probably won't support bootswatch internally, as some themes will require custom logic to work properly, but this could be a good chance to get custom themes setup. Something like:

Use-PodeWebTemplates -Title Example -Theme Custom

Add-PodeWebCustomTheme -Name Cyborg -Url 'https://cdn.jsdelivr.net/npm/bootswatch@4.6.0/dist/cyborg/bootstrap.min.css'
Add-PodeWebCustomTheme -Name Lux -Url 'https://cdn.jsdelivr.net/npm/bootswatch@4.6.0/dist/lux/bootstrap.min.css'

If there are multiple, the first custom theme is the default.