tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
195 stars 19 forks source link

Feature Request: Expanded Variable Support in GenerateBlocks #1230

Open SchneiderSam opened 5 months ago

SchneiderSam commented 5 months ago

I've been using the latest version of your plugin and I'm thoroughly enjoying the extensive capabilities it offers with variables. The flexibility to work with variables has greatly enhanced my workflow, making customization more streamlined and efficient.

However, I've noticed that the application of variables is somewhat limited in several fields. For example, settings like font size and CSS effects (like shadow) do not currently support variable usage. This restriction limits the potential for full customization and dynamic styling based on variable inputs.

image

image

The benefits of variable flexibility, I believe, are clear and need no further justification.

As a user, I would greatly appreciate the freedom to decide whether to use variables or rely on the standard editor options across all settings within GenerateBlocks. Extending variable support would not only cater to advanced users but also maintain simplicity for those who prefer the default settings.

Thank you for considering this enhancement.

iansvo commented 5 months ago

@SchneiderSam I'm pleased to report that you can can in fact use CSS variables with each of those fields you've screenshotted!

You'll need to click the three vertical dots and choose "Enter Custom Value", like so:

https://github.com/tomusborne/generateblocks/assets/11017412/69a1c74a-b2cf-4047-a3b7-70515dcfa7bb

Note: there's currently a bug with the box shadow values where it may error out if you try to do this. I have a PR in to fix them though so no worries we're on the case :)