Svelte Themer screenshot

Svelte Themer

Author Avatar Theme by Josefaidt
Updated: 30 Jan 2022
140 Stars

A theming engine for your Svelte apps using CSS Variables, persisted.

Categories

Overview

svelte-themer is a theming engine designed for Svelte apps. It utilizes CSS Variables to allow for easy theming, and also includes persistence functionality. With svelte-themer, you can use preset themes or create your own, and there are components available for easy theme toggling. The library also supports theme loading order and provides access to the theme context.

Features

  • CSS Variables: svelte-themer utilizes CSS Variables for app-wide theming.
  • Theme Persistence: The chosen theme is persisted using localStorage by default.
  • Theme Loading Order: Themes are loaded in a specific order, allowing for customization.
  • Accessible Theme Context: The library provides a pattern for accessing the theme context and creating custom toggle buttons.

Installation

To install svelte-themer, use the following command:

npm install svelte-themer

Summary

svelte-themer is a powerful theming engine for Svelte apps. It provides a simple and efficient way to apply themes using CSS Variables and includes persistence functionality. With features such as theme loading order and accessible theme context, svelte-themer offers a great solution for theming your Svelte applications.