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

Renames Dark theme to Midnight, and replaces Dark theme with a new Dark theme; Adds new Sepia and Forest inbuilt themes; Adds support for building custom themes directly using Pode.Web functions #588

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

Badgerati
Copy link
Owner

@Badgerati Badgerati commented Jun 23, 2024

Description of the Change

  • Renames the current Dark theme to "Midnight", and replace the Dark theme with a proper dark theme
  • Adds two new inbuilt themes: Sepia and Forest
  • Adds support on Add-PodeWebCustomTheme, plus several helper function, to build your own themes directly in Pode.Web

To help with #449, all themed CSS files are now CSS variable files only, and nearly all theming is now done on the frontend not the backend.

Examples

Use the Dark theme as a base, and change the Page background to "darkred" and the font-family to "wingdings" (because why not!):

Use-PodeWebTemplates -Title 'Example' -Theme Custom
Add-PodeWebCustomTheme -Name 'Custom1' -Base Dark `
    -BackgroundColourConfig (New-PodeWebBackgroundColourConfig -Page 'darkred') `
    -FontFamily 'wingdings'

…rk theme; Adds new Sepia and Forest inbuilt themes; Adds support for building custom themes directly using Pode.Web functions
@Badgerati Badgerati added the enhancement ⬆️ New feature or request label Jun 23, 2024
@Badgerati Badgerati added this to the 1.0.0 milestone Jun 23, 2024
@Badgerati Badgerati self-assigned this Jun 23, 2024
@Badgerati Badgerati merged commit 871f5dd into develop Jun 23, 2024
3 checks passed
@Badgerati Badgerati deleted the themes_new_and_custom branch June 23, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ⬆️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant