Replies: 1 comment 1 reply
-
Hey! No way to do this sort of thing right now unfortunately. I'm not sure what Maizzle's internal integration with Tailwind looks like but my hope in terms of a plan for v4 was that people who need to do this degree of customization could work with lower-level Node APIs we expose where you can configure Tailwind entirely from scratch with your own set of utilities. That way you could take the default utilities you do want to use, override the ones you don't, and pass that set of utilities into the internal engine to do a build. Pseudo-code but something like: let utilities = new Utilities();
utilities.static('underline', () => {
return [
decl('text-decoration', 'underline')
];
});
let compiledCSS = await tailwind(inputCss, utilities, variants); I don't really want to make it super "easy" or common for people to do deep customizations like this to the framework as regular end users, but for tools like Maizzle that are almost an entirely separate tool that's powered by Tailwind under the hood, it would be nice if you could configure it this deeply if you are working with the raw Node APIs. Does this approach seem like it would work for you? |
Beta Was this translation helpful? Give feedback.
-
Because
text-decoration-line
is poorly supported by email clients, I need to make Tailwind output the old value:However, I couldn't find any way to do it with the CSS configuration, these don't work:
I suppose those vars aren't set anywhere, any plans on allowing customization here?
Beta Was this translation helpful? Give feedback.
All reactions