Stroke Width Randomizer
Figma Plugin
ㅤ
Description
A powerful Figma plugin that applies random stroke widths to selected objects within a customizable range. Perfect for creating organic, hand-drawn effects or adding visual variety to your designs.
ㅤ
Features
- Live Preview: See changes in real-time as you adjust settings
- Customizable Range: Set minimum and maximum stroke width values (0-100px)
- Smart Controls: Interactive sliders and numeric inputs with keyboard shortcuts
- Zero-Stroke Handling: Option to skip objects that don't have strokes
- Nested Object Support: Apply randomization to child elements within groups and frames
ㅤ

ㅤ
➊ Getting Started
- Select Objects: Choose one or more objects in your Figma canvas that you want to apply random stroke widths to
- Open Plugin: Go to Plugins → Stroke Width Randomizer
- Adjust Settings: Configure your desired stroke width range and options
- Preview Changes: The plugin shows live preview by default
- Apply: Click "Apply Random Stroke" to finalize the changes
➋ Interface Overview
Stroke Width Range
- Minimum Stroke Width: The lowest possible stroke width (0-100px)
- Maximum Stroke Width: The highest possible stroke width (0-100px)
- Use sliders for quick adjustments or input fields for precise values
ㅤ
Options
- Skip Zero Stroke Objects: When enabled, objects without existing strokes will be ignored
- Live Preview: Toggle real-time preview of changes (enabled by default)
- Include Nested Objects: Apply randomization to child elements within selected groups/frames
ㅤ
Controls
- Randomize: Generate a new random pattern while keeping the same settings
- Apply Random Stroke: Apply the current preview to your selection permanently
- Cancel: Close the plugin and revert any preview changes
➌ Keyboard Shortcuts
When focused on numeric input fields:
- Arrow Keys: Adjust value by ±1
- Shift + Arrow Keys: Adjust value by ±10
- Cmd/Ctrl + Arrow Keys: Adjust value by ±0.1
ㅤ
Slider Shortcuts
- Right-click or Double-click on minimum slider: Reset to 0
- Drag sliders: Real-time value adjustment with live preview
➍ Advanced Usage
Working with Groups and Frames
The plugin can handle nested objects in two ways:
- Selected Objects Only: Apply randomization only to the directly selected items
- Include Nested Objects: Apply randomization to all child elements within selected groups, frames, or components
ㅤ
Zero-Stroke Handling
- Skip Enabled: Objects without strokes remain unchanged
- Skip Disabled: Objects without strokes will receive new random stroke widths and default black stroke color
ㅤ
Preview Mode
- Live preview shows changes immediately as you adjust settings
- Each preview uses a unique random seed for variation
- The "Randomize" button generates new random patterns
- Final application can either match the preview exactly or generate new random values
☻ Wrap-Up
This Figma plugin streamlines the process of adding organic, hand-drawn effects to your designs by intelligently randomizing stroke widths across selected objects. With live preview, customizable ranges, and support for nested elements, it's perfect for creating natural line weight variations in illustrations, sketches, and technical diagrams.
Try it out and explore the creative possibilities of randomized stroke widths in your next project.
ㅤ
ㅤ