You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This request isn't a duplicate of an existing request
This is not a personal support request that should be posted on the Roots Discourse community
Summary
Add the ability to fill the editor-gradient-presets in similar way as the color palette via this plugin.
Motivation
Having to manage your brand colors in once place instead of 2 is great! I use it every single day in my new gutenberg era way of work. As there is now gradient support in a very easy way in custom blocks I would love to see this supported by the pallete-webpack-plugin.
Additional context
Gradient presets also have three parts to be filled.
add_theme_support(
'editor-gradient-presets',
[
[
'name' => Red to transparent,
'gradient' => 'linear-gradient(180deg,#263e45 0,rgba(38,62,69,.8) 10%,rgba(38,62,69,0)',
'slug' => 'red-to-transparent',
],
]
);
So i think the output function almost can be the same but then outputs to a gradients.json? I'd love to hear what you think.
The text was updated successfully, but these errors were encountered:
I'm definitely for this idea and have thought about it.
I mainly just don't know how we'd process this properly, specifically in Tailwind. What the user puts in the config doesn't give us much to play with gradient-wise given all the properties are set with CSS Vars.
After that comes SASS Maps which we still need to figure out a way to ditch sass-export so we can get rid of this plugin annoyingly bringing in node-sass.
I'm open to brainstorming for sure, but right now I'm not sure if there's a steady approach.
I looked into the tailwind docs and I cannot find a smart way to incorporate this. Regarding sass-export. I am hoping that my PR plentycode/sass-export#63 to at least update all the dependencies gets accepted. I even have a commit ready that ditches node-sass for dart sass. So hopefully at some point this gives us one less thing to worry about.
Summary
Add the ability to fill the editor-gradient-presets in similar way as the color palette via this plugin.
Motivation
Having to manage your brand colors in once place instead of 2 is great! I use it every single day in my new gutenberg era way of work. As there is now gradient support in a very easy way in custom blocks I would love to see this supported by the pallete-webpack-plugin.
Additional context
Gradient presets also have three parts to be filled.
So i think the output function almost can be the same but then outputs to a gradients.json? I'd love to hear what you think.
The text was updated successfully, but these errors were encountered: