ITC Forms 0.15.6Changelog
Styling
ITC Forms is designed to belong to the active WordPress theme rather than look
like a third-party widget. Start with Global Styles and theme.json; use block
Appearance controls for exceptional instances; use CSS or hooks only for design
details that the token contract does not cover.
Recommended workflow
Section titled “Recommended workflow”- Set the theme’s normal color, spacing, typography, border, and button presets.
- Map form-specific control details under
settings.custom.itcFormsusing preset references such asvar:preset|color|accent. - Keep each Form block in Inherit theme unless a content editor has a real reason to choose a preset or local override.
- Verify the frontend and builder preview at desktop, tablet, and mobile widths.
- Put project overrides in the site theme or a companion plugin—never patch ITC Forms, because plugin updates replace its files.
The complete stable key map and copyable theme.json example are in
Form design tokens. When a design token changes in
Global Styles, every inheriting form updates with the theme automatically.
Companion-plugin hooks
Section titled “Companion-plugin hooks”Use paired PHP and JavaScript hooks when a computed value must appear identically on the frontend and in the editor preview:
add_filter( 'itc_forms_block_theme_tokens', function ( array $tokens ): array { $tokens['controlRadius'] = '0.375rem'; return $tokens;} );wp.hooks.addFilter( 'itcForms.block.themeTokens', 'agency/client-form-radius', ( tokens ) => ( { ...tokens, controlRadius: '0.375rem' } ));Unknown keys and unsafe values are discarded. The JavaScript filter affects preview only and cannot alter validation or server behavior.
Headless and utility-CSS projects
Section titled “Headless and utility-CSS projects”Return false from itc_forms_enqueue_frontend_styles to remove the plugin’s
frontend stylesheet while retaining semantic markup and the behavior script.
Stable .itc-form__* classes and data-itc-* attributes are the integration
surface. Do not bundle Tailwind into the plugin. Instead, map the semantic token
names into the project’s utility configuration and author component rules in the
theme’s own layer.
In headless mode the theme owns focus indicators, errors, success feedback,
[hidden], controls, pagination, repeaters, signatures, CAPTCHA, and reduced
motion. Run the accessibility checklist before deployment.
Upgrade-safe extension boundaries
Section titled “Upgrade-safe extension boundaries”- Core content stays in Gutenberg and form definitions.
- Project presentation stays in the theme.
- Reusable behavior stays in a companion plugin using documented PHP/JS hooks.
- Secrets and destinations stay server-side; never localize them to JavaScript.
- Persist only registered extension namespaces and use migrations when their stored schema changes.
This separation lets you update ITC Forms across several sites without forking the plugin or losing the client’s visual system.