You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are proposing a new feature for our VSCode extension that will convert your CSS-in-JS code into Tailwind classes, with support for your custom themes.
Why is this proposal being made?
Currently, converting CSS-in-JS or plain CSS code into Tailwind classes is a process that often needs to be done manually. This can be time-consuming, especially for large codebases, and it can be prone to errors. If we develop this feature, it will save developers' time and effort, increase productivity, and reduce the risk of manual conversion errors.
Also, while there are some conversion tools available, most of them lack the ability to consider custom themes which is a key strength of Tailwind. By adding this feature, developers can leverage their custom Tailwind themes directly in the conversion process, making the feature even more powerful.
Moreover, this feature aligns with the popularity and rapid adoption of Tailwind CSS. It's utility-first approach and customizability have made it a go-to choice for many developers. This feature would serve as a bridge for those who want to switch to Tailwind, but are held back by the task of converting existing styles.
How would this feature work?
The feature will add a new option in the context menu called "Convert to Tailwind". When selected, it will convert the highlighted CSS or CSS-in-JS code into the equivalent Tailwind utility classes. If a custom theme is set in the Tailwind configuration, it would be taken into account during the conversion process.
This feature will also ensure that the generated Tailwind code is as clean and readable as possible, adhering to Tailwind's utility-first philosophy and best practices.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
We are proposing a new feature for our VSCode extension that will convert your CSS-in-JS code into Tailwind classes, with support for your custom themes.
Why is this proposal being made?
Currently, converting CSS-in-JS or plain CSS code into Tailwind classes is a process that often needs to be done manually. This can be time-consuming, especially for large codebases, and it can be prone to errors. If we develop this feature, it will save developers' time and effort, increase productivity, and reduce the risk of manual conversion errors.
Also, while there are some conversion tools available, most of them lack the ability to consider custom themes which is a key strength of Tailwind. By adding this feature, developers can leverage their custom Tailwind themes directly in the conversion process, making the feature even more powerful.
Moreover, this feature aligns with the popularity and rapid adoption of Tailwind CSS. It's utility-first approach and customizability have made it a go-to choice for many developers. This feature would serve as a bridge for those who want to switch to Tailwind, but are held back by the task of converting existing styles.
How would this feature work?
The feature will add a new option in the context menu called "Convert to Tailwind". When selected, it will convert the highlighted CSS or CSS-in-JS code into the equivalent Tailwind utility classes. If a custom theme is set in the Tailwind configuration, it would be taken into account during the conversion process.
This feature will also ensure that the generated Tailwind code is as clean and readable as possible, adhering to Tailwind's utility-first philosophy and best practices.
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions