Upgrade to Pro — share decks privately, control downloads, hide ads and more …

In Search of the Single Source of Truth

jina
May 29, 2014

In Search of the Single Source of Truth

Talk given at DevConFu.

jina

May 29, 2014
Tweet

More Decks by jina

Other Decks in Technology

Transcript

  1. 2012–2013 // Living Style Guide with Sass for Web App

    & Site Github Wiki for iOS & Android
  2. For mobile, changes to colors & sizes were a nightmare

    to update. PHOTOSHOP ⟶"DROPBOX ⟶"WIKI ⟶"☹
  3. 01 // Base HTML elements 02 // Modular components 03

    // Page regions 04 // Layout system
  4. Can the CSS & Style Guide both share the same

    attributes in one single con guration?
  5. colors: - name: hopbush hex: "c69" - name: bouquet hex:

    "b37399" - name: venus hex: "998099" - name: patina hex: "699" - name: nebula hex: "d2e1dd" - name: white hex: "fff" <% data.color.colors.each do |swatch| %> $<%= swatch.name %>: #<%= swatch.hex %>; <% end %> data/color.yml _color.scss.erb
  6. colors: - name: hopbush hex: "c69" - name: bouquet hex:

    "b37399" - name: venus hex: "998099" - name: patina hex: "699" - name: nebula hex: "d2e1dd" - name: white hex: "fff" %ul.swatches - for swatch in data.color.colors %li{class: "swatch-" + swatch.name} %pre %code = "$" + swatch.name %br/ = "#" + swatch.hex data/color.yml _color.haml
  7. 2014 // Living Style Guide & Prototype with Sass &

    Angular as Spec + Living Variables System for All Devices & Platforms
  8. — GUSTAVE FLAUBERT “Be regular and orderly in your life

    so that you may be violent and original in your work.”
  9. T W I T T E R , D R

    I B B B L E , I N STAG RA M , & G I T H U B @jina