mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-27 06:45:26 +02:00
1.1 KiB
1.1 KiB
AGENTS.md
Extra information, specific to the frontend codebase. Use this when doing any frontend work.
- When reviewing CSS/SCSS/Vue changes in
@n8n/design-systemoreditor-ui, always usen8n:design-systemskill. - ALWAYS follow the guides in
@n8n/design-system/src/styleguide/*.mdx - PREFER using semantic tokens for styling from
@n8n/design-system/src/css/_tokens.scssor@n8n/design-system/src/css/_primitives.scss. - AVOID using legacy tokens from
@n8n/design-system/src/css/_tokens.legacy.scss - PREFER using existing components from
@n8n/design-systemover creating new ones - Available icon names are in
packages/frontend/@n8n/design-system/src/components/N8nIcon/icons.ts. Use keys fromupdatedIconSetonly —deprecatedIconSetentries must not be used in new code. - Use centralized constants from
@/app/constants/durationsinstead of hardcoding:
import { DEBOUNCE_TIME, getDebounceTime } from '@/app/constants';
useDebounceFn(() => { ... }, getDebounceTime(DEBOUNCE_TIME.INPUT.SEARCH));
Categories: UI, INPUT, API, TELEMETRY, COLLABORATION, CONNECTION.