• Hi everyone,

    I would like to access to the blockGap value defined in the styles.spacing node of the theme.json file and I found the useGlobalStyle function in the Gutenberg project folder.

    This function is contained in the block-editor/src/components/global-styles folder and the readme file inside talk about “Public APIs”, but following the instructions this doesn’t work.

    There is a specific function to access to the global styles defined in the theme.json file?

    Thanks,

    Simone

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to use useGlobalStyle’ is closed to new replies.