Tailwind Impl Plugins Custom

Use when authoring a custom Tailwind CSS plugin to add utilities, components, base styles, or variants, regardless of whether the host project runs Tailwind v3 (JS plugin in tailwind-config-js) or v4 (JS plugin loaded via @plugin or the CSS-native @utility directive). Prevents the four most common plugin-authorship traps: registering utilities through addBase (where variants do not apply), forgetting the second-argument default theme so theme('tabSize') returns undefined, omitting the values map on matchUtilities causing zero classes to compile, and importing tailwindcss/plugin in a v4-only project where the package no longer exists at runtime. Covers the full plugin() signature (addUtilities, addComponents, addBase, addVariant, matchUtilities, matchComponents, matchVariant, theme, config, corePlugins, e), plugin-withOptions for parameterised plugins, shipping default theme values through the configFn, the v4-native @utility name-* with --value() and --modifier(), the v4 @custom-variant directive, the v4 @plu

Impertio-Studio e0dc81c 4 files · 37.1 KB Updated

File contents

impertio-studio/tailwindcss-claude-skill-package/tree/main/skills/source/tailwind-impl/tailwind-impl-plugins-custom commit e0dc81cf4c

Frequently asked questions

npx skillmds@latest add impertio-studio/tailwind-impl-plugins-custom