Λογότυπο Divi 5 CSS Patterns

Divi 5 CSS Patterns

Κοινότητα
cjsimon2
Divi 5 CSS Patterns

Χρησιμοποιήστε αυτήν τη δεξιότητα όταν γράφετε CSS για το Divi 5 / Divi 5.11, διαμορφώνετε τις ενότητες του Divi (κουμπιά, sections, rows, blurbs, toggles, φόρμες, συμπεριλαμβανομένων των Contact Form 7 Styler της 5.3 και της ενότητας Gravity Forms της 5.11), εργάζεστε με Free-Form CSS και τη λέξη-κλειδί `selector`, παρακάμπτετε κλάσεις `.et_pb_*`, ρυθμίζετε design tokens ή σκοτεινή λειτουργία, χρησιμοποιείτε το Sizing Variable Generator ή το Relative Colorscheme Generator της 5.4, τις Gradient Variables και τα εφέ κειμένου της 5.7 (text-stroke, γεμίσματα κειμένου με διαβάθμιση/εικόνα), τα Variable Fonts και το CSS Grid Editor της 5.9, εφαρμόζετε τις ρυθμίσεις Aspect Ratio / Framing της 5.5, προσθέτετε κινούμενα εφέ με υποστήριξη reduced-motion, διαμορφώνετε το WooCommerce με το Divi, χρησιμοποιείτε τις λειτουργίες επεξεργασίας ψευδοκλάσεων της 5.3 (:checked, :focus, :active), τα Nested Option Presets, δημιουργείτε προσβάσιμες διατάξεις ή αναπτύσσετε child theme του Divi. Παρέχει μοτίβα CSS, συμβάσεις ονοματοδοσίας κλάσεων, οδηγίες για την ειδικότητα των selectors, εναλλακτικές με Composable Settings, μοτίβα για το Canvas και το Loop Builder (συμπεριλαμβανομένων των Loop Filters στο front end της 5.10) και πλήρη παραδείγματα αρχείων για κουμπιά, design tokens, κινούμενα εφέ, σκοτεινή λειτουργία, WooCommerce, προσβασιμότητα, φόρμες, Loop Builder και τις νέες ενότητες των εκδόσεων 5.6–5.11.

Add to TypingMind

Επισκόπηση

Εκδότηςcjsimon2
ΑποθετήριοDivi5-ToolKit
Όνομα δεξιότηταςDivi 5 CSS Patterns
Αστέρια
61
Διακλαδώσεις
3
Συνοδευτικά αρχεία
12
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 12

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό cjsimon2. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Divi 5 CSS Patterns στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/cjsimon2/Divi5-ToolKit/tree/main/plugins/divi5-toolkit/skills/divi5-css-patterns
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cjsimon2/Divi5-ToolKit.git /tmp/Divi5-ToolKit
mkdir -p .claude/skills
cp -r /tmp/Divi5-ToolKit/plugins/divi5-toolkit/skills/divi5-css-patterns .claude/skills/cjsimon2-divi-5-css-patterns
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Divi 5 CSS Patterns σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Divi 5 CSS Patterns μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Divi 5 CSS Patterns δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Divi 5 CSS Development Patterns

Overview

Divi 5 (released February 26, 2026, current version 5.11.0 as of August 15, 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 Agent — AI tool sets integrated into the builder (5.2; 5.5 added canvas AI tools for natural-language workflows)

Divi 5.3 – 5.11 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 derivative creation.
  • Color Harmony Generator — tetradic, triadic, analogous color relationships.
  • Fixed: decimal values in Section Divider Horizontal Repeat (0.6x); grid track values beyond single numerics; global number/font variables on frontend; responsive padding on columns with child modules.

5.7 (June 10, 2026) — Gradient overhaul + text effects

  • New gradient picker panel consolidating all gradient options.
  • Gradient Variables — a 7th Design Variable type. Define gradients once, reuse site-wide. Use these instead of hand-writing linear-gradient() in multiple places.
  • Gradient and image text fills — gradients can now fill and stroke text; images can fill typography. No more background-clip: text custom CSS for most cases.
  • Text-stroke controls in the builder.
  • "Convert to variable" option in right-click field menus; inherited variables display at reduced opacity.

5.8 (June 20, 2026) — Workspaces + Tooltip module

  • Customizable Workspaces — save personalized Visual Builder configurations (panel layouts, docking, tabbed groups, color schemes, light/dark modes).
  • Tooltip module — native tooltips with full design controls. Use instead of custom ::after-based tooltip CSS.
  • Fixed: false CSS linter errors on nested selectors without & in Free-Form CSS fields; cache bugs that made styles disappear intermittently.

5.9 (July 13, 2026) — Variable Fonts + CSS Grid Editor

  • Variable Fonts — latest Google Fonts collection with variable-font axis controls (weight, width, slant, optical size).
  • New typography options — drop caps, text-stroke, spacing controls, text direction, text columns, capitalization, hyphenation. Magazine-style layouts without custom CSS.
  • CSS Grid Editor — visual interface for advanced grid layouts. Supports full start/end/span offset rules and number variables in the grid offset editor. Grid Editor layouts stay inside their container and work with the Loop Builder. Use this before writing grid-template-* custom CSS.

5.10 (August 11, 2026) — Loop Filters

  • Post Filter + Post Filter Item modules — front-end searching, filtering, and reordering of Loop Builder results. Build filter forms that query post content, taxonomies, and custom fields; filter state lives in bookmarkable URL parameters.
  • Row-granular below-the-fold lazy loading and deferred local MP4/WebM videos (load on scroll into view).
  • Fixed: fluid breakpoint sizing in the Visual Builder (desktop 1025px, tablet-wide 981px, tablet 861px, phone-wide 768px preview widths); custom class/style attributes now merge instead of dropping duplicates; Theme Builder custom CSS on search results pages.

5.11 (August 15, 2026) — Four new modules

  • Charts — interactive charts in nine formats with a tabular data editor.
  • Gravity Forms — native Gravity Forms rendering + styling (Visual Builder preview, design controls for form output, validation, paging). Use this instead of writing Gravity Forms CSS manually.
  • Imagely Gallery — NextGEN gallery module with Dynamic Assets-aware resource loading.
  • Payment Button — PayPal/Stripe payment buttons with Button design parity.
  • Flexbox alignItems CSS classes added to Column, Section, Row, and Group modules.

CSS Integration Methods

Method 1: Theme Options (Global Styles)

Location: Divi > Theme Options > Custom CSS Format: Raw CSS without <style> tags Priority: Loads after child theme — higher cascade priority

css
:root {
  --custom-color: #2ea3f2;
}

Method 2: Page-Level Custom CSS

Location: Page Settings > Advanced Tab > Custom CSS Scope: Single page only

Method 3: Module Custom CSS (Advanced Tab)

Location: Any element > Advanced Tab > Custom CSS Organized into:

  • Module Elements (Title, Body, Button, etc.) — accepts property declarations only, no selectors
  • Before / Main Element / After — pseudo-element targeting
  • Free-Form CSS — full rulesets with the selector keyword

Method 4: Free-Form CSS (New in Divi 5)

Uses the selector keyword as a placeholder for the current element:

css
selector h4 { color: red; line-height: 1.5; }
selector { display: grid; grid-template-columns: repeat(2, 1fr); }
selector:hover { transform: scale(1.02); }

Multiple CSS blocks can be added per module. This is the most powerful per-element styling method.

Method 5: Code Module (Page-Specific)

Location: Add Code Module to page Format: CSS wrapped in <style></style> tags

html
<style>
.page-specific-style {
  background-color: var(--custom-color);
}
</style>

Method 6: Custom HTML Wrappers (New in Divi 5)

Location: Advanced Tab > HTML option group

  • HTML Before and HTML After fields
  • Inject wrapper divs, data attributes, or helper markup around any element
  • Available on every element (sections, rows, columns, modules)
  • Often replaces Code Modules for structural wrapper needs

Method 7: Semantic Elements (New in Divi 5)

Location: Advanced Tab > HTML option group > Element Type dropdown Change any element's HTML tag: section, nav, header, article, aside, footer, main, button, etc.

Method 8: Child Theme (Production)

Location: child-theme/style.css Note: Divi's cached-inline-styles loads after child theme. Use !important or Theme Options CSS for higher priority.

Method 9: Attributes Panel (Replaces CSS ID & Classes)

Location: Advanced Tab > Attributes

  • The old "CSS ID & Classes" toggle is gone in Divi 5
  • Supports: id, class, aria-label, data-*, rel, title, and any HTML attribute
  • Existing D4 IDs/classes auto-migrate to this panel

Adding Custom Classes in Divi 5

  1. Select the module
  2. Go to Advanced Tab > Attributes
  3. Click Add Attribute
  4. Set Name to class
  5. Set Value to your class name(s)

Selector Specificity for Divi Overrides

Divi applies many styles inline or with !important. To override:

Standard Override Pattern

css
/* May not work — too low specificity */
.et_pb_button {
  background-color: black;
}

/* Better — higher specificity */
body .et_pb_button {
  background-color: black !important;
}

/* Best — with custom class */
body .et_pb_button.custom-btn {
  background-color: black !important;
}

Button Override Template

css
body .et_pb_button {
  background-color: #000000 !important;
  border-radius: 0 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  font-family: 'Lato', Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  border: 1px solid #000000 !important;
}

body .et_pb_button:hover {
  background-color: #222222 !important;
  border-color: #222222 !important;
}

Section Override Patterns

css
.et_pb_section.custom-dark-section {
  background-color: #1d1f22 !important;
}

.et_pb_section.custom-dark-section h1,
.et_pb_section.custom-dark-section h2,
.et_pb_section.custom-dark-section p {
  color: #ffffff !important;
}

Class Naming Convention

Use a unique prefix to avoid conflicts with Divi's classes:

PatternExamplePurpose
{prefix}-btnmy-btnButton base
{prefix}-btn--variantmy-btn--primaryButton variant
{prefix}-section--modifiermy-section--darkSection modifier
{prefix}-cardmy-cardComponent

Avoid numbered classes (.et_pb_text_0, .et_pb_text_1) — they're positional and change when modules are reordered.

Common Divi Module Selectors

Structural Elements

ModuleSelectorNotes
Section.et_pb_sectionOuter container
Fullwidth Section.et_pb_fullwidth_sectionFull-width variant
Row.et_pb_rowContent row
Column.et_pb_columnGrid column
Column (1/2).et_pb_column.et_pb_column_1_2Half-width
Column (1/3).et_pb_column.et_pb_column_1_3Third-width
Column (1/4).et_pb_column.et_pb_column_1_4Quarter-width

Content Modules

ModuleSelectorInner Selectors
Text.et_pb_text.et_pb_text_inner
Button.et_pb_button(self-contained)
Image.et_pb_image.et_pb_image_wrap
Blurb.et_pb_blurb.et_pb_blurb_content, .et_pb_blurb_container
CTA.et_pb_promo.et_pb_promo_description
Heading.et_pb_module h1/h2/h3Use module prefix
Slider.et_pb_slider.et_pb_slide, .et_pb_slide_content
Blog.et_pb_blog_grid.et_pb_post, .et_pb_post_content
Contact Form.et_pb_contact_form.et_pb_contact_field
Toggle/Accordion.et_pb_toggle.et_pb_toggle_title, .et_pb_toggle_content
Tabs.et_pb_tabs.et_pb_tab, .et_pb_tabs_controls
Gallery.et_pb_gallery.et_pb_gallery_item
Video.et_pb_video.et_pb_video_overlay
Code.et_pb_code.et_pb_code_inner
Counter/Bar.et_pb_counter.et_pb_counter_container, .et_pb_counter_amount
Number Counter.et_pb_number_counter.percent
Testimonial.et_pb_testimonial.et_pb_testimonial_description
Pricing Table.et_pb_pricing.et_pb_pricing_heading, .et_pb_pricing_content_top
Divider.et_pb_divider.et_pb_divider_internal
Social Media.et_pb_social_media_follow.et_pb_social_media_follow_network_link
Search.et_pb_search.et_pb_s (input field)
Login.et_pb_login.et_pb_login_form
Portfolio.et_pb_portfolio.et_pb_portfolio_item
Map.et_pb_map.et_pb_map_container
Audio.et_pb_audio_module.et_pb_audio_module_content
Sidebar.et_pb_widget_areaStandard WP widget classes
Comments.et_pb_comments_moduleStandard WP comment classes
Countdown.et_pb_countdown_timer.et_pb_countdown_timer_container

New Divi 5 Modules

ModulePurpose
GroupContainer for grouping modules with shared styles
Carousel GroupFlexible slider with any module per slide
Before/After ImageInteractive image comparison slider
Canvas PortalOff-canvas overlays, side panels, popups
DropdownDrop-down content with customizable interactions
Icon ListLists with per-item icons and global styles
LinkStandalone link element for navigation
LottieNative Lottie animation integration
Timeline (5.6)Vertical/horizontal event chronologies
Breadcrumbs (5.6)Navigation hierarchy for Theme Builder templates
SVG (5.6)Inline SVG with native stroke/width settings
Table of Contents (5.6)Auto-generated from page headings
Instagram Feed (5.6)Instagram-sourced image gallery
Tooltip (5.8)Native tooltips with full design controls
Post Filter / Post Filter Item (5.10)Front-end Loop Builder filtering
Charts (5.11)Interactive charts, nine formats, tabular data editor
Gravity Forms (5.11)Native Gravity Forms rendering + styling
Imagely Gallery (5.11)NextGEN galleries with Dynamic Assets loading
Payment Button (5.11)PayPal/Stripe payment buttons

Divi 5 Design Variable System

Divi 5 has 7 types of Design Variables (managed via the Visual Builder UI):

TypePurposeExample
ColorsBrand palette, supports HSL adjustmentsPrimary brand color
FontsTypography choicesHeading font family
NumbersSizing values (spacing, radius, etc.)Border radius, padding
ImagesRecurring visual assetsLogo, background
TextRepeated text contentCompany address
LinksURL valuesSocial media links
Gradients (5.7)Reusable gradient definitionsHero background gradient, gradient text fill

Design Variables complement CSS custom properties — they don't replace them. Use Design Variables for no-code workflows and CSS variables for developer control.

Preset Hierarchy

  1. Option Group Presets — Modular building blocks for individual properties (e.g., "Primary Button Style")
  2. Element Presets — Complete design packages for entire module types (e.g., "Hero Section")
  3. Stacked Presets — Multiple presets layered on one element, merged intelligently
  4. Nested Presets — Option Group Presets inside Element Presets, individually swappable

Recommended workflow: Define Design Variables → Build Option Group Presets → Nest into Element Presets → Use Inspector to audit consistency.

Typography Patterns

Builder-first (5.9+): variable fonts, drop caps, text-stroke, text columns, text direction, capitalization, and hyphenation are all native builder controls now. Write custom typography CSS only for patterns those controls don't cover.

Font Stack Template

css
:root {
  --font-body: 'Fira Sans', system-ui, sans-serif;
  --font-title: 'Josefin Sans', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-button: 'Lato', Helvetica, Arial, sans-serif;
}

Heading Overrides

css
body .et_pb_module h1 {
  font-family: var(--font-title) !important;
  text-transform: uppercase;
  letter-spacing: 3px;
}

body .et_pb_module h2 {
  font-family: var(--font-heading) !important;
  color: #3f445e !important;
}

Text Line Length (Readability)

css
.et_pb_text_inner p,
.et_pb_text_inner li {
  max-width: 60rem;
}

.et_pb_text_align_center .et_pb_text_inner p {
  margin-left: auto;
  margin-right: auto;
}

Responsive Breakpoints

Divi 5 supports 7 customizable breakpoints (3 active by default). The defaults — what your media queries must match unless the site owner has customized the widths:

Divi 5 NameDefault WidthActive by DefaultQuery Type
Phone767pxYesmax-width
Phone Wide860pxNomax-width
Tablet980pxYesmax-width
Tablet Wide1024pxNomax-width
DesktopBASEYes(no media query)
Widescreen1280pxNomin-width
Ultra Wide2560pxNomin-width
css
/* BASE: Desktop — no media query */

@media (max-width: 980px) { /* Tablet and below */ }
@media (max-width: 767px) { /* Phone */ }
@media (min-width: 1280px) { /* Widescreen (if enabled) */ }

Enable additional breakpoints in Divi: Visual Builder → three-dot icon next to device icons → Sitewide Responsive Breakpoints → enable Phone Wide, Tablet Wide, Widescreen, Ultra Wide. All widths are customizable there too.

Optional: 2025-aligned custom widths. The responsive-breakpoints-2025.md reference recommends customizing the 7 widths to match 2025 device traffic (479 / 767 / 1023 / 1279 / BASE 1280–1535 / 1536 / 1920). Only write media queries against those values if the site's Divi breakpoints have actually been changed to match — otherwise your CSS and the builder's responsive previews will disagree.

Best practice: Use clamp(), vw, calc() for fluid responsive values to reduce breakpoint overrides:

css
font-size: clamp(1rem, 2vw + 0.5rem, 2rem);
padding: clamp(1rem, 3vw, 4rem);

For complete 7-breakpoint templates, device statistics, and typography scales, see:

  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/responsive-7-breakpoints.css — full responsive template
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/references/responsive-breakpoints-2025.md — 2025 device data, configuration guide, framework comparison

Layout Patterns

Flexbox (Default in Divi 5)

css
.et_pb_row {
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem !important;
  flex-wrap: wrap !important;
}

CSS Grid

Builder-first (5.9+): the CSS Grid Editor builds advanced grid layouts visually, including start/end/span offsets and number variables. Reach for it before writing grid CSS. Custom grid CSS is still the right tool for auto-fit/minmax() intrinsic grids:

css
/* Free-Form CSS on a row or section */
selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

Flexbox alignment classes (5.11+): Column, Section, Row, and Group modules emit CSS classes for their flexbox alignItems setting — inspect in DevTools before overriding alignment with custom CSS.

Component Patterns

Card Pattern

css
.et_pb_blurb.custom-card,
.et_pb_column.custom-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
}

.et_pb_blurb.custom-card:hover,
.et_pb_column.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

Quote Block Pattern

css
.et_pb_text.custom-quote {
  border-left: 4px solid #b2a065;
  padding-left: 2rem;
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-style: italic;
}

Info Box Pattern

css
.custom-info-box {
  background-color: #f5f5f5;
  border-left: 4px solid #b2a065;
  padding: 2rem;
  border-radius: 0 8px 8px 0;
}

Design Token Template

css
:root {
  /* Brand Colors */
  --color-primary: #2ea3f2;
  --color-primary-hover: #1a8fd4;
  --color-secondary: #b2a065;
  --color-secondary-hover: #9a8a57;

  /* Dark Theme */
  --color-dark-section: #1d1f22;
  --color-dark-overlay: rgba(29, 31, 34, 0.95);
  --color-gray-section: rgba(150, 150, 150, 0.47);

  /* Text Colors */
  --color-white: #ffffff;
  --color-body-text: #222222;
  --color-body-text-light: #666666;
  --color-heading-text: #333333;
  --color-heading-accent: #3f445e;

  /* Backgrounds */
  --color-light-gray: #f5f5f5;
  --color-footer: #1d1f22;

  /* Typography */
  --font-body: 'Fira Sans', system-ui, sans-serif;
  --font-title: 'Josefin Sans', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-button: 'Lato', Helvetica, Arial, sans-serif;

  /* Sizing */
  --max-width: 1400px;
  --max-width-text: 60rem;
  --radius-card: 8px;
}

Performance Best Practices

  1. Enable Dynamic CSS — 94% smaller stylesheets
  2. Enable Critical CSS — eliminates render-blocking requests
  3. Disable Static CSS during development — enable after finalization
  4. Don't combine Divi Critical CSS with WP Rocket RUCSS — they conflict
  5. Use clamp() and fluid values to reduce breakpoint-specific CSS

Accessibility Patterns

  1. Use Semantic Elements to change <div> to <nav>, <section>, <header>, etc.
  2. Add ARIA attributes via Attributes panel or accessibility plugins
  3. Visible focus indicators for keyboard navigation
  4. Color contrast — meet WCAG 2.1 AA standards
  5. Recommended plugin: Divi-Modules Accessibility Attributes

Composable Settings (Divi 5.2+)

Composable Settings let you enable any of Divi's design options for any module sub-element. This dramatically reduces the need for custom CSS.

What It Replaces

Before 5.2, adding a width to a button, a border to a title, or an animation to an image required custom CSS. Now you can toggle these on in the builder.

How It Works

  1. Select any module sub-element (Title, Body, Button, Image, etc.)
  2. Click the Compose Settings icon
  3. Enable any design option: sizing, spacing, borders, animations, transforms, etc.
  4. Configure directly in the builder UI

When to Still Use CSS

  • Complex selectors or pseudo-elements
  • Design patterns not covered by builder options
  • Cross-element relationships (sibling/parent selectors)
  • @media queries beyond Divi's breakpoint system
  • prefers-reduced-motion and other preference queries
  • Custom animations with @keyframes

Canvas System (Divi 5+)

Canvas Types

  • Main Canvas — the page's primary visible content
  • Local Canvases — detached workspaces per page/template, kept separate until connected
  • Global Canvases — site-wide reusable canvases (e.g., shared popup, menu)

CSS Patterns for Canvas Content

css
/* Off-canvas menu styling */
.{prefix}-offcanvas {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(80vw, 400px);
  height: 100vh;
  z-index: var(--z-fixed, 1030);
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

/* Popup/modal overlay */
.{prefix}-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal, 1050);
}

Interaction Builder + Canvas Workflow

  1. Build content in a local or global canvas
  2. Use Canvas Portal Module to inject at a specific layout location
  3. Create Interactions on main canvas targeting canvas elements
  4. Triggers: Click, Mouse Enter/Exit, Viewport Enter/Exit, Load
  5. Divi auto-appends targeted canvases to the main canvas on the frontend

Loop Builder

Build dynamic content layouts without plugins:

  1. Design the loop item template using Divi modules
  2. Divi pulls and repeats data from the database
  3. Combine with CSS Grid for product grids, blog layouts, etc.
  4. Add front-end filtering with the Post Filter + Post Filter Item modules (5.10+) — filter state is carried in bookmarkable URL parameters, no custom JS needed
css
/* Loop Builder grid layout */
selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

Best Practices Summary

  1. Check Composable Settings first — many CSS overrides are now unnecessary in Divi 5.2+
  2. Use pseudo-class editing in the builder (5.3+) — :checked, :focus, :active no longer need custom CSS for most use cases
  3. Set Aspect Ratio on every image (5.5+) — eliminates CLS with zero custom CSS
  4. Use the Sizing Variable Generator (5.4+) instead of hand-writing clamp() for fluid type scales
  5. Use Gradient Variables (5.7+) instead of repeating linear-gradient() values, and builder text effects instead of background-clip: text CSS
  6. Use the CSS Grid Editor (5.9+) for explicit grid layouts; reserve custom grid CSS for auto-fit/minmax() intrinsic grids
  7. Use builder typography controls (5.9+) for variable fonts, drop caps, text columns, and hyphenation
  8. Use Free-Form CSS with selector keyword for per-element styling
  9. Use body prefix and !important when overriding Divi buttons and module styles
  10. Prefix all custom classes to avoid conflicts (e.g., my-btn)
  11. Use CSS Variables in :root for maintainability
  12. Use Design Variables + Nested Presets (5.3+) for no-code consistency
  13. Use Custom HTML Wrappers instead of Code Modules for structural needs
  14. Use Canvases for off-canvas menus, popups, and staging areas
  15. Test all active breakpoints before production
  16. Use clamp() for fluid responsive values to minimize breakpoint overrides
  17. Avoid numbered classes (.et_pb_text_0) — use custom classes
  18. Clear Static CSS cache after any style changes
  19. Include prefers-reduced-motion with all animations
  20. Add :focus-visible styles — Divi removes default focus indicators

Reference Files

For complete examples, see:

  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/button-variants.css — Button style variants
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/design-tokens.css — Design system tokens template
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/animations.css — Animation patterns with reduced-motion
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/dark-mode.css — System-aware dark mode
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/woocommerce.css — WooCommerce styling patterns
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/accessibility.css — WCAG 2.1 AA accessibility fixes
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/responsive-7-breakpoints.css — Full 7-breakpoint responsive template (2025)
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/loop-builder.css — Loop Builder CSS Grid patterns, masonry, product cards, pagination
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/forms.css — Form styling with Divi 5.3 pseudo-class editing, Contact Form 7
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/examples/new-modules.css — Styling for the 5.6–5.11 new modules (Timeline, Breadcrumbs, SVG, TOC, Instagram Feed, Tooltip, Post Filter, Charts, Gravity Forms, Payment Button)
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/references/divi-selectors.md — Complete selector reference
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-css-patterns/references/responsive-breakpoints-2025.md — 2025 breakpoint research and device statistics
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-compatibility/references/unit-conversions.md — CSS unit reference (in the compatibility skill)
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/SKILL.md — Performance optimization patterns (Critical CSS, Dynamic CSS, font loading)
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/references/core-web-vitals.md — Full Core Web Vitals reference

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Divi 5 CSS Patterns;

Χρησιμοποιήστε αυτήν τη δεξιότητα όταν γράφετε CSS για το Divi 5 / Divi 5.11, διαμορφώνετε τις ενότητες του Divi (κουμπιά, sections, rows, blurbs, toggles, φόρμες, συμπεριλαμβανομένων των Contact Form 7 Styler της 5.3 και της ενότητας Gravity Forms της 5.11), εργάζεστε με Free-Form CSS και τη λέξη-κλειδί `selector`, παρακάμπτετε κλάσεις `.et_pb_*`, ρυθμίζετε design tokens ή σκοτεινή λειτουργία, χρησιμοποιείτε το Sizing Variable Generator ή το Relative Colorscheme Generator της 5.4, τις Gradient Variables και τα εφέ κειμένου της 5.7 (text-stroke, γεμίσματα κειμένου με διαβάθμιση/εικόνα), τα...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Divi 5 CSS Patterns στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Divi 5 CSS Patterns είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Divi 5 CSS Patterns στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/cjsimon2/Divi5-ToolKit/tree/main/plugins/divi5-toolkit/skills/divi5-css-patterns. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Divi 5 CSS Patterns;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Divi 5 CSS Patterns;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Divi 5 CSS Patterns με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Divi 5 CSS Patterns;

Δημοσιεύεται στο GitHub από τον λογαριασμό cjsimon2. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇