Git Product home page Git Product logo

suit's Introduction

SUIT

An HTML/CSS framework for creating loosely coupled UI components.

SUIT also provides a collection of small, adaptive, structural HTML/CSS modules built using a naming convention inspired by the BEM methodology.

Documentation.

Installation

Features

  • Very small footprint.
  • Scoped components.
  • Individually versioned modules.
  • Consistent class name conventions.
  • Develop components independently of their context (mitigates rule-order issues).
  • Provides common, utility classes.
  • Testing friendly.
  • Responsive friendly.
  • Work more with HTML than CSS.
  • Theme-independence.
  • Designed for teams working on large, changing web sites and applications.
  • Easy to extend and build upon.

Official packages

Each package is stand-alone, contains its own documentation and tests, and is written to follow a common set of naming conventions. Dependencies are best managed using Bower โ€“ a package manager for the web.

Utilities:

Components:

N.B. There is a Yeoman generator for creating SUIT component packages.

Suggested tooling

Example

HTML:

<article class="Excerpt u-cf">
  <img class="Excerpt-thumbnail u-sizeFit" src="{{src}}" alt="">
  <div class="u-sizeFill">
    <h1 class="Excerpt-title u-h3"><a href="{{url}}">{{title}}</a></h1>
    <p class="Excerpt-text">{{description}}</p>
    <span class="Excerpt-readMore">
      <a class="Button Button--secondary">{{button_text}}</a>
    </span>
  </div>
</article>

CSS:

/**
 * Excerpt component
 *
 * @require u-cf
 * @require u-sizeFit
 * @require u-sizeFill
 *
 * <article class="Excerpt u-cf">
 *   <img class="Excerpt-thumbnail u-sizeFit" src="{{src}}" alt="">
 *   <div class="u-sizeFill">
 *     <h1 class="Excerpt-title u-h3">{{title}}</h1>
 *     <p class="Excerpt-text">{{description}}</p>
 *     <span class="Excerpt-readMore">
 *       <a class="Button Button--secondary">{{button_text}}</a>
 *     </span>
 *   </div>
 * </article>
 */

.Excerpt {
  line-height: 1.2857em;
}

.Excerpt-thumbnail {
  border: 2px solid #000;
  border-radius: 3px;
  margin-right: 10px;
}

.Excerpt-title {
  border-bottom: 1px solid #ccc;
  margin: 0 0 15px;
  padding-bottom: 5px;
}

.Excerpt-readMore {
  display: inline-block;
  margin-top: 10px;
}

Browser support

  • Google Chrome (latest)
  • Opera (latest)
  • Firefox 4+
  • Safari 5+
  • Internet Explorer 8+

suit's People

Contributors

necolas avatar antontrollback avatar leevigraham avatar simonsmith avatar donnieberg avatar

Watchers

James Cloos avatar Kelvin Lee 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.