# Divider The Divider element provides a simple, standalone way to create visual separations in your layouts. Dividers automatically adapt to their background color for optimal visibility across four background types: white, light, dark, and black. ### Usage Use `divider` or `divider--h` for horizontal dividers, and `divider--v` for vertical dividers. Dividers automatically detect their background and adjust their appearance for optimal contrast. #### Automatic Background Detection By default, dividers automatically detect whether they're on a white, light, dark, or black background and adjust their appearance accordingly. The system categorizes backgrounds into four types for optimal contrast: - **White:** Very light backgrounds (gray-70 to gray-75 and pure white) - **Light:** Light gray backgrounds (gray-50 to gray-65) - **Dark:** Dark gray backgrounds (gray-30 to gray-45) - **Black:** Very dark backgrounds (gray-10 to gray-25 and pure black) White Background Divider uses darkest style (level 7) Light Background (gray-70) Divider uses dark style (level 6) Dark Background (gray-30) Divider uses light style (level 3) Black Background Divider uses lightest style (level 1) Auto Background Detection
#### Manual Background Control You can manually specify the background type using `divider--on-white`, `divider--on-light`, `divider--on-dark`, or `divider--on-black` classes when automatic detection isn't suitable. All variants on white on-white (optimal) on-light on-dark on-black (poor contrast) All variants on black on-white (poor contrast) on-light on-dark on-black (optimal) Manual Background Control
#### Vertical Dividers Vertical dividers work the same way as horizontal dividers, with automatic background detection for all four background types. Left SideWhite background Right SideAuto-detected Left SideBlack background Right SideAuto-detected Vertical Dividers
#### Common Usage Patterns $1,234Revenue 42Orders $29.38AOV Section Separation
Previous [Description Format descriptive text with standardized styles](/framework/docs/description) Next [Rich Text Display formatted paragraphs with alignment and size variants](/framework/docs/rich_text)