npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

defaults.css

1.2.0

@exah

npmRepoSnykSocket
Downloads:8
$ npm install defaults.css
DailyWeeklyMonthlyYearly

defaults.css

normalize.css extended with opinionated resets & defaults

notable resets:

  • paddings, margins
  • borders in fieldset, iframe
  • spacing after audio, canvas, iframe, img, svg, video elements

defaults:

  • set box-sizing globally to inherit parent value
  • use box-sizing: border-box in html
  • set default font-family to system-ui
  • make inputs, buttons, links to inherit text styles
  • enable font-smoothing by default
  • svg to use currentColor for filling

...and many other, see source code

Install

npm install --save defaults.css

Related

  • normalize.css — A collection of HTML element and attribute style-normalization
  • sanitize.css — The best-practices CSS foundation
  • MiniReset.css — A tiny modern CSS reset
  • reset.css — Eric Meyer's CSS reset

MIT © John Grishin