Skip to content

Instantly share code, notes, and snippets.

@elisechant
Last active December 19, 2015 05:39
Show Gist options
  • Select an option

  • Save elisechant/5905823 to your computer and use it in GitHub Desktop.

Select an option

Save elisechant/5905823 to your computer and use it in GitHub Desktop.
Approach to Foundation Rapid Prototyping Workflow - Mobile first

Initialise Development Environment

  1. New Compass Project
    compass create new-project --require "zurb-foundation" --using foundation

  2. Clone Foundation for reference git clone git@me:zurb/foundation.git temp-framework

  3. Add Project Folder to Chrome Dev Tools "Sources" Tab for fast Web Inspector Development.
    Web Inspector > Workspace > Folders

  4. Configure SASS Development environment variables, config.rb

  • Enable SASS Sourcemaps
    • Line comments
    • compass watch
  1. Import all Foundation defaults

    • _settings.scss
    • JavaScript init $(document).foundation();
  2. Open http://foundation.zurb.com/docs/components/kitchen-sink.html in 2 tabs at desktop and mobile viewports

  3. Other Tools:

Plan iteration

  1. Mark out prototype structure with HTML comments, this is technically the first iteration.

    Super header Header
    logo search
    log in
    social
    /Header

    <!--Navigation-->
    <!--/Navigation-->

    Body
    sidebar
    main
    /Body

    Footer
    sidebar
    main /Footer

Rapid Prototype

  1. Adjust known SASS variables, don't delete defaults, comment out instead
  2. Mobile first. Simplest first. Content has hierarchy
  3. Get semantic markup down, Concatenate Foundation snippets within HTML comments, Focus on Body Content
  4. Move to the Browser "Sources Tab", develop in the browser

Review, Repeat

Optimise

  1. Major and minor breakpoints
  2. Cleaner JS initialisation
  3. Event optimisation
  4. Image handling
  5. Tailor to avoild 'sameliness'

More..

  1. avoid px - use em, rem, percentages
  2. icon fonts
  3. ModerniZer for progressive enhancement - feature detection before browser detection
  4. test continually on real devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment