Decisions about css
Architectural decision records tagged with css
-
acceptedRespect prefers-reduced-motion for all animations and transitions
Users with vestibular disorders rely on the prefers-reduced-motion media query to disable or reduce motion that can cause discomfort.
-
acceptedUse Stylelint
Using Stylelint helps prevent errors and keeps code in a consistent format.
-
acceptedSelf-host Third-Party Static Assets
Third-party hosted assets (e.g. web fonts, icon libraries) can lead to performance, privacy, and reliability issues. These include GDPR violations, extra DNS lookups, and outages outside the organization control.
-
acceptedLayer elements deliberately with stacking contexts
Overlap elements predictably by creating new stacking contexts for
z-indexvalues. -
acceptedUse relative units in CSS for resizable content
Using relative units improves accessibility by ensuring that text and content does not overlap when zooming web pages or changing the base font size.
-
acceptedUse SMACSS to organize CSS within projects
Organizing CSS within projects the same way Drupal organizes its CSS establishes a consistent pattern.
-
acceptedUse CSS Logical Properties
Decoupling styles from a language's writing direction makes them easier to maintain across translations.