Skip to content
Development
Skill

/divi5-css-patterns

Use this skill when writing CSS for Divi 5 / Divi 5.13, styling Divi modules (buttons, sections, rows, blurbs, toggles, forms including the 5.3 Contact Form 7 Styler and 5.11 Gravity Forms module), the newer modules (Timeline, Breadcrumbs, SVG, Table of Contents, Instagram Feed,

From plugin
divi5-toolkit
693 skills5 agents10 commands

Claude Code

$ npx -y skills add cjsimon2/Divi5-ToolKit --skill divi5-css-patterns --agent claude-code

SKILL.md

divi5-css-patterns.SKILL.md
name: Divi 5 CSS Patterns
description: Use this skill when writing CSS for Divi 5 / Divi 5.13, styling Divi modules (buttons, sections, rows, blurbs, toggles, forms including the 5.3 Contact Form 7 Styler and 5.11 Gravity Forms module), the newer modules (Timeline, Breadcrumbs, SVG, Table of Contents, Instagram Feed, Tooltip, Post Filter, Charts, Payment Button, Imagely Gallery), working with Free-Form CSS and the `selector` keyword, overriding `.et_pb_*` classes, setting up design tokens or dark mode, using the 5.4 Sizing Variable Generator or Relative Colorscheme Generator, the 5.7 Gradient Variables and text effects (text-stroke, gradient/image text fills), the 5.9 Variable Fonts and CSS Grid Editor, the 5.12 backdrop-blur / invert / sepia Filters, the 5.13 Contact Form Show Labels and Slider swipe controls, applying the 5.5 Aspect Ratio / Framing settings, adding animations with reduced-motion, styling WooCommerce with Divi, the 5.3 pseudo-class editing modes (:checked, :focus, :active), Nested Option Presets, building accessible layouts, or developing a Divi child theme. Provides CSS patterns, class naming conventions, selector specificity guidance, Composable Settings alternatives, Canvas and Loop Builder patterns (including 5.10 front-end Loop Filters), and full example files for buttons, design tokens, animations, dark mode, WooCommerce, accessibility, forms, Loop Builder, and the 5.6–5.11 new modules.
user-invocable: false

Divi 5 CSS Development Patterns

Overview

**Divi 5** (released February 26, 2026, current version 5.13.1 as of September 18, 2026 — weekly release cadence) is a complete architecture overhaul:

  • **React 18-based Visual Builder** — no Shadow DOM, standard DOM with `et_pb_*` classes
  • **Flexbox-first layout** — sections, rows, columns use Flexbox by default
  • **Native CSS Grid support** — convertible from Flexbox in builder; 5.6 added full CSS track values (`grid-auto-columns`, `grid-auto-rows`); 5.9 added a visual **CSS Grid Editor**
  • **Design Variable Manager** — 7 variable types (Colors, Fonts, Numbers, Images, Text, Links, and Gradients from 5.7)
  • **Preset System** — Option Group, Element, Stacked, and Nested presets. 5.3 added **Nested Option Presets** (presets within presets, e.g., CTA > Button > Border)
  • **Block-based storage** — JSON format, no shortcodes
  • **7 responsive breakpoints** — 3 active by default, 4 optional
  • **Dynamic CSS** — 94% smaller stylesheets, per-page CSS generation. Per-module components combine into a unique per-page stylesheet.
  • **Critical CSS + Inline Stylesheets** — auto-extracted above-the-fold CSS inlined; non-critical deferred. Together they eliminate render-blocking CSS.
  • **Composable Settings (5.2)** — toggle any design option on any sub-element, reducing CSS needs
  • **Canvas System** — local/global canvases for off-canvas menus, popups, staging areas
  • **Canvas Portal Module** — inject canvas content at specific layout locations
  • **Interaction Builder** — cross-canvas interactions with Click, Mouse, Viewport, Load triggers
  • **Loop Builder** — native repeating content loops with CSS Grid for dynamic layouts
  • **Page Manager** — create/edit/duplicate/delete pages without leaving the builder
  • **Divi AI Agents (5.12)** — natural-language agents inside the builder that build layouts, edit modules, update design settings, create pages, manage menus, and edit Theme Builder templates (5.13 added in-chat approval tokens for page updates / menus / font installs; 5.13.1 refreshed the models). They complement this toolkit: agents act inside the Visual Builder, this plugin works on your CSS files, child theme, and CI from the terminal.

Divi 5.3 – 5.13 Additions (Use Builder First)

The skill auto-activates for any Divi CSS task, but many things that previously required custom CSS now have native equivalents. Reach for these first:

5.3 (April 24, 2026) — Form overhaul

  • **Pseudo-class editing modes**: design tabs now expose `:checked`, `:focus`, `:active` directly. Style field focus rings, checked checkboxes, and active states in the builder — no custom CSS for these.
  • **Harmonized field options** across all form-based modules (Contact Form, Email Optin, Login, Signup).
  • **New checkbox and radio field groups** with preset support — style once, apply across forms.
  • **Contact Form 7 Styler module** — renders + styles CF7 inside Divi with full design controls. Use this instead of writing CF7 CSS manually.
  • **Nested Option Presets** — presets within presets. Common sub-options (e.g., `Call To Action > Button > Border`) now support presets.

5.4 — Variable Generators

  • **Sizing Variable Generator** — automates fluid responsive sizing via `clamp()`. Use this instead of hand-writing clamp() for every type scale.
  • **Relative Colorscheme Generator** — HSL-based color systems. Generates derivative shades from a single base color.

5.5 (May 12, 2026) — Image overhaul

  • **Aspect Ratio settings** on every image element — eliminates CLS by reserving space before the image loads. **Always set this on image modules.**
  • **Framing settings** — reposition cropped images within their aspect ratio (object-fit + object-position via builder).
  • **Image Presets** — preset support across all modules with images.
  • **SVG sanitization** for inline SVG (paves way for 5.6 SVG module).
  • **Composable settings for image option groups** — set image-specific options on any module containing an image.

5.6 (May 25, 2026) — Five new modules

  • **Timeline** — vertical/horizontal event chronologies. Pairs with Loop Builder.
  • **Breadcrumbs** — navigation hierarchy. Great for Theme Builder templates. (Note: Home Link uses dedicated Home Link settings, NOT the general breadcrumb link styling.)
  • **SVG** — inline SVG with native stroke and width settings.
  • **Table of Contents** — auto-generates from page headings.
  • **Instagram Feed** — image gallery sourced from Instagram.
  • **Color Scale Generator** — systematic color deriva
Read more
@cjsimon2
Ships withdivi5-toolkit

The first Claude Code plugin for Divi 5 development. Validates CSS compatibility, generates Divi-ready code, scaffolds page sections, audits project health, checks accessibility, audits Core Web Vitals performance, diagnoses symptoms, learns from errors, and

693 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
69
Star history of cjsimon2/Divi5-ToolKit on GitHub, a chart by star-history.com

Other skills on divi5-toolkit.

divi5-compatibility

divi5-compatibility

Use this skill when validating CSS for Divi 5 / Divi 5.13 compatibility, checking unsupported features or units, troubleshooting…

divi5-performance

divi5-performance

Use this skill when optimizing Divi 5 site performance, improving Core Web Vitals (LCP, INP, CLS), reducing render-blocking CSS,…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about divi5-css-patterns.

Which coding agents can use divi5-css-patterns?
divi5-css-patterns installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.