Borders

Borders are UI styling elements that provide visual separation and hierarchy. Use them sparingly — prefer whitespace and dividing lines where possible.

General principles

Usage by control type

Control Guidance
Panels and sections Low-contrast horizontal dividers; no full borders on adjacent headers/menus
Ribbon groups Low-contrast horizontal lines between groups; consistent margin/padding
Buttons Borders for focus/active/primary; spacing over borders between adjacent buttons
Menus and pop-ups Border defines menu boundary; dividers inside; avoid nested bordered elements

Border styles

Style Width Usage
Subtle 1px Section dividers, low-contrast separation
Control 1px Input and control boundaries
Emphasis 2px Primary action, focus, selection

Examples

Subtle — 1px divider color
Control — 1px control border
Emphasis — 2px primary

Guidelines