That's an interesting approach with bootstrap-like class names.<p>At Shuffle[1], we create templates for Tailwind, Bootstrap, Bulma, and Material-UI and need to convert UI libraries from one technology to another.<p>We decided to write converters that can transform HTML classes & Tailwind config to Sass config.<p>Probably, we will release it as open-source soon.<p><pre><code> // Example:
// Tailwind.config to Sass
// button.js
const { theme } = require('../theme.config.js');
module.exports = {
bootstrap: {
'input-btn-font-size': theme.fontSize.sm[0],
'input-btn-padding-y': theme.spacing[4],
'input-btn-padding-x': theme.spacing[6],
},
bulma: {
'size-normal': theme.fontSize.sm[0],
'button-padding-vertical': theme.spacing[4],
'button-padding-horizontal': theme.spacing[6],
},
};
// HTML
export const mappings = [
{
from: ['flex', 'flex-wrap', '-mx-4'],
to: ['row']
},
}
</code></pre>
[1] <a href="https://shuffle.dev" rel="nofollow">https://shuffle.dev</a>