Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.
Quick Reference
Cheat Sheet
Full Guide
How to Fix
AI Prompts
At a glance
If LintKit’s component replacement isn’t working as expected, your library probably has one or more of these issues:
Generic property names like Property 1 that were never renamed
Components named by color or appearance instead of purpose
Inconsistent size or state labels across families
Type or Variant meaning different things in different components
Internal helpers published alongside real components
Duplicate semantic paths
Version suffixes like _final or _v2 baked into published names
What good naming looks like
Name by purpose, not appearance
Instead of this
Use this
Blue Button
Button/Primary
Green Alert
Alert/Success
Gray Tag
Badge/Neutral
Use forward slashes for meaningful paths
Good: Actions/Button/Primary/MD/Default
Bad: button primary medium final
Use consistent variant property names
Use the same axes across your library:
Property
Purpose
Example values
Style
Visual hierarchy
Primary, Secondary, Ghost
Size
Component scale
SM, MD, LG
State
Interaction status
Default, Hover, Disabled
Modifier
Optional configuration
Full width, With label
Use affirmative booleans for component properties
Good: Show icon, Is loading, Has label
Also good: showIcon, isLoading, hasLabel
Bad: Icon=True, Label?, Hide Icon
Hide internal helpers
Good: .Button Base, _Input Shell
Bad: Publishing every internal atom and fragment
Pick a casing convention and stick to it
Title Case is most natural for designers in Figma
camelCase works for developer-aligned teams
The problem is mixing both in the same library
Rename these before publishing
These are Figma defaults or implementation leftovers that should never appear in a published library:
Property 1, Property 2 — rename to Style, Size, State, etc.
Unrenamed Variant or Type — rename to describe what the axis actually controls
Frame 104, Component 7 — replace with semantic names
Button_final_v2 — archive the old version, keep one canonical component
Blue Button, Green Alert — use role names like Primary and Success
Slot A, Area 1 — use role names like Header, Content, Footer
Comparison examples
Component
Acceptable
Unacceptable
Button
Actions/Button/Primary/MD/Default
Blue Button/final/Property 1=Primary
Input
Data Entry/Input/Text/MD/Default
Input Field/Component 7/Property 2=Medium
Checkbox
Data Entry/Checkbox/Checked/Enabled
Box/On/Property 2
Alert
Feedback/Alert/Critical/With Icon
Notice/Red/Icon=True
Modal
Overlays/Modal/Dialog/MD/Default
Popup/Overlay/Frame 102
Badge
Feedback/Badge/Success/SM
Tag/Green/12px
Switch
Data Entry/Switch/On/Enabled
Toggle/Variant=On/Frame 22
Quick fixes (in priority order)
Rename generic properties first — Property 1 → Style, Property 2 → Size, etc. This is the highest-impact change.
Pick one size system — XS / SM / MD / LG / XL across every family
Pick one state system — Default / Hover / Focused / Disabled / Error across every family
Remove version suffixes — archive old versions, keep one canonical component
Hide internal helpers — prefix with _ or ., or use “Hide when publishing”
Name slots by role — Header, Content, Footer instead of Slot A, Area 1
Settle on a casing convention — Title Case or camelCase, not both in the same library
Recommended standards
Every public component should have a stable, semantic path
Variant property names should be descriptive and consistent across families
Boolean component properties should be affirmative (Show icon, not Hide icon)
Internal helpers should not appear in the assets panel or Replace Component
Duplicate semantic paths should be resolved — one canonical version per component
Name by role, not by color, when the name represents a semantic purpose
Simple rule to remember: Name components the way a designer chooses them, not the way Figma generated them.
Find & Replace
LintKit’s Find & Replace lets you search layer names, style names, or component names and swap matched text. Works with plain text or regex. Choose a target (layers, styles, or components) and scope (selection, page, or document).
Remove copy suffixes
Strips the “copy” or “Copy 2” suffixes Figma adds when you duplicate layers.
Before
Find (regex)
Replace
After
Card_copy
[_\s-]?copy(\s*\d+)?$
(empty)
Card
Header copy 3
[_\s-]?copy(\s*\d+)?$
(empty)
Header
Nav-copy 12
[_\s-]?copy(\s*\d+)?$
(empty)
Nav
How the pattern works:[_\s-]? matches an optional separator before “copy”, copy matches the literal word, (\s*\d+)? optionally matches a space and number, and $ anchors to the end of the name.
Strip default Figma names
Replaces auto-generated names like “Frame 47” with a meaningful name. Scope to Selection so you only affect the layers you’ve chosen.
Before
Find (regex)
Replace
After
Frame 47
^Frame\s+\d+$
Card
Card
Rectangle 12
^Rectangle\s+\d+$
Background
Background
Group 3
^Group\s+\d+$
Row
Row
How the pattern works:^ anchors to the start, Frame is the literal word, \s+\d+ matches space plus digits, and $ anchors to the end (so “Frame Header” won’t match).
Remove temporary prefixes
Strips WIP, DRAFT, DELETE, OLD markers before handoff.
Switch between dashes, underscores, and slashes. Plain text mode works — no regex needed.
Before
Find
Replace
After
icon_arrow_left
_
/
icon/arrow/left
button-primary-large
-
/
button/primary/large
Icon/Arrow/Left
/
-
Icon-Arrow-Left
Add or change prefixes
Organize names into folder hierarchies using regex capture groups.
Before
Find (regex)
Replace
After
Primary
^(.+)$
Button/$1
Button/Primary
Shadow Soft
^(.+)$
Effects/$1
Effects/Shadow Soft
Colors/Blue/500
^Colors/
Color/
Color/Blue/500
How capture groups work:^(.+)$ captures the entire name as $1. In the replace field, Button/$1 puts “Button/” before the captured text.
Restructure component paths
Rearrange slash-separated segments using capture groups.
Before
Find (regex)
Replace
After
Primary/Button
^([^/]+)/([^/]+)$
$2/$1
Button/Primary
Button/Primary
^(Button|Input|Select)
Data Entry/$1
Data Entry/Button/Primary
Icons/UI/Arrow Left
^Icons/UI/
Icons/
Icons/Arrow Left
Reorganize style names
Target set to Styles. Style names control folder structure in Figma’s style picker.
Before
Find (regex)
Replace
After
clr-blue-500
^clr-
Color/
Color/blue-500
typ-heading-lg
^typ-
Typography/
Typography/heading-lg
Colors/Brand/Primary/Blue/500/Default
^Colors/Brand/Primary/
Color/
Color/Blue/500/Default
Batch Rename (Template Variables)
Batch Rename works differently — instead of searching for text, it renames all layers in a finding using a template that pulls info from each layer automatically.
Preview first. Always use “Find Only” before applying to see what will change.
Scope to Selection. Generic patterns like ^Frame\s+\d+$ can match things you don’t expect — narrow scope first.
Work in passes. Multiple simple find-and-replaces beat one complex regex.
Styles are file-scoped. When targeting Styles, the scope setting doesn’t apply — styles are always file-level.
Who this guide is for
This guide is for design system teams, product designers maintaining shared libraries, design ops teams cleaning up legacy component files, and anyone using LintKit’s component replacement features.LintKit works best when your library names describe what a component is and how a designer would choose it, not how Figma happened to generate it.
How naming quality affects LintKit
LintKit can do a much better job when your library is semantic, consistent, scannable, machine-readable, and cleanly separated between public and internal assets.In practice, that means your library should have:
Stable component paths
Meaningful page and section structure
Predictable variant property names
Controlled vocabularies for values
Affirmative boolean labels
Unique semantic paths
Internal helpers hidden from publishing
LintKit will likely struggle when it sees Property 1, duplicate paths, Type used inconsistently, helper contamination, or icons and templates mixed into public component pages.
Semantic naming vs. implementation naming
Semantic naming describes what a component is, what role it plays, and what choices a designer is making:
Button/Primary
Input/Search
Alert/Success
Implementation naming describes visual traits, technical leftovers, or temporary status:
Blue Button
Frame 104
Property 1=Primary
Button_Final_v2
Name for intent, not appearance. If your brand color changes from blue to red, Blue Button becomes wrong. Button/Primary stays correct.
Library structure
A usable library depends on five layers working together:
File — e.g. Product Design System
Page — e.g. Data Entry
Section / frame — e.g. Inputs
Component path — e.g. Input/Search
Variant properties — e.g. Size=MD, Style=Filled, State=Default
Use slashes for stable paths
Forward slashes should create meaningful groupings, not word salad.
Good: Actions/Button/Primary/Medium/Default
Bad: button-primary-medium-state-1
Recommended top-level categories
Pick a small set and stick to it:
Actions
Data Entry
Navigation
Data Display
Feedback
Overlays
Layout
Foundations or Primitives
Do not create both Forms and Data Entry unless you have a strict rule for the difference. Category drift is how libraries turn into attic boxes labeled “misc.”
The “Big Four” semantic axes
Most reusable UI components can be described using four consistent property types.
Has Icon, Allow Clear, Loading, Full Width, Show Label
If one button uses Type=Primary, State=Hover, Size=Large but another uses Variant=Main, Status=Over, Scale=LG, your library becomes harder for designers to scan and harder for tooling to normalize.
Size vocabulary
Use T-shirt sizes as the default:
XS, SM, MD, LG, XL
This is more stable than raw pixel naming.
What to avoid
Do not mix Small, sm, S, 16, and Regular as if they are interchangeable.
Approach
Example
Good
Size=SM, Size=MD, Size=LG
Workable
Size=Small, Size=Medium, Size=Large
Avoid
Size=16, Size=2, Size=Default, Size=Regular when you already use MD elsewhere
Use relative size meaning, not raw build values.
Overloaded property names: the “Type” problem
Type is one of the most overloaded names in component libraries. It might mean style, subtype, status, treatment, or even state.In one family Type=Primary means visual hierarchy. In another, Type=Search means input subtype. In another, Type=Success means feedback tone. Those are three different semantic jobs wearing the same name.Use more specific property names:
Instead of
Use
Type=Primary
Style=Primary
Type=Search
Subtype=Search
Type=Success
Tone=Success
Boolean naming
Boolean properties should read like a clear yes/no question. Use affirmative prefixes: is, has, show.
Bad
Better
Hide Icon
showIcon
Visible
isVisible or showContent
Label?
hasLabel
Selected
isSelected
If the property name is Hide Icon and the value is true, what does that mean? That ambiguity is error-prone. Flip to showIcon so true means “the icon is visible.”
Slots and sub-parts
Complex components often expose slots, instance swaps, or nested subcomponents. Those names must still be semantic.
Bad
Better
Area 1
Header
Slot A
Content
Frame 12
Footer
Section B
Leading icon
Custom Area
Supporting text
Name the role, not the coordinate. If a user is replacing content in a modal, Header means something. Area 1 means nothing.
Public vs. internal components
One of the biggest reasons Replace Component gets messy is helper contamination. Internal parts, slots, atoms, fragments, and scaffolding should not appear in the assets panel.Public components are things users actually insert: Button, Input, Card, Badge, Modal, Alert.Internal helpers should stay hidden: button bases, icon glyph wrappers, row fragments, cells, scaffolds, layout shells.Hide internal-only pieces using:
. prefix (e.g. .Button Base)
_ prefix (e.g. _Input Shell)
Figma’s “Hide when publishing” behavior
Simple rule: If the component is mainly used inside another component, it probably should not appear in Replace Component.
Casing conventions
Pick one and keep it everywhere:
Title Case is most natural for designers in Figma
camelCase works for developer-aligned teams
The problem is mixing both in the same library
Library smell checklist
If your library has these issues, semantic replacement gets less reliable.
Duplicate semantic paths — two different component sets resolve to the same human meaning
Versioning rot — _final, _v2, _new, _old
Inconsistent casing — mixing camelCase, kebab-case, Title Case, and UPPERCASE inside the same family
Helper contamination — internal atoms or fragments mixed with public components
Color-based naming — Green Button, Blue Badge, Red Alert
Project-management naming — Ready for Dev, Use This One, New, Final Final, initials, emojis, sprint notes
Overloaded Type — same label used for different semantic jobs
Long slash spaghetti — paths so deep they stop being readable
Component copies with no clear canonical version — CardV2, Card Final, Card final copy, Card fixed
Full comparison table
These are one-to-one comparisons of the same component, showing a clean semantic path and an implementation-heavy version.
24 component examples
Component
Acceptable
Unacceptable
Button
Actions/Button/Primary/MD/Default
Blue Button/final/Property 1=Primary
Icon Button
Actions/Button Icon/Primary/MD/Default
Button Icon/16px/blue/v2
Link
Actions/Link/Inline/Default
Blue Text Link/Variant 2
Text Input
Data Entry/Input/Text/MD/Default
Input Field/Component 7/Property 2=Medium
Search Input
Data Entry/Input/Search/MD/Filled/Allow Clear
SearchBox/Type=Active/Size=2/Helper 01
Textarea
Data Entry/Input/Textarea/MD/Default
Textarea/Property 1=Default/Copy 3
Select
Data Entry/Select/MD/Default
Dropdown/Type=Primary
Checkbox
Data Entry/Checkbox/Checked/Enabled
Box/On/Property 2
Radio
Data Entry/Radio/Checked/Disabled
Radio/Status=Active/Type=Disabled Checked
Switch
Data Entry/Switch/On/Enabled
Toggle/Variant=On/Frame 22
Tabs
Navigation/Tabs/Line/MD/Default
Tabs/Default/Container Tabs
Breadcrumbs
Navigation/Breadcrumbs/Default
Nav Path/Variant 1
Badge
Feedback/Badge/Success/SM
Tag/Green/12px
Alert
Feedback/Alert/Critical/With Icon
Notice/Red/Icon=True
Toast
Feedback/Toast/Success/Default
Alert Green/State 1
Modal
Overlays/Modal/Dialog/MD/Default
Popup/Overlay/Frame 102
Drawer
Overlays/Drawer/Right/MD/Default
Slideout/Right thing/new
Tooltip
Data Display/Tooltip/Default
Tooltip/Helper/Do Not Use
Card
Data Display/Card/User Profile/Default
CardV2/user_info/final
Table
Data Display/Table/Default
Table/Row Fragment/Cell 02
Spinner
Feedback/Spinner/LG/Default
Loading/Wheel/32px
Progress
Feedback/Progress/Linear/Default
Loader Bar/state-3
Avatar
Data Display/Avatar/User/MD
Profile Pic 40
Pagination
Navigation/Pagination/Default
Page Nav/control set 4
Quick fix guide
Use this when your library is already messy and you need to improve it fast.Fix 1: Rename generic properties first. If you see Property 1, Property 2, or Variant, rename them immediately to Style, Size, State, Modifier, Tone, or Subtype.Fix 2: Standardize size naming. Pick XS/SM/MD/LG/XL or Small/Medium/Large, then update every similar family to match.Fix 3: Standardize state naming. Choose one set: Default, Hover, Focused, Pressed, Disabled, Error, Selected, Checked. Avoid mixing Rest, Base, Normal, and Default.Fix 4: Remove version suffixes. Replace _v2, _final, _new — archive the old version, keep one canonical published component.Fix 5: Hide internal helpers. Prefix internal-only components with . or _, or hide them from publishing.Fix 6: Move organization out of bloated names. If component paths are getting too long, move grouping into pages and sections.Fix 7: Add descriptions to public components. Descriptions help users understand when to use it, when not to, and what conventions it follows.
Non-negotiable rules
Never publish Property 1, Property 2, or Variant as-is
Every public component must have a stable semantic path
Use one controlled vocabulary for size
Use one controlled vocabulary for state
Boolean properties must be affirmative and explicit
Internal helpers must be hidden from the public library
No duplicate semantic paths
Do not name by color if the name represents a role
Do not use version suffixes as a permanent naming strategy
Slots must be named by role, not by position or placeholder
That is the kind of structure both humans and tools can reason about.
If you want Replace Component to feel smart, your library has to stop speaking in implementation leftovers and start speaking in product language. The goal is easier browsing, fewer mistakes, better design-to-code parity, and cleaner replacement results.
What LintKit detects
LintKit’s naming rule catches three categories of problems:
Default Figma names — Frame 47, Rectangle 12, Group 7, Text 3, and other auto-generated names that tell developers nothing about the layer’s purpose.
Forbidden patterns — copy suffixes (Button copy 2), temp labels (WIP Header, TODO fix this), and other placeholders that should never appear in a published file.
Convention violations — when your file has a dominant naming style (like camelCase) and some layers break it (like hero-banner in kebab-case).
This tab walks through how to fix the most common naming problems in your library.
Fixing component variant properties
Variant properties are the dropdowns designers see when selecting a variant. Default names like Property 1 give no context about what the property controls.
1
Select the component set in your library file
Click the component set (the purple dashed border) — not an individual variant inside it.
2
Open the Design panel
Look for the variant property names listed under the component set name. You’ll see names like Property 1, Property 2, etc.
3
Rename the property
Click the property name to edit it. Replace generic names with descriptive ones:
Button component set├── Style = Primary├── Style = Secondary├── State = Default├── State = Hover
Fixing component boolean properties
Boolean properties control toggles like “show icon” or “is loading.” Default names like Property 3 don’t communicate what the toggle does.
1
Select the individual component
Click the component itself (not the component set) — the one with the purple diamond icon.
2
Find the boolean properties
In the Design panel, look for properties with true/false values.
3
Rename the property
Click the property name to edit it. Use an affirmative prefix:
Property 3 → Show icon
Property 4 → Is loading
The value is automatically true or false — you only need to rename the property itself.Before:
Property 3 = true/false
After:
Show icon = true/false
Fixing slot and sub-layer names
Slots and sub-layers are the internal parts of a component that designers can customize. Default names like Frame 12 make it impossible to know which slot does what.
1
Enter editing mode
Double-click into the component to edit its internal layers.
2
Rename layers in the layers panel
Click each layer name in the left sidebar and type a descriptive name that describes the layer’s role.
Before:
Frame 12Group 4Rectangle 1
After:
HeaderContentBackground
Hiding internal helpers
Internal components (button bases, icon wrappers, layout scaffolds) clutter the assets panel and confuse Replace Component. Three ways to hide them:
1
Option A: Prefix with . or _
Rename the component to .Button Base or _Input Shell. Figma automatically hides dot-prefixed components from library publishing.
2
Option B: Right-click → Hide when publishing
Right-click any component in a library file and select Hide when publishing. The component stays usable inside the file but won’t appear in the assets panel for consumers.
3
Option C: Move to a private page
Create a page called _Internal or .Helpers and move internal components there. Components on pages with . or _ prefixes are excluded from publishing.
Simple rule: If a component is mainly used inside another component, it probably should not appear in your library’s assets panel.
Bulk renaming layers with Figma’s built-in tools
For large files with many default names, Figma’s native bulk rename is the fastest path.
1
Select the layers to rename
Select multiple layers in the layers panel, or press Cmd/Ctrl+A to select all layers on the current page.
2
Open the Rename dialog
Press Cmd/Ctrl+R to open Figma’s bulk rename dialog.
3
Choose a rename pattern
You have several options:
Replace all names: Type a new name. All selected layers get that name.
Keep current name with prefix/suffix: Use $& to reference the current name. For example, Section/$& wraps every name with a category prefix.
Find and replace: Use the Match field with a regex pattern and the Replace field to fix specific problems.
4
Apply the rename
Review the preview and click Rename to apply changes to all selected layers.
Useful find-and-replace patterns
Goal
Match
Replace with
Remove ” copy” suffixes
copy\s*\d*$
(empty)
Remove ” - old” suffixes
\s*-\s*old$
(empty)
Add a category prefix
(select layers, type new name)
Section/$&
LintKit also has a built-in Batch Rename feature that works directly from naming findings. It supports pattern tokens like {n}, {parent}, and {type} for more structured renaming.
Standardizing size values across a library
When different component families use different size labels (Small, sm, S, 16), the library feels inconsistent and tooling can’t match across families.
1
Pick one size vocabulary
The most common choice is T-shirt sizes: XS, SM, MD, LG, XL. Alternatively, use Small, Medium, Large — but pick one and stick to it.
2
Open each component set with a size property
Go through your library and find every component set that has a size variant.
3
Rename each variant value to match
Click the variant value in the Design panel and rename it:
Small → SM
Medium → MD
Large → LG
4
Repeat for every component family
Do this for buttons, inputs, badges, avatars, and every other component with a size property.
This is tedious but one-time. Once standardized, new variants follow the pattern naturally.
Handling version suffixes
When you find components like Card_v2, Card Final, Card fixed, it means the library has accumulated drafts that were never cleaned up.
1
Decide which is the canonical version
Look at which version is most widely used across your files. That’s your canonical component.
2
Archive the old versions
Move old versions to a page called _Archive or _Deprecated. This keeps them accessible but out of the main library.
3
Rename the canonical version
Remove the version suffix: Card_v2 → Card. This is now the single source of truth.
4
Migrate existing instances
If instances of the old version exist in consumer files, use Figma’s Swap component feature to migrate them to the canonical version.
5
Delete or hide the archived versions
Once all instances are migrated, hide or delete the old versions so they stop appearing in the assets panel.
Before deleting old component versions, use Figma’s Go to main component on existing instances to make sure nothing is still pointing at the version you’re about to remove.
Use these ready-made prompts with Claude or ChatGPT to generate the exact regex patterns you need for LintKit’s Find & Replace. Copy the prompt, fill in the [BRACKETED] placeholders with your values, and paste it into the AI.
The more before/after examples you include, the better the AI’s output will be. Always test with LintKit’s “Find Only” mode before applying.
Remove a suffix from layer names
Best for: Cleaning up copy suffixes, version markers, status tags, or any repeated suffix across many layers.Example result:
Before
After
Card_copy
Card
Header copy 3
Header
Nav-copy 12
Nav
Copy this prompt
I'm using a Figma plugin called LintKit that has a Find & Replacefeature with regex support. I need to remove the suffix [YOUR SUFFIX]from my layer names. It might appear with a separator before it(space, dash, or underscore).Examples of names I have:- [EXAMPLE 1, e.g. "Card_copy"]- [EXAMPLE 2, e.g. "Header copy 3"]- [EXAMPLE 3, e.g. "Nav-copy 12"]Give me the Find pattern (regex) and the Replace pattern to usein LintKit's Find & Replace. The suffix should only be removedfrom the end of the name, not the middle.
Replace default Figma names with a meaningful name
Best for: Replacing auto-generated names like “Frame 47” or “Rectangle 12” with semantic names, scoped to your current selection.Example result:
Before
After
Frame 47
Card
Frame 12
Card
Frame 203
Card
Copy this prompt
I'm using LintKit's Find & Replace with regex. I have layers withFigma's default auto-generated names and I want to replace themwith a specific name.Default names to match: [e.g. "Frame 1", "Frame 2", "Frame 47"]Replace them all with: [e.g. "Card"]The pattern should only match the exact default format (the wordfollowed by a space and number), not names like "Frame Header"or "My Frame".Give me the Find pattern (regex) and the Replace value.
Remove a prefix from layer names
Best for: Stripping WIP, DRAFT, DELETE, OLD, or any temporary markers before handoff or publishing.Example result:
Before
After
WIP Button Primary
Button Primary
DRAFT-Header
Header
OLD_Sidebar Nav
Sidebar Nav
Copy this prompt
I'm using LintKit's Find & Replace with regex. I need to removea prefix from the beginning of my layer names. The prefix mightbe followed by a space, dash, or underscore.Prefixes to remove: [e.g. "WIP", "DRAFT", "OLD", "DELETE"]Examples:- [e.g. "WIP Button Primary" should become "Button Primary"]- [e.g. "DRAFT-Header" should become "Header"]Give me the Find pattern (regex) and the Replace value.
Clean up version or status suffixes
Best for: Removing _v2, _final, NEW, old, and other naming debt accumulated over time.Example result:
Before
After
Card_v2
Card
Header_final
Header
Button NEW
Button
Copy this prompt
I'm using LintKit's Find & Replace with regex. I need to removeversion and status markers from the end of my layer names.Suffixes to remove: [e.g. "_v2", "_final", " NEW", " old"]Examples:- [e.g. "Card_v2" should become "Card"]- [e.g. "Header_final" should become "Header"]- [e.g. "Button NEW" should become "Button"]Give me the Find pattern (regex) and the Replace value. It shouldhandle optional separators (space, dash, underscore) beforethe suffix.
Convert one separator to another
Best for: Switching between underscores, dashes, and slashes across all your layer or style names.Example result:
Before
After
icon_arrow_left
icon/arrow/left
color_blue_500
color/blue/500
Copy this prompt
I'm using LintKit's Find & Replace. I want to convert all[OLD SEPARATOR, e.g. "underscores"] in my layer names to[NEW SEPARATOR, e.g. "forward slashes"].Examples:- [e.g. "icon_arrow_left" should become "icon/arrow/left"]- [e.g. "color_blue_500" should become "color/blue/500"]Do I need regex for this, or can I use plain text mode? Give methe Find and Replace values.
Add a category prefix to all names
Best for: Organizing flat names into Figma’s slash-separated folder structure for the Assets panel or style picker.Example result:
Before
After
Primary
Button/Primary
Secondary
Button/Secondary
Ghost Large
Button/Ghost Large
Copy this prompt
I'm using LintKit's Find & Replace with regex. I want to add aprefix to the beginning of all matched layer names, keeping theexisting name intact.Prefix to add: [e.g. "Button/"]Examples:- [e.g. "Primary" should become "Button/Primary"]- [e.g. "Secondary" should become "Button/Secondary"]- [e.g. "Ghost Large" should become "Button/Ghost Large"]Give me the Find pattern (regex) and the Replace pattern. Explainwhat $1 means in the replace pattern.
Change an existing prefix to a new one
Best for: Renaming top-level categories across your styles or components without touching the rest of the path.Example result:
Before
After
Colors/Blue/500
Color/Blue/500
Colors/Brand/Red
Color/Brand/Red
Copy this prompt
I'm using LintKit's Find & Replace with regex. I want to changean existing prefix at the beginning of my names to a different one.Old prefix: [e.g. "Colors/"]New prefix: [e.g. "Color/"]Examples:- [e.g. "Colors/Blue/500" should become "Color/Blue/500"]- [e.g. "Colors/Brand/Red" should become "Color/Brand/Red"]Give me the Find pattern (regex) and the Replace value. Thepattern should only match the prefix, leaving everything afterit unchanged.
Swap the order of path segments
Best for: Fixing component names where the segments are in the wrong order (e.g. state before component name).Example result:
Before
After
Primary/Button
Button/Primary
Large/Input
Input/Large
Copy this prompt
I'm using LintKit's Find & Replace with regex. My componentnames have slash-separated segments in the wrong order and Ineed to rearrange them.Current format: [e.g. "Primary/Button"]Desired format: [e.g. "Button/Primary"]I want to swap [describe the swap, e.g. "the first two segments"].Examples:- [e.g. "Primary/Button" should become "Button/Primary"]- [e.g. "Large/Input" should become "Input/Large"]Give me the Find pattern (regex) and the Replace pattern usingcapture groups. Explain how the capture groups work.
Insert a new level into component paths
Best for: Adding a category grouping (like “Data Entry” or “Feedback”) to the beginning of specific component families.Example result:
Before
After
Button/Primary
Data Entry/Button/Primary
Input/Text
Data Entry/Input/Text
Alert/Error
Feedback/Alert/Error
Copy this prompt
I'm using LintKit's Find & Replace with regex. I need to add acategory level at the beginning of certain component paths.Components to categorize: [e.g. "Button", "Input", "Select"]Category to add: [e.g. "Data Entry"]Examples:- [e.g. "Button/Primary" should become "Data Entry/Button/Primary"]- [e.g. "Input/Text" should become "Data Entry/Input/Text"]Give me the Find pattern (regex) and the Replace pattern. Thepattern should only match names that start with one of thelisted component names.
Remove a level from component paths
Best for: Flattening overly deep hierarchies by removing an unnecessary middle segment.Example result:
Before
After
Icons/UI/Arrow Left
Icons/Arrow Left
Icons/UI/Chevron Down
Icons/Chevron Down
Copy this prompt
I'm using LintKit's Find & Replace with regex. My componentpaths have an unnecessary level I want to remove.Level to remove: [e.g. "UI/" from paths like "Icons/UI/Arrow Left"]Examples:- [e.g. "Icons/UI/Arrow Left" should become "Icons/Arrow Left"]- [e.g. "Icons/UI/Chevron Down" should become "Icons/Chevron Down"]Give me the Find pattern (regex) and the Replace value.
Convert style name prefixes to slash folders
Best for: Migrating shorthand style prefixes (like clr- or typ-) into Figma’s slash-separated folder structure.Example result:
Before
After
clr-blue-500
Color/blue-500
typ-heading-lg
Typography/heading-lg
fx-shadow-soft
Effects/shadow-soft
Copy this prompt
I'm using LintKit's Find & Replace with regex, targeting Styles.My style names use short prefixes with dashes, and I want toconvert them to slash-separated folder paths.Prefix mappings:- [e.g. "clr-" should become "Color/"]- [e.g. "typ-" should become "Typography/"]- [e.g. "fx-" should become "Effects/"]Examples:- [e.g. "clr-blue-500" should become "Color/blue-500"]- [e.g. "typ-heading-lg" should become "Typography/heading-lg"]Give me the Find and Replace values for each prefix. Can I dothis in one pass or do I need multiple find-and-replace operations?
Flatten deeply nested style paths
Best for: Simplifying style names that have accumulated too many levels, like Colors/Brand/Primary/Blue/500.Example result:
Before
After
Colors/Brand/Primary/Blue/500
Color/Blue/500
Colors/Brand/Primary/Red/600
Color/Red/600
Copy this prompt
I'm using LintKit's Find & Replace with regex, targeting Styles.My style names have too many levels of nesting and I want toflatten them by removing intermediate levels.Current structure: [e.g. "Colors/Brand/Primary/Blue/500"]Desired structure: [e.g. "Color/Blue/500"]Levels to remove: [e.g. "Colors/Brand/Primary/" should become "Color/"]Give me the Find pattern (regex) and the Replace value.
Fix Figma’s auto-generated property names
Best for: Cleaning up component names that contain Figma’s Property 1=Value syntax.Example result:
Before
After
Property 1=Primary
Style/Primary
Type=Large, State=Hover
Large/Hover
Copy this prompt
I'm using LintKit's Find & Replace with regex, targetingComponents. My component names contain Figma's auto-generatedproperty syntax like "Property 1=Value".Examples of what I have:- [e.g. "Property 1=Primary"]- [e.g. "Type=Large, State=Hover"]What I want instead:- [e.g. "Style/Primary"]- [e.g. "Large/Hover"]Give me the Find and Replace patterns for each case.
Build a batch rename template
Best for: Renaming a group of flagged layers using LintKit’s template variables like {parent}, {type}, and {n}.Example result (template: {parent} / Item {nn}):
Parent
Before
After
Card
Frame 47
Card / Item 01
Card
Frame 48
Card / Item 02
Card
Frame 49
Card / Item 03
Copy this prompt
I'm using LintKit's Batch Rename feature (not Find & Replace).It supports these template variables:- {name} — current layer name- {type} — layer type (Frame, Text, Rectangle, etc.)- {n} — sequential number (1, 2, 3)- {nn} — zero-padded number (01, 02, 03)- {nnn} — zero-padded 3 digits (001, 002, 003)- {parent} — parent layer's name- {w} — width in pixels- {h} — height in pixels- {page} — page nameI want to rename [describe what you're renaming, e.g. "a set ofcard layers inside a grid"] to follow this format: [describedesired format, e.g. "the parent name, then a slash, then asequential number like Card / 01, Card / 02"].Give me the template string using the variables above.
Enforce a naming convention
Best for: Finding layers that violate your team’s casing or formatting rules (Title Case, camelCase, kebab-case, etc.).Example result (enforcing Title Case with slashes):
Before
After
cardHeader
Card / Header
card-header
Card / Header
card_header
Card / Header
Copy this prompt
I'm using LintKit's Find & Replace with regex. I want to findall layer names that don't follow my team's naming conventionand fix them.Our convention is: [describe your convention, e.g. "Title Casewith slashes as separators, like 'Card / Header / Title'"]Common violations I'm seeing:- [e.g. "camelCase names like 'cardHeader'"]- [e.g. "kebab-case names like 'card-header'"]- [e.g. "names with underscores like 'card_header'"]Give me the Find patterns to match each violation type, andsuggest the Replace approach. Note that LintKit's regex replacecan't change casing automatically, so let me know if I need tohandle that differently.
Create a custom detection pattern
Best for: Adding your own naming rules to LintKit that flag specific layer names as issues during scans.Example result (flagging placeholder names):
Layer name
Flagged?
TODO fix this
Yes
temp button
Yes
Button Primary
No
Copy this prompt
I'm using LintKit's custom pattern feature where I can add regexpatterns that flag layer names as naming issues. I want to createa pattern that flags [describe what to flag].Examples of names that SHOULD be flagged:- [e.g. "TODO fix this"]- [e.g. "temp button"]- [e.g. "asdf"]Examples of names that should NOT be flagged:- [e.g. "Button Primary"]- [e.g. "Card Header"]Give me a regex pattern and the flags to use. The pattern willbe used in JavaScript's RegExp constructor.
Replace multiple different names at once
Best for: Batch-fixing abbreviations, old terminology, or inconsistent naming across a file in the fewest passes.Example result:
Before
After
Btn/Primary
Button/Primary
Lbl/Name
Label/Name
Img/Hero
Image/Hero
Copy this prompt
I'm using LintKit's Find & Replace with regex. I have severaldifferent old names that all need to be replaced.Replacements needed:- [e.g. "Btn" should become "Button"]- [e.g. "Lbl" should become "Label"]- [e.g. "Img" should become "Image"]Can I do all of these in one Find & Replace operation, or do Ineed separate passes? Give me the most efficient approach.
Tips for better results
Be specific about your examples. The more before/after examples you include, the more accurate the AI’s regex will be.
Mention JavaScript regex. LintKit uses JavaScript’s RegExp — this matters because regex syntax varies between languages.
Ask the AI to explain the pattern. Understanding what each part does helps you verify it’s correct before running it.
Test with “Find Only” first. LintKit lets you preview matches before applying — always do this.
One thing at a time. If the AI gives you a complicated pattern, ask if it can be split into simpler steps. Multiple simple passes beat one fragile regex.
See also
Layer Naming rule — how LintKit detects default names and convention violations
Batch Rename — LintKit’s built-in batch rename with pattern tokens
Smart Replace — how LintKit uses library data for color-science matching
Library Mode — running LintKit inside a library file for library-specific rules
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LintKit","colors":{"primary":"#1288FD","light":"#60B2FA","dark":"#0B6EE6"},"logo":{"light":"https://mintcdn.com/lintkit/x-2OxSQDRPShNqP0/logo/light.svg?fit=max\u0026auto=format\u0026n=x-2OxSQDRPShNqP0\u0026q=85\u0026s=d2da426c724807d2ed678211eb15fff5","dark":"https://mintcdn.com/lintkit/x-2OxSQDRPShNqP0/logo/dark.svg?fit=max\u0026auto=format\u0026n=x-2OxSQDRPShNqP0\u0026q=85\u0026s=c965d7e544f2df8b96882abe95e5064f","href":"https://lintkit.com"},"favicon":"/favicon.svg","navbar":{"links":[{"href":"https://lintkit.sleekplan.app","label":"Feedback"},{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Get LintKit","href":"https://www.figma.com/community/search?resource_type=plugins\u0026q=LintKit"}},"footer":{"socials":{"website":"https://lintkit.com","github":"https://github.com/CrispoColombo/lintkit-docs"}},"contextual":{"options":["copy","view","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Figma Plugin","icon":"figma","href":"https://www.figma.com/community/search?resource_type=plugins\u0026q=LintKit"},{"anchor":"Support","icon":"envelope","href":"mailto:[email protected]"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lintkit","hasAudioNarration":false,"actualSubdomain":"lintkit","customDomains":["docs.lintkit.com"],"gitSource":{"type":"github","owner":"crispocolombo","repo":"lintkit-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae948b9d69537c8ab70e226:success","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"Features","count":7},{"language":"default","tag":"Rules","count":7},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Integrations","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){#sidebar{width:15rem!important;border-right:1px solid #D4DAE2!important}[class*=\"lg:pl-[23.7rem]\"]{padding-left:21rem!important}}header,nav[class*=\"sticky\"],[class*=\"sticky\"][class*=\"top-0\"][class*=\"z-\"]{border-bottom:1px solid #D4DAE2!important}#sidebar hr,#sidebar [class*=\"border-t\"],#sidebar [class*=\"border-b\"],#sidebar [class*=\"divide\"],#sidebar [class*=\"separator\"]{border:none!important}#sidebar hr{display:none!important}#sidebar>div>div:first-child,#sidebar [role=\"separator\"]{border-top:none!important;border-bottom:none!important}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.12);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:rgba(0, 0, 0, 0.2)}*{scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.12) transparent}@media (min-width: 1280px){[class*=\"max-w-[28rem]\"][class*=\"sticky\"]{max-width:14rem!important}[class*=\"w-[19rem]\"][class*=\"pl-10\"]{width:14rem!important}}@media (min-width: 1080px) and (max-width: 1279px){[class*=\"max-w-[28rem]\"][class*=\"sticky\"]{display:flex!important;flex-direction:column!important;max-width:14rem!important}[class*=\"w-[19rem]\"][class*=\"pl-10\"]{display:flex!important;width:12rem!important;padding-left:1rem!important}}"}]}
{"page":{"pagePath":"rules/naming","slug":"/rules/naming","pageMetadata":{"title":"Component \u0026 Layer Naming","sidebarTitle":"Naming","description":"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.","icon":"text-cursor-input","href":"/rules/naming"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Info,Note,Step,Steps,Tab,Table,Tabs,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Quick Reference`,id:`quick-reference`,\"data-child-heading-ids\":`[\"at-a-glance\",\"what-good-naming-looks-like\",\"name-by-purpose%2C-not-appearance\",\"use-forward-slashes-for-meaningful-paths\",\"use-consistent-variant-property-names\",\"use-affirmative-booleans-for-component-properties\",\"hide-internal-helpers\",\"pick-a-casing-convention-and-stick-to-it\",\"rename-these-before-publishing\",\"comparison-examples\",\"quick-fixes-in-priority-order\",\"recommended-standards\"]`,children:[_jsx(Heading,{level:`2`,id:`at-a-glance`,children:`At a glance`}),_jsx(_components.p,{children:`If LintKit’s component replacement isn’t working as expected, your library probably has one or more of these issues:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Generic property names like `,_jsx(_components.code,{children:`Property 1`}),` that were never renamed`]}),`\n`,_jsx(_components.li,{children:`Components named by color or appearance instead of purpose`}),`\n`,_jsx(_components.li,{children:`Inconsistent size or state labels across families`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Type`}),` or `,_jsx(_components.code,{children:`Variant`}),` meaning different things in different components`]}),`\n`,_jsx(_components.li,{children:`Internal helpers published alongside real components`}),`\n`,_jsx(_components.li,{children:`Duplicate semantic paths`}),`\n`,_jsxs(_components.li,{children:[`Version suffixes like `,_jsx(_components.code,{children:`_final`}),` or `,_jsx(_components.code,{children:`_v2`}),` baked into published names`]}),`\n`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`what-good-naming-looks-like`,children:`What good naming looks like`}),_jsx(Heading,{level:`3`,id:`name-by-purpose-not-appearance`,children:`Name by purpose, not appearance`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Instead of this`}),_jsx(_components.th,{children:`Use this`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Blue Button`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Green Alert`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Alert/Success`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Gray Tag`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Badge/Neutral`})})]})]})]}),_jsx(Heading,{level:`3`,id:`use-forward-slashes-for-meaningful-paths`,children:`Use forward slashes for meaningful paths`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Good: `,_jsx(_components.code,{children:`Actions/Button/Primary/MD/Default`})]}),`\n`,_jsxs(_components.li,{children:[`Bad: `,_jsx(_components.code,{children:`button primary medium final`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`use-consistent-variant-property-names`,children:`Use consistent variant property names`}),_jsx(_components.p,{children:`Use the same axes across your library:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`Purpose`}),_jsx(_components.th,{children:`Example values`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Style`})}),_jsx(_components.td,{children:`Visual hierarchy`}),_jsx(_components.td,{children:`Primary, Secondary, Ghost`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Size`})}),_jsx(_components.td,{children:`Component scale`}),_jsx(_components.td,{children:`SM, MD, LG`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`State`})}),_jsx(_components.td,{children:`Interaction status`}),_jsx(_components.td,{children:`Default, Hover, Disabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Modifier`})}),_jsx(_components.td,{children:`Optional configuration`}),_jsx(_components.td,{children:`Full width, With label`})]})]})]}),_jsx(Heading,{level:`3`,id:`use-affirmative-booleans-for-component-properties`,children:`Use affirmative booleans for component properties`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Good: `,_jsx(_components.code,{children:`Show icon`}),`, `,_jsx(_components.code,{children:`Is loading`}),`, `,_jsx(_components.code,{children:`Has label`})]}),`\n`,_jsxs(_components.li,{children:[`Also good: `,_jsx(_components.code,{children:`showIcon`}),`, `,_jsx(_components.code,{children:`isLoading`}),`, `,_jsx(_components.code,{children:`hasLabel`})]}),`\n`,_jsxs(_components.li,{children:[`Bad: `,_jsx(_components.code,{children:`Icon=True`}),`, `,_jsx(_components.code,{children:`Label?`}),`, `,_jsx(_components.code,{children:`Hide Icon`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`hide-internal-helpers`,children:`Hide internal helpers`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Good: `,_jsx(_components.code,{children:`.Button Base`}),`, `,_jsx(_components.code,{children:`_Input Shell`})]}),`\n`,_jsx(_components.li,{children:`Bad: Publishing every internal atom and fragment`}),`\n`]}),_jsx(Heading,{level:`3`,id:`pick-a-casing-convention-and-stick-to-it`,children:`Pick a casing convention and stick to it`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Title Case is most natural for designers in Figma`}),`\n`,_jsx(_components.li,{children:`camelCase works for developer-aligned teams`}),`\n`,_jsx(_components.li,{children:`The problem is mixing both in the same library`}),`\n`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`rename-these-before-publishing`,children:`Rename these before publishing`}),_jsx(_components.p,{children:`These are Figma defaults or implementation leftovers that should never appear in a published library:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Property 1`}),`, `,_jsx(_components.code,{children:`Property 2`}),` — rename to `,_jsx(_components.code,{children:`Style`}),`, `,_jsx(_components.code,{children:`Size`}),`, `,_jsx(_components.code,{children:`State`}),`, etc.`]}),`\n`,_jsxs(_components.li,{children:[`Unrenamed `,_jsx(_components.code,{children:`Variant`}),` or `,_jsx(_components.code,{children:`Type`}),` — rename to describe what the axis actually controls`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Frame 104`}),`, `,_jsx(_components.code,{children:`Component 7`}),` — replace with semantic names`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Button_final_v2`}),` — archive the old version, keep one canonical component`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Blue Button`}),`, `,_jsx(_components.code,{children:`Green Alert`}),` — use role names like `,_jsx(_components.code,{children:`Primary`}),` and `,_jsx(_components.code,{children:`Success`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Slot A`}),`, `,_jsx(_components.code,{children:`Area 1`}),` — use role names like `,_jsx(_components.code,{children:`Header`}),`, `,_jsx(_components.code,{children:`Content`}),`, `,_jsx(_components.code,{children:`Footer`})]}),`\n`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`comparison-examples`,children:`Comparison examples`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Component`}),_jsx(_components.th,{children:`Acceptable`}),_jsx(_components.th,{children:`Unacceptable`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Button`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Actions/Button/Primary/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Blue Button/final/Property 1=Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Input/Text/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Input Field/Component 7/Property 2=Medium`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Checkbox`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Checkbox/Checked/Enabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Box/On/Property 2`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Alert`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Alert/Critical/With Icon`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Notice/Red/Icon=True`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Modal`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Overlays/Modal/Dialog/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Popup/Overlay/Frame 102`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Badge`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Badge/Success/SM`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tag/Green/12px`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Switch`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Switch/On/Enabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Toggle/Variant=On/Frame 22`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`quick-fixes-in-priority-order`,children:`Quick fixes (in priority order)`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rename generic properties first`}),` — `,_jsx(_components.code,{children:`Property 1`}),` → `,_jsx(_components.code,{children:`Style`}),`, `,_jsx(_components.code,{children:`Property 2`}),` → `,_jsx(_components.code,{children:`Size`}),`, etc. This is the highest-impact change.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pick one size system`}),` — `,_jsx(_components.code,{children:`XS / SM / MD / LG / XL`}),` across every family`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pick one state system`}),` — `,_jsx(_components.code,{children:`Default / Hover / Focused / Disabled / Error`}),` across every family`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Remove version suffixes`}),` — archive old versions, keep one canonical component`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Hide internal helpers`}),` — prefix with `,_jsx(_components.code,{children:`_`}),` or `,_jsx(_components.code,{children:`.`}),`, or use “Hide when publishing”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name slots by role`}),` — `,_jsx(_components.code,{children:`Header`}),`, `,_jsx(_components.code,{children:`Content`}),`, `,_jsx(_components.code,{children:`Footer`}),` instead of `,_jsx(_components.code,{children:`Slot A`}),`, `,_jsx(_components.code,{children:`Area 1`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Settle on a casing convention`}),` — Title Case or camelCase, not both in the same library`]}),`\n`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`recommended-standards`,children:`Recommended standards`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Every public component should have a stable, semantic path`}),`\n`,_jsx(_components.li,{children:`Variant property names should be descriptive and consistent across families`}),`\n`,_jsxs(_components.li,{children:[`Boolean component properties should be affirmative (`,_jsx(_components.code,{children:`Show icon`}),`, not `,_jsx(_components.code,{children:`Hide icon`}),`)`]}),`\n`,_jsx(_components.li,{children:`Internal helpers should not appear in the assets panel or Replace Component`}),`\n`,_jsx(_components.li,{children:`Duplicate semantic paths should be resolved — one canonical version per component`}),`\n`,_jsx(_components.li,{children:`Name by role, not by color, when the name represents a semantic purpose`}),`\n`]}),_jsxs(Tip,{children:[_jsx(_components.strong,{children:`Simple rule to remember:`}),` Name components the way a designer chooses them, not the way Figma generated them.`]})]}),_jsxs(Tab,{title:`Cheat Sheet`,id:`cheat-sheet`,\"data-child-heading-ids\":`[\"find-%26-replace\",\"remove-copy-suffixes\",\"strip-default-figma-names\",\"remove-temporary-prefixes\",\"clean-up-version-suffixes\",\"convert-separators\",\"add-or-change-prefixes\",\"restructure-component-paths\",\"reorganize-style-names\",\"batch-rename-template-variables\",\"available-variables\",\"built-in-presets\",\"examples\",\"regex-quick-reference\",\"replace-patterns\",\"tips\"]`,children:[_jsx(Heading,{level:`2`,id:`find-\u0026-replace`,children:`Find \u0026 Replace`}),_jsx(_components.p,{children:`LintKit’s Find \u0026 Replace lets you search layer names, style names, or component names and swap matched text. Works with plain text or regex. Choose a target (layers, styles, or components) and scope (selection, page, or document).`}),_jsx(Heading,{level:`3`,id:`remove-copy-suffixes`,children:`Remove copy suffixes`}),_jsx(_components.p,{children:`Strips the “copy” or “Copy 2” suffixes Figma adds when you duplicate layers.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card_copy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[_\\\\s-]?copy(\\\\s*\\\\d+)?$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Header copy 3`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[_\\\\s-]?copy(\\\\s*\\\\d+)?$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Nav-copy 12`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[_\\\\s-]?copy(\\\\s*\\\\d+)?$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Nav`})})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How the pattern works:`}),` `,_jsx(_components.code,{children:`[_\\\\s-]?`}),` matches an optional separator before “copy”, `,_jsx(_components.code,{children:`copy`}),` matches the literal word, `,_jsx(_components.code,{children:`(\\\\s*\\\\d+)?`}),` optionally matches a space and number, and `,_jsx(_components.code,{children:`$`}),` anchors to the end of the name.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`strip-default-figma-names`,children:`Strip default Figma names`}),_jsxs(_components.p,{children:[`Replaces auto-generated names like “Frame 47” with a meaningful name. Scope to `,_jsx(_components.strong,{children:`Selection`}),` so you only affect the layers you’ve chosen.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 47`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^Frame\\\\s+\\\\d+$`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Rectangle 12`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^Rectangle\\\\s+\\\\d+$`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Background`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Background`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Group 3`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^Group\\\\s+\\\\d+$`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Row`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Row`})})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How the pattern works:`}),` `,_jsx(_components.code,{children:`^`}),` anchors to the start, `,_jsx(_components.code,{children:`Frame`}),` is the literal word, `,_jsx(_components.code,{children:`\\\\s+\\\\d+`}),` matches space plus digits, and `,_jsx(_components.code,{children:`$`}),` anchors to the end (so “Frame Header” won’t match).`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`remove-temporary-prefixes`,children:`Remove temporary prefixes`}),_jsx(_components.p,{children:`Strips WIP, DRAFT, DELETE, OLD markers before handoff.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`WIP Button Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^(WIP\u0026#124;DRAFT\u0026#124;DELETE\u0026#124;OLD\u0026#124;REMOVE)[\\\\s_-]+`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DRAFT-Header`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^(WIP\u0026#124;DRAFT\u0026#124;DELETE\u0026#124;OLD\u0026#124;REMOVE)[\\\\s_-]+`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`clean-up-version-suffixes`,children:`Clean up version suffixes`}),_jsxs(_components.p,{children:[`Removes `,_jsx(_components.code,{children:`_v2`}),`, `,_jsx(_components.code,{children:`_final`}),`, `,_jsx(_components.code,{children:`NEW`}),`, and other naming debt.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card_v2`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[_\\\\s-]?v\\\\d+$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Header_final`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[_\\\\s-]?(final\u0026#124;FINAL)$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Button NEW`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\\\\s+(NEW\u0026#124;new\u0026#124;Old\u0026#124;OLD)$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`convert-separators`,children:`Convert separators`}),_jsx(_components.p,{children:`Switch between dashes, underscores, and slashes. Plain text mode works — no regex needed.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`icon_arrow_left`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`_`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`icon/arrow/left`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`button-primary-large`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`button/primary/large`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Icon/Arrow/Left`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`/`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icon-Arrow-Left`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`add-or-change-prefixes`,children:`Add or change prefixes`}),_jsx(_components.p,{children:`Organize names into folder hierarchies using regex capture groups.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Primary`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`^(.+)$`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/$1`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Shadow Soft`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`^(.+)$`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Effects/$1`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Effects/Shadow Soft`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Colors/Blue/500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^Colors/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/Blue/500`})})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How capture groups work:`}),` `,_jsx(_components.code,{children:`^(.+)$`}),` captures the entire name as `,_jsx(_components.code,{children:`$1`}),`. In the replace field, `,_jsx(_components.code,{children:`Button/$1`}),` puts “Button/” before the captured text.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`restructure-component-paths`,children:`Restructure component paths`}),_jsx(_components.p,{children:`Rearrange slash-separated segments using capture groups.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Primary/Button`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^([^/]+)/([^/]+)$`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`$2/$1`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^(Button\u0026#124;Input\u0026#124;Select)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/$1`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/UI/Arrow Left`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^Icons/UI/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/Arrow Left`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`reorganize-style-names`,children:`Reorganize style names`}),_jsxs(_components.p,{children:[`Target set to `,_jsx(_components.strong,{children:`Styles`}),`. Style names control folder structure in Figma’s style picker.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Find (regex)`}),_jsx(_components.th,{children:`Replace`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clr-blue-500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^clr-`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/blue-500`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`typ-heading-lg`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^typ-`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Typography/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Typography/heading-lg`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Colors/Brand/Primary/Blue/500/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`^Colors/Brand/Primary/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/Blue/500/Default`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`batch-rename-template-variables`,children:`Batch Rename (Template Variables)`}),_jsxs(_components.p,{children:[`Batch Rename works differently — instead of searching for text, it renames `,_jsx(_components.strong,{children:`all layers in a finding`}),` using a template that pulls info from each layer automatically.`]}),_jsx(Heading,{level:`3`,id:`available-variables`,children:`Available variables`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`What it inserts`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{name}`})}),_jsx(_components.td,{children:`Current layer name`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Header`}),`, `,_jsx(_components.code,{children:`Frame 47`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{type}`})}),_jsx(_components.td,{children:`Layer type`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Frame`}),`, `,_jsx(_components.code,{children:`Text`}),`, `,_jsx(_components.code,{children:`Rectangle`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{n}`})}),_jsx(_components.td,{children:`Sequential number`}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`1`}),`, `,_jsx(_components.code,{children:`2`}),`, `,_jsx(_components.code,{children:`3`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{nn}`})}),_jsx(_components.td,{children:`Zero-padded number`}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`01`}),`, `,_jsx(_components.code,{children:`02`}),`, `,_jsx(_components.code,{children:`03`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{nnn}`})}),_jsx(_components.td,{children:`Zero-padded 3 digits`}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`001`}),`, `,_jsx(_components.code,{children:`002`}),`, `,_jsx(_components.code,{children:`003`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{parent}`})}),_jsx(_components.td,{children:`Parent layer’s name`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Card`}),`, `,_jsx(_components.code,{children:`Header`}),`, `,_jsx(_components.code,{children:`Root`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{w}`})}),_jsx(_components.td,{children:`Width in pixels`}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`320`}),`, `,_jsx(_components.code,{children:`48`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{h}`})}),_jsx(_components.td,{children:`Height in pixels`}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`240`}),`, `,_jsx(_components.code,{children:`900`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{page}`})}),_jsx(_components.td,{children:`Page name`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Homepage`}),`, `,_jsx(_components.code,{children:`Components`})]})]})]})]}),_jsx(Heading,{level:`3`,id:`built-in-presets`,children:`Built-in presets`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Preset`}),_jsx(_components.th,{children:`Template`}),_jsx(_components.th,{children:`Example output`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Item List`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Item {n}`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Item 1`}),`, `,_jsx(_components.code,{children:`Item 2`}),`, `,_jsx(_components.code,{children:`Item 3`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`With Parent`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{parent} / Item {n}`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Card / Item 1`}),`, `,_jsx(_components.code,{children:`Card / Item 2`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Type + Number`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{type} {nn}`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Frame 01`}),`, `,_jsx(_components.code,{children:`Text 02`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Size-based`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{type} {w}x{h}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Rectangle 320x48`})})]})]})]}),_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sequential naming`}),` — template: `,_jsx(_components.code,{children:`Card {nn}`})]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 47`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card 01`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 48`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card 02`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 49`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card 03`})})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Parent-based naming`}),` — template: `,_jsx(_components.code,{children:`{parent} / {type} {n}`})]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parent`}),_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 1`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Frame 1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Text 3`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Text 2`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Group 5`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header / Group 1`})})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Size-based naming`}),` — template: `,_jsx(_components.code,{children:`Icon {w}x{h}`})]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`Dimensions`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Vector 1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`16×16`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icon 16x16`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Vector 2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`24×24`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icon 24x24`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Vector 3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`32×32`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icon 32x32`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`regex-quick-reference`,children:`Regex Quick Reference`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Pattern`}),_jsx(_components.th,{children:`What it matches`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`^`})}),_jsx(_components.td,{children:`Start of name`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`^Icon`}),` matches “Icon/Arrow” but not “My Icon”`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`$`})}),_jsx(_components.td,{children:`End of name`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`copy$`}),` matches “Card copy” but not “copyright”`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`.`})}),_jsx(_components.td,{children:`Any single character`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`v.2`}),` matches “v.2” and “v12”`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\\\\d`})}),_jsx(_components.td,{children:`Any digit`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\d+`}),` matches “47” in “Frame 47”`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\\\\s`})}),_jsx(_components.td,{children:`Any whitespace`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\s+`}),` matches spaces and tabs`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\\\\w`})}),_jsx(_components.td,{children:`Letter, digit, or underscore`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\w+`}),` matches “Button”`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`+`})}),_jsx(_components.td,{children:`One or more`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\d+`}),` matches “1”, “47”, “123”`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`*`})}),_jsx(_components.td,{children:`Zero or more`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\s*`}),` matches \"\" or ” “`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`?`})}),_jsx(_components.td,{children:`Zero or one`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\s?`}),` matches \"\" or ” “`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`(...)`})}),_jsx(_components.td,{children:`Capture group`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`(Button)`}),` → use `,_jsx(_components.code,{children:`$1`}),` in replace`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`(a\u0026#124;b)`})}),_jsx(_components.td,{children:`Either a or b`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`(WIP\u0026#124;DRAFT)`}),` matches either`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`[abc]`})}),_jsx(_components.td,{children:`Any one character`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`[_\\\\s-]`}),` matches `,_jsx(_components.code,{children:`_`}),`, space, or `,_jsx(_components.code,{children:`-`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`[^abc]`})}),_jsx(_components.td,{children:`Any character except`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`[^/]+`}),` matches up to a `,_jsx(_components.code,{children:`/`})]})]})]})]}),_jsx(Heading,{level:`3`,id:`replace-patterns`,children:`Replace patterns`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Replace with`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})}),_jsx(_components.td,{children:`Deletes matched text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`$1`})}),_jsx(_components.td,{children:`Inserts the first capture group`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`$2`})}),_jsx(_components.td,{children:`Inserts the second capture group`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`$1/$2`})}),_jsx(_components.td,{children:`Combines two groups with a slash`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Prefix/$1`})}),_jsx(_components.td,{children:`Adds a prefix before captured text`})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`tips`,children:`Tips`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Preview first.`}),` Always use “Find Only” before applying to see what will change.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scope to Selection.`}),` Generic patterns like `,_jsx(_components.code,{children:`^Frame\\\\s+\\\\d+$`}),` can match things you don’t expect — narrow scope first.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Work in passes.`}),` Multiple simple find-and-replaces beat one complex regex.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Styles are file-scoped.`}),` When targeting Styles, the scope setting doesn’t apply — styles are always file-level.`]}),`\n`]})]}),_jsxs(Tab,{title:`Full Guide`,id:`full-guide`,\"data-child-heading-ids\":`[\"who-this-guide-is-for\",\"how-naming-quality-affects-lintkit\",\"semantic-naming-vs-implementation-naming\",\"library-structure\",\"use-slashes-for-stable-paths\",\"recommended-top-level-categories\",\"the-%E2%80%9Cbig-four%E2%80%9D-semantic-axes\",\"1-style\",\"2-size\",\"3-state\",\"4-modifier\",\"size-vocabulary\",\"overloaded-property-names%3A-the-%E2%80%9Ctype%E2%80%9D-problem\",\"boolean-naming\",\"slots-and-sub-parts\",\"public-vs-internal-components\",\"casing-conventions\",\"library-smell-checklist\",\"full-comparison-table\",\"quick-fix-guide\",\"non-negotiable-rules\",\"what-%E2%80%9Cgood%E2%80%9D-looks-like\"]`,children:[_jsx(Heading,{level:`2`,id:`who-this-guide-is-for`,children:`Who this guide is for`}),_jsx(_components.p,{children:`This guide is for design system teams, product designers maintaining shared libraries, design ops teams cleaning up legacy component files, and anyone using LintKit’s component replacement features.`}),_jsxs(_components.p,{children:[`LintKit works best when your library names describe `,_jsx(_components.strong,{children:`what a component is`}),` and `,_jsx(_components.strong,{children:`how a designer would choose it`}),`, not how Figma happened to generate it.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`how-naming-quality-affects-lintkit`,children:`How naming quality affects LintKit`}),_jsx(_components.p,{children:`LintKit can do a much better job when your library is semantic, consistent, scannable, machine-readable, and cleanly separated between public and internal assets.`}),_jsx(_components.p,{children:`In practice, that means your library should have:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Stable component paths`}),`\n`,_jsx(_components.li,{children:`Meaningful page and section structure`}),`\n`,_jsx(_components.li,{children:`Predictable variant property names`}),`\n`,_jsx(_components.li,{children:`Controlled vocabularies for values`}),`\n`,_jsx(_components.li,{children:`Affirmative boolean labels`}),`\n`,_jsx(_components.li,{children:`Unique semantic paths`}),`\n`,_jsx(_components.li,{children:`Internal helpers hidden from publishing`}),`\n`]}),_jsxs(Info,{children:[`LintKit will likely struggle when it sees `,_jsx(_components.code,{children:`Property 1`}),`, duplicate paths, `,_jsx(_components.code,{children:`Type`}),` used inconsistently, helper contamination, or icons and templates mixed into public component pages.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`semantic-naming-vs-implementation-naming`,children:`Semantic naming vs. implementation naming`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Semantic naming`}),` describes what a component is, what role it plays, and what choices a designer is making:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Button/Primary`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Input/Search`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Alert/Success`})}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Implementation naming`}),` describes visual traits, technical leftovers, or temporary status:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Blue Button`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Frame 104`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Property 1=Primary`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Button_Final_v2`})}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Name for intent, not appearance.`}),` If your brand color changes from blue to red, `,_jsx(_components.code,{children:`Blue Button`}),` becomes wrong. `,_jsx(_components.code,{children:`Button/Primary`}),` stays correct.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`library-structure`,children:`Library structure`}),_jsx(_components.p,{children:`A usable library depends on five layers working together:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`File`}),` — e.g. `,_jsx(_components.code,{children:`Product Design System`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Page`}),` — e.g. `,_jsx(_components.code,{children:`Data Entry`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Section / frame`}),` — e.g. `,_jsx(_components.code,{children:`Inputs`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Component path`}),` — e.g. `,_jsx(_components.code,{children:`Input/Search`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Variant properties`}),` — e.g. `,_jsx(_components.code,{children:`Size=MD`}),`, `,_jsx(_components.code,{children:`Style=Filled`}),`, `,_jsx(_components.code,{children:`State=Default`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`use-slashes-for-stable-paths`,children:`Use slashes for stable paths`}),_jsx(_components.p,{children:`Forward slashes should create meaningful groupings, not word salad.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Good: `,_jsx(_components.code,{children:`Actions/Button/Primary/Medium/Default`})]}),`\n`,_jsxs(_components.li,{children:[`Bad: `,_jsx(_components.code,{children:`button-primary-medium-state-1`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`recommended-top-level-categories`,children:`Recommended top-level categories`}),_jsx(_components.p,{children:`Pick a small set and stick to it:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Actions`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Data Entry`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Navigation`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Data Display`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Feedback`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Overlays`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Layout`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Foundations`}),` or `,_jsx(_components.code,{children:`Primitives`})]}),`\n`]}),_jsxs(Warning,{children:[`Do not create both `,_jsx(_components.code,{children:`Forms`}),` and `,_jsx(_components.code,{children:`Data Entry`}),` unless you have a strict rule for the difference. Category drift is how libraries turn into attic boxes labeled “misc.”`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`the-“big-four”-semantic-axes`,children:`The “Big Four” semantic axes`}),_jsx(_components.p,{children:`Most reusable UI components can be described using four consistent property types.`}),_jsx(Heading,{level:`3`,id:`1-style`,children:`1. Style`}),_jsx(_components.p,{children:`The visual hierarchy or treatment.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Primary`}),`, `,_jsx(_components.code,{children:`Secondary`}),`, `,_jsx(_components.code,{children:`Ghost`}),`, `,_jsx(_components.code,{children:`Outline`}),`, `,_jsx(_components.code,{children:`Filled`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`2-size`,children:`2. Size`}),_jsx(_components.p,{children:`The scale of the component.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`XS`}),`, `,_jsx(_components.code,{children:`SM`}),`, `,_jsx(_components.code,{children:`MD`}),`, `,_jsx(_components.code,{children:`LG`}),`, `,_jsx(_components.code,{children:`XL`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`3-state`,children:`3. State`}),_jsx(_components.p,{children:`The current interaction or status.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Default`}),`, `,_jsx(_components.code,{children:`Hover`}),`, `,_jsx(_components.code,{children:`Focused`}),`, `,_jsx(_components.code,{children:`Pressed`}),`, `,_jsx(_components.code,{children:`Disabled`}),`, `,_jsx(_components.code,{children:`Error`}),`, `,_jsx(_components.code,{children:`Selected`}),`, `,_jsx(_components.code,{children:`Checked`})]}),`\n`]}),_jsx(Heading,{level:`3`,id:`4-modifier`,children:`4. Modifier`}),_jsx(_components.p,{children:`Optional toggles or additions.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Has Icon`}),`, `,_jsx(_components.code,{children:`Allow Clear`}),`, `,_jsx(_components.code,{children:`Loading`}),`, `,_jsx(_components.code,{children:`Full Width`}),`, `,_jsx(_components.code,{children:`Show Label`})]}),`\n`]}),_jsxs(_components.p,{children:[`If one button uses `,_jsx(_components.code,{children:`Type=Primary`}),`, `,_jsx(_components.code,{children:`State=Hover`}),`, `,_jsx(_components.code,{children:`Size=Large`}),` but another uses `,_jsx(_components.code,{children:`Variant=Main`}),`, `,_jsx(_components.code,{children:`Status=Over`}),`, `,_jsx(_components.code,{children:`Scale=LG`}),`, your library becomes harder for designers to scan and harder for tooling to normalize.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`size-vocabulary`,children:`Size vocabulary`}),_jsxs(_components.p,{children:[`Use `,_jsx(_components.strong,{children:`T-shirt sizes`}),` as the default:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`XS`}),`, `,_jsx(_components.code,{children:`SM`}),`, `,_jsx(_components.code,{children:`MD`}),`, `,_jsx(_components.code,{children:`LG`}),`, `,_jsx(_components.code,{children:`XL`})]}),`\n`]}),_jsx(_components.p,{children:`This is more stable than raw pixel naming.`}),_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`What to avoid`,id:`what-to-avoid`,children:[_jsxs(_components.p,{children:[`Do not mix `,_jsx(_components.code,{children:`Small`}),`, `,_jsx(_components.code,{children:`sm`}),`, `,_jsx(_components.code,{children:`S`}),`, `,_jsx(_components.code,{children:`16`}),`, and `,_jsx(_components.code,{children:`Regular`}),` as if they are interchangeable.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Approach`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Good`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Size=SM`}),`, `,_jsx(_components.code,{children:`Size=MD`}),`, `,_jsx(_components.code,{children:`Size=LG`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Workable`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Size=Small`}),`, `,_jsx(_components.code,{children:`Size=Medium`}),`, `,_jsx(_components.code,{children:`Size=Large`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Avoid`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Size=16`}),`, `,_jsx(_components.code,{children:`Size=2`}),`, `,_jsx(_components.code,{children:`Size=Default`}),`, `,_jsx(_components.code,{children:`Size=Regular`}),` when you already use `,_jsx(_components.code,{children:`MD`}),` elsewhere`]})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use relative size meaning, not raw build values.`})})]})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`overloaded-property-names-the-“type”-problem`,children:`Overloaded property names: the “Type” problem`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Type`}),` is one of the most overloaded names in component libraries. It might mean style, subtype, status, treatment, or even state.`]}),_jsxs(_components.p,{children:[`In one family `,_jsx(_components.code,{children:`Type=Primary`}),` means visual hierarchy. In another, `,_jsx(_components.code,{children:`Type=Search`}),` means input subtype. In another, `,_jsx(_components.code,{children:`Type=Success`}),` means feedback tone. Those are three different semantic jobs wearing the same name.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use more specific property names:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Instead of`}),_jsx(_components.th,{children:`Use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Type=Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Style=Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Type=Search`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Subtype=Search`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Type=Success`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tone=Success`})})]})]})]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`boolean-naming`,children:`Boolean naming`}),_jsxs(_components.p,{children:[`Boolean properties should read like a clear yes/no question. Use affirmative prefixes: `,_jsx(_components.code,{children:`is`}),`, `,_jsx(_components.code,{children:`has`}),`, `,_jsx(_components.code,{children:`show`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Bad`}),_jsx(_components.th,{children:`Better`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Hide Icon`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`showIcon`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Visible`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`isVisible`}),` or `,_jsx(_components.code,{children:`showContent`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Label?`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`hasLabel`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Selected`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`isSelected`})})]})]})]}),_jsxs(_components.p,{children:[`If the property name is `,_jsx(_components.code,{children:`Hide Icon`}),` and the value is `,_jsx(_components.code,{children:`true`}),`, what does that mean? That ambiguity is error-prone. Flip to `,_jsx(_components.code,{children:`showIcon`}),` so `,_jsx(_components.code,{children:`true`}),` means “the icon is visible.”`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`slots-and-sub-parts`,children:`Slots and sub-parts`}),_jsx(_components.p,{children:`Complex components often expose slots, instance swaps, or nested subcomponents. Those names must still be semantic.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Bad`}),_jsx(_components.th,{children:`Better`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Area 1`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Slot A`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Content`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 12`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Footer`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Section B`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Leading icon`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Custom Area`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Supporting text`})})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Name the role, not the coordinate.`}),` If a user is replacing content in a modal, `,_jsx(_components.code,{children:`Header`}),` means something. `,_jsx(_components.code,{children:`Area 1`}),` means nothing.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`public-vs-internal-components`,children:`Public vs. internal components`}),_jsx(_components.p,{children:`One of the biggest reasons Replace Component gets messy is helper contamination. Internal parts, slots, atoms, fragments, and scaffolding should not appear in the assets panel.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Public components`}),` are things users actually insert: Button, Input, Card, Badge, Modal, Alert.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Internal helpers`}),` should stay hidden: button bases, icon glyph wrappers, row fragments, cells, scaffolds, layout shells.`]}),_jsx(_components.p,{children:`Hide internal-only pieces using:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.`}),` prefix (e.g. `,_jsx(_components.code,{children:`.Button Base`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_`}),` prefix (e.g. `,_jsx(_components.code,{children:`_Input Shell`}),`)`]}),`\n`,_jsx(_components.li,{children:`Figma’s “Hide when publishing” behavior`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Simple rule:`}),` If the component is mainly used inside another component, it probably should not appear in Replace Component.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`casing-conventions`,children:`Casing conventions`}),_jsx(_components.p,{children:`Pick one and keep it everywhere:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Title Case`}),` is most natural for designers in Figma`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`camelCase`}),` works for developer-aligned teams`]}),`\n`,_jsx(_components.li,{children:`The problem is mixing both in the same library`}),`\n`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`library-smell-checklist`,children:`Library smell checklist`}),_jsx(_components.p,{children:`If your library has these issues, semantic replacement gets less reliable.`}),_jsx(AccordionGroup,{children:_jsx(Accordion,{title:`Top 10 library smells`,id:`top-10-library-smells`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Generic property names`}),` — `,_jsx(_components.code,{children:`Property 1`}),`, `,_jsx(_components.code,{children:`Property 2`}),`, `,_jsx(_components.code,{children:`Variant`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Duplicate semantic paths`}),` — two different component sets resolve to the same human meaning`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Versioning rot`}),` — `,_jsx(_components.code,{children:`_final`}),`, `,_jsx(_components.code,{children:`_v2`}),`, `,_jsx(_components.code,{children:`_new`}),`, `,_jsx(_components.code,{children:`_old`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inconsistent casing`}),` — mixing camelCase, kebab-case, Title Case, and UPPERCASE inside the same family`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Helper contamination`}),` — internal atoms or fragments mixed with public components`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Color-based naming`}),` — `,_jsx(_components.code,{children:`Green Button`}),`, `,_jsx(_components.code,{children:`Blue Badge`}),`, `,_jsx(_components.code,{children:`Red Alert`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Project-management naming`}),` — `,_jsx(_components.code,{children:`Ready for Dev`}),`, `,_jsx(_components.code,{children:`Use This One`}),`, `,_jsx(_components.code,{children:`New`}),`, `,_jsx(_components.code,{children:`Final Final`}),`, initials, emojis, sprint notes`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Overloaded `,_jsx(_components.code,{children:`Type`})]}),` — same label used for different semantic jobs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Long slash spaghetti`}),` — paths so deep they stop being readable`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Component copies with no clear canonical version`}),` — `,_jsx(_components.code,{children:`CardV2`}),`, `,_jsx(_components.code,{children:`Card Final`}),`, `,_jsx(_components.code,{children:`Card final copy`}),`, `,_jsx(_components.code,{children:`Card fixed`})]}),`\n`]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`full-comparison-table`,children:`Full comparison table`}),_jsx(_components.p,{children:`These are one-to-one comparisons of the same component, showing a clean semantic path and an implementation-heavy version.`}),_jsx(AccordionGroup,{children:_jsx(Accordion,{title:`24 component examples`,id:`24-component-examples`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Component`}),_jsx(_components.th,{children:`Acceptable`}),_jsx(_components.th,{children:`Unacceptable`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Button`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Actions/Button/Primary/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Blue Button/final/Property 1=Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Icon Button`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Actions/Button Icon/Primary/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button Icon/16px/blue/v2`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Link`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Actions/Link/Inline/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Blue Text Link/Variant 2`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text Input`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Input/Text/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Input Field/Component 7/Property 2=Medium`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Search Input`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Input/Search/MD/Filled/Allow Clear`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SearchBox/Type=Active/Size=2/Helper 01`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Textarea`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Input/Textarea/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Textarea/Property 1=Default/Copy 3`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Select`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Select/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Dropdown/Type=Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Checkbox`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Checkbox/Checked/Enabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Box/On/Property 2`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Radio`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Radio/Checked/Disabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Radio/Status=Active/Type=Disabled Checked`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Switch`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Switch/On/Enabled`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Toggle/Variant=On/Frame 22`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tabs`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Navigation/Tabs/Line/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tabs/Default/Container Tabs`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Breadcrumbs`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Navigation/Breadcrumbs/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Nav Path/Variant 1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Badge`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Badge/Success/SM`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tag/Green/12px`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Alert`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Alert/Critical/With Icon`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Notice/Red/Icon=True`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Toast`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Toast/Success/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Alert Green/State 1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Modal`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Overlays/Modal/Dialog/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Popup/Overlay/Frame 102`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Drawer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Overlays/Drawer/Right/MD/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Slideout/Right thing/new`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tooltip`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Display/Tooltip/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Tooltip/Helper/Do Not Use`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Card`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Display/Card/User Profile/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CardV2/user_info/final`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Table`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Display/Table/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Table/Row Fragment/Cell 02`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Spinner`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Spinner/LG/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Loading/Wheel/32px`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Progress`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Progress/Linear/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Loader Bar/state-3`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Avatar`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Display/Avatar/User/MD`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Profile Pic 40`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Pagination`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Navigation/Pagination/Default`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Page Nav/control set 4`})})]})]})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`quick-fix-guide`,children:`Quick fix guide`}),_jsx(_components.p,{children:`Use this when your library is already messy and you need to improve it fast.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 1: Rename generic properties first.`}),` If you see `,_jsx(_components.code,{children:`Property 1`}),`, `,_jsx(_components.code,{children:`Property 2`}),`, or `,_jsx(_components.code,{children:`Variant`}),`, rename them immediately to `,_jsx(_components.code,{children:`Style`}),`, `,_jsx(_components.code,{children:`Size`}),`, `,_jsx(_components.code,{children:`State`}),`, `,_jsx(_components.code,{children:`Modifier`}),`, `,_jsx(_components.code,{children:`Tone`}),`, or `,_jsx(_components.code,{children:`Subtype`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 2: Standardize size naming.`}),` Pick `,_jsx(_components.code,{children:`XS/SM/MD/LG/XL`}),` or `,_jsx(_components.code,{children:`Small/Medium/Large`}),`, then update every similar family to match.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 3: Standardize state naming.`}),` Choose one set: `,_jsx(_components.code,{children:`Default`}),`, `,_jsx(_components.code,{children:`Hover`}),`, `,_jsx(_components.code,{children:`Focused`}),`, `,_jsx(_components.code,{children:`Pressed`}),`, `,_jsx(_components.code,{children:`Disabled`}),`, `,_jsx(_components.code,{children:`Error`}),`, `,_jsx(_components.code,{children:`Selected`}),`, `,_jsx(_components.code,{children:`Checked`}),`. Avoid mixing `,_jsx(_components.code,{children:`Rest`}),`, `,_jsx(_components.code,{children:`Base`}),`, `,_jsx(_components.code,{children:`Normal`}),`, and `,_jsx(_components.code,{children:`Default`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 4: Remove version suffixes.`}),` Replace `,_jsx(_components.code,{children:`_v2`}),`, `,_jsx(_components.code,{children:`_final`}),`, `,_jsx(_components.code,{children:`_new`}),` — archive the old version, keep one canonical published component.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 5: Hide internal helpers.`}),` Prefix internal-only components with `,_jsx(_components.code,{children:`.`}),` or `,_jsx(_components.code,{children:`_`}),`, or hide them from publishing.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 6: Move organization out of bloated names.`}),` If component paths are getting too long, move grouping into pages and sections.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix 7: Add descriptions to public components.`}),` Descriptions help users understand when to use it, when not to, and what conventions it follows.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`non-negotiable-rules`,children:`Non-negotiable rules`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Never publish `,_jsx(_components.code,{children:`Property 1`}),`, `,_jsx(_components.code,{children:`Property 2`}),`, or `,_jsx(_components.code,{children:`Variant`}),` as-is`]}),`\n`,_jsx(_components.li,{children:`Every public component must have a stable semantic path`}),`\n`,_jsx(_components.li,{children:`Use one controlled vocabulary for size`}),`\n`,_jsx(_components.li,{children:`Use one controlled vocabulary for state`}),`\n`,_jsx(_components.li,{children:`Boolean properties must be affirmative and explicit`}),`\n`,_jsx(_components.li,{children:`Internal helpers must be hidden from the public library`}),`\n`,_jsx(_components.li,{children:`No duplicate semantic paths`}),`\n`,_jsx(_components.li,{children:`Do not name by color if the name represents a role`}),`\n`,_jsx(_components.li,{children:`Do not use version suffixes as a permanent naming strategy`}),`\n`,_jsx(_components.li,{children:`Slots must be named by role, not by position or placeholder`}),`\n`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`what-“good”-looks-like`,children:`What “good” looks like`}),_jsx(_components.p,{children:`A healthy public component family:`}),_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Actions/Button`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Style = Primary | Secondary | Ghost`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Size = SM | MD | LG`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── State = Default | Hover | Disabled`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── hasIcon = True / False`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└── isLoading = True / False`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`A healthy input family:`}),_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Data Entry/Input/Search`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Style = Filled | Outline`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Size = SM | MD | LG`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── State = Default | Focused | Error | Disabled`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── allowClear = True / False`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└── showLeadingIcon = True / False`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`That is the kind of structure both humans and tools can reason about.`}),_jsx(Note,{children:`If you want Replace Component to feel smart, your library has to stop speaking in implementation leftovers and start speaking in product language. The goal is easier browsing, fewer mistakes, better design-to-code parity, and cleaner replacement results.`})]}),_jsxs(Tab,{title:`How to Fix`,id:`how-to-fix`,\"data-child-heading-ids\":`[\"what-lintkit-detects\",\"fixing-component-variant-properties\",\"fixing-component-boolean-properties\",\"fixing-slot-and-sub-layer-names\",\"hiding-internal-helpers\",\"bulk-renaming-layers-with-figma%E2%80%99s-built-in-tools\",\"useful-find-and-replace-patterns\",\"standardizing-size-values-across-a-library\",\"handling-version-suffixes\"]`,children:[_jsx(Heading,{level:`2`,id:`what-lintkit-detects`,children:`What LintKit detects`}),_jsx(_components.p,{children:`LintKit’s naming rule catches three categories of problems:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Default Figma names`}),` — `,_jsx(_components.code,{children:`Frame 47`}),`, `,_jsx(_components.code,{children:`Rectangle 12`}),`, `,_jsx(_components.code,{children:`Group 7`}),`, `,_jsx(_components.code,{children:`Text 3`}),`, and other auto-generated names that tell developers nothing about the layer’s purpose.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Forbidden patterns`}),` — copy suffixes (`,_jsx(_components.code,{children:`Button copy 2`}),`), temp labels (`,_jsx(_components.code,{children:`WIP Header`}),`, `,_jsx(_components.code,{children:`TODO fix this`}),`), and other placeholders that should never appear in a published file.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Convention violations`}),` — when your file has a dominant naming style (like `,_jsx(_components.code,{children:`camelCase`}),`) and some layers break it (like `,_jsx(_components.code,{children:`hero-banner`}),` in kebab-case).`]}),`\n`]}),_jsx(_components.p,{children:`This tab walks through how to fix the most common naming problems in your library.`}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`fixing-component-variant-properties`,children:`Fixing component variant properties`}),_jsxs(_components.p,{children:[`Variant properties are the dropdowns designers see when selecting a variant. Default names like `,_jsx(_components.code,{children:`Property 1`}),` give no context about what the property controls.`]}),_jsxs(Steps,{children:[_jsx(Step,{title:`Select the component set in your library file`,children:_jsx(_components.p,{children:`Click the component set (the purple dashed border) — not an individual variant inside it.`})}),_jsx(Step,{title:`Open the Design panel`,children:_jsxs(_components.p,{children:[`Look for the variant property names listed under the component set name. You’ll see names like `,_jsx(_components.code,{children:`Property 1`}),`, `,_jsx(_components.code,{children:`Property 2`}),`, etc.`]})}),_jsxs(Step,{title:`Rename the property`,children:[_jsx(_components.p,{children:`Click the property name to edit it. Replace generic names with descriptive ones:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Property 1`}),` → `,_jsx(_components.code,{children:`Style`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Property 2`}),` → `,_jsx(_components.code,{children:`Size`})]}),`\n`]})]}),_jsxs(Step,{title:`Rename the values too`,children:[_jsx(_components.p,{children:`Click each value to rename if needed:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Variant 1`}),` → `,_jsx(_components.code,{children:`Primary`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Variant 2`}),` → `,_jsx(_components.code,{children:`Secondary`})]}),`\n`]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Before:`})}),_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Button component set`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Property 1 = Primary`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Property 1 = Secondary`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Property 2 = Default`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Property 2 = Hover`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`After:`})}),_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Button component set`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Style = Primary`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Style = Secondary`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── State = Default`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── State = Hover`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`fixing-component-boolean-properties`,children:`Fixing component boolean properties`}),_jsxs(_components.p,{children:[`Boolean properties control toggles like “show icon” or “is loading.” Default names like `,_jsx(_components.code,{children:`Property 3`}),` don’t communicate what the toggle does.`]}),_jsxs(Steps,{children:[_jsx(Step,{title:`Select the individual component`,children:_jsx(_components.p,{children:`Click the component itself (not the component set) — the one with the purple diamond icon.`})}),_jsx(Step,{title:`Find the boolean properties`,children:_jsx(_components.p,{children:`In the Design panel, look for properties with true/false values.`})}),_jsxs(Step,{title:`Rename the property`,children:[_jsx(_components.p,{children:`Click the property name to edit it. Use an affirmative prefix:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Property 3`}),` → `,_jsx(_components.code,{children:`Show icon`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Property 4`}),` → `,_jsx(_components.code,{children:`Is loading`})]}),`\n`]})]})]}),_jsxs(_components.p,{children:[`The value is automatically `,_jsx(_components.code,{children:`true`}),` or `,_jsx(_components.code,{children:`false`}),` — you only need to rename the property itself.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Before:`})}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Property 3 = true/false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`After:`})}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Show icon = true/false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`fixing-slot-and-sub-layer-names`,children:`Fixing slot and sub-layer names`}),_jsxs(_components.p,{children:[`Slots and sub-layers are the internal parts of a component that designers can customize. Default names like `,_jsx(_components.code,{children:`Frame 12`}),` make it impossible to know which slot does what.`]}),_jsxs(Steps,{children:[_jsx(Step,{title:`Enter editing mode`,children:_jsx(_components.p,{children:`Double-click into the component to edit its internal layers.`})}),_jsx(Step,{title:`Rename layers in the layers panel`,children:_jsx(_components.p,{children:`Click each layer name in the left sidebar and type a descriptive name that describes the layer’s role.`})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Before:`})}),_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Frame 12`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Group 4`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Rectangle 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`After:`})}),_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Header`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Background`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`hiding-internal-helpers`,children:`Hiding internal helpers`}),_jsx(_components.p,{children:`Internal components (button bases, icon wrappers, layout scaffolds) clutter the assets panel and confuse Replace Component. Three ways to hide them:`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Option A: Prefix with . or _`,children:_jsxs(_components.p,{children:[`Rename the component to `,_jsx(_components.code,{children:`.Button Base`}),` or `,_jsx(_components.code,{children:`_Input Shell`}),`. Figma automatically hides dot-prefixed components from library publishing.`]})}),_jsx(Step,{title:`Option B: Right-click → Hide when publishing`,children:_jsxs(_components.p,{children:[`Right-click any component in a library file and select `,_jsx(_components.strong,{children:`Hide when publishing`}),`. The component stays usable inside the file but won’t appear in the assets panel for consumers.`]})}),_jsx(Step,{title:`Option C: Move to a private page`,children:_jsxs(_components.p,{children:[`Create a page called `,_jsx(_components.code,{children:`_Internal`}),` or `,_jsx(_components.code,{children:`.Helpers`}),` and move internal components there. Components on pages with `,_jsx(_components.code,{children:`.`}),` or `,_jsx(_components.code,{children:`_`}),` prefixes are excluded from publishing.`]})})]}),_jsxs(Tip,{children:[_jsx(_components.strong,{children:`Simple rule:`}),` If a component is mainly used inside another component, it probably should not appear in your library’s assets panel.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`bulk-renaming-layers-with-figma’s-built-in-tools`,children:`Bulk renaming layers with Figma’s built-in tools`}),_jsx(_components.p,{children:`For large files with many default names, Figma’s native bulk rename is the fastest path.`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Select the layers to rename`,children:_jsxs(_components.p,{children:[`Select multiple layers in the layers panel, or press `,_jsx(_components.strong,{children:`Cmd/Ctrl+A`}),` to select all layers on the current page.`]})}),_jsx(Step,{title:`Open the Rename dialog`,children:_jsxs(_components.p,{children:[`Press `,_jsx(_components.strong,{children:`Cmd/Ctrl+R`}),` to open Figma’s bulk rename dialog.`]})}),_jsxs(Step,{title:`Choose a rename pattern`,children:[_jsx(_components.p,{children:`You have several options:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Replace all names:`}),` Type a new name. All selected layers get that name.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Keep current name with prefix/suffix:`}),` Use `,_jsx(_components.code,{children:`$\u0026`}),` to reference the current name. For example, `,_jsx(_components.code,{children:`Section/$\u0026`}),` wraps every name with a category prefix.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Find and replace:`}),` Use the `,_jsx(_components.strong,{children:`Match`}),` field with a regex pattern and the `,_jsx(_components.strong,{children:`Replace`}),` field to fix specific problems.`]}),`\n`]})]}),_jsx(Step,{title:`Apply the rename`,children:_jsxs(_components.p,{children:[`Review the preview and click `,_jsx(_components.strong,{children:`Rename`}),` to apply changes to all selected layers.`]})})]}),_jsx(Heading,{level:`3`,id:`useful-find-and-replace-patterns`,children:`Useful find-and-replace patterns`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Goal`}),_jsx(_components.th,{children:`Match`}),_jsx(_components.th,{children:`Replace with`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Remove ” copy” suffixes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:` copy\\\\s*\\\\d*$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Remove ” - old” suffixes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\\\\s*-\\\\s*old$`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(empty)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Add a category prefix`}),_jsx(_components.td,{children:_jsx(_components.em,{children:`(select layers, type new name)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Section/$\u0026`})})]})]})]}),_jsxs(Note,{children:[`LintKit also has a built-in `,_jsx(_components.a,{href:`/rules/cleanup#batch-rename`,children:`Batch Rename`}),` feature that works directly from naming findings. It supports pattern tokens like `,_jsx(_components.code,{children:`{n}`}),`, `,_jsx(_components.code,{children:`{parent}`}),`, and `,_jsx(_components.code,{children:`{type}`}),` for more structured renaming.`]}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`standardizing-size-values-across-a-library`,children:`Standardizing size values across a library`}),_jsxs(_components.p,{children:[`When different component families use different size labels (`,_jsx(_components.code,{children:`Small`}),`, `,_jsx(_components.code,{children:`sm`}),`, `,_jsx(_components.code,{children:`S`}),`, `,_jsx(_components.code,{children:`16`}),`), the library feels inconsistent and tooling can’t match across families.`]}),_jsxs(Steps,{children:[_jsx(Step,{title:`Pick one size vocabulary`,children:_jsxs(_components.p,{children:[`The most common choice is T-shirt sizes: `,_jsx(_components.code,{children:`XS`}),`, `,_jsx(_components.code,{children:`SM`}),`, `,_jsx(_components.code,{children:`MD`}),`, `,_jsx(_components.code,{children:`LG`}),`, `,_jsx(_components.code,{children:`XL`}),`. Alternatively, use `,_jsx(_components.code,{children:`Small`}),`, `,_jsx(_components.code,{children:`Medium`}),`, `,_jsx(_components.code,{children:`Large`}),` — but pick one and stick to it.`]})}),_jsx(Step,{title:`Open each component set with a size property`,children:_jsx(_components.p,{children:`Go through your library and find every component set that has a size variant.`})}),_jsxs(Step,{title:`Rename each variant value to match`,children:[_jsx(_components.p,{children:`Click the variant value in the Design panel and rename it:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Small`}),` → `,_jsx(_components.code,{children:`SM`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Medium`}),` → `,_jsx(_components.code,{children:`MD`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Large`}),` → `,_jsx(_components.code,{children:`LG`})]}),`\n`]})]}),_jsx(Step,{title:`Repeat for every component family`,children:_jsx(_components.p,{children:`Do this for buttons, inputs, badges, avatars, and every other component with a size property.`})})]}),_jsx(_components.p,{children:`This is tedious but one-time. Once standardized, new variants follow the pattern naturally.`}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`handling-version-suffixes`,children:`Handling version suffixes`}),_jsxs(_components.p,{children:[`When you find components like `,_jsx(_components.code,{children:`Card_v2`}),`, `,_jsx(_components.code,{children:`Card Final`}),`, `,_jsx(_components.code,{children:`Card fixed`}),`, it means the library has accumulated drafts that were never cleaned up.`]}),_jsxs(Steps,{children:[_jsx(Step,{title:`Decide which is the canonical version`,children:_jsx(_components.p,{children:`Look at which version is most widely used across your files. That’s your canonical component.`})}),_jsx(Step,{title:`Archive the old versions`,children:_jsxs(_components.p,{children:[`Move old versions to a page called `,_jsx(_components.code,{children:`_Archive`}),` or `,_jsx(_components.code,{children:`_Deprecated`}),`. This keeps them accessible but out of the main library.`]})}),_jsx(Step,{title:`Rename the canonical version`,children:_jsxs(_components.p,{children:[`Remove the version suffix: `,_jsx(_components.code,{children:`Card_v2`}),` → `,_jsx(_components.code,{children:`Card`}),`. This is now the single source of truth.`]})}),_jsx(Step,{title:`Migrate existing instances`,children:_jsxs(_components.p,{children:[`If instances of the old version exist in consumer files, use Figma’s `,_jsx(_components.strong,{children:`Swap component`}),` feature to migrate them to the canonical version.`]})}),_jsx(Step,{title:`Delete or hide the archived versions`,children:_jsx(_components.p,{children:`Once all instances are migrated, hide or delete the old versions so they stop appearing in the assets panel.`})})]}),_jsxs(Tip,{children:[`Before deleting old component versions, use Figma’s `,_jsx(_components.strong,{children:`Go to main component`}),` on existing instances to make sure nothing is still pointing at the version you’re about to remove.`]})]}),_jsxs(Tab,{title:`AI Prompts`,id:`ai-prompts`,\"data-child-heading-ids\":`[\"remove-a-suffix-from-layer-names\",\"replace-default-figma-names-with-a-meaningful-name\",\"remove-a-prefix-from-layer-names\",\"clean-up-version-or-status-suffixes\",\"convert-one-separator-to-another\",\"add-a-category-prefix-to-all-names\",\"change-an-existing-prefix-to-a-new-one\",\"swap-the-order-of-path-segments\",\"insert-a-new-level-into-component-paths\",\"remove-a-level-from-component-paths\",\"convert-style-name-prefixes-to-slash-folders\",\"flatten-deeply-nested-style-paths\",\"fix-figma%E2%80%99s-auto-generated-property-names\",\"build-a-batch-rename-template\",\"enforce-a-naming-convention\",\"create-a-custom-detection-pattern\",\"replace-multiple-different-names-at-once\",\"tips-for-better-results\"]`,children:[_jsxs(_components.p,{children:[`Use these ready-made prompts with `,_jsx(_components.a,{href:`https://claude.ai`,children:`Claude`}),` or `,_jsx(_components.a,{href:`https://chatgpt.com`,children:`ChatGPT`}),` to generate the exact regex patterns you need for LintKit’s Find \u0026 Replace. Copy the prompt, fill in the `,_jsx(_components.strong,{children:`[BRACKETED]`}),` placeholders with your values, and paste it into the AI.`]}),_jsx(Tip,{children:`The more before/after examples you include, the better the AI’s output will be. Always test with LintKit’s “Find Only” mode before applying.`}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`remove-a-suffix-from-layer-names`,children:`Remove a suffix from layer names`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Cleaning up copy suffixes, version markers, status tags, or any repeated suffix across many layers.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card_copy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Header copy 3`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Nav-copy 12`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Nav`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using a Figma plugin called LintKit that has a Find \u0026 Replace`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`feature with regex support. I need to remove the suffix [YOUR SUFFIX]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`from my layer names. It might appear with a separator before it`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`(space, dash, or underscore).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples of names I have:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [EXAMPLE 1, e.g. \"Card_copy\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [EXAMPLE 2, e.g. \"Header copy 3\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [EXAMPLE 3, e.g. \"Nav-copy 12\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace pattern to use`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`in LintKit's Find \u0026 Replace. The suffix should only be removed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`from the end of the name, not the middle.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`replace-default-figma-names-with-a-meaningful-name`,children:`Replace default Figma names with a meaningful name`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Replacing auto-generated names like “Frame 47” or “Rectangle 12” with semantic names, scoped to your current selection.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 47`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 12`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 203`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`13`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I have layers with`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Figma's default auto-generated names and I want to replace them`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`with a specific name.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Default names to match: [e.g. \"Frame 1\", \"Frame 2\", \"Frame 47\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Replace them all with: [e.g. \"Card\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`The pattern should only match the exact default format (the word`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`followed by a space and number), not names like \"Frame Header\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`or \"My Frame\".`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace value.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`remove-a-prefix-from-layer-names`,children:`Remove a prefix from layer names`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Stripping WIP, DRAFT, DELETE, OLD, or any temporary markers before handoff or publishing.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`WIP Button Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DRAFT-Header`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`OLD_Sidebar Nav`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Sidebar Nav`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I need to remove`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`a prefix from the beginning of my layer names. The prefix might`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`be followed by a space, dash, or underscore.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Prefixes to remove: [e.g. \"WIP\", \"DRAFT\", \"OLD\", \"DELETE\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"WIP Button Primary\" should become \"Button Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"DRAFT-Header\" should become \"Header\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace value.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`clean-up-version-or-status-suffixes`,children:`Clean up version or status suffixes`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Removing `,_jsx(_components.code,{children:`_v2`}),`, `,_jsx(_components.code,{children:`_final`}),`, `,_jsx(_components.code,{children:`NEW`}),`, `,_jsx(_components.code,{children:`old`}),`, and other naming debt accumulated over time.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card_v2`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Header_final`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Button NEW`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I need to remove`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`version and status markers from the end of my layer names.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Suffixes to remove: [e.g. \"_v2\", \"_final\", \" NEW\", \" old\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Card_v2\" should become \"Card\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Header_final\" should become \"Header\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Button NEW\" should become \"Button\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace value. It should`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`handle optional separators (space, dash, underscore) before`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`the suffix.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`convert-one-separator-to-another`,children:`Convert one separator to another`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Switching between underscores, dashes, and slashes across all your layer or style names.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`icon_arrow_left`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`icon/arrow/left`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`color_blue_500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`color/blue/500`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`11`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace. I want to convert all`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[OLD SEPARATOR, e.g. \"underscores\"] in my layer names to`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[NEW SEPARATOR, e.g. \"forward slashes\"].`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"icon_arrow_left\" should become \"icon/arrow/left\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"color_blue_500\" should become \"color/blue/500\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Do I need regex for this, or can I use plain text mode? Give me`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`the Find and Replace values.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`add-a-category-prefix-to-all-names`,children:`Add a category prefix to all names`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Organizing flat names into Figma’s slash-separated folder structure for the Assets panel or style picker.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Secondary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Secondary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Ghost Large`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Ghost Large`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I want to add a`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`prefix to the beginning of all matched layer names, keeping the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`existing name intact.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Prefix to add: [e.g. \"Button/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Primary\" should become \"Button/Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Secondary\" should become \"Button/Secondary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Ghost Large\" should become \"Button/Ghost Large\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace pattern. Explain`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`what $1 means in the replace pattern.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`change-an-existing-prefix-to-a-new-one`,children:`Change an existing prefix to a new one`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Renaming top-level categories across your styles or components without touching the rest of the path.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Colors/Blue/500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/Blue/500`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Colors/Brand/Red`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/Brand/Red`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I want to change`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`an existing prefix at the beginning of my names to a different one.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Old prefix: [e.g. \"Colors/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`New prefix: [e.g. \"Color/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Colors/Blue/500\" should become \"Color/Blue/500\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Colors/Brand/Red\" should become \"Color/Brand/Red\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace value. The`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`pattern should only match the prefix, leaving everything after`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`it unchanged.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`swap-the-order-of-path-segments`,children:`Swap the order of path segments`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Fixing component names where the segments are in the wrong order (e.g. state before component name).`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Primary/Button`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Large/Input`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Input/Large`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`16`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. My component`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`names have slash-separated segments in the wrong order and I`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`need to rearrange them.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Current format: [e.g. \"Primary/Button\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Desired format: [e.g. \"Button/Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I want to swap [describe the swap, e.g. \"the first two segments\"].`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Primary/Button\" should become \"Button/Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Large/Input\" should become \"Input/Large\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace pattern using`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`capture groups. Explain how the capture groups work.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`insert-a-new-level-into-component-paths`,children:`Insert a new level into component paths`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Adding a category grouping (like “Data Entry” or “Feedback”) to the beginning of specific component families.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Input/Text`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Data Entry/Input/Text`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Alert/Error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Feedback/Alert/Error`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I need to add a`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`category level at the beginning of certain component paths.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Components to categorize: [e.g. \"Button\", \"Input\", \"Select\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Category to add: [e.g. \"Data Entry\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Button/Primary\" should become \"Data Entry/Button/Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Input/Text\" should become \"Data Entry/Input/Text\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace pattern. The`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`pattern should only match names that start with one of the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`listed component names.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`remove-a-level-from-component-paths`,children:`Remove a level from component paths`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Flattening overly deep hierarchies by removing an unnecessary middle segment.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/UI/Arrow Left`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/Arrow Left`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/UI/Chevron Down`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Icons/Chevron Down`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`11`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. My component`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`paths have an unnecessary level I want to remove.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Level to remove: [e.g. \"UI/\" from paths like \"Icons/UI/Arrow Left\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Icons/UI/Arrow Left\" should become \"Icons/Arrow Left\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Icons/UI/Chevron Down\" should become \"Icons/Chevron Down\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace value.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`convert-style-name-prefixes-to-slash-folders`,children:`Convert style name prefixes to slash folders`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Migrating shorthand style prefixes (like `,_jsx(_components.code,{children:`clr-`}),` or `,_jsx(_components.code,{children:`typ-`}),`) into Figma’s slash-separated folder structure.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clr-blue-500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/blue-500`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`typ-heading-lg`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Typography/heading-lg`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fx-shadow-soft`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Effects/shadow-soft`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`16`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex, targeting Styles.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`My style names use short prefixes with dashes, and I want to`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`convert them to slash-separated folder paths.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Prefix mappings:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"clr-\" should become \"Color/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"typ-\" should become \"Typography/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"fx-\" should become \"Effects/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"clr-blue-500\" should become \"Color/blue-500\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"typ-heading-lg\" should become \"Typography/heading-lg\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find and Replace values for each prefix. Can I do`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`this in one pass or do I need multiple find-and-replace operations?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`flatten-deeply-nested-style-paths`,children:`Flatten deeply nested style paths`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Simplifying style names that have accumulated too many levels, like `,_jsx(_components.code,{children:`Colors/Brand/Primary/Blue/500`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Colors/Brand/Primary/Blue/500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/Blue/500`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Colors/Brand/Primary/Red/600`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Color/Red/600`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`10`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex, targeting Styles.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`My style names have too many levels of nesting and I want to`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`flatten them by removing intermediate levels.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Current structure: [e.g. \"Colors/Brand/Primary/Blue/500\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Desired structure: [e.g. \"Color/Blue/500\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Levels to remove: [e.g. \"Colors/Brand/Primary/\" should become \"Color/\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find pattern (regex) and the Replace value.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`fix-figma’s-auto-generated-property-names`,children:`Fix Figma’s auto-generated property names`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Cleaning up component names that contain Figma’s `,_jsx(_components.code,{children:`Property 1=Value`}),` syntax.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Property 1=Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Style/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Type=Large, State=Hover`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Large/Hover`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex, targeting`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Components. My component names contain Figma's auto-generated`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`property syntax like \"Property 1=Value\".`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples of what I have:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Property 1=Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Type=Large, State=Hover\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`What I want instead:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Style/Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Large/Hover\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find and Replace patterns for each case.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`build-a-batch-rename-template`,children:`Build a batch rename template`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Renaming a group of flagged layers using LintKit’s template variables like `,_jsx(_components.code,{children:`{parent}`}),`, `,_jsx(_components.code,{children:`{type}`}),`, and `,_jsx(_components.code,{children:`{n}`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example result`}),` (template: `,_jsx(_components.code,{children:`{parent} / Item {nn}`}),`):`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parent`}),_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 47`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Item 01`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 48`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Item 02`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Card`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Frame 49`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Item 03`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`20`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Batch Rename feature (not Find \u0026 Replace).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`It supports these template variables:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {name} — current layer name`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {type} — layer type (Frame, Text, Rectangle, etc.)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {n} — sequential number (1, 2, 3)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {nn} — zero-padded number (01, 02, 03)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {nnn} — zero-padded 3 digits (001, 002, 003)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {parent} — parent layer's name`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {w} — width in pixels`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {h} — height in pixels`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- {page} — page name`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I want to rename [describe what you're renaming, e.g. \"a set of`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`card layers inside a grid\"] to follow this format: [describe`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`desired format, e.g. \"the parent name, then a slash, then a`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`sequential number like Card / 01, Card / 02\"].`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the template string using the variables above.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`enforce-a-naming-convention`,children:`Enforce a naming convention`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Finding layers that violate your team’s casing or formatting rules (Title Case, camelCase, kebab-case, etc.).`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example result`}),` (enforcing Title Case with slashes):`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cardHeader`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`card-header`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Header`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`card_header`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Card / Header`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`17`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I want to find`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`all layer names that don't follow my team's naming convention`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`and fix them.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Our convention is: [describe your convention, e.g. \"Title Case`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`with slashes as separators, like 'Card / Header / Title'\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Common violations I'm seeing:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"camelCase names like 'cardHeader'\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"kebab-case names like 'card-header'\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"names with underscores like 'card_header'\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me the Find patterns to match each violation type, and`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`suggest the Replace approach. Note that LintKit's regex replace`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`can't change casing automatically, so let me know if I need to`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`handle that differently.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`create-a-custom-detection-pattern`,children:`Create a custom detection pattern`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Adding your own naming rules to LintKit that flag specific layer names as issues during scans.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example result`}),` (flagging placeholder names):`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Layer name`}),_jsx(_components.th,{children:`Flagged?`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TODO fix this`})}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`temp button`})}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Button Primary`})}),_jsx(_components.td,{children:`No`})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`16`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's custom pattern feature where I can add regex`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`patterns that flag layer names as naming issues. I want to create`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`a pattern that flags [describe what to flag].`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples of names that SHOULD be flagged:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"TODO fix this\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"temp button\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"asdf\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples of names that should NOT be flagged:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Button Primary\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Card Header\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Give me a regex pattern and the flags to use. The pattern will`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`be used in JavaScript's RegExp constructor.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`3`,id:`replace-multiple-different-names-at-once`,children:`Replace multiple different names at once`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Batch-fixing abbreviations, old terminology, or inconsistent naming across a file in the fewest passes.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example result:`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Before`}),_jsx(_components.th,{children:`After`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Btn/Primary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Button/Primary`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Lbl/Name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Label/Name`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Img/Hero`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Image/Hero`})})]})]})]}),_jsx(CodeBlock,{filename:`Copy this prompt`,numberOfLines:`11`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I'm using LintKit's Find \u0026 Replace with regex. I have several`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`different old names that all need to be replaced.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Replacements needed:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Btn\" should become \"Button\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Lbl\" should become \"Label\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- [e.g. \"Img\" should become \"Image\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Can I do all of these in one Find \u0026 Replace operation, or do I`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`need separate passes? Give me the most efficient approach.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.hr,{}),_jsx(Heading,{level:`2`,id:`tips-for-better-results`,children:`Tips for better results`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Be specific about your examples.`}),` The more before/after examples you include, the more accurate the AI’s regex will be.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mention JavaScript regex.`}),` LintKit uses JavaScript’s `,_jsx(_components.code,{children:`RegExp`}),` — this matters because regex syntax varies between languages.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ask the AI to explain the pattern.`}),` Understanding what each part does helps you verify it’s correct before running it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test with “Find Only” first.`}),` LintKit lets you preview matches before applying — always do this.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`One thing at a time.`}),` If the AI gives you a complicated pattern, ask if it can be split into simpler steps. Multiple simple passes beat one fragile regex.`]}),`\n`]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/rules/cleanup#layer-naming`,children:`Layer Naming rule`}),` — how LintKit detects default names and convention violations`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/rules/cleanup#batch-rename`,children:`Batch Rename`}),` — LintKit’s built-in batch rename with pattern tokens`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/features/smart-replace`,children:`Smart Replace`}),` — how LintKit uses library data for color-science matching`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/features/library-mode`,children:`Library Mode`}),` — running LintKit inside a library file for library-specific rules`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Component \u0026 Layer Naming","sidebarTitle":"Naming","description":"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.","icon":"text-cursor-input","href":"/rules/naming"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"At a glance","slug":"at-a-glance","depth":2,"children":[],"tabId":"quick-reference"},{"title":"What good naming looks like","slug":"what-good-naming-looks-like","depth":2,"children":[{"title":"Name by purpose, not appearance","slug":"name-by-purpose-not-appearance","depth":3,"children":[],"tabId":"quick-reference"},{"title":"Use forward slashes for meaningful paths","slug":"use-forward-slashes-for-meaningful-paths","depth":3,"children":[],"tabId":"quick-reference"},{"title":"Use consistent variant property names","slug":"use-consistent-variant-property-names","depth":3,"children":[],"tabId":"quick-reference"},{"title":"Use affirmative booleans for component properties","slug":"use-affirmative-booleans-for-component-properties","depth":3,"children":[],"tabId":"quick-reference"},{"title":"Hide internal helpers","slug":"hide-internal-helpers","depth":3,"children":[],"tabId":"quick-reference"},{"title":"Pick a casing convention and stick to it","slug":"pick-a-casing-convention-and-stick-to-it","depth":3,"children":[],"tabId":"quick-reference"}],"tabId":"quick-reference"},{"title":"Rename these before publishing","slug":"rename-these-before-publishing","depth":2,"children":[],"tabId":"quick-reference"},{"title":"Comparison examples","slug":"comparison-examples","depth":2,"children":[],"tabId":"quick-reference"},{"title":"Quick fixes (in priority order)","slug":"quick-fixes-in-priority-order","depth":2,"children":[],"tabId":"quick-reference"},{"title":"Recommended standards","slug":"recommended-standards","depth":2,"children":[],"tabId":"quick-reference"},{"title":"Find \u0026 Replace","slug":"find-\u0026-replace","depth":2,"children":[{"title":"Remove copy suffixes","slug":"remove-copy-suffixes","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Strip default Figma names","slug":"strip-default-figma-names","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Remove temporary prefixes","slug":"remove-temporary-prefixes","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Clean up version suffixes","slug":"clean-up-version-suffixes","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Convert separators","slug":"convert-separators","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Add or change prefixes","slug":"add-or-change-prefixes","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Restructure component paths","slug":"restructure-component-paths","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Reorganize style names","slug":"reorganize-style-names","depth":3,"children":[],"tabId":"cheat-sheet"}],"tabId":"cheat-sheet"},{"title":"Batch Rename (Template Variables)","slug":"batch-rename-template-variables","depth":2,"children":[{"title":"Available variables","slug":"available-variables","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Built-in presets","slug":"built-in-presets","depth":3,"children":[],"tabId":"cheat-sheet"},{"title":"Examples","slug":"examples","depth":3,"children":[],"tabId":"cheat-sheet"}],"tabId":"cheat-sheet"},{"title":"Regex Quick Reference","slug":"regex-quick-reference","depth":2,"children":[{"title":"Replace patterns","slug":"replace-patterns","depth":3,"children":[],"tabId":"cheat-sheet"}],"tabId":"cheat-sheet"},{"title":"Tips","slug":"tips","depth":2,"children":[],"tabId":"cheat-sheet"},{"title":"Who this guide is for","slug":"who-this-guide-is-for","depth":2,"children":[],"tabId":"full-guide"},{"title":"How naming quality affects LintKit","slug":"how-naming-quality-affects-lintkit","depth":2,"children":[],"tabId":"full-guide"},{"title":"Semantic naming vs. implementation naming","slug":"semantic-naming-vs-implementation-naming","depth":2,"children":[],"tabId":"full-guide"},{"title":"Library structure","slug":"library-structure","depth":2,"children":[{"title":"Use slashes for stable paths","slug":"use-slashes-for-stable-paths","depth":3,"children":[],"tabId":"full-guide"},{"title":"Recommended top-level categories","slug":"recommended-top-level-categories","depth":3,"children":[],"tabId":"full-guide"}],"tabId":"full-guide"},{"title":"The “Big Four” semantic axes","slug":"the-“big-four”-semantic-axes","depth":2,"children":[{"title":"1. Style","slug":"1-style","depth":3,"children":[],"tabId":"full-guide"},{"title":"2. Size","slug":"2-size","depth":3,"children":[],"tabId":"full-guide"},{"title":"3. State","slug":"3-state","depth":3,"children":[],"tabId":"full-guide"},{"title":"4. Modifier","slug":"4-modifier","depth":3,"children":[],"tabId":"full-guide"}],"tabId":"full-guide"},{"title":"Size vocabulary","slug":"size-vocabulary","depth":2,"children":[],"tabId":"full-guide"},{"title":"Overloaded property names: the “Type” problem","slug":"overloaded-property-names-the-“type”-problem","depth":2,"children":[],"tabId":"full-guide"},{"title":"Boolean naming","slug":"boolean-naming","depth":2,"children":[],"tabId":"full-guide"},{"title":"Slots and sub-parts","slug":"slots-and-sub-parts","depth":2,"children":[],"tabId":"full-guide"},{"title":"Public vs. internal components","slug":"public-vs-internal-components","depth":2,"children":[],"tabId":"full-guide"},{"title":"Casing conventions","slug":"casing-conventions","depth":2,"children":[],"tabId":"full-guide"},{"title":"Library smell checklist","slug":"library-smell-checklist","depth":2,"children":[],"tabId":"full-guide"},{"title":"Full comparison table","slug":"full-comparison-table","depth":2,"children":[],"tabId":"full-guide"},{"title":"Quick fix guide","slug":"quick-fix-guide","depth":2,"children":[],"tabId":"full-guide"},{"title":"Non-negotiable rules","slug":"non-negotiable-rules","depth":2,"children":[],"tabId":"full-guide"},{"title":"What “good” looks like","slug":"what-“good”-looks-like","depth":2,"children":[],"tabId":"full-guide"},{"title":"What LintKit detects","slug":"what-lintkit-detects","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Fixing component variant properties","slug":"fixing-component-variant-properties","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Fixing component boolean properties","slug":"fixing-component-boolean-properties","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Fixing slot and sub-layer names","slug":"fixing-slot-and-sub-layer-names","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Hiding internal helpers","slug":"hiding-internal-helpers","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Bulk renaming layers with Figma’s built-in tools","slug":"bulk-renaming-layers-with-figma’s-built-in-tools","depth":2,"children":[{"title":"Useful find-and-replace patterns","slug":"useful-find-and-replace-patterns","depth":3,"children":[],"tabId":"how-to-fix"}],"tabId":"how-to-fix"},{"title":"Standardizing size values across a library","slug":"standardizing-size-values-across-a-library","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Handling version suffixes","slug":"handling-version-suffixes","depth":2,"children":[],"tabId":"how-to-fix"},{"title":"Remove a suffix from layer names","slug":"remove-a-suffix-from-layer-names","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Replace default Figma names with a meaningful name","slug":"replace-default-figma-names-with-a-meaningful-name","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Remove a prefix from layer names","slug":"remove-a-prefix-from-layer-names","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Clean up version or status suffixes","slug":"clean-up-version-or-status-suffixes","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Convert one separator to another","slug":"convert-one-separator-to-another","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Add a category prefix to all names","slug":"add-a-category-prefix-to-all-names","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Change an existing prefix to a new one","slug":"change-an-existing-prefix-to-a-new-one","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Swap the order of path segments","slug":"swap-the-order-of-path-segments","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Insert a new level into component paths","slug":"insert-a-new-level-into-component-paths","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Remove a level from component paths","slug":"remove-a-level-from-component-paths","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Convert style name prefixes to slash folders","slug":"convert-style-name-prefixes-to-slash-folders","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Flatten deeply nested style paths","slug":"flatten-deeply-nested-style-paths","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Fix Figma’s auto-generated property names","slug":"fix-figma’s-auto-generated-property-names","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Build a batch rename template","slug":"build-a-batch-rename-template","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Enforce a naming convention","slug":"enforce-a-naming-convention","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Create a custom detection pattern","slug":"create-a-custom-detection-pattern","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Replace multiple different names at once","slug":"replace-multiple-different-names-at-once","depth":3,"children":[],"tabId":"ai-prompts"},{"title":"Tips for better results","slug":"tips-for-better-results","depth":2,"children":[],"tabId":"ai-prompts"},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"lintkit","siteName":"LintKit","title":"Component \u0026 Layer Naming - LintKit","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-01T17:32:33.854Z","originalFileLocation":"rules/naming.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LintKit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Component \u0026amp; Layer Naming - LintKit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LintKit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lintkit.com/rules/naming\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lintkit.mintlify.site/_mintlify/api/og/v2?division=Rules\u0026amp;title=Component+%26+Layer+Naming\u0026amp;description=Best+practices+for+naming+components%2C+layers%2C+and+variant+properties+so+your+library+works+well+with+LintKit+and+your+whole+team.\u0026amp;theme=048b2504c0c1c7a2c54c27c5\u0026amp;signature=0d54749c17a3a8cf0b42fedd8ab9b5e0fb5341b5b7932a204b55bfb3c14e9dca\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Component \u0026amp; Layer Naming - LintKit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lintkit.mintlify.site/_mintlify/api/og/v2?division=Rules\u0026amp;title=Component+%26+Layer+Naming\u0026amp;description=Best+practices+for+naming+components%2C+layers%2C+and+variant+properties+so+your+library+works+well+with+LintKit+and+your+whole+team.\u0026amp;theme=048b2504c0c1c7a2c54c27c5\u0026amp;signature=0d54749c17a3a8cf0b42fedd8ab9b5e0fb5341b5b7932a204b55bfb3c14e9dca\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lintkit/U8w7Ek3DuckEIaJe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LintKit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1288FD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lintkit.com/rules/naming\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/rules/naming.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lintkit.com/#organization\",\"name\":\"LintKit\",\"url\":\"https://docs.lintkit.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lintkit/x-2OxSQDRPShNqP0/logo/light.svg?fit=max\u0026auto=format\u0026n=x-2OxSQDRPShNqP0\u0026q=85\u0026s=d2da426c724807d2ed678211eb15fff5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lintkit.com#website\",\"name\":\"LintKit\",\"url\":\"https://docs.lintkit.com\",\"publisher\":{\"@id\":\"https://docs.lintkit.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lintkit.com/rules/naming#webpage\",\"url\":\"https://docs.lintkit.com/rules/naming\",\"name\":\"Component \u0026 Layer Naming\",\"description\":\"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.\",\"dateModified\":\"2026-04-01T17:32:33.854Z\",\"isPartOf\":{\"@id\":\"https://docs.lintkit.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lintkit.com/rules/naming#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lintkit.com/rules/naming#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Rules\",\"item\":\"https://docs.lintkit.com/rules/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Component \u0026 Layer Naming\",\"item\":\"https://docs.lintkit.com/rules/naming\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.lintkit.com/rules/naming#article\",\"headline\":\"Component \u0026 Layer Naming\",\"name\":\"Component \u0026 Layer Naming\",\"description\":\"Best practices for naming components, layers, and variant properties so your library works well with LintKit and your whole team.\",\"url\":\"https://docs.lintkit.com/rules/naming\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lintkit.com/rules/naming#webpage\"},\"dateModified\":\"2026-04-01T17:32:33.854Z\",\"publisher\":{\"@id\":\"https://docs.lintkit.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lintkit.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LintKit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LintKit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/rules/naming.md","siteName":"LintKit","nav":{"global":{"anchors":[{"anchor":"Figma Plugin","icon":"figma","href":"https://www.figma.com/community/search?resource_type=plugins\u0026q=LintKit"},{"anchor":"Support","icon":"envelope","href":"mailto:[email protected]"}]},"groups":[{"group":"Getting started","pages":[{"title":"LintKit","sidebarTitle":"Introduction","href":"/index"},{"title":"Quickstart","icon":"https://mintlify.s3.us-west-1.amazonaws.com/lintkit/images/bolt-yellow.svg","href":"/quickstart"},{"title":"Configuration","icon":"gear","href":"/configuration"},{"title":"Troubleshooting","icon":"wrench","href":"/troubleshooting"}]},{"group":"Rules","pages":[{"title":"Features overview","sidebarTitle":"Overview","icon":"list-check","href":"/rules/overview"},{"title":"Style rules","sidebarTitle":"Styles","icon":"palette","href":"/rules/styles"},{"title":"Layout rules","sidebarTitle":"Layout","icon":"grid-2","href":"/rules/layout"},{"title":"Cleanup rules","sidebarTitle":"Cleanup","description":"Remove hidden layers, empty groups, and default names","icon":"broom","href":"/rules/cleanup"},{"title":"Component \u0026 Layer Naming","sidebarTitle":"Naming","icon":"text-cursor-input","href":"/rules/naming"},{"title":"Component rules","sidebarTitle":"Components","description":"Maintain component health and library governance","icon":"cube","href":"/rules/components"},{"title":"Accessibility rules","sidebarTitle":"Accessibility","icon":"universal-access","href":"/rules/accessibility"}]},{"group":"Features","pages":[{"title":"Compliance dashboard","icon":"chart-bar","href":"/features/dashboard"},{"title":"Library mode","icon":"book","href":"/features/library-mode"},{"title":"Compact view","icon":"mobile","href":"/features/compact-view"},{"title":"Bulk Fix","icon":"layer-group","href":"/features/bulk-fix"},{"title":"Smart Replace","icon":"wand-magic-sparkles","href":"/features/smart-replace"},{"title":"Export reports","icon":"file-export","href":"/features/reports"},{"title":"Pricing","icon":"tag","href":"/features/pricing"}]},{"group":"Integrations","pages":[{"title":"Tokens Studio","icon":"swatchbook","href":"/integrations/tokens-studio"},{"title":"GitHub","icon":"github","href":"/integrations/github"}]}]},"basePath":"","title":"Component \u0026 Layer Naming - LintKit","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":[],"chunks":[]}