GCBGutenberg
Control Blocks
v1.2
Buy

Works with your theme's design tokens

Fields can offer your theme's tokens instead of any value: set a field's tokenGroup and tokenKeys and it offers your palette or spacing presets from theme.json. A spacing field stores the preset's name, so your blocks follow the theme when it changes.

{}block.fields.json the same in every theme

{ "id": "c_background", "type": "color",
  "label": "Background", "attributeKey": "background",
  "tokenGroup": "color:palette",
  "tokenKeys": [ "primary", "base", "contrast" ] },

{ "id": "c_space_below", "type": "spacing",
  "label": "Space below", "attributeKey": "spaceBelow",
  "tokenGroup": "spacing:presets" }

From this theme: primary base contrast

PageBlock
Background

Colours from theme.json.

Space below
NoneSML

  • Your colour palette

    Colour fields show your theme's palette automatically.

  • Spacing presets

    Spacing fields use your theme's spacing presets and store the preset's name.

  • Limit the choices

    Choose which tokens each field offers, and turn off custom values.

  • Add new tokens

    Add a token while setting up a field and GCB can save it to your theme's theme.json, if the file is writable.

Works with block themes, and classic themes such as Astra

Build anything in the block editor

Every licence includes all features and a year of updates and support.

Buy GCB from $49 See pricing