Code Monkey home page Code Monkey logo

ragrid's Introduction

Getting Started

Why another grid? So the way we talk about the grid, is the same way we code the grid. Check out the demo. None of this xs-col-5 or IbBox W(1/3) or whatever is in fashion, let's use the same speak we do with people, with our machines.

This grid is a bit different, here's why:

  • Columns and rows are intrinsicly sized by default, so they rag like typography (RAGrid.. get it..)
  • It uses the Adobe/Sketch align tool lingo for inspiration
  • Layout is done via attributes instead of classes
  • It offers a strong 12-column base, even though it's trying to inspire you out of extrinsic grid sizing
  • It's not solving everything for you. You'll be bringing your own media queries
  • It's small, you could copy paste it if you wanted
  • No polyfills included, up to your stack to do something if flexbox isn't supported

tldr; easy to talk about set of flexbox grid attributes that opts for the grid items to determine their own size instead of the columns telling them what to be. Be node minimal, move children like designers do layers, and be a box boss. Alignment and distribution are far more powerful than offsets, gutters, and specific column sizes.

npm install ragrid --save-dev
# or
yarn add ragrid

Build

If you are cloning this repo, 2 npm scripts are available for ya:

npm run ragrid # no watch, just convert the stylus
npm run crunch # minify css file for open source use

Contributing

Make a PR =)

Release History

  • 2017-4-09 v1.0.0 Make it easy to use

License

Copyright (c) 2017 Adam Argyle. Licensed under the MIT license.

ragrid's People

Contributors

argyleink avatar

Watchers

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