- In the script description, click the "Direct Link" button.
- The tab will open the script code.
- Press Cmd/Ctrl + S for download.
- AverageColors
new, 27.03.2022
- ColorBlindSimulator
new, 18.04.2022
- ColorGroupReplacer
new, 08.10.2023
- ContrastChecker
new, 07.09.2023
- ConvertToGradient
upd, 14.09.2022
- CycleColors
upd, 30.09.2022
- CycleGradient
- DistributeGradientStops
- MatchColors
new, 22.12.2023
- RemoveGradientStops
- ReverseGradientColor
- StrokeColorFromFill
upd, 14.10.2022
Averages the colors of selected objects or separately inside groups or gradients. The script skips objects without color or with a pattern. If nothing is selected, the script process all groups in the document. It has two modes: silent and dialog. Changing in CFG.showUI
.
Modes change without editing the code if you hold down the Alt key when running the script:
- Alt +
CFG.showUI: false
the dialog will be shown - Alt +
CFG.showUI: true
silent mode with the latest options
Simulates color vision deficiency of 8 types. You can recolor objects or use only a preview. Adobe is limited to viewing two types in the View > Proof Setup
menu and cannot apply colors. The script supports: paths, compound paths, text, fills and strokes. You can change the gamma correction in CFG.gamma: 2.2
and activate the default preview CFG.defPreview: true
.
Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with theReverse Gradient
button. Vote on Uservoice to fix this.
Replaces the values of spot colours in one colour group with spot colours from another group by matching swatch names or by order. In the example, the Default group is replaced. If a color in the target group has the name Accent
, the script will look for swatches with a name that contains the name of the target color. You don't need to create palettes with semantic names, just arrange the colors within the groups in the desired order and select the By swatches order
option.
Helps select color combinations for text and backgrounds, icons and other interface elements, and diagrams by checking the contrast of color pairs for WCAG 2.1 compliance. The auto-correct ratio is set in the script code in the CFG.defRatio: 4.5
variable.
- body, subtext (17 pt / 23 px regular) — 4,5:1 and above;
- large text, headers (18 pt / 24 px regular or 14 pt / 19 px bold) — 3:1;
- for non-text content (icons and actionable graphics) — 3:1, because they don't need to be read.
Warning
Remember that contrast can vary depending on your monitor, device, environmental conditions, typefaces, and many other details. Using common sense can be more helpful than mindlessly following a rule. Read more
Convert a flat process color into a matching gradient.
What's new: The script now works with the RGB and CMYK document profile, Spot & Gray colors. Processes compound paths and groups of items.
Based on original script by Saurabh Sharma, 2010.
Swaps the fill and stroke colors of the selected objects in order they have in the Layers panel. Preserves the weight of the strokes, but if an object has no stroke, the script copies one from another object. If your selected objects are in non-consecutive order, you may think that the Forward
and Backward
buttons move colors randomly. The Reset
button doesn't return custom brushes and dash settings applied to strokes, but you You can use the native command Undo
after closing the dialog box.
The script by default remembers the position of the dialog window on the screen, to make it open centered, replace CFG.isResWinPos: true
with false
in the code.
- CycleGradient.jsx (UI version)
- CycleGradientBackward.jsx
- CycleGradientForward.jsx
- CycleGradientRandom.jsx
A set of 4 scripts that change the color order of gradient stops. The position of the stops and opacity don't change.
Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with theReverse Gradient
button. Vote on Uservoice to fix this.
Matches two groups of objects (paths, texts) or text objecs characters by fill color. Colors are defined on paths, compound paths, or text. Other objects in groups are skipped.
Warning
Scripts cannot copy/paste gradient angle and length properties. For this reason, only the gradient color is copied without its properties. Vote on Uservoice to fix this.
Distributes uniform spacing between all the gradients stops without changing the position of the outermost stops.
Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with theReverse Gradient
button. Vote on Uservoice to fix this.
Removes intermediate color stops of gradient fill and stroke for selected objects.
Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with theReverse Gradient
button. Vote on Uservoice to fix this.
Reverse the order of gradient colors and their opacity. Does not reverse the locations of color stops.
Warning
Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with theReverse Gradient
button. Vote on Uservoice to fix this.
Setting the Stroke color of object based on an his solid or gradient fill. The option to automatically add an stroke is not available for Mac OS users with an Illustrator older than CC 2020.
Many scripts are free to download thanks to user support. Help me to develop new scripts and update existing ones by supporting my work with any amount via Buymeacoffee, Tinkoff, ЮMoney, Donatty, DonatePay. Thank you.
Found a bug? Please submit a new issues on GitHub.
Email [email protected]
Telegram @sergosokin
All scripts is licensed under the MIT licence.
See the included LICENSE file for more details.