knighn analyze

Analyze design tokens and patterns.

knighn analyze

knighn analyze colors

Analyze color palette usage.

knighn analyze colors [options] [FILE]
Argument What it is
FILE A .fig file.
Option What it does Default
--limit <limit> Max colors to show. 30
--threshold <threshold> Distance threshold for clustering similar colors (0–50) 15
--similar Show similar color clusters.
--json Output as JSON.

knighn analyze typography

Analyze typography usage.

knighn analyze typography [options] [FILE]
Argument What it is
FILE A .fig file.
Option What it does Default
--group-by <group-by> Group by: family, size, weight. show all styles
--limit <limit> Max styles to show. 30
--json Output as JSON.

knighn analyze spacing

Analyze spacing values (gap, padding)

knighn analyze spacing [options] [FILE]
Argument What it is
FILE A .fig file.
Option What it does Default
--grid <grid> Base grid size to check against. 8
--json Output as JSON.

knighn analyze clusters

Find repeated design patterns (potential components)

knighn analyze clusters [options] [FILE]
Argument What it is
FILE A .fig file.
Option What it does Default
--limit <limit> Max clusters to show. 20
--min-size <min-size> Min node size in px. 30
--min-count <min-count> Min instances to form cluster. 2
--json Output as JSON.

knighn analyze overlaps

Detect visual overlaps and layout overflows.

knighn analyze overlaps [options] [FILE]
Argument What it is
FILE A .fig file.
Option What it does Default
--scope <scope> Which pairs to inspect: all, same-parent, cross-parent, top-level, inside-parent. all
--category <category> Comma-separated categories: sibling-overlap, parent-overflow, overlay.
--severity <severity> Minimum severity to include: critical, major, minor, info. info
--min-area <min-area> Minimum overlap area in square pixels.
--min-ratio <min-ratio> Minimum overlap ratio relative to the smaller node, 0.0–1.0.
--include-hidden Include hidden nodes in the analysis.
--include-locked Include locked nodes in the analysis.
--include-absolute Include absolutely-positioned nodes in the analysis.
--page <page> Limit analysis to nodes on the named page.
--page-id <page-id> Limit analysis to nodes on the page with this stable ID.
--document-id <document-id> Target Knighn document/tab ID when connected to the running app.
--type <type> Comma-separated node types to analyze, e.g. FRAME,TEXT.
--limit <limit> Maximum overlap findings to show. 100
--json Output as JSON.