Guidelines on designing and building UI. Use when working in editor-ui or design-system packages. Triggers for tasks that include refactoring components, styling changes, or feature work.
Comprehensive guide for building, styling, and using components in the frontend.
packages/frontend/@n8n/design-system/src/styleguide/*.mdxrules/web-animation-guidelines.mdrules/web-interface-guidelines.md_tokens.scss or _primitives.scss in
packages/frontend/@n8n/design-system/src/css/. Look up every length, color,
font-size and duration before you write it as a literal. Each spacing token
carries its px value in a comment: --spacing--5xs: 0.125rem; /** 2px **/.
Grep that comment to find the token for a px value. The grep gives one hit for
each token family, so pick the family that matches the property: --spacing--*
for margin and padding, --radius--* for border-radius, --height--* for
height. The styleguide
packages/frontend/@n8n/design-system/src/styleguide/spacing-size.mdx lists the
same scale as a table. The spacing scale starts at 2px, so a small value is not
a reason to hardcode. Hardcode only if the lookup finds no token. Give the
reason in a comment.packages/frontend/@n8n/design-system/src/components. Prefer components that aren't marked @deprecated.color-mix() with explicit percentages.packages/frontend/@n8n/design-system/src/css/mixins/motion.scssUse existing design-system components over creating custom implementations:
N8nSettingsEnableRow. Place it in an N8nSettingsRowGroup, alone or with other rows. It does not have to sit at the top of the page. title and description are required. Bind :enabled and @update:enabled. The parent owns the value. The control is always a small switch, the same size as the other switches on settings screens. Set showPreviewBadge or showEnterpriseReadinessBadge to show those badges beside the title. Use N8nSettingsRow when the action is not a switch.N8nDialogN8nDropdown or N8nSelectN8nButton with iconOnly prop in N8nTooltip. Use N8nIcon and proper aria-label.N8nButton with variant="destructive"var(--background--surface) for white on light mode and "black" on dark modefade-in-up mixin from motion.scss with var(--duration--base)n8n-io/n8n
e405c26
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.