Skip to content

Conversation

zakarialaoui10
Copy link
Contributor

@zakarialaoui10 zakarialaoui10 commented Aug 14, 2025

Features

  • ⚡ Tree-Shakeable Themes :
  • 🎯 CSS Variables First :
  • 🧩 Namespace Support :
  • 🔄 Runtime Theme Switching :

Stackblitz Demo

Install

npm i themes-provider

How it works ?

⭐️ Show your support

If you appreciate the library, kindly demonstrate your support by giving it a star!

@zakarialaoui10
Copy link
Contributor Author

@Tao-VanJS
Copy link
Member

Your demo linked from the github home page failed to work:
image

Also, I'm not sure whether this project should be considered as a VanJS add-on. My understanding is that it's an independent project and websites built with VanJS can use it as well.

@zakarialaoui10
Copy link
Contributor Author

I’ll fix it now — I think I had linked it to StackBlitz before publishing it to npm. The other demo is working, so I’ll update the one in the repository’s README.

This utility is compatible with all frameworks, including VanJS. Its integration varies depending on the framework: in VanJS, the useTheme utility alone is sufficient, while in others, I need to create a ThemeProvider component. VanJS remains the most compatible one.

In addition, I build two types of plugins for VanJS:

  • VanJS-specific plugins (e.g., van-mdx, van-server)

  • Framework-agnostic or multi-support plugins, where the same utility works with VanJS and other targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants