All rules
Rules in recommended.json are violations of the design-system contract. Suggestions are good practice and only ever warn.
Components
- Component overridesErrorProps, classes and styles a component doesn't allow.systomic/component-overrides
- Required partsErrorComposable components rendered without a part they need.systomic/required-parts
- No conditional overlayError, Quick-fixDialogs and sheets rendered conditionally instead of opened through
open.systomic/no-conditional-overlay - Enforce skeletonWarningLoading content that renders nothing instead of a skeleton.systomic/enforce-skeleton
Motion
- Animation durationWarning, Stylelint, Suggested fixAnimations longer than their element allows.systomic/animation-duration
- Origin-aware scaleError, Stylelint, Quick-fixPopovers and menus that scale in from their center instead of their trigger.systomic/origin-aware-scale
- Animated icon swapWarningTwo icons swapped by a ternary without animation.systomic/animated-icon-swap
- Animated text swapWarning, SuggestionLabels that swap text without animation, so the button jumps in width.systomic/animated-text-swap
- Prefer transitionWarning, Suggestion, StylelintKeyframe animations on drawers, sheets and accordions, which jump when interrupted.systomic/prefer-transition
Styling
- Focus visibleError, Stylelint, Autofix
focus:and:focusinstead offocus-visible.systomic/focus-visible - Hit slopWarning, Stylelint, Suggested fixSmall buttons and controls without a larger hit area.systomic/hit-slop
- Interactive cursorWarning, AutofixClickable elements with a cursor that doesn't match the rest of the product.systomic/interactive-cursor
- Interactive select noneWarning, AutofixClickable elements whose label a double click selects.systomic/interactive-select-none
- Concentric radiusWarning, Stylelint, Suggested fixNested rounded corners that don't share a center.systomic/concentric-radius
- Dropdown scroll paddingWarning, Stylelint, AutofixScrolling selects and menus with padding but no
scroll-padding-block.systomic/dropdown-scroll-padding - No hardcoded valuesWarning, AutofixHardcoded lengths and colors, fixed to the scale.systomic/no-hardcoded-values
- Tabular numbersWarning, Quick-fixElements that only show a number, without tabular figures.systomic/tabular-nums
- Input font sizeWarning, Stylelint, Quick-fixText fields below 16px on phones, which iOS Safari zooms into.systomic/input-font-size
- Max blurWarning, Suggestion, Stylelint, Suggested fixBlur and backdrop blur over 20px, which get expensive to paint.systomic/max-blur
- Prefer dvhWarning, Suggestion, Stylelint, Quick-fix
dvhinstead ofh-screen/100vh.systomic/prefer-dvh