Giter Site home page Giter Site logo

macian's Introduction

Screenshot

Macian is a Tachyons-inspired CSS framework. The goal with Macian is to create a lightweight yet versatile CSS framework to simplify the process of creating things for the web and to unify my creations under a set of standards.

Philosophy

Macian (much like Tachyons and other atomic-type CSS frameworks) tries to bridge the gap between HTML and the underlying styles by creating CSS classes that have a 1:1 correlation to the style attributes. For example, instead of having a heading class that applies a font size, font weight, and margins above and below, Macian provides the f1, fw4, and mb3 classes, which set those three styles separately. The benefit is more fine-grain control, less ambiguity as to what class is applying what styles, and less priority conflict between styles.

In addition, class names should be easy to intuit by thinking about the underlying style. If the style has a unit associated with it, like ems or percentages, a number is appended to the class name. Macian uses a hexadecimal numbering system, which has "numbers" from 0 through f, where a = 10, b = 11, c = 12 and so on, with f being the max value. If the style has a string value, like dashes or absolute, then the first letter of that value is appended to the class name.

For example, applying a medium amount of padding to an element is accomplished with the p4 class. Applying the same amount of padding only to the top of an element is accomplished with the pt4 class (padding-top). To apply a border to all sides of an element, apply the ba class. To set the border style to dashed, also apply the bsd class.

Features

  • Mobile-first architecture
  • Golden ditonic typographic scale
  • Small utility classes

Usage

<link rel="stylesheet" href="https://unpkg.com/macian/macian.min.css">

By Avanier and Jake. Licensed under MIT.

Note

This is a fork of Josh's GitLab repo. I have decided to improve this a bit and maintain an npm version as I find it very useful in my own projects especially for rapid prototyping.

macian's People

Contributors

jakofranko avatar joshavanier avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

wh0am1-dev

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.