Code Monkey home page Code Monkey logo

scratch's Introduction

Φ / Scratch framework

Scratch is CSS framework and methodology to build web, mobile and TV applications with one code base. We have micro modular architecture, so you only choose what you want to take. Using it means to follow some good practices, make everything configurable and easy to change. We have some built-in features as well as some additional modules you may also want to use.

Gitter npm (scoped) David

Scratch provides management system for these fields:

  • Colors
  • Units
  • Responsive breakpoints
  • Typography set
  • Gutters (or gaps)
  • Writing directions
  • Reset

We also have other libraries as modules to enhance its possibilities:

  • Reset - CSS reset for Scratch apps.
  • Grid system - two types of grid system.
  • UI kit - rich library of UI components.
  • Helpers - helper classes to use inline in HTML.
  • Animations - CSS animations and transitions.

They are based on Scratch, and are great examples of using it. You have all separated on npm, or you can use them all together.

Setup

To add Scratch in your dependencies list, run:

yarn add @scratch-css/scratch --save

You need to import it in your CSS file afterwards:

@import '@scratch-css/scratch';

Or, import from node_modules path:

@import '@scratch-css/scratch/index.css';

Try to add this snippet in your CSS just to check if it works:

body { background-color: var(--success) !important; }

Background must be green, is not it?

Visualization

Scratch is not an UI framework, it just gives your a powerful API to build them efficiently. But, as I mentioned above, we also have UI components library on top of Scratch. It is available in this repository. You can install it via npm.

Preprocessors

Right now, I intend to use postcss-present-env based on PostCSS to write tomorrow's CSS today. I believe this is the best environment to write efficient, performant and pure CSS, with no extra stuff and fastest compile time possible. I may add support for LESS and SASS lovers in the future depend on demand.

History

Scratch has a little history. It slowly begun to be developed back in 2011. It was documented on Georgian language and looked like this. The first version on Github was written on LESS. It had built-in UI components, helpers and layout techniques including row-n grid system. Then, I cleaned it up from unnecessary things and decided to divide it by domains. Now, it has became very lightweight and modular framework.

Authors

Sponsors

License

Scratch is MIT licensed.

Contribution

To run a project, you probably need Node.js and NPM installed.

To install dependencies you need to run:

yarn

To run, you can use:

yarn start

For GIT related information, please read instructions at Contributing to Open Source on GitHub.

scratch's People

Contributors

nikoloza avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

revazi

scratch'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.