This site aims to be the ultimate resource for Adobe Illustrator(c) scripting. Here you will find regularly updated collection of scripts for all your creative needs.
If you find yourself doing the same task again and again, or you have an idea how to optimise your  workflow – get in touch, and we will provide solution.

Add highlight and shadow swatches

AddSwatchesLightAndShadow.js

A straightforward script for animators. Color palette is used to determine the current fill color. A prompt will appear asking you to name the color, after which it will be added to the swatch palette, along with the highlight and shadow for that color. Feel free to experiment with the values to find the percentages that work best for you.