Comment

Comment by bazaz

This is a WIP I'm trying to figure out.

I want to be able to load those CSS variables as Tailwind directives.

e.g.

`

|_ button

  |_ index.tsx

  |_ tailwind.ext.js // <-- this contains the design tokens of this component as Tailwind directives. Now simply extend your Tailwind config with this file to add the relevant design tokens
`

I would love any ideas or feedback on this mechanism.

parent bazaz 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton