Story Details

  • Show HN: Apple-like smooth corners for Tailwind CSS

    Posted: 2025-01-25 20:34:31

    This project introduces a Tailwind CSS plugin called corner-smoothing that allows developers to easily create Apple-like smooth rounded corners without complex SVG filters or excessive markup. It provides a set of pre-defined utility classes for various corner radii, inspired by Apple's design language, that can be applied directly to HTML elements. The plugin aims to simplify the process of achieving this subtle but polished visual effect, making it readily accessible through familiar Tailwind syntax.

    Summary of Comments ( 7 )
    https://news.ycombinator.com/item?id=42824608

    HN commenters generally praised the smooth corner implementation for Tailwind CSS, finding it a clever and useful approach. Several appreciated the use of a single div and the avoidance of pseudo-elements, considering it elegant and performant. Some pointed out potential limitations, like the inability to control individual corner rounding and challenges with background images or borders. A few users offered alternative solutions, including using SVG filters or leveraging specific Tailwind features. The overall sentiment was positive, with many expressing interest in using the technique in their projects.