agentsclimarketplace

Tailwind patterns

Skill bg-szy/TOP-SKILLS/skills/marketplace/tailwind-patterns

Quick reference for Tailwind CSS utility patterns, responsive design, and configuration. Triggers on: tailwind, utility classes, responsive design, tailwind config, dark mode css, tw classes.From its SKILL.md

Install
npx -y skills add bg-szy/TOP-SKILLS --skill tailwind-patterns

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.2 KB, 588 tokens by cl100k_base, as published. Nobody here has run it

Tailwind Patterns

Quick reference for Tailwind CSS utility patterns.

Responsive Breakpoints

PrefixMin Width
sm:640px
md:768px
lg:1024px
xl:1280px
2xl:1536px
<div class="w-full md:w-1/2 lg:w-1/3">
  <!-- Full on mobile, half on tablet, third on desktop -->
</div>

Common Layout Patterns

<!-- Centered container -->
<div class="container mx-auto px-4">

<!-- Flexbox row -->
<div class="flex items-center justify-between gap-4">

<!-- Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">

<!-- Stack -->
<div class="flex flex-col gap-4">

Card

<div class="bg-white rounded-lg shadow-md p-6">
  <h3 class="text-lg font-semibold mb-2">Title</h3>
  <p class="text-gray-600">Content</p>
</div>

Button

<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors">
  Button
</button>

Form Input

<input type="text"
  class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
  placeholder="Enter text">

Dark Mode

<div class="bg-white dark:bg-gray-900 text-gray-900 dark:text-white">
// tailwind.config.js
module.exports = { darkMode: 'class' }

State Modifiers

ModifierTriggers On
hover:Mouse hover
focus:Element focused
active:Being clicked
disabled:Disabled state
group-hover:Parent hovered

Spacing Scale

ClassSize
p-14px
p-28px
p-416px
p-624px
p-832px

Arbitrary Values

<div class="w-[137px] h-[calc(100vh-64px)]">

Additional Resources

For detailed patterns, load:

  • ./references/component-patterns.md - Navbar, cards, forms, alerts, loading states

What ships with it: 1 file

34.2 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.