Skip to content

Borders

Current border variables from globals.css — alpha-based for light/dark. Use for dividers, cards, and inputs. No new variables here.

Introduction#

Borders define separation. DavinciUI currently uses three alpha-based variables. They adapt to theme via .dark overrides.

Border Colors#

--border

Default

Cards, panels — 8% alpha

--line

Line

Subtle divider — 10% alpha

--input

Input

Input border — 10% alpha

Values are OKLCH with alpha — not hard-coded hex. Use border-border etc., not hex.

Border Widths#

border (1px) — default
border-2 (2px)
border-4 (4px) — rare

Border Styles#

solid
dashed
dotted

Dividers#

Horizontal — h-px bg-border

Vertical — w-px bg-border

Input Borders#

border-2 input

Use border-input for inputs, focus:ring-ring for focus.

Focus Rings#

border-ring

Ring uses --ring oklch(0.708 0 0) — light/dark adapts.

Usage Guidelines#

  • Default: border border-border for cards.
  • Divider: h-px bg-border or border-t border-border.
  • Input: border-input + focus:ring-ring.
  • Keep borders subtle — alpha values are intentional for light/dark.