Skip to main content

Box Presets — converter mapping

Theme Settings → Components → Box Presets · ✅ Populated

A Box Preset is a reusable card skin — background fill, border, corner radius, padding, box-shadow, and a hover treatment — that any Column, Table frame or Countdown can point at. The converter clusters the source’s repeated “card” looks into named presets and fills the fill + border + radius + shadow, plus the hover skin and hover effects.

Full reference: Box Presets (how it’s coded + examples).

Where it lives

Option schemaframework/extensions/shortcodes/includes/theme-settings/components-box.php (schema in framework/includes/option-types/border-presets/)
Converter methodFW_Site_Converter_Stitch::build_box_presets()
Storage keyborder_presets
Producesa .boxp-{slug} class per preset — pick it on a Column (Styling → Box Preset), a Table (Table Options → Frame), or a Countdown

Each preset carries a Default and a Hover state (the fill + border skin), shared geometry (corner radius, sides, padding), a transition, and a hover-effects list. The converter only makes a preset for a card that deviates from the page base; near-identical cards cluster into one, so you get a handful of named card styles instead of dozens of one-offs.

Coverage

11/13 fields derived from the source (85%) — 🟡 0 via CSS · ⚪ 2 default/manual · ⚙️ 4 auto.

Group / fieldTypeStatusDerived from / note
Preset · Identity (shared_top)
preset_nametext✅ NativeThe card name — clustered from the source’s repeated card looks (or Box <hash>) → the .boxp-{slug} class
slugunique⚙️ AutoAuto from the name → the .boxp-{slug} class suffix
Preset · State: Default
backgroundbackground-pro (color / gradient / image)✅ NativeThe card’s background fill
border_styleshort-select✅ Nativesolid when the source card has a border
border_widthunit-input✅ NativeCarried when the source card has a border
border_colorcompact color✅ NativeCarried when the source card has a border
box_shadowbox-shadow (X/Y/blur/spread/color/inset)✅ NativeCarried when the source card has a drop shadow
Preset · State: Hover
backgroundbackground-pro✅ NativeThe hover fill, when the card changes on hover
border_colorcompact color✅ NativeThe hover border colour, when present
box_shadowbox-shadow✅ NativeThe hover shadow, when present
border_style · border_width⚪ UnmappedLeft at the Default value on hover
Preset · Shared (shared_bottom)
border_radiusunit-input✅ NativeCorner radius from the source card
border_sidesshort-select⚙️ AutoAlways all — the converter doesn’t infer per-side borders
paddingspacing (per-side)⚪ UnmappedLeft empty — the Column’s own Margin & Padding controls it (see note)
transitionshort-text (ms)⚙️ AutoFixed at 200 ms
hover_fxmulti-select✅ NativeDerived: lift (translate-Y) and/or glow (shadow) from the source’s hover
custom_csscode-editor ({{SELECTOR}})⚙️ AutoTier-3 effects the native fields can’t express — a frosted backdrop-filter, a hover scale — are injected here
Padding is intentionally left to the Column

The converter leaves the preset’s Padding empty. A card’s inner padding is usually set by the Column it’s on (Styling → Margin & Padding), which overrides the preset — so filling it here would fight the column. The preset stays a pure skin.

Tier-3 effects go to Custom CSS

A native hover_fx covers the common hovers — lift (a translate-Y) and glow (a shadow). Effects the native fields can’t express — a frosted backdrop-filter, or a hover scale — are injected into the preset’s Custom CSS instead, so the look is reproduced without a bespoke field.

Status legend

  • Native — Derived and written from a source signal.
  • 🟡 Via CSS — Reproduced via generated CSS; the native option is left empty (candidate to promote).
  • Unmapped — Left at default — no source signal, or set by hand.
  • ⚙️ Auto — Plumbing. Excluded from the coverage percentage.

← Back to Components