Coder Social home page Coder Social logo

toolkit.styl's Introduction

toolkit.styl

tachyons.io inspired Atomic css classes in Stylus and CSS3 for fast, mobile-first, prototyping and web design.

Why did I write this in stylus? Also, why didn't I fork tachyons.io?

This is an tiny (1kb gzipped) unopinionated, atomic css library builder.

Enter your own values in src/variables.styl, and compile the library with your projects colors, font-scale, and breakpoints, or use the default.

To Do

This is a work in progress library. API is subject to change whenever I feel like it. I might even make this javascript with a constructor function to compile your defaults. That way, you only have to npm install, and require and init the library with a json of your defaults, rather than compile, and upload your version somewhere. I think that makes way more sense.

The Framework:

.mv-10 applies margin-top: 10; margin-bottom: 10

.mv-10-lg applies margin-top: 10; margin-bottom: 10; to devices with screen size larger than your lg breakpoint 10 is a number in the unit of your specification, px, em, rem etc.

Customize:

Your projects offsts to use for margins, paddings, gutters

$offsets = 0 5 10 20 40 60

Your projects default Border Properties

$border-width = 1
$border-radius = 2px

Your projects default Unit

$unit = 'px'

Your projects breakpoints

$breakpoints = {
  sm: 0,
  lg: 1024
}

Your projects Colors as a name: hex, object.

$colors = {
  black: #000000
}

Your projects font-sizes as a name: font-size, object.

$font-scale = {
  '1': 60,
  '2': 30,
  '3': 20,
  '4': 18,
  '5': 12,
  '6': 10
}

toolkit.styl's People

Contributors

adamseckel avatar

Watchers

James Cloos 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.