content-divider component

Drop-in semantic component. See examples, sizes, variants, and source.

Visual separator for content sections. The base divider renders a horizontal line; layer adjectives for line style (solid, dashed, dotted, double), thickness (thick, heavy), spacing (compact, relaxed, loose), color (primary, positive, etc.), or content slots (text, icon, section, vertical). Pure CSS — no JS.

Content Divider System

Line Dividers

Default

Thick

Heavy

Line Styles

Solid

Dashed

Dotted

Double

Text Dividers

Section Break
New Section
End of Section

Colored Text Dividers

Primary
Success
Warning
Error
Information

Icon Dividers

Special Effects

Fade Effect

Fade Thick

Gradient

Gradient Thick

Section with Ornament

Vertical Dividers

Home
Products
About
Contact

Spacing Modifiers

Content above compact divider

Content above default divider

Content above relaxed divider

Content above loose divider

Content below

Color Variations

Combined Modifiers

Important Section

Practical Examples

Article Title

This is the first paragraph of content that explains something important about the topic at hand.

Continue Reading

This is the next section of content that provides additional details and context.

Contact Details

Card Header

Card content goes here with appropriate spacing.

Class API Reference

Type Class Usage Notes
Base divider Required base class Renders a horizontal line by default
Line Style solid Solid line Default; class is optional
dashed Dashed line
dotted Dotted line
double Double line Auto-bumps thickness to 4px
Thickness (default) 1px line Also reachable via thin
thick 2px line Applies to plain, text, icon, vertical, fade, gradient, section
heavy 4px line Same coverage as thick
Content text Text in the middle of the line Requires a <span> child
icon Icon in the middle of the line Requires an <i class="icon ..."> child
section Centered short line Pair with ornament for the diamond mark
Alignment (default) Center Applies to text / icon dividers
left Left aligned label
right Right aligned label
Spacing compact my-2 — tight Tight vertical rhythm
(default) my-6 — standard No class needed
relaxed my-8
loose my-12 — maximum
Effect fade Fade-to-transparent gradient Background-driven; ignores solid / dashed
gradient Blue → purple → pink gradient Same as fade but colored
animated Shimmer overlay Sits on top of the static line
ornament Diamond mark Modifier for section only
Orientation vertical Vertical divider Inline-flex; use inside a flex row
Color (Semantic) (default) gray-200 line, gray-600 content No class needed
primary blue-500 / blue-600
positive green-500 / green-600
negative red-500 / red-600
warning yellow-500 / yellow-600
info blue-500 / blue-600 Alias of primary for messaging contexts
Color (Palette) red red-500 line Decorative — prefer semantic adjectives above when intent is clear
blue blue-500 line
green green-500 line
purple purple-500 line
pink pink-500 line
gray / grey gray-400 line
State inverted Light line on dark background Use over dark surfaces
hidden Reserves space, no visible line Spacer-style usage