RevealTheme logo

Gerador de Border Radius CSS

Crie valores complexos de border-radius em CSS de forma visual. Controle independente de cada canto.

border-radius: 20px 20px 20px 20px;

Como usar esta ferramenta

  1. 1

    Drag the TL, TR, BR, and BL sliders to set each corner radius in pixels (0 to 100).

  2. 2

    Watch the indigo preview box update live as you change each corner.

  3. 3

    Read the generated border-radius declaration in the code box below the sliders.

  4. 4

    Click Copy CSS to put the declaration on your clipboard, then paste it into your stylesheet.

O que é o Gerador de Border Radius CSS?

A propriedade border-radius do CSS aceita até quatro valores, um por canto, na ordem superior esquerdo, superior direito, inferior direito e inferior esquerdo. Combine raios distintos para formas orgânicas tipo gota, cards assimétricos ou estilos de balão de fala. Esta ferramenta permite que você ajuste cada canto com controles deslizantes e veja o resultado em tempo real.

Casos de uso comuns

  • Rounding the corners of a card or panel component and copying the exact pixel value into a stylesheet.

  • Creating an asymmetric shape, like a chat bubble, by giving one corner a small radius and the others a larger one.

  • Prototyping a pill or capsule button by pushing all four sliders toward their maximum.

  • Matching a design spec that calls for different radii on the top corners versus the bottom corners.

  • Quickly testing how a corner radius looks at different pixel sizes before committing a value to a design system.

  • Teaching or demonstrating how the four-value border-radius shorthand maps to each corner.

Perguntas frequentes

E os raios elípticos?
O border-radius também admite dois valores por canto separados por /, criando elipses em vez de círculos. Para um uso básico, basta um único valor por canto.

Ferramentas relacionadas