pintariching / railwind

Tailwind compiler rewritten in rust
MIT License
320 stars 9 forks source link

Theme extension in railwind.config.ron #43

Open austinlucaslake opened 1 year ago

austinlucaslake commented 1 year ago

Below is example of theme extension from a tailwind.config.js file I am putting together. I would love to have similar functionality like this in with railwind so I can stop using Javascript once and for all.

theme extension example

I'd be to help contribute with this feature as it is something I would like to use to put my personal website together. Is this feature doable, and what changes would enable such functionality?

pintariching commented 1 year ago

I'm currently working on this feature and on rewriting the parser using nom. If you look into railwind::config, there's the main extendable config that gets passed down to the parser. On the other side, I would need a parser that takes either the tailwind.config.json or a railwind.config.ron file and expands the relevant config if that makes sense?