Build a Better Bootstrap

timgthomas
June 04, 2014

Build a Better Bootstrap

The influence of Twitter's Bootstrap framework is undeniable, but it brings with it a steep learning curve and a great many features the average web app simply doesn't need. In this session, you'll learn how easy it is to build your own web framework from the ground up, so you can tailor it to your—and only your—needs. We'll start with a solid CSS foundation, add on some component scaffolding for your most common use cases, and top it off by discussing how to share your new web framework with your team. Grab your hard hat and come learn how to build a better Bootstrap!

timgthomas

June 04, 2014

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

80 slides
  1. What’s wrong with Bootstrap? ! .panel-default ! > .panel-heading !

    + .panel-collapse ! .panel-body CSS Frameworks Source: cssstats.com
  2. Challenge: Columns .column { box-sizing: border-box; } ! .column-1 {

    width: 10%; } .column-2 { width: 20%; } .column-3 { width: 30%; } .column-4 { width: 40%; } .column-5 { width: 50%; } .column-6 { width: 60%; } .column-7 { width: 70%; } .column-8 { width: 80%; } .column-9 { width: 90%; }
  3. Challenge: Columns $columns: 10; ! @for $col from 1 through

    ($columns - 1) { .column-#{$col} { width: (100% / $columns) * $col; } }
  4. Challenge: Forms input { visibility: hidden; } input:before { /*

    ... */ } input:checked:after { /* ... */ } Cantilever ✔
  5. Visual Style: Global Colors $olive: rgb(183, 195, 114); ! $headings:

    $olive; ! h1 { color: $headings; } ! h2 { color: lighten($headings, 20%); }

More Decks by timgthomas

Other Decks in Design