I am curious how are you doing it. I have astro.js project with Tailwind CSS.
Look into style dictionary
With tailwind it’s definitely a bit tricky, last I checked there is also no tailwind 4 adapter for style dictionary yet.
In our last project we’ve used sd with Vanilla Extract. Worked beautifully