Decisions about css

Architectural decision records tagged with css

7 decisions
  1. accepted
    Respect 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.

    front-end css javascript accessibility
  2. accepted
    Use Stylelint

    Using Stylelint helps prevent errors and keeps code in a consistent format.

    front-end css
  3. accepted
    Self-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.

    front-end performance javascript css
  4. accepted
    Layer elements deliberately with stacking contexts

    Overlap elements predictably by creating new stacking contexts for z-index values.

    front-end css
  5. accepted
    Use 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.

    front-end css
  6. accepted
    Use SMACSS to organize CSS within projects

    Organizing CSS within projects the same way Drupal organizes its CSS establishes a consistent pattern.

    front-end css
  7. accepted
    Use CSS Logical Properties

    Decoupling styles from a language's writing direction makes them easier to maintain across translations.

    front-end css multilingual

Search Decisions