Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 3.29 KB

File metadata and controls

60 lines (50 loc) · 3.29 KB

CONTRIBUTOR-DOCS / Style guide

Style guide

Beneath this doc

This section covers the coding conventions and authoring patterns used across Spectrum Web Components. Following these guides keeps the codebase consistent, reviewable, and accessible.

  • 2nd-gen CSS — Property ordering, class naming, custom properties, selector patterns, and forced-colors requirements for component stylesheets.
  • 2nd-gen TypeScript — File organization, class structure, decorators, JSDoc, type definitions, naming, and composition patterns for component TypeScript.
  • Linting tools — How automated linting enforces these conventions and how to configure or extend the rules.