Bento Grid Generator
Adobe Illustrator scriptUser GuidePRO
Modular Bento grids, designed and refined in one window
Bento Grid Generator builds editable layouts of square and rectangular tiles inside an artboard or the bounds of selected artwork. Pick one of 14 Bento styles, tune spacing, color and variations, reshape individual tiles, and watch every change in a live, non-destructive preview before you create the final vector grid.
Available exclusively on Patreon for Pro supporters. The Pro tier also unlocks the entire collection of Illustrator scripts, with future updates.
Key features
01 Introduction ↑ Contents
Overview
A Bento grid is a composition of tiles: some occupy a single cell, others span several. Bento Grid Generator builds these layouts as editable vector paths in Adobe Illustrator.
Use it to plan a dashboard, arrange portfolio panels, lay out a presentation slide, or create a geometric background. The script generates the tile shapes only; it does not fill them with text or images, so you are free to place any content inside afterwards.
The workflow: structure first, then style
The five tabs in the main dialog are stages of a single workflow, not separate documents. Switching from Layout to Color or Tile Editor continues work on the same grid.
Layout Choose where the grid goes, how many rows and columns it uses, its style, spacing and output.
Color Add fill and stroke colors once the structure feels right: one color or a whole palette.
Randomize Vary opacity, color, stroke width and rotation, or leave empty slots, without moving tiles.
Tile Editor Fine-tune individual tiles: move, resize, split, merge, lock or recolor them.
Presets Save the finished configuration so you can return to it or reuse it later.
Meet the interface
Every workspace shares the same tab bar at the top and the same action bar at the bottom.
Tip Try it right here
The window below is a live demo: the real interface running in your browser, with the script's own grid engine drawing on a sample artboard. Change any setting and watch the grid update; each workspace section has its own demo too. Nothing is installed and nothing leaves your browser.
- 1 Workspace tabsSwitch between Layout, Color, Randomize, Tile Editor and Presets. All five edit the same grid.
- 2 Workspace controlsThe settings of the active tab. Every change updates the live document preview.
- 3 Preview ONShows or removes the temporary grid in your document while the window stays open.
- 4 Hide EdgesHides selection edges and the bounding box so you can judge the result clearly.
- 5 Fit in ViewFits the grid in the Illustrator window. Click again to restore the original view.
- 6 CancelRemoves the preview and restores your original selection, view and artboard size.
- 7 OKCreates the final grid on its own layer. The button color follows the active tab.
- 8 Quick TourTakes a short guided tour of the main controls.
- 9 User GuideOpens the built-in offline guide, with search.
Experiment freely
Everything you see while the dialog is open is a temporary preview. Click OK to create the final grid, or Cancel to remove the preview and restore your document exactly as it was.
Working with the controls
- Click a numeric field to type a value, or drag its slider where one is available.
- Numeric fields accept arithmetic, such as
20/2or(12+8)/2, which is handy for dividing spacing evenly. - Click a stepper arrow to change a value by one step; Shift-click to change it by ten steps.
- Press Tab to move keyboard focus. When the main tab bar has focus, Left/Right or Home/End switches workspaces.
- The ? button in the dialog footer starts a Quick Tour of the main controls; the book button opens the built-in offline guide.
02 Getting started ↑ Contents
Install & make your first grid
Open or create an Illustrator document before launching the script. You don't need to select anything when targeting an artboard.
Run the script once
Choose File > Scripts > Other Script... and select the Bento Grid Generator .jsx file. This is the quickest way to try it.
Install it in the Scripts menu
.jsx file in the Scripts folder for your Illustrator version and language (see the paths below).macOS
/Applications/Adobe Illustrator [Version]/Presets/[Language]/Scripts
Windows
C:\Program Files\Adobe\Adobe Illustrator [Version]\Presets\[Language]\Scripts
Tip Drag and drop to run
You can also drag and drop the .jsx file directly onto the Illustrator workspace to run the script instantly – no installation needed.
Your first grid in six steps
4. This simple starting point shows exactly what each division does.20 px and Gutter 10 px. Margin is the outer border; Gutter is the gap between tiles. Use smaller values on smaller artboards.8 px for rounded corners. In Color, select Fill, enable it, choose Single Color, and pick a color. Leave Stroke off for now.Tip Your opening values may differ
The script remembers your last settings, so values from a previous session may appear on launch. Set the values above explicitly, or apply Default Setup in Presets to return to the factory 6 × 6 starting layout.
03 Structure & spacing ↑ Contents
Layout
Choose the area, build the structure, give tiles room to breathe, set their base appearance, and decide what kind of output to create.
- 1 Target AreaChoose a numbered artboard, Active Selection or All Artboards. Click to search the list.
- 2 Bento StylePick one of 14 layout styles, from Uniform Grid to Fibonacci Square Tiles.
- 3 Columns & Rows1–30 each. The chain button between them links the two values.
- 4 Margin & GutterOuter padding and the gap between tiles, 0–200 px. Link them to change both together.
- 5 Width & HeightResize the target artboard from its center (min. 10 px). The chain keeps the aspect ratio.
- 6 OpacityOverall tile opacity, 0–100%.
- 7 Corner RadiusRounds tile corners, 0–200 px, capped at half of each tile's shortest side.
- 8 Stroke WeightOutline width, 0–20 pt. Stroke must also be enabled in Color.
- 9 Stroke AlignCenter Stroke, or Inset in Gutter to keep the visible gap exact.
- 10 Output optionsGroup Output, Above/Below Artwork layer position, and Create Guides.
- 11 Regenerate LayoutTries new tile geometry while keeping the colors and any locked tiles.
- 12 Reset dotAppears when a value differs from its default. Click it to reset.
Choose a target area
Target Area decides where the grid is built. There are three modes:
Artboard Fills a numbered artboard (searchable list). Width and Height resize the artboard itself from its center, not just the tiles; each must be at least 10 px. The link keeps the aspect ratio. Cancel restores the original size.
Active Selection Uses the rectangular bounds of the artwork selected when you launched the script. It does not clip to the object's shape. Width and Height are unavailable because the selection defines the size.
All Artboards Generates on every artboard. The preview shows one artboard, but OK builds on all of them, applying the current Width and Height to each.
Important All Artboards resizes every artboard
The current Width and Height are applied to every target artboard. Don't use this mode expecting artboards of different sizes to keep their original dimensions. Check the values before you click OK.
Build the structure
Columns divide the target across its width; Rows divide it down its height. Each accepts 1 to 30. Because a tile can span several cells, a 6 × 6 grid doesn't necessarily create 36 tiles. Link Columns and Rows for matching counts; unlink them for wide or tall compositions.
Bento Style controls how cells are combined into tiles. Start with Uniform Grid to see the cell size, then compare other styles. Tile proportions depend on the target size and division counts, so judge each style in the preview.
| Family | Styles | Best for |
|---|---|---|
| Even | Uniform Grid | Understanding cell size; regular, equal tiles |
| Panels | Mixed Bento Tiles, Large Feature Tile, Wide Dashboard Tiles, Merged Grid Blocks | Classic Bento layouts with a mix of large and small panels |
| Mosaics | Square Mosaic, Small Rectangle Mosaic, Center-Anchored Packed Tiles, Fibonacci Square Tiles | Dense mosaics, packing and square-based compositions |
| Partitions | Recursive Half Splits, Proportional Partition Splits, Interlocking Masonry, Expanding Rectangle Tiles, Random Merged Rectangles | Split, partitioned and masonry-like arrangements |
Regenerate Layout tries new geometry while keeping the appearance pattern and any pinned (locked) tiles. It's different from Randomize All, which changes appearance rather than tile spans.
Give tiles breathing room
| Setting | Range | What it does |
|---|---|---|
| Margin | 0–200 px | Padding around the whole grid. |
| Gutter | 0–200 px | The gap between adjacent tiles. Link Margin and Gutter only when you want them to change together. |
| Corner Radius | 0–200 px | Rounds tile corners. 0 keeps square corners. Each tile's radius is capped at half its shortest side. |
Important Spacing must fit
Large margins, many divisions, wide gutters and compensated strokes all compete for the same space. If the grid can't fit, reduce spacing or divisions, or enlarge the target. Adding rows won't make room for an oversized gutter.
Set the base appearance
- Opacity (0–100%) controls tile transparency. Use 100% for solid artwork; lower it to let artwork underneath show through.
- Stroke Width (0–20 pt, in 0.1 pt steps) sets the outline. A stroke is only visible when it is enabled in Color and its width is above 0.
- Center Stroke centers the outline on the tile path. Inset in Gutter reserves room for the outline so it doesn't eat into the visible gap between tiles (this is not Illustrator's native inside-stroke alignment).
Choose the kind of output
- Group Output (recommended) keeps all tile paths together in one “Bento Grid Tiles” group, convenient for moving the composition later.
- Layer Position places the generated layer Above Artwork or Below Artwork. Choose Below when existing content should stay in front.
- Create Guides turns the tiles into Illustrator guides instead of filled and stroked shapes, ideal for laying out other artwork. Leave it off for ordinary colored tiles.
04 Fill, stroke & palettes ↑ Contents
Color
Color tile interiors and outlines independently, using a precise color picker or a full palette.
Decide what you're coloring
Select Fill (tile interiors) or Stroke (outlines) before changing a color. Each has its own enable checkbox and color source. Click the target swatch to open Illustrator's native color picker.
Single Color One base color for the selected target. Randomize can vary it later.
Palette A set of colors distributed across the tiles. Built-in palettes include Apple Minimal, Dark Slate, Pastel Tech and Monochrome Wireframe.
Fill + Stroke Fill and Stroke are independent: use a palette for interiors and one shared outline color, for example.
Tip Outline-only tiles
Turn Fill off, enable Stroke, then set a visible Stroke Width in Layout.
- 1 FillTile interiors. Select the card to edit it; the checkbox turns the fill on or off.
- 2 StrokeTile outlines, with their own checkbox and color source.
- 3 Single Color / PaletteOne base color, or a set of colors distributed across the tiles.
- 4 Hex & RGBType an exact hex code or RGB values (0–255). Click Hex to save the color to Recent Colors.
- 5 Color Wheel / Recent ColorsSwitch between the picker and your recent and pinned colors.
- 6 Hue ring & triangleDrag the ring for hue (Shift snaps to 15°), and the triangle for saturation and brightness.
- 7 Triangle / SquareSwitch the picker shape. Both choose the same kind of color.
- 8 HSB controlsExact Hue (0–360°), Saturation and Brightness (0–100%) with sliders or fields.
Pick one color precisely
369 or 336699.Hover a recent color to reveal Pin / Unpin and trash actions (also available on right-click). Pinned colors stay near the top. Clear Recent removes unpinned colors only, so your favorites are safe.
Work with a palette
.ase file. This imports colors only, not a grid layout.Palettes control which colors are available; they don't decide which tile receives which color. To give a specific tile a specific color, use Set Color... in the Tile Editor.
Organize palettes and use document swatches
- Reorder palettes by dragging the handle on the left of a palette.
- Reorder colors inside an expanded palette by dragging a color card's handle; a line shows where it will drop.
- Rename a palette by double-clicking its name. Delete it with the trash icon that appears when you hover its header, then confirm.
- Document Swatches lists the swatches and swatch groups in your current document. Check individual swatches to build a palette from colors you're already using.
05 Controlled variations ↑ Contents
Randomize
Create appearance variations once you like the arrangement. Randomize changes how tiles look, never where they sit or how large they are.
- 1 Vary Fill / Vary StrokeSwitch which set of variation settings you're editing.
- 2 Vary Fill ColorTurn per-tile color variation on or off.
- 3 Hue, Saturation, LightnessHow far each tile may drift from the base color: 0 keeps it, 100 varies fully.
- 4 Vary OpacityGives each tile a random opacity within a range.
- 5 Opacity rangeSet the minimum and maximum with the fields or the two-handle slider.
- 6 Vary Rotation0 keeps tiles straight; 100 allows any angle from −180° to 180°.
- 7 Vary Empty SlotsLeaves a share of tiles empty. Locked tiles always remain.
- 8 DiceReshuffles only that variation's pattern.
- 9 Randomize AllReshuffles every enabled variation at once, without moving tiles.
Try a controlled variation
60% and 100%. A narrower range makes tiles more alike.Available variations
| Variation | Controls | Notes |
|---|---|---|
| Opacity | Min / max range, 0–100% | Varies transparency per tile. |
| Vary Fill Color | Hue, Saturation, Lightness ranges | HSL variation around the fill color(s). Start small for subtle results. |
| Vary Stroke Color | Hue, Saturation, Lightness ranges | Needs an enabled, visible stroke. |
| Vary Stroke Width | Range from 0 to 2× the base width | Set the base Stroke Width in Layout first; a base of 0 can't produce visible outlines. |
| Vary Rotation | Amount 0–100 | 0 adds no rotation, 100 allows the full ±180°. Rotation is continuous, not in 90° steps, and rotated tiles may overlap neighbors. |
| Empty Slots | Amount 0–100 | Omits tiles without deleting the arrangement. 0 keeps all tiles, 100 omits every eligible tile. Pinned tiles always remain. |
Tip Dice click does nothing?
Check that the variation is enabled, that its range is wider than zero, and that the fill or stroke it affects is visible. Randomize All never turns disabled variations on.
06 Manual refinement ↑ Contents
Tile Editor
Use the Tile Editor when most of the layout is right but a panel or two needs attention. Edits here change the same grid you see in the Illustrator preview.
- 1 ZoomZoom the editor canvas out or in, or click the percentage to fit.
- 2 PanToggle pan mode (H) to drag the canvas view.
- 3 Selection infoShows which tile is selected.
- 4 Undo / RedoUp to 50 editing steps (Cmd/Ctrl+Z, Cmd/Ctrl+Shift+Z).
- 5 Selected tileDrag to move it; drag a corner handle to change its column and row span.
- 6 M, G & R handlesDrag to adjust Margin, Gutter and Corner Radius for the whole grid.
- 7 Span buttonsWidth + / − and Height + / − grow or shrink the selected tile by one cell.
- 8 Split & RegenerateSplit 1x1 breaks a tile into single cells; Regenerate reshuffles all unlocked tiles.
- 9 Tile actionsMerge (Cmd/Ctrl+J), Delete, Lock, Color... and Clear Color for the selection.
Select and reshape tiles
Tile actions
| Action | What it does |
|---|---|
| Split 1x1 | Replaces a multi-cell tile with single-cell tiles. |
| Merge | Combines Shift-selected tiles into one larger tile. The selection must form a rectangle. |
| Delete | Removes the selected tiles to leave an intentional open area. |
| Lock / Unlock | Pins a tile so it's preserved when you regenerate. Pin a large hero panel, then click the editor's dice to reshuffle everything around it. |
| Set Color... | Gives the selected tile a custom fill that overrides the shared fill or palette, perfect for a single accent panel. |
| Clear Color (right-click menu) | Removes the custom fill so the tile follows the shared color again. |
Adjust spacing visually
Drag the M, G and R handles on the canvas to adjust Margin, Gutter and Corner Radius for the whole grid. For precise control, press M, G or R and use the arrow keys (hold Shift for steps of 10). Press Esc to leave the adjustment mode.
Zoom, pan and fit only change your view of the editor canvas. They're separate from Fit in View in the bottom bar, which changes the Illustrator document view.
Keyboard shortcuts
| Shortcut | Action |
|---|---|
| Arrows | Cycle through tiles |
| Cmd/Ctrl + Arrows | Nudge the selected tile by one cell |
| Shift + Arrows | Change the tile's span |
| S or Space | Split the selected tile |
| P | Lock / unlock tiles |
| + / - | Zoom the editor canvas |
| 0 | Fit the editor canvas |
| H | Toggle pan mode |
| M / G / R | Choose the Margin, Gutter or Radius handle |
| Arrows | Adjust the chosen handle |
| Shift + Arrows | Adjust the handle in steps of 10 |
| Esc | Exit the current mode or close the menu |
| Cmd/Ctrl + Z | Undo |
| Cmd/Ctrl + Shift + Z | Redo |
07 Saved setups ↑ Contents
Presets
A preset recalls a complete configuration: layout, colors, variations and manual tile edits. A palette, by contrast, stores colors only.
- 1 SearchFind presets by name or grid settings. Esc clears the search.
- 2 PresetClick to apply. The thumbnail previews its layout. Drag to reorder; double-click or F2 to rename.
- 3 Save PresetSaves the current configuration as a new preset.
- 4 Rename PresetRenames the selected preset.
- 5 Delete PresetDeletes the selected preset after you confirm.
- 6 ImportLoad presets from a .json file.
- 7 ExportSave your presets, including favorites, to a .json file.
Save and recall a setup
Note Applying a preset replaces your current grid
Default Setup restores the factory 6 × 6 layout. Applying it, or any other preset, replaces the grid you're refining, so save first if you want to come back to it.
Keep the library tidy
- Reorder presets by dragging them up or down.
- Rename with the Rename Preset button, a double-click or F2.
- Delete a user preset with Delete Preset or Delete/Backspace, then confirm.
- Library changes are saved immediately and are not undone by canceling the dialog.
Share presets between computers
Export saves your user presets, including favorites, as a JSON file (built-in presets and Default Setup are not exported). Import loads a preset JSON file. To import colors from an .ase file, use Color > Import ASE instead.
Settings and presets are stored in a ScriptBox folder in your user data: ~/Library/Application Support/ScriptBox/ on macOS and %APPDATA%\ScriptBox\ on Windows.
08 Output & commit ↑ Contents
Preview & finish
Inspect the result in your document, then commit it with OK or discard it with Cancel.
Bottom bar controls
| Control | What it does |
|---|---|
| Preview | Shows or removes the temporary grid in the document while the dialog stays open. Turning Preview off is not the same as canceling. |
| Hide Edges | Hides selection edges and the bounding box so you can judge the grid clearly. The artwork stays selected and intact. |
| Fit in View | Fits the grid in the Illustrator window. Toggle it off to return to the original view. |
| OK | Creates the final grid on a dedicated top-level layer (grouped as Bento Grid Tiles when Group Output is on). |
| Cancel | Removes the preview and restores your original selection, view and artboard dimensions. |
Final checklist
OK Creates editable vector artwork (or guides) that you can keep working on after the dialog closes.
Cancel Removes all temporary artwork and restores the document. Preset and palette library changes are kept.
09 Common questions ↑ Contents
Troubleshooting
Quick fixes for the most common situations. When in doubt, Cancel lets you leave without keeping any temporary artwork.
I can't see the grid
Turn Preview on. Enable Fill, or enable Stroke with a width above 0. Check Opacity and Empty Slots: 100 omits all eligible tiles. If Create Guides is on, you'll see guides rather than filled shapes.
The spacing won't fit
Reduce Margin, Gutter, compensated Stroke Width, or the number of rows and columns, or use a larger target. A small artboard can't hold the same spacing as a large one.
Active Selection is unavailable
Cancel, select the artwork in Illustrator, and relaunch the script. This mode uses the selection that existed when the script opened.
Width and Height are disabled
Active Selection takes its size from the selected artwork. Choose an artboard target if you need editable dimensions.
A color or variation seems to be ignored
Check whether you're editing Fill or Stroke, whether that target is enabled, and whether the palette color is excluded (Eye icon). A custom tile color overrides the shared fill until you use Clear Color in Tile Editor. Stroke variations need a visible stroke.
A tile won't move, resize or merge
Try an open destination or a smaller span. Merge needs a rectangular selection. Use Undo if an earlier edit left the layout unsuitable.
The preview shows only one artboard
That's expected in All Artboards mode. OK generates on every artboard; check the dimensions first, or choose a numbered artboard to limit output to one.
A dice click does nothing
Make sure the variation is enabled and has a range wider than zero, and that the fill or stroke it affects is visible.
Get started
Ready to build your first Bento grid?
Bento Grid Generator is available exclusively to Pro supporters on Patreon. Pro membership also unlocks the entire collection of Illustrator scripts and every future update, and helps fund new tools.
4 comments
Bento gird backgrounds script
send link dawonload Gento Gride
عمل جبار
bento