Giter VIP home page Giter VIP logo

dress-code's Introduction

Build Status Dependency Status devDependency Status

The Dress Code

The Dress Code is a framework agnostic, atomic design, BEM, style library which is designed for maintainability and modularity.

Quickly create prototypes and sites or apps that work on all devices. See the Demo & Documentation for more details.

Dress Code follows BEM naming convention. Read more about BEM here.

Quick links

Browser Compatibility

Chrome 48+, Firefox 44+, Safari 8+, IE 10+.

Getting Started

Requirements

  • modernizer ~2.8.2 included in the <head> of your web page.

Install

with Bower

bower install dress-code --save

with Npm

npm install dress-code --save

Usage

Include this in your <head>:

<link href="bower_components/dress-code/dist/css/dress-code.min.css" rel="stylesheet">

How to use dress-code SASS

You can compile the dress code by your own using a sass compiler.

@import "node_modules/breakpoint-sass/stylesheets/breakpoint" // this is a required dependency, load this before loading the dress-code
@import "node_modules/dress-code/dist/sass/dress-code" // or bower_components/dress-code/dist/sass/dress-code
@include dc-everything; // output dc-* selectors

the dress-code rely on breakpoint-sass to manage media queries more easily, please be sure that the plugin/scss module is loaded before trying to compile the dress-code stuff.

Compass notes

Note for those using compass. Add this to yours config.rb file:

add_import_path "bower_components"

Then you can import the dress-code like so:

@import "dress-code/dist/sass/dress-code";

Development & Contributing

Developers interested in contributing should read the following guidelines:

Install

Requirements

  • node.js. Make sure your have v0.10 or higher installed before proceeding.
  • bower. Make sure you have bower installed globally with npm, if not, run this command:npm install -g bower
  • Ruby 1.9.3+. If you are using OSX it should be already installed.
  • Sass 3.4.1+. to install: sudo gem install sass
  • scss-lint 0.44.0+ to install: sudo gem install scss_lint

Install

$ git clone https://github.com/zalando/dress-code.git && cd dress-code
$ npm install

Start the local development environment:

$ npm start

To open a new browser window or to pass a value to browserSync open option:

npm start -- --open

Development Environment Features

  • Sass compilation (using node-sass)
  • Sass linting (using scss-lint)
  • CSS Auto-prefixing / Optimization
  • Image optimization
  • Icon Font generator
  • Demo/docs site generator
  • Live preview sever (using BrowserSync)
  • CHANGELOG generator

Build & Deploy

Build distribution:

$ npm run build

The distribution build artifacts output to the dist directory.

Build demo:

$ npm run build:demo

Fabricator builds both a static documentation site and optimized CSS and JS toolkit files.

The demo build artifacts output to the .tmp/.demo directory. This can be deployed to any static hosting environment - no language runtime or database is required.

Deploy demo:

$ npm run deploy:demo

Publish the demo as github-pages website @ https://zalando.github.io/dress-code

License

Copyright 2016 Zalando SE

The Dress Code is released under the MIT license. See LICENSE for details.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

dress-code's People

Contributors

cjhowald avatar dami-gg avatar frontendherodk avatar gabrielhl avatar nagogus avatar rbarilani avatar sambhav-gore avatar xonic avatar

Watchers

 avatar

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.