Skip to content

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.

  1. Set the theme’s normal color, spacing, typography, border, and button presets.
  2. Map form-specific control details under settings.custom.itcForms using preset references such as var:preset|color|accent.
  3. Keep each Form block in Inherit theme unless a content editor has a real reason to choose a preset or local override.
  4. Verify the frontend and builder preview at desktop, tablet, and mobile widths.
  5. 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.

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.

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.

  • 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.