Zum Inhalt springen
Kitbay
Skill

material-ui-tailwind

MITAktualisiert am 11. Nov. 202699.322GitHub-Sterne

A skill from the Material UI team for using Material UI together with Tailwind CSS.

Was der Skill vermittelt

A skill from the Material UI team for using Material UI together with Tailwind CSS. For Tailwind 4 it explains how CSS cascade layers, with Material UI's layer placed before Tailwind's utilities, let utility classes override component styles, and how to switch this on in Next.js (App and Pages Router) and in Vite single-page apps. It covers the difference between a component's root class name and the class names passed to its inner slots, mapping Material UI's CSS variables into Tailwind's theme, editor autocompletion in VS Code, and notes for older Tailwind 3 setups. The full guide is in the AGENTS.md file next to the SKILL.md.

Funktionen

  • Set up Material UI with Tailwind CSS 4 cascade layers
  • Configure the setup in Next.js or Vite
  • Style inner component slots with Tailwind classes
  • Map Material UI CSS variables into Tailwind's theme