diff --git a/apps/docs/content/docs/overview/meta.json b/apps/docs/content/docs/overview/meta.json index ef0254c8..26a2110a 100644 --- a/apps/docs/content/docs/overview/meta.json +++ b/apps/docs/content/docs/overview/meta.json @@ -5,6 +5,7 @@ "styling", "composition", "layout", + "radius", "theme", "color", "color-mode", diff --git a/apps/docs/content/docs/overview/radius.mdx b/apps/docs/content/docs/overview/radius.mdx new file mode 100644 index 00000000..bcdf43af --- /dev/null +++ b/apps/docs/content/docs/overview/radius.mdx @@ -0,0 +1,64 @@ +--- +title: Radius +description: Use semantic corner-radius roles that follow the active Luke UI theme. +--- + +Luke UI themes provide semantic radius roles for custom UI. Use the role that matches the element's +job instead of choosing a fixed pixel value. The public variables adapt to the active theme. + +## Radius roles + +Luke UI exposes five radius roles, each matched to the kind of element it rounds. + + + +## Use the active theme + +Import `vars` from `@luke-ui/react/theme` when a custom surface needs a radius. The value is a +stable semantic CSS variable, not a theme-specific number. + +```tsx +import { vars } from '@luke-ui/react/theme'; + +