Git Product home page Git Product logo

survival-kit's Introduction

The Coding Designer's Survival Kit

A Toolset for Designing Web Sites in the Browser

Tools

  1. A set of starter HTML files to rapidly create a living style guide with most common HTML elements and ui patterns. It's easy to design and style these as is or customize them to your needs. Plus there's a blank page, based on the HTML5 Boilerplate. Fill that with content and it won't be blank anymore.
  2. A set of Sass mixins and patterns.
  3. A flexible and comprehensive Sass workflow that focuses on giving you a ton of tools, but makes very few assumptions on how you'll use them. Keep your css clean and minimal, go mobile first, or build a very custom responsive site.
  4. Your favorite open source javascript libraries. But you don't need them all, all the time. The Survival Kit keeps them in a "side drawer" and you can experiment or use them as you need them.
  5. A set of templates for creating Style Tiles, a very useful tool for conveying design concepts to clients.

Using the Survival Kit

The Survival Kit is a Compass extension. That means that you need to be using Sass and Compass, but you already are, right? It uses the "install" command from Compass to write the html, sass or scss, javascript and other assets into the directories you specify in your Compass configuration file.

Installation

  1. Install Sass and Compass, if you haven't already.
  2. Terminal: gem install survivalkit

For Existing Compass Projects

  1. Add require 'survivalkit' in Compass's config.rb file
  2. Terminal: navigate to your project directory: cd PATH_TO_YOUR_PROJECT
  3. Terminal: compass install survivalkit

For New Compass Projects

  1. Terminal: compass create my_project -r survivalkit -u survivalkit --javascripts-dir js --css-dir css
Note on Sass Warnings

When you first install or compile you may see some Sass warnings in your compiler. like: WARNING on line 4: This selector doesn't have any properties and will not be rendered.

These are compilation warnings, but they're intentional. I set up the sass files with many stub selectors that have no css properties. This way you can fill them in with the values you want, or simply leave them blank. If you leave them blank Sass omits them at compilation, but issues a warning on the assumption that you wanted to add a style there. I don't know of a way to suppress that warning during installation.

Getting Started

I've created an intro screencast and a video podcast about using the Kit while designing in the browser at The Coding Designer I'll be recording a new video soon.

Requirements

Helpful

These Compass extensions (and more) are pretty awesome.

Acknowledgements, Installation, & Documentation

License

Licensed under MIT/GPL.

GPL2 license: http://www.gnu.org/licenses/gpl-2.0.html

MIT license: http://www.opensource.org/licenses/mit-license.php

Except included open source projects:

  • BigText: MIT/GPL
  • Dynamic-Carousel: MIT
  • flexie: MIT
  • flickrbomb: MIT
  • formalize: MIT/GPL
  • FitText: WTFPL license
  • Geared-Scrolling: MIT
  • Lettering.js: WTFPL license
  • PaintbrushJS: MIT
  • Respond: MIT/GPLv2
  • Sticky-Footer-jQuery-Plugin: MIT
  • html5-boilerplate: public domain
  • iSwipe-jQuery-Plugin: MIT
  • infinite-scroll: MIT
  • jquery-lightbox: BSD
  • jquery-ui: MIT/GPL
  • modernizr: BSD/MIT
  • pie: Apache/GPL
  • scrollability: Apache
  • joyride: MIT
  • orbit: MIT
  • reveal: MIT
  • flexslider: MIT
  • fitvids: WTFPL license
  • deorphan: MIT/GPL

survival-kit's People

Contributors

codingdesigner avatar d2s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

survival-kit's Issues

compass create only makes /css and /sass directories

Hello,

I'm completely new to using the command line, Ruby and Github so I have a feeling I'm missing something obvious here. Apologies if this is a really basic question.

I've installed the survivalkit gem successfully and have been trying to create a survival kit based template site via 'compass create'. The command seems to run fine but when I list the files in the target directory I only have the basic Compass /css and /sass directories present. There are no actual files in the directories.

Using 'Compass install survivalkit' on an existing project creates an additional JS directory with a number of sub-directories but, again, no actual files. It also creates the empty sub-directories for the SASS partials and survivalkit.

Do I need to download all of the files from Github and place them in a specific location for the gem to be able to install them? If so, where should I store these files by default.

If the HTML/CSS install should be happening automatically do you think it is my configuration of Ruby/Compass/Sass that is at fault?

I look forward to any help you may be able to provide.

Regards

Dan

Is this repo still alive?

Not trying to make demands. But I noticed that the gem I just installed is quite a bit older than this repo. It creates a project folder with jQuery 1.6, modernizr 2.0 while this repo contains 1.8.2 and 2.6.2 respectively. I did not check any further than this.

I realize that I could upgrade everything myself, but just wanting to know if this is still alive.

TIA,
Robert

EDIT:
The Geared Scrolling submodule failed to download. And the repo homepage shows a 404.

Function color-schemer is missing argument $base-color

I can see that there is already the variable $base-color but I don't know why it's spitting this error out. Also, when I comment out the whole if statement on _colors.scss I get another error:

Function ms is missing argument $base-size.

Though the variable $base-size isn't commented out as well.

A few errors on create?

see this create, just after installing: some properties missing? Perhaps I should be ignoring the warnings?
I'm a real newbe at this stuff so warning worry me :-)

Fetching: survivalkit-0.2.0.gem (100%)
Successfully installed survivalkit-0.2.0
1 gem installed
Installing ri documentation for survivalkit-0.2.0...
Installing RDoc documentation for survivalkit-0.2.0...
tom@tom-Satellite-A105:~/Documents/Sass_comp_test$ compass create survproj -r survivalkit -u survivalkit --javascript-dir js --css-dir css
directory survproj/
directory survproj/css/
directory survproj/js/
directory survproj/js/kit/
directory survproj/js/libs/
directory survproj/js/libs/formalize/
directory survproj/sass/
directory survproj/sass/partials/01-variables/
directory survproj/sass/partials/02-extend/
directory survproj/sass/partials/03-defaults/
directory survproj/sass/partials/03-defaults/markup/
directory survproj/sass/partials/03-defaults/markup/forms/
directory survproj/sass/partials/04-grids/
directory survproj/sass/partials/05-ui-patterns/
directory survproj/sass/partials/05-ui-patterns/drupal/
directory survproj/sass/partials/06-sprites/
directory survproj/sass/partials/07-layout-design/
directory survproj/sass/partials/08-styletile/
directory survproj/sass/partials/09-responsive/
directory survproj/sass/partials/10-media/
directory survproj/sass/partials/11-browser-adjustments/
directory survproj/survivalkit/
directory survproj/survivalkit/formalize/
directory survproj/survivalkit/styletile/
create survproj/config.rb
create survproj/sass/style.scss
create survproj/sass/selectivizr.scss
create survproj/sass/ie.scss
create survproj/sass/partials/01-variables/_all.scss
create survproj/sass/partials/01-variables/_base.scss
create survproj/sass/partials/01-variables/_colors.scss
create survproj/sass/partials/01-variables/_fonts.scss
create survproj/sass/partials/01-variables/_grids-all.scss
create survproj/sass/partials/02-extend/_all.scss
create survproj/sass/partials/02-extend/_typography.scss
create survproj/sass/partials/03-defaults/_all.scss
create survproj/sass/partials/03-defaults/_common.scss
create survproj/sass/partials/03-defaults/_font-face.scss
create survproj/sass/partials/03-defaults/markup/_edits.scss
WARNING on line 4:
This selector doesn't have any properties and will not be rendered.
WARNING on line 46:
This selector doesn't have any properties and will not be rendered.
WARNING on line 48:
This selector doesn't have any properties and will not be rendered.
create survproj/sass/partials/03-defaults/markup/_grouping.scss
create survproj/sass/partials/03-defaults/markup/_headers.scss
create survproj/sass/partials/03-defaults/markup/_images.scss
WARNING on line 16:
This selector doesn't have any properties and will not be rendered.
WARNING on line 37:
This selector doesn't have any properties and will not be rendered.
WARNING on line 42:
This selector doesn't have any properties and will not be rendered.
WARNING on line 44:
This selector doesn't have any properties and will not be rendered.
WARNING on line 70:
This selector doesn't have any properties and will not be rendered.
WARNING on line 77:
This selector doesn't have any properties and will not be rendered.
WARNING on line 79:
This selector doesn't have any properties and will not be rendered.
WARNING on line 81:
This selector doesn't have any properties and will not be rendered.
WARNING on line 83:
This selector doesn't have any properties and will not be rendered.
WARNING on line 85:
This selector doesn't have any properties and will not be rendered.
create survproj/sass/partials/03-defaults/markup/_semantics.scss
WARNING on line 34:
This selector doesn't have any properties and will not be rendered.
WARNING on line 36:
This selector doesn't have any properties and will not be rendered.
WARNING on line 38:
This selector doesn't have any properties and will not be rendered.
WARNING on line 40:
This selector doesn't have any properties and will not be rendered.
WARNING on line 42:
This selector doesn't have any properties and will not be rendered.
WARNING on line 44:
This selector doesn't have any properties and will not be rendered.
WARNING on line 46:
This selector doesn't have any properties and will not be rendered.
WARNING on line 48:
This selector doesn't have any properties and will not be rendered.
create survproj/sass/partials/03-defaults/markup/_tables.scss
create survproj/sass/partials/03-defaults/markup/forms/_form-defaults.scss
create survproj/sass/partials/03-defaults/markup/forms/_formalize.scss
create survproj/sass/partials/04-grids/_grids-blueprint.scss
create survproj/sass/partials/04-grids/_grids-susy.scss
create survproj/sass/partials/05-ui-patterns/_common.scss
create survproj/sass/partials/05-ui-patterns/drupal/_ui-patterns.scss
create survproj/sass/partials/06-sprites/_sprites.scss
create survproj/sass/partials/07-layout-design/_layout.scss
create survproj/sass/partials/07-layout-design/_design.scss
WARNING on line 72:
This selector doesn't have any properties and will not be rendered.
create survproj/sass/partials/08-styletile/_tile-design.scss
create survproj/sass/partials/08-styletile/_tile-layout.scss
create survproj/sass/partials/09-responsive/_responsive-blueprint.scss
create survproj/sass/partials/09-responsive/_responsive-susy.scss
create survproj/sass/partials/10-media/_print.scss
create survproj/sass/partials/11-browser-adjustments/_ie.scss
create survproj/sass/partials/11-browser-adjustments/_modernizr.scss
create survproj/sass/partials/11-browser-adjustments/_selectivizr.scss
create survproj/index.html
create survproj/404.html
create survproj/survivalkit/index.html
create survproj/survivalkit/elements-common.html
create survproj/survivalkit/elements-html5.html
create survproj/survivalkit/elements-ui-patterns-drupal.html
create survproj/survivalkit/elements-ui-patterns.html
create survproj/survivalkit/elements-typography.html
create survproj/survivalkit/styletile/styletile.html
create survproj/survivalkit/formalize/formalize_jquery_demo.html
create survproj/survivalkit/formalize/formalize_jquery_disabled.html
create survproj/survivalkit/formalize/formalize_jquery_errors.html
create survproj/.htaccess
create survproj/crossdomain.xml
create survproj/robots.txt
create survproj/humans.txt
create survproj/apple-touch-icon.png
create survproj/favicon.ico
create survproj/js/kit/kit-source.jquery.js
create survproj/js/script.js
create survproj/js/libs/formalize/prototype.formalize.js
create survproj/js/libs/formalize/extjs.formalize.js
create survproj/js/libs/formalize/dojo.formalize.js
create survproj/js/libs/formalize/jquery.formalize.js
create survproj/js/libs/formalize/yui.formalize.js
create survproj/js/libs/formalize/mootools.formalize.js
create survproj/js/libs/dd_belatedpng.js
create survproj/js/libs/jquery-1.6.js
create survproj/js/libs/respond.min.js
create survproj/js/libs/selectivizr.js
create survproj/js/libs/jquery-1.6.min.js
create survproj/js/libs/modernizr-2.0.min.js
create survproj/js/libs/mootools-core-1.3.1-full-compat-yc.js
create survproj/js/libs/plugins.js
create survproj/css/style.css
create survproj/css/ie.css
create survproj/css/selectivizr.css


Congratulations! Your compass project has been created.

You may now add and edit sass stylesheets in the sass subdirectory of your project.

Sass files beginning with an underscore are called partials and won't be
compiled to CSS, but they can be imported into other sass stylesheets.

You can configure your project by editing the config.rb configuration file.

You must compile your sass stylesheets into CSS when they change.
This can be done in one of the following ways:

  1. To compile on demand:
    compass compile [path/to/project]
  2. To monitor your project for changes and automatically recompile:
    compass watch [path/to/project]

More Resources:

You've installed The Coding Designer's Survival Kit. Good for you!

To import your new stylesheets add the following lines of HTML (or equivalent) to your webpage:

tom@tom-Satellite-A105:~/Documents/Sass_comp_test$

Installation Warnings different then that outlined in documentation

Works great, but I get a different error then what's outlined in the documentation. And looking at it that error might include the solution to suppressing those error messages on install?

I'm running:

sass-3.2.0.alpha.277
compass-0.12.2

--Warning Output--

WARNING on line 26 of /_work/BLG-DEE_ux_planning/_website/blg/sass/partials/03-extend/_typography.scss: "%allcaps" failed to @extend ".caps".
The selector ".caps" was not found.
This will be an error in future releases of Sass.
Use "@extend .caps !optional" if the extend should be able to fail.

WARNING on line 35 of /_work/BLG-DEE_ux_planning/_website/blg/sass/partials/03-extend/_typography.scss: "%smallcaps" failed to @extend ".caps".
The selector ".caps" was not found.
This will be an error in future releases of Sass.
Use "@extend .caps !optional" if the extend should be able to fail.

create blg/css/style.css
create blg/css/survivalkit/drupal7.css
WARNING on line 55 of /Users/aidanfoster/.rvm/gems/ruby-1.9.2-p318@blg/gems/survivalkit-0.3.4/stylesheets/survivalkit/survival_kit/_survival-kit.sass:
This selector doesn't have any properties and will not be rendered.
WARNING on line 17 of /Users/aidanfoster/.rvm/gems/ruby-1.9.2-p318@blg/gems/survivalkit-0.3.4/stylesheets/survivalkit/extend/_sticky-footer.sass: "%row-expand" failed to @extend ".row".
The selector ".row" was not found.
This will be an error in future releases of Sass.
Use "@extend .row !optional" if the extend should be able to fail.

WARNING on line 26 of /_work/BLG-DEE_ux_planning/_website/blg/sass/partials/03-extend/_typography.scss: "%allcaps" failed to @extend ".caps".
The selector ".caps" was not found.
This will be an error in future releases of Sass.
Use "@extend .caps !optional" if the extend should be able to fail.

WARNING on line 35 of /_work/BLG-DEE_ux_planning/_website/blg/sass/partials/03-extend/_typography.scss: "%smallcaps" failed to @extend ".caps".
The selector ".caps" was not found.
This will be an error in future releases of Sass.
Use "@extend .caps !optional" if the extend should be able to fail.

WARNING on line 112 of /Users/aidanfoster/.rvm/gems/ruby-1.9.2-p318@blg/gems/survivalkit-0.3.4/stylesheets/survivalkit/survival_kit/_survival-kit.sass: "body.survival-kit div.element .example .markup + .show-source" failed to @extend ".mono".
The selector ".mono" was not found.
This will be an error in future releases of Sass.
Use "@extend .mono !optional" if the extend should be able to fail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.