josefaidt / svelte-themer

A theming engine for your Svelte apps using CSS Variables, persisted.
https://svelte-themer.vercel.app/
MIT License
140 stars 14 forks source link

feat: add support for default theme selection #31

Closed dysfunc closed 3 years ago

dysfunc commented 3 years ago

Adds support for user-provided theme selection on load. This is useful when dealing with multiple themes.

const themes = {
  light: { ... },
  dark: { ... },
  hello: { ... },
  world: { ...}
}
<ThemeWrapper themes="{themes}" theme="world">
vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/josefaidt/svelte-themer/BjoGENGvywJysnanTay2xBypWnEi
✅ Preview: https://svelte-themer-git-fork-dysfunc-default-theme-selection-1ee017.vercel.app

josefaidt commented 3 years ago

Before I merge I realized the updated actions are on the next branch that I haven't merged yet. May you bump the version to 0.4.6 so the action can handle publishing and creating a release? Once updated it'll strip the -next.XX off the version and publish to latest