Giter Site home page Giter Site logo

pixelass / contour Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 645 KB

Home Page: https://contour-rust.vercel.app/

License: MIT License

JavaScript 7.72% Shell 0.16% TypeScript 92.12%
grid layout flexbox material-design material-ui column compound-grid

contour's Introduction

Contour

Contour Logo

Issues Forks Stars

License

Give your App some contour

Contour offers a set of components, hooks and utility functions, that help give your app some contour. We recommend keeping your layout contour at a minimum. If you feel that you have to adjust Contour's core components, then this is either the wrong tool or you're overthinking it.

Contour was built to allow a KISS solution for layout. It closely follows the recommendations of material design and can be used in combination with Material-ui or similar libraries with ease.

Read more about the core values of Contour: https://contour-rust.vercel.app/?path=/story/introduction--page

Why should I use this instead of Material UI's Grid?

We love Material-ui but the Grid implementation doesn't satisfy our expectations.

With v5 Material-ui added a lot of improvements. Contour picked up some beautiful parts of their API, the Grid however still has several disadvantages.

Contour is built for nesting, it inherits valuable information from its ancestor components.
Read more about it here: https://contour-rust.vercel.app/?path=/story/introduction--page#inheritance-of-column-count

Furthermore, contour allows you to switch between grid and flex.
Read more about it here: https://contour-rust.vercel.app/?path=/story/introduction--page#grid-vs-flexbox

Contour has been going through a long process of prototyping. Over ten similar systems taught us how to build the perfect Grid (don't say perfect, it suggests that you gave up on improvement).

The main idea existed long before Material-design existed, and we are happy that some smart people came to the same conclusion as us.

The latest versions of the prototypes are built on css-variables. Due to this, we were able to keep the CSS logic at a minimum. The Core idea was built in only 11 lines of CSS.

Watch a video about the core of this library:

Contour Logo

Next Generation Grid System

version description
contour react The core components
contour theme Theming tools
contour utils Utilities tools and types
contour hooks Hooks to enhance contour

contour's People

Contributors

pixelass avatar

Stargazers

 avatar  avatar

Watchers

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