Design tokens from theme.json

  • Hi there.
    The design tokens are a very welcomed addition to GenerateBlocks, great work!

    It would be amazing if there was a way to import the variables from theme.json, which are already “tokens”, to GenerateBlocks tokens. Maybe into a custom category, reserved for theme.json, as read-only tokens.

    Is there a way to do this? If not, are you planning on adding such functionality or something similar in the near future?

    Thanks!!

  • Hi there,

    Glad to hear you like the design tokens!

    There isn’t a way to import theme.json presets as tokens at the moment, and there’s no read-only token type either. Could you post it as a feature request at https://feedback.generatepress.com/ so our team can consider it?

    For colors, the theme.json palette is already available in the GenerateBlocks color picker under the “Theme” group, so you can use those without creating tokens.

  • Hi there, and thanks for the quick reply!

    It would be great if spacings and font sizes behave like the colors.

    I’ll add a feature request.

  • Sure, no problem! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.