ever… The pain - Hard to test (but not impossible); - Hard to maintain (but not impossible); - Hard to debug; - Lack of conventions; - Lot’s of duplicated code; - Where did I put my reset.css file again? - Not all browsers are made equal!
input[type="checkbox"] { display: block !important; width: 32px !important; height: 32px !important; margin: 0 !important; opacity: 0 !important; } “the easiest way to maintain CSS is to write less of it “ .header { @include header(); &——user { // … } } The goal
how Performance & Maintainability & Easy Learning Curve What? A bower component to ease adoption, update and a fast way to start working on the front-end following Uniplaces’ design language. How? Exposing several sets of SCSS mixins, variables, colour palettes that can and should be used alongside with existing code - this also means little to no unused CSS in output files. Goal? Easy to learn, maintain and scale as well as being a “single source of truth” as well as abstracting design details for commonly used components. Why? Current workflow consists of Bootstrap.css + BucketAdmin.css + Custom CSS - hardly maintainable.
how Performance & Maintainability & Easy Learning Curve What? A bower component to ease adoption, update and a fast way to start working on the front-end following Uniplaces’ design language - using whatever stack we want! How? Exposing several sets of SCSS mixins, variables, colour palettes that can and should be used alongside with existing code - this also means little to no unused CSS in output files. Goal? Easy to learn, maintain and scale as well as being a “single source of truth” as well as abstracting design details for commonly used components. Why? Current workflow consists of Bootstrap.css + BucketAdmin.css + Custom CSS - hardly maintainable.
how Performance & Maintainability & Easy Learning Curve What? A bower component to ease adoption, update and a fast way to start working on the front-end following Uniplaces’ design language - using whatever stack we want! How? Exposing several sets of SCSS mixins, variables, colour palettes that can and should be used alongside with existing code - this also means little to no unused CSS in output files. Goal? Easy to learn, maintain and scale as well as being a “single source of truth” as well as abstracting design details for commonly used components. Why? Current workflow consists of Bootstrap.css + BucketAdmin.css + Custom CSS - hardly maintainable.
how Performance & Maintainability & Easy Learning Curve What? A bower component to ease adoption, update and a fast way to start working on the front-end following Uniplaces’ design language - using whatever stack we want! How? Exposing several sets of SCSS mixins, variables, colour palettes that can and should be used alongside with existing code - this also means little to no unused CSS in output files. Goal? Easy to learn, maintain and scale as well as being a “single source of truth” as well as abstracting design details for commonly used components. Why? Current workflow consists of Bootstrap.css + BucketAdmin.css + Custom CSS - hardly maintainable.
Gzip - Less property duplication; - Extends don’t allow arguments; - Extends don’t work within media queries; - Extends, when nested, can extend unintended code; - Extends group the compiled CSS based on reused declarations, not on how the code is contextually written Sass Mixins vs Extends: The Data - by Shay Howe
projects; - Evolves with you and your team; - Less bloat exported CSS files; - Provides separation of concerns; - As simple to write as CSS / SCSS; - No need to learn other peoples framework; - Works with any web-dev stack; Simpler code already Show me MOAAAR!!! Disadvantages - It’s time consuming at first; - You will (in some cases) re-invent the wheel; - You need to be at the top of your “A-game” to build it.