# Principles

domestic-ui packages existing web standards and well-known patterns. Nothing here is
original. The rules below come from the [WHATWG HTML Living Standard](https://html.spec.whatwg.org/multipage/),
the [W3C CSS specifications](https://www.w3.org/Style/CSS/specs.en.html),
[WCAG 2.2](https://www.w3.org/TR/WCAG22/), the
[ARIA Authoring Practices Guide (APG)](https://www.w3.org/WAI/ARIA/apg/) and
[MDN Web Docs](https://developer.mozilla.org/). Where we had to pick between valid
options, the pick is labeled **Our choice:** with one line saying why.

## Sections

1. [Native element first](https://domestic-ui.odonckers.dev/principles/native-element-first.md)
2. [Agent-friendly by design](https://domestic-ui.odonckers.dev/principles/agent-friendly-by-design.md)
3. [Accessibility baseline: WCAG 2.2 AA](https://domestic-ui.odonckers.dev/principles/accessibility-baseline-wcag-22-aa.md)
4. [Cascade layers](https://domestic-ui.odonckers.dev/principles/cascade-layers.md)
5. [Theming](https://domestic-ui.odonckers.dev/principles/theming.md)
6. [Motion](https://domestic-ui.odonckers.dev/principles/motion.md)
7. [Elevation](https://domestic-ui.odonckers.dev/principles/elevation.md)
8. [Opinions we hold](https://domestic-ui.odonckers.dev/principles/opinions-we-hold.md)
9. [Layout primitives](https://domestic-ui.odonckers.dev/principles/layout-primitives.md)
10. [Web components](https://domestic-ui.odonckers.dev/principles/web-components.md)
11. [Explainers](https://domestic-ui.odonckers.dev/principles/explainers.md)
12. [Tooling](https://domestic-ui.odonckers.dev/principles/tooling.md)
13. [Edges and alignment](https://domestic-ui.odonckers.dev/principles/edges-and-alignment.md)
14. [Design principles](https://domestic-ui.odonckers.dev/principles/design-principles.md)
