Skip to contentKino
Skip to Content
Docs

Shape

How round the corners are. Keep the corners of your radius, or make the whole app round with one attribute.

Pick a shape

Shape
Mobile checkout, due Fri 28 Nov.

Team, 12 seats, billed yearly on 3 March.

Round makes every control a pill and gives every surface a soft 24px corner. The rows inside a menu or a list follow its curve, so the corners stay parallel.

Set the shape

Components install with the shape tokens and use Standard unless you set another. Standard takes every corner from --radius, as shadcn's components do. For a round app, put data-shape on <html>:

tsx
export default function RootLayout({ children }: { children: React.ReactNode }) {  return (    <html lang='en' data-shape='round'>      <body>{children}</body>    </html>  )}

Or on any element, to change one part of a page. An element that sets its own --radius needs data-shape too, even data-shape='standard', because the tokens are worked out where data-shape is set. A dialog or a popover renders under <body>, so it takes the page's shape, not the shape of the element its trigger sits in.

In Customise, Round is the last value of Radius.

Tokens

Standard gives each token a step of your radius; Round gives it a size, here in pixels at a 16px root.

TokenUsed forStandardRound
--control-radiusA button, a select's trigger, a tab--radius-mdPill
--control-radius-smA small control--radius-md, at most 10pxPill
--control-radius-xsThe smallest control--radius-md, at most 8pxPill
--control-radius-cappedA box that can grow past one line, such as a textarea or a tooltip--radius-md20
--list-radiusA box of rows or controls, such as a menu--radius-lg20
--item-radiusA row inside a list, such as a menu item--radius-md less 2px16
--surface-radiusA popover, a dialog, a toast or a card--radius-xl24
--surface-radius-lgThe open edge of a sheet or a drawer--radius-2xl32

The tokens are in your global CSS, one block per shape. To change a value, add a rule of your own below them:

css
[data-shape='round'] {  --surface-radius: 1.25rem;}

Don't edit the blocks themselves, because adding another Kino component writes them again.

Use the tokens in your own component

tsx
function Card(props: React.ComponentProps<'div'>) {  return (    <div className='rounded-(--surface-radius) border p-(--surface-padding)' {...props} />  )}