Automatically make gradients by just selecting two or more colours.
Create a default gradient of two or more colours just by selecting them on the artwork or on the swatches panel without having to copy and paste the color codes separately.

-
Laura, this looks exactly like an operation Gradient Forge plugin can do. It has Swathes to Gradients and Artwork Fills to Gradient commands.
The plugin is paid though, but worth trying.There are several scripts solution that do the same thing:
1. https://graphicdesign.stackexchange.com/questions/75097/how-to-repeat-a-gradient-multiple-times-in-illustrator-and-photoshop (even 2)
2. https://github.com/mhulse/illy-grad -
Laura Eleanor McAleer commented
Have a feature so that you can select a number of solid coloured shapes and drag and drop them to form an instant multicoloured gradient based on the select colours. The spacing defaults equally between the gradient sliders. Option to save new gradient into swatches or directly apply to the next selected object.
-
Another method for this would be the Gradient Forge plugin panel.
-
Joreld Dhamo commented
Absolutely Egor, and actually there is space for it to be a bit more user friendly. :)
-
Joreld, you are welcome. It does not mean Ai should not have it by default :)
-
Joreld Dhamo commented
Thanks a lot, Egor, the Illy grad does exactly what I had in mind. Will definitely use that!
-
There are some external script solutions that can help you to do what you want:
1. https://github.com/mhulse/illy-grad — will create a gradient from multiple selected swathes in the panel
2.https://graphicdesign.stackexchange.com/questions/75097/how-to-repeat-a-gradient-multiple-times-in-illustrator-and-photoshop — there are two different solutions in comments with slightly different functionality that use colors of on-canvas objects
-
Ashfaque Khatti commented
nice. or it could let us make gradients from colors of selected shapes on the art board.
I have just posted same request for gradients. -
Chris Panny commented
It would be nice to select two or more swatches in the Swatches panel and then go to the Gradient panel and click an option to Apply Selected Swatches To Gradient Slider.
-
dmg commented
Just drag the swatch into the bar on the gradient tool panel?
-
Carrie commented
Please!
-
Kerim Peerthy commented
Definitely need!
-
Anonymous commented
I've been craving this FOR YEARS!! Fingers crossed.
-
Lirigezon Selimi commented
nice