Taming CSS in Ember.js Applications
summary
Proposal and demo of an add-on called ember-component-css that auto-generates component-scoped selectors (auto-BEM), exposes Sass mixins as a styling API for encapsulated overrides, and aims for a 1.0 release tied to the Module Unification/new pods RFC. Builds include an auto-generated style guide with live theme editor, a JS module API for shared values, and a responsive table example; goals: prevent global CSS leaks, make add-on styles orderable/customizable, and be forward-compatible with Shadow DOM.
AI-written summary · about
chapters (31)
- 0:00Intro
- 0:43Who likes CSS
- 2:35Ember Component CSS
- 3:35Module Unification RFC
- 4:41Writing CSS
- 7:41Problems with CSS
- 9:28Globals
- 10:53Challenge
- 12:11Refactoring
- 14:47Functions
- 17:45Block Element Modifier
- 18:36Double Dash Naming
- 20:51Minifying selectors
- 24:19encapsulating styling
- 24:38why encapsulation is important
- 25:11what Ember Component CSS should do
- 27:20Ember Component CSS in Ember CLI
- 27:44Blocking Ember Component CSS
- 28:19When can we have it
- 28:52I may not survive
- 29:11Im frustrated
- 32:22Automatic style guides
- 32:46Standard Ember UI
- 33:06Why build a standard UI library
- 34:26Style guide example
- 35:28Component styleable properties
- 36:13Theme Swapping
- 37:56Style Guide
- 39:52Demo
- 40:13Responsive Table
- 40:49Outro
