npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@isbatak/panda-concentric-preset

v0.1.0

Published

Panda CSS preset for concentric border radii

Readme

@isbatak/panda-concentric-preset

Panda CSS preset for nested rounded corners that line up. Give a child rounded="concentric" and its radius follows its rounded parent:

inner radius = outer radius - gap

The gap is the parent's padding and border width, plus the padding and border of a wrapper in between and the child's own margin. For absolute and fixed children it is the inset plus the parent's border width. Everything is computed in CSS from the style props you already wrote, with no JavaScript, and it follows the parent through breakpoints and states.

A port of tailwindcss-concentric to Panda utilities.

Installation

pnpm add -D @isbatak/panda-concentric-preset

Usage

Add the preset after the base preset or design system:

import { defineConfig } from "@pandacss/dev"

export default defineConfig({
  presets: ["@pandacss/preset-base", "@isbatak/panda-concentric-preset"],
})
<Box rounded="3xl" p="3" borderWidth="1px">
  <Box rounded="concentric" />
</Box>

API

| Prop | Effect | | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- | | rounded="concentric" | All four corners follow the nearest rounded ancestor. | | roundedTop, roundedRight, roundedBottom, roundedLeft | Two corners on one side. | | roundedStart, roundedEnd | Start or end corners. They flip under dir="rtl". | | roundedTopLeft, roundedTopRight, roundedBottomRight, roundedBottomLeft | One physical corner. | | roundedStartStart, roundedStartEnd, roundedEndEnd, roundedEndStart | One logical corner. | | concentricGap="3" | Explicit gap instead of the measured one, for spacing the preset cannot read. | | concentricElliptical | Per-axis radii when the parent's padding differs per axis. | | concentricSquircle | corner-shape: squircle with a gap scaled to match. Put it on the parent as well. | | concentricFloor="xs" | Minimum radius for every concentric descendant. Sets --concentric-floor. |

All of them accept every Panda condition (rounded={{ base: "lg", md: "concentric" }}).

Chains

Concentric elements pass their own radius and padding on, so nesting works up to nine rounded levels:

<Box rounded="3xl" p="2">
  <Box rounded="concentric" p="2">
    <Box rounded="concentric" p="1">
      <Box rounded="concentric" />
    </Box>
  </Box>
</Box>

Wrappers, margins and positioned elements

A wrapper without a radius passes its padding and border on. A negative margin makes the radius larger, for media that bleeds to the parent's edge:

<Box rounded="3xl" p="4">
  <Box mx="-4" mt="-4" roundedTop="concentric" />
</Box>

absolute and fixed children are measured by their insets from the parent's padding edge.

What the preset reads

The radius comes from the nearest ancestor with an atomic radius class (bdr*, the class Panda generates for rounded props). The gap comes from the padding, border width, border shorthand, margin, inset and position style props.

It does not see:

  • radii and padding from config recipes, inline styles or global CSS. A recipe's root has no bdr class, so add a rounded prop to it (<Card.Root rounded="l3">) or use concentricGap;
  • a second padded wrapper on the same side, or margins on wrappers. Give the outer wrapper rounded="concentric";
  • percentage radii, and auto margins count as 0;
  • hashed class names (hash: true), since the preset finds rounded ancestors by class name.

License

MIT © Ivica Batinic