Panel

Background/container panel for grouping widgets or creating visual areas. Adds depth and organization to your faceplate layout.

Overview

PropertyValue
TypeLayout
InteractionNone (container only)
Styles3 styles available
Best ForGrouping, depth, sections

Styles

Flat

Flat colored background without 3D effects. Clean, modern look.

Raised

3D raised appearance that lifts off the faceplate. Creates visual hierarchy.

Inset

3D sunken appearance that recesses into the faceplate. Good for display areas.

Properties

PropertyTypeDefaultDescription
backgroundColorcolor-Panel fill color
borderRadiusnumber8Corner roundness (pixels)
borderWidthnumber0Border thickness

When to Use Panels

Use panels for:

  • Grouping related controls visually
  • Creating depth in your layout
  • Highlighting important sections
  • Separating different functional areas

Don’t overuse panels:

  • Too many panels = cluttered
  • Consider using proximity instead
  • Section might be better for labeled groups

Panel vs Section

FeaturePanelSection
FillSolid backgroundNo fill (outline only)
LabelNoneHas title label
Best forVisual depthNamed groups
StyleModernTraditional

Use Panel for visual depth without labels. Use Section when you need a title for the group.

Tips

Creating Depth

Use panels to create visual layers:

  1. Background faceplate (base)
  2. Panel for control area (mid)
  3. Controls on top (front)

Subtle is Better

Panel colors should be subtle:

  • Slightly lighter or darker than faceplate
  • Low contrast for elegance
  • High contrast only for emphasis

Rounded Corners

Round corners (borderRadius) for modern feel:

  • 0 = Sharp corners (retro/technical)
  • 4-8 = Subtle rounding (professional)
  • 12-16 = Soft rounding (friendly)

Inset for Displays

Use Inset style for:

  • Visualizer backgrounds
  • Value display areas
  • Input sections

The recessed look suggests “this displays information.”

Raised for Controls

Use Raised style for:

  • Control group areas
  • Important sections
  • Interactive regions

The raised look suggests “this is interactive.”

Example Configurations

Control Group Background

style: raised
backgroundColor: slightly lighter than faceplate
borderRadius: 8
borderWidth: 0

Visualizer Container

style: inset
backgroundColor: dark
borderRadius: 4
borderWidth: 1

Subtle Section

style: flat
backgroundColor: 5% lighter
borderRadius: 6
borderWidth: 0

Layout Tips

Padding

Leave padding inside panels:

  • At least 1 grid unit from panel edge to controls
  • Controls shouldn’t touch panel borders

Alignment

Align panels to the grid:

  • Integer or half-integer positions
  • Consistent margins from faceplate edges

Nesting

You can nest panels, but sparingly:

  • One level of nesting is usually enough
  • More nesting = more visual complexity

Color Guidelines

Panel PurposeColor Approach
Control groupSlightly lighter than faceplate
Display areaDarker than faceplate
EmphasisNoticeably different
Subtle depthBarely different

Combining with Other Widgets

Panels work well with: