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

Add theme support #32

Merged
merged 3 commits into from
Aug 29, 2024
Merged

Add theme support #32

merged 3 commits into from
Aug 29, 2024

Conversation

gjtorikian
Copy link
Owner

Should close #31

@elalemanyo would you be able to clone this repo, checkout this branch, and see if this fixes the theming problem for you?

@elalemanyo
Copy link

elalemanyo commented Aug 28, 2024

@gjtorikian Sorry for the delay but I didn't have time earlier 😬. Works perfectly 🙂 It was the only thing I was missing, thanks!

In the documentation you comment on this: Use JSON.read (or some such) to simply read the theme hash from your Tailwind config. How do you do it? I have not succeeded 🙈

@gjtorikian
Copy link
Owner Author

Ah yeah, I guess that is a bit misleading, as there's not really an easy way to pull it off. Sorry for the mislead, I removed that line from the doc. I think you have to manually keep the values in sync, or, just save the JSON hash in theme.json and then have both Tailwind.config.ts & tailwind_merge JSON.read from it.

@gjtorikian gjtorikian merged commit 35eadbc into main Aug 29, 2024
3 checks passed
@gjtorikian gjtorikian deleted the themed branch August 29, 2024 18:59
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.

Support for custom spacing
2 participants