|
/ Documentation /Spectra 3 Beta/ Separator In Spectra

Separator In Spectra

Introduction

The Separator Block is a versatile content divider that helps organize and structure your page content. It provides clean visual separation between sections with customizable styles, colors, and alignments. Whether you need simple lines or decorative patterns, this block offers both classic border styles and modern SVG patterns for enhanced visual appeal.

How to Add or Use the Block in the Gutenberg Editor?

  • Adding the Block
    • Click the “+” button in the editor to open the block inserter
    • Search for “Separator” or navigate to the Spectra category
    • Click on the Separator Block to add it
 Block inserter showing Separator block in Spectra category
  • Basic Configuration
    • The separator appears immediately with default settings
    • Use the settings panel to customize appearance
    • Preview changes in real-time as you adjust settings
Complete settings panel showing all separator options
  1. Positioning and Layout
    • Place separators between content blocks for visual division
    • Use multiple separators to create structured layouts
    • Combine with spacing controls for optimal visual hierarchy

Block Styling Options

Settings panel showing style, dimensions, and color options

The Separator Block provides three main categories of styling options:

General Settings

OptionDescriptionAvailable Settings
StyleSeparator appearanceSolid, Dotted, Dashed, Double, Rectangles, Parallelogram, Slash, Leaves
AlignmentHorizontal positioningLeft, Center, Right

Dimensions

OptionDescriptionAvailable Settings
WidthSeparator widthpx, %, vw, em, rem (Default: 100%)
HeightSeparator thicknesspx, %, vh, em, rem (Default: 3px)
SizePattern size for custom SVG stylespx, %, em, rem (Default: 5px)

Color Settings

OptionDescriptionAvailable Settings
Separator ColorColor of the separator line/patternColor picker with opacity support

Separator Styles

Classic Border Styles

StyleDescriptionUse Case
SolidContinuous lineGeneral content division
DottedSeries of dotsSubtle separation
DashedDashed line patternInformal content breaks
DoubleTwo parallel linesFormal section divisions

Custom SVG Patterns

StyleDescriptionUse Case
RectanglesGeometric rectangle patternModern, architectural designs
ParallelogramSlanted rectangle shapesDynamic, angular layouts
SlashDiagonal line patternCreative, artistic sections
LeavesOrganic leaf motifsNature-themed, decorative content

Important Settings

Critical Configuration

  1. Style Selection – Choose appropriate style for your content context
  2. Color Contrast – Ensure separator is visible against background
  3. Width Responsiveness – Consider mobile appearance with percentage widths
  4. Alignment Consistency – Match alignment with overall page layout
  5. Pattern Size – Adjust SVG pattern size for optimal visual balance

Tips and Best Practices

  • Consistent Styling: Use the same separator style throughout similar content sections
  • Appropriate Thickness: Thicker separators (5-10px) for major divisions, thinner (1-3px) for subtle breaks
  • Color Harmony: Choose separator colors that complement your theme palette
  • Spacing Context: Consider surrounding content spacing when positioning separators
  • Mobile Optimization: Test separator visibility on smaller screens

Common Use Cases

  1. Content Sections: Divide blog posts into logical sections
  2. Feature Lists: Separate different features or services
  3. Testimonials: Create breaks between customer quotes
  4. Portfolio Items: Divide project showcases
  5. FAQ Sections: Separate question and answer groups
  6. Decorative Elements: Add visual interest with SVG patterns

Block Toolbar Options

  • Alignment: Quick access to left, center, right alignment
  • Transform: Convert to other compatible blocks if needed
  • Drag Handle: Reposition the separator within content
  • Options Menu: Additional settings and block actions

Advanced Features

Custom SVG Patterns

The separator includes four unique SVG patterns that provide modern alternatives to traditional border styles:

  • Scalable: Patterns resize based on the Size setting
  • Colorizable: Full color customization support
  • Optimized: Lightweight SVG data URLs for fast loading
  • Responsive: Patterns adapt to different separator widths

Responsive Design

  • Unit Flexibility: Use % for responsive width, px for fixed dimensions
  • Mobile Considerations: Patterns remain visible on small screens
  • Breakpoint Awareness: Separators adapt to container width changes

Troubleshooting

Common Issues

Separator not visible?

  • Check color contrast against background
  • Verify height setting isn’t too small
  • Ensure width isn’t set to 0

SVG patterns not showing?

  • Confirm custom style is selected (rectangles, parallelogram, slash, leaves)
  • Check that Size setting provides adequate pattern visibility
  • Verify color setting isn’t transparent

Alignment issues?

  • Review container width settings
  • Check parent block alignment
  • Ensure margin settings aren’t conflicting

Mobile display problems?

  • Test with percentage-based widths
  • Verify minimum height for touch interfaces
  • Check pattern size scaling on small screens

Modern Features

Core Functionality

  • Clean Design: Focused on essential separator functionality
  • Optimized Performance: Fast rendering and efficient styling
  • Organized Settings: Logical grouping of configuration options
  • Custom SVG Patterns: Unique decorative pattern options
  • Responsive Design: Optimized for all device sizes

Frequently Asked Questions

Q: What’s the difference between border styles and SVG patterns? 
A: Border styles (solid, dotted, dashed, double) use CSS borders, while SVG patterns (rectangles, parallelogram, slash, leaves) use custom graphics for unique visual effects.

Q: Can I animate separators? 
A: Yes! The separator supports animation extensions for entrance effects and hover states.

Q: How do I make separators responsive? 
A: Use percentage values for width and consider the Size setting for SVG patterns to ensure proper scaling across devices.

Q: Can I use custom colors? 
A: Absolutely! The color picker supports any color value including transparency for subtle effects.

Q: What’s the recommended separator thickness? 
A: For general use, 2-4px works well. Use thicker separators (5-10px) for major section breaks and thinner ones (1-2px) for subtle divisions.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.