Giter Club home page Giter Club logo

suitcss-suit's Introduction

This repository is a mirror of the component module suitcss/suit. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/suitcss-suit. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.

SUIT CSS

CSS for building self-contained, composable, configurable UI components.

SUIT CSS aims to provide a reliable and testable styling solution for component-oriented approaches to web application development. It provides some pre-authored utilities and components, but using them is not required.

Documentation.

Installation

It's suggested that you depend on individual packages as and when you need them, however, you can install the standard library if you prefer.

Features

  • Simple methodology. Read the documentation.
  • Clear relationship between HTML and CSS.
  • Scope styles to the component they're intended for.
  • Utilities provide structural and component-independent traits.
  • Theming support is available via a limited subset of W3C-spec style variables.
  • Pick-and-choose pre-rolled utilities and structural components.
  • Supporting tools.

CSS 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 Component or npm.

You can also download pre-built bundles to try things out without setting up a build process:

Complementary tools

Tools that work well with SUIT when building applications.

Plays well with…

Example

HTML:

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

CSS:

/** @define Excerpt */

/**
 * Content excerpts. Agnostic of image size, and with a clear call to action.
 */

:root {
  var-padding-Excerpt: 20px;
  var-border-color-Excerpt-thumbnail: #000;
}

.Excerpt {
  padding: var(padding-Excerpt);
}

.Excerpt-thumbnail {
  border: 2px solid var(border-color-Excerpt-thumbnail);
  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;
}

Development

Install Node (comes with npm).

npm install

To generate a build:

npm run build

Browser support

  • Chrome
  • Opera
  • Firefox
  • Safari 6+
  • Internet Explorer 8+

suitcss-suit's People

Contributors

airportyh avatar antontrollback avatar donnieberg avatar jakebresnehan avatar leevigraham avatar necolas avatar simonsmith avatar

Watchers

 avatar  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.