dkzlv/tw-dynamic-themes

How to utilize in a project

bilogic opened this issue · 2 comments

Hi,

Came to this via the article. Demo looks great but I'm a little lost on how I can utilize this to set the theme for my project. Can help? Thank you!

dkzlv commented

@bilogic Hey!

For now it's not a library or anything, tbh, that's purely a PoC. You can use this and the article as a guidance on how to achieve the same result. You can also copy the code (it's MIT licensed).

In future though I may put it out as a Next.js+TW dynamic theme toolkit of a sort with all the necessities as a dependency.

Lmk if you have any further questions.

Yes, I like add this to my tailwind websites to make them look different with just 1 slider

Some questions are:

  1. What do I need to be writing differently? Are these text-accent-500, bg-secondary-300 the only changes? is there bg-primary-xxx?
  2. Is there a full list of what I need to add to my tailwind.config.js? I see some items in the article, but not sure where to add const lightness = ...