Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixelass/contour
https://github.com/pixelass/contour
column compound-grid flexbox grid layout material-design material-ui
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pixelass/contour
- Owner: pixelass
- License: mit
- Created: 2021-11-15T10:56:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T20:16:04.000Z (over 2 years ago)
- Last Synced: 2024-10-18T20:28:56.395Z (about 1 month ago)
- Topics: column, compound-grid, flexbox, grid, layout, material-design, material-ui
- Language: TypeScript
- Homepage: https://contour-rust.vercel.app/
- Size: 630 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Contour
[![Issues](https://img.shields.io/github/issues/pixelass/contour?style=for-the-badge)](https://github.com/pixelass/contour/issues)
[![Forks](https://img.shields.io/github/forks/pixelass/contour?style=for-the-badge)](https://github.com/pixelass/contour/network/members)
[![Stars](https://img.shields.io/github/stars/pixelass/contour?style=for-the-badge)](https://github.com/pixelass/contour/stargazers)[![License](https://img.shields.io/github/license/pixelass/contour?style=for-the-badge)](https://github.com/pixelass/contour/blob/main/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](https://material.io/design/layout/responsive-layout-grid.html#columns-gutters-and-margins)
and can be used in [combination with Material-ui](https://contour-rust.vercel.app/?path=/story/examples-with-other-libraries--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](https://mui.com) but the [Grid](https://mui.com/components/grid/#main-content)
implementation doesn't satisfy our expectations.With [v5](https://mui.com/blog/mui-x-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-countFurthermore, 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-flexboxContour 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:
## Next Generation Grid System
| version | description |
|:-------------------------------------------|:--------------------------|
| [![contour react][contour-badge]][contour] | The core components |
| [![contour theme][theme-badge]][theme] | Theming tools |
| [![contour utils][utils-badge]][utils] | Utilities tools and types |
| [![contour hooks][hooks-badge]][hooks] | Hooks to enhance contour |[contour-badge]: https://img.shields.io/npm/v/@contour/react?style=for-the-badge
[theme-badge]: https://img.shields.io/npm/v/@contour/theme?style=for-the-badge
[hooks-badge]: https://img.shields.io/npm/v/@contour/utils?style=for-the-badge
[utils-badge]: https://img.shields.io/npm/v/@contour/hooks?style=for-the-badge
[contour]: https://www.npmjs.com/package/@contour/react
[theme]: https://www.npmjs.com/package/@contour/theme
[utils]: https://www.npmjs.com/package/@contour/utils
[hooks]: https://www.npmjs.com/package/@contour/hooks