Skip to content

NPM package to apply "box-sizing: border box" globally

License

Notifications You must be signed in to change notification settings

davidcsally/border-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

border-box.css

How to use

NPM

npm i --save border-box.css

Yarn

yarn add border-box.css

Then, in your root application file:

import 'border-box.css'

You will need to use a bundler like webpack that can process css files!

What does it do?

  • Apply box-sizing: border-box to all elements on a page. This makes development more consistent across all browsers.

Really? You made an npm module just for this?

Yes, because I wanted to. NPM is filled with tiny modules. I created this so that I wouldn't forget to write this boilerplate in my projects.

Is this satire on the state of NPM?

Maybe. But it's also a module that does one thing really well!

For more info

This entire package comes from the technique laid out in this excellent article from css-tricks

About

NPM package to apply "box-sizing: border box" globally

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages