tailwind-turbopack

Tailwind CSS + Turbopack

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tailwind-turbopack" with this command: npx skills add saleor/storefront/saleor-storefront-tailwind-turbopack

Tailwind CSS + Turbopack

Avoid Inline Styles

Never use inline style={} props. Always use Tailwind classes or CSS in stylesheets.

For dynamic values that can't be expressed as Tailwind classes, define CSS classes with data attributes in a stylesheet:

/* In stylesheet */ .collapsible[data-expanded="false"] { grid-template-rows: 0fr; } .collapsible[data-expanded="true"] { grid-template-rows: 1fr; }

/* In component */ <div className="collapsible" data-expanded={isExpanded}>

Known Issue

Turbopack may fail to generate CSS for some Tailwind utility classes (especially arbitrary values in responsive variants like max-md:grid-rows-[0fr] ). Classes appear in HTML but the CSS rules are missing from the bundle.

Workaround: Use Webpack for development or define complex styles in CSS files:

pnpm dev:webpack

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ui-components

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-patterns

No summary provided by upstream source.

Repository SourceNeeds Review
General

caching-strategy

No summary provided by upstream source.

Repository SourceNeeds Review
General

variant-selection

No summary provided by upstream source.

Repository SourceNeeds Review