Git Product home page Git Product logo

style-kit's Introduction

Style Kit

A set of composable CSS modules that provide a solid foundation for starting a new project.

This kit is based on the SUIT CSS methodology including naming convention, style format, and architectural principles.

Basic visual tests are in test/.

Usage

There are several ways to use these modules in your project.

The recommended method is to simply copy each file into your project as necessary and import them in the same fashion as in the example below. This allows changes to be made easily and provides a better reference for developers diving into the stylesheet.

The quick and easy way is to install the entire repository through npm, then import and configure the modules in your stylesheet.

/* import the entire kit */
@import 'style-kit';

/* or pick and choose modules */
@import 'style-kit/lib/grid';
@import 'style-kit/lib/utils/size';

/* configure modules */
@custom-media --utils-size-sm (600px);
@custom-media --utils-size-md (800px);
@custom-media --utils-size-lg (1000px);

:root {
    --Grid-cell-gutter: 24px;
}

Building

Modules will need to be processed with PostCSS and an assortment of PostCSS plugins. The suitcss-preprocessor can be used, or you can setup PostCSS yourself with the build system of your choice.

For an example of a simple build script see test/build.js

The following PostCSS plugins are required:

style-kit's People

Contributors

tbck avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

style-kit's Issues

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.