Updated 14 September 2026
On this page
Description
The plugin copies a few CSS custom properties of the Gravity Forms Orbital theme (such as –gf-color-primary) from the form onto the side summary, so colour settings and presets can use them, for example var(–gf-color-primary, #204ce5), and the summary follows the colours of the form. This filter changes the list of properties that are copied.
Parameters
tokens | Array. The names of the custom properties
formId | Int
Return
Array
Usage
Copy the below code to a HTML field inside your form (wrapped in script tags) or use the Code chest plugin.
<script type="text/javascript">
if ( typeof gform !== "undefined" ) {
gform.addFilter( 'gotrls_theme_tokens', function( tokens, formId ) {
tokens.push( '--gf-color-secondary' );
return tokens;
} );
}
</script>
Since
version 2.2.0
Didn’t find what you were looking for?
Or contact support and I will help you out.
