Skip to content

Tag: tailwind-css

Tailwind custom pseudo element

I’m trying to create a single js file for a component that is used with several styles in my project. On one page I have several buttons for some features, with a default background color set in the html file (for exemple bg-gray-500). For buttons where the feature is activated I change the background c…

how to make tailwind utility class dynamic

I want to create a simple square using tailwind, but I want to make the class dynamic Answer TailwindCSS doesn’t allow you to generate classes dynamically. So when you use the following to generate the class… …TailwindCSS will not pick that up as a valid TailwindCSS class and therefore will not produce …

Use mui icons between components in react

So I am trying to use mui icons between components. I am using the <Icon /> component but there are two problems with that: Only half of the icon is rendered. I cannot style the icon in the component but instead have to style it where im using the component src/components/sidebar/Sidebar.comp.js (Where …