- In the script description, click the "Direct Link" button.
- The tab will open the script code.
- Press Cmd/Ctrl + S for download.
- AverageColors
27.03.2022
- BeautifySwatchNames
31.10.2024
- ColorBlindSimulator
18.04.2022
- ColorCorrector
new, 21.06.2024
- ColorGroupReplacer
08.10.2023
- ContrastChecker
23.07.2024
- ConvertToGradient
upd, 09.02.2024
- CycleColors
upd, 09.02.2024
- CycleGradient
- DistributeGradientStops
- MatchColors
upd, 20.05.2024
- RemoveGradientStops
- ReverseGradientColor
- StrokeColorFromFill
upd, 12.02.2024
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
Assigns unique names to selected colors in the Swatches panel. You can create associative palettes like those found in some corporate brandbooks. Using the script, you can get "Jasmine Green" instead of the default "R=122 G=201 B=67" or "Saffron Gold" instead of "C=0 M=50 Y=100 K=0".
-
BeautifySwatchNames — 30,241 colors. For those who want to describe colors in as many ways as possible. The names can be unconventional: Midnight in Saigon, Black Dragon's Caldron, Shawarma, Worcestershire Sauce.
-
BeautifySwatchNames Lite — 4,506 colors. Works faster, but because of the reduced base, more similar colors get the same name.
The script's color library was imported from Color Names
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 the Reverse Gradient
button. Vote on Uservoice to fix this.
Note
Vote on Uservoice to add this feature to Illustrator.
In Illustrator prior to CS4, you could set the same color channel values for multiple objects. As of CS5, this feature is no longer available. The script allows you to change the fill and stroke channel values as follows
- Set exact numeric values
- Apply +, -, *, / mathematical operations
- Calculate the value of one channel relative to another by its name
For RGB or CMYK document mode, the script changes the input field list.
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 the Reverse Gradient
button. Vote on Uservoice to fix this.
Matches two groups of objects (paths, texts) or text objects characters by fill color. Can recolor selected objects in selected color swatches in the Swatches panel. 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 the Reverse 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 the Reverse 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 the Reverse Gradient
button. Vote on Uservoice to fix this.
Applies a color from its solid or gradient fill to the stroke of each selected path. If the fill is a gradient, the colors of all gradient stops are averaged for the stroke color.
Warning
Don't put this script in the action slot for a quick run. It will freeze Illustrator.
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 USD
, ЮMoney RUB
, Tinkoff RUB
, Donatty RUB
, DonatePay RUB
. Thank you.
Found a bug? Please submit a new issues on GitHub.
Email hi@sergosokin.ru
Telegram @sergosokin
All scripts is licensed under the MIT licence.
See the included LICENSE file for more details.