Artboard Color Fill
Script for Adobe Illustrator
ㅤ
Description
Artboard Color Fill is a powerful Adobe Illustrator script designed to streamline the process of adding background colors to your artboards. Whether you need to visualize a design on a specific colored background, create a mock-up, or simply differentiate artboards, this tool offers a comprehensive solution. It creates a filled rectangle behind your artboards with precise control over dimensions, opacity, and color.
ㅤ
Key Features:
- Flexible Targeting: Apply background colors to the active artboard, all artboards, or a specific selection of artboards.
- Adjustable Margins: Define custom margins to expand or contract the background fill relative to the artboard size.
- Multiple Color Modes: Choose colors using HEX, RGB, CMYK, or HSL inputs, complete with sliders and numeric fields.
- Opacity Control: Adjust the transparency of the fill color.
- Swatch Integration: Access and search your document's existing color swatches directly within the script.
- Extensive Palette: Utilize a built-in library of color palettes (Grays, Reds, Blues, etc.) or save your own custom color presets for quick access.
- Real-time Preview: Instantly see your changes on the canvas before committing them.
ㅤ

ㅤ
Installation
1. Download the Artboard Color Fill.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
3. Restart Adobe Illustrator if it's already running.
4. Access the script via File > Scripts > Artboard Color Fill
ㅤ
➊ Launching the Script
- Open your document in Adobe Illustrator.
- Go to File > Scripts > Other Script... and navigate to the Artboard Color Fill file, or select it from your scripts panel if installed.
- The main dialog window will appear:

➋ Targeting Artboards
The Artboard tab is the default view. Here you decide which artboards will receive the background color.
ㅤ
Scope:
- Active Artboard: Applies the background only to the currently active artboard.
- All Artboards: Applies the background to every artboard in your document.
- Specific Artboards: Enables the list below where you can manually select one or multiple artboards (hold Shift or Cmd/Ctrl to select multiple).
ㅤMargin:
- Enter a value in pixels or use the slider/arrow keys to adjust the size of the background rectangle.
- Positive value: The background extends beyond the artboard edges.
- Negative value: The background is smaller than the artboard.
- Zero: The background perfectly matches the artboard size.

➌ Selecting a Color
Switch to the Fill Color tab to define the color of your background. You have four sub-tabs for different color modes:
ㅤ
- HEX: Enter a hex code (e.g., #FF0000) or click the color swatch to open the system color picker. You can also save the current color as a preset here.
- Opacity: Adjust the fill opacity (0-100%) using the numeric input or the linked scrollbar.
- RGB: Adjust Red, Green, and Blue sliders (0-255).
- CMYK: Adjust Cyan, Magenta, Yellow, and Black sliders (0-100).
- HSL: Adjust Hue, Saturation, and Lightness sliders.

➍ Using Document Swatches
Switch to the Swatches tab to use colors already defined in your document.
ㅤ
- The list displays all solid color swatches found in your file.
- Use the Search Bar at the top to filter swatches by name.
- Click on a swatch name to select it.

➎ Using Predefined Palettes
Switch to the Palette tab to browse a collection of curated colors.
- Scroll through categories like "BW" (Black & White), "Gray", "Blue", "Teal", etc.
- Click on any color square to instantly apply that color to your settings.

➏ Managing Custom Presets
Switch to the Presets tab to access your saved colors.
- Saving a Preset: In the Fill Color > HEX tab, click the + Save as Preset button to save your current color.
- Using a Preset: Click on a saved color swatch in the Presets tab to load it.
- Deleting a Preset: Click the X button next to a preset to remove it from your list.
➐ Preview and Apply
- Preview: Check the Preview box at the bottom of the window to see your changes in real-time on the artboard(s).
- Zoom: Click the + (plus) icon button to zoom into the selected artboard area.
- Apply: Click OK to confirm changes and create the background rectangles.
- Cancel: Click Cancel to discard changes and close the script.
☻ Wrap-up
The Artboard Color Fill script is an essential utility for Illustrator users who frequently work with colored backgrounds or need to visualize designs in different contexts.
By combining flexible targeting, extensive color options, and preset management into a single interface, it saves time and ensures consistency across your projects.
ㅤ
ㅤ