Theme Framework
Articles
Theme Framework Introduction
Gravity Forms 2.7 introduced the Theme Framework, providing a foundation for form styling and integration with future WordPress themes.
Quick Start Guide
This article provides an overview of how to use the Theme Framework in your theme or add-on.
Core Concepts
This article explores the core concepts and architecture of the Theme Framework, a system designed to facilitate the creation and customization of form themes within the Gravity Forms ecosystem.
CSS API
The CSS API is a set of native CSS custom properties that can be shared across the Gravity Forms Ecosystem.
Theme Layers
This article covers Theme Layers in Gravity Forms, which control form display in WordPress Full Site Editing and Gutenberg blocks. You’ll learn about their structure and the APIs for implementation to customize your forms.
Theme Layers Fluent API
A Fluent API simplifies complex operations by chaining method calls in a clear, step-by-step sequence. This design pattern allows developers to configure objects and execute commands in a more intuitive, procedural manner.
Theme Layers JSON API
The JSON API allows developers to define Gravity Forms styles using theme.json. By adding a gravityforms section to the file, you can easily configure various styling options for forms directly in JSON.
Theme Layers View Classes
View classes modify markup in Gravity Forms. This article explains how to implement them and properly structure the get_markup() method.
Theme Framework Frequently Asked Questions
This article addresses common questions about the Theme Framework.