1.2.4 • Published 3 months ago

@clairelizbet/primer v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Primer

A starting point for responsive, accessible web design.

npm install @clairelizbet/primer

Purpose

Primer selectively resets some user agent styles, similar to what normalization stylesheets accomplish.

Spacing is applied in a way that adapts to text direction, orientation, and writing mode.

  • All body margins are removed
  • Box sizing is set to border-box
  • The System UI font is applied to the body
  • The System monospace font is applied to preformatted text
  • Paragraph and heading margins are set using margin-block-end

On top of this, Primer provides some baseline accessibility for your site by applying appropriate text styles.

  • Font size and paragraph spacing are set according to WCAG recommendations
  • Apple Dynamic Type is enabled if available

Primer also adds a few carefully chosen adjustments to prevent undesirable browser behavior.

  • A minimum font size of 16px is applied to prevent some browsers (notably, iOS Safari) from zooming inputs
  • The body's min-height is set to 100dvh to avoid bugs with some vertical flex layouts

📋 License

MIT License - Some rights reserved

1.2.4

3 months ago

1.2.3

7 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.0

9 months ago