concentric

Installation
SKILL.md

Concentric corners with tailwindcss-concentric

When a rounded element sits inside a rounded parent, the inner corner should follow the outer one:

inner radius = outer radius - gap        (gap = the distance between the two edges on that side)

tailwindcss-concentric computes this in CSS. Give the child rounded-concentric and it reads the radius, padding and border of its nearest rounded ancestor, the padding and border of a plain wrapper in between, its own margins, and for absolute/fixed children their insets. The math is in references/rules.md; before/after examples are in references/examples.md.

The package ships three things: the rounded-concentric utilities (a CSS import), an audit CLI (npx tailwindcss-concentric audit [paths...] [--json]), and tailwindcss-concentric/merge for tailwind-merge. Match the work to the request:

  • Set it up ("install tailwindcss-concentric", "add concentric corners"): do step 1 and install whatever is missing. Then offer to run the audit.
  • Audit or fix existing UI: do step 1, run the audit, then work through steps 2 to 5.
  • Build new UI: do step 1, then follow steps 2 to 4 for every rounded element you nest inside another.

1. Check the setup first

Installs
24
GitHub Stars
28
First Seen
Oct 16, 2026