{"id":16039520,"url":"https://github.com/chillicream/react-rasta","last_synced_at":"2025-03-15T10:30:51.007Z","repository":{"id":30819463,"uuid":"125354774","full_name":"ChilliCream/react-rasta","owner":"ChilliCream","description":"React Rasta is a powerful and flexible grid system for React","archived":false,"fork":false,"pushed_at":"2022-12-08T17:18:21.000Z","size":1321,"stargazers_count":90,"open_issues_count":24,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T00:35:57.251Z","etag":null,"topics":["grid","grid-framework","grid-layout","grid-system","react","styled-components"],"latest_commit_sha":null,"homepage":"https://react-rasta.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChilliCream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-15T11:05:05.000Z","updated_at":"2023-07-13T05:25:01.000Z","dependencies_parsed_at":"2023-01-14T17:45:33.925Z","dependency_job_id":null,"html_url":"https://github.com/ChilliCream/react-rasta","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChilliCream%2Freact-rasta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChilliCream%2Freact-rasta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChilliCream%2Freact-rasta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChilliCream%2Freact-rasta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChilliCream","download_url":"https://codeload.github.com/ChilliCream/react-rasta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243718757,"owners_count":20336589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grid","grid-framework","grid-layout","grid-system","react","styled-components"],"created_at":"2024-10-08T23:05:10.143Z","updated_at":"2025-03-15T10:30:50.197Z","avatar_url":"https://github.com/ChilliCream.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![React Rasta](https://cdn.rawgit.com/ChilliCream/react-rasta-logo/master/img/react-rasta-banner-light.svg)\n\n[![release](https://img.shields.io/github/release/ChilliCream/react-rasta.svg)](https://github.com/ChilliCream/react-rasta/releases) [\n![package](https://img.shields.io/npm/v/react-rasta.svg)](https://www.npmjs.com/package/react-rasta) [![license](https://img.shields.io/github/license/ChilliCream/react-rasta.svg)](https://github.com/ChilliCream/react-rasta/blob/master/LICENSE)\n[![build](https://img.shields.io/circleci/project/github/ChilliCream/react-rasta/master.svg)](https://circleci.com/gh/ChilliCream/react-rasta/tree/master) [![coverage](https://img.shields.io/coveralls/ChilliCream/react-rasta.svg)](https://coveralls.io/github/ChilliCream/react-rasta?branch=master) [![better code](https://bettercodehub.com/edge/badge/ChilliCream/react-rasta)](https://bettercodehub.com/results/ChilliCream/react-rasta) [![code prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\n---\n\n**The most powerful and flexible grid system for _React_**\n\n_React Rasta_ is a 12 column grid system built on top of the _CSS flexbox_ layout and `styled-components`.\n\n## Getting Started\n\nHere you will find all you need to get started quickly.\n\n### Install Package\n\nFirst things first. Install the package `react-rasta` with _yarn_ or _npm_.\n\nWhen using _yarn_ it looks like this.\n\n```powershell\nyarn add react-rasta\n```\n\nAnd when using _npm_ it looks like this.\n\n```powershell\nnpm install react-rasta --save\n```\n\n#### Required Dependencies\n\n_React Rasta_ depends on the following packages which need to be installed manually.\n\n| Package             | Version      |\n| ------------------- | ------------ |\n| `react`             | 16 or higher |\n| `styled-components` | 3 or higher  |\n\n### Code Examples\n\n```tsx\nimport React, {Component} from \"react\";\nimport {Column, Container, Row} from \"react-rasta\";\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cContainer\u003e\n        \u003cRow\u003e\n          \u003cColumn size={3}\u003eLeft\u003c/Column\u003e\n          \u003cColumn size={{xs: 9, md: 3}}\u003eMiddle 1\u003c/Column\u003e\n          \u003cColumn size={{xs: 9, md: 3}}\u003eMiddle 2\u003c/Column\u003e\n          \u003cColumn size={3}\u003eRight\u003c/Column\u003e\n        \u003c/Row\u003e\n      \u003c/Container\u003e\n    );\n  }\n}\n```\n\nBreakpoints (which will end up in media queries) could be redefined via `ThemeProvider`.\n\n```tsx\nimport React, {Component} from \"react\";\nimport {Column, Container, Row, ThemeProvider} from \"react-rasta\";\n\nconst breakpoints = {\n  phone: 0,\n  tablet: 600,\n  desktop: 800,\n};\n\nconst containerWidth = {\n  // do not specify phone here\n  tablet: 560,\n  desktop: 760,\n};\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cThemeProvider theme={{breakpoints, containerWidth}}\u003e\n        \u003cContainer\u003e\n          \u003cRow\u003e\n            \u003cColumn size={3}\u003eLeft\u003c/Column\u003e\n            \u003cColumn size={{phone: 9, tablet: 3}}\u003eMiddle 1\u003c/Column\u003e\n            \u003cColumn size={{phone: 9, tablet: 3}}\u003eMiddle 2\u003c/Column\u003e\n            \u003cColumn size={3}\u003eRight\u003c/Column\u003e\n          \u003c/Row\u003e\n        \u003c/Container\u003e\n      \u003c/ThemeProvider\u003e\n    );\n  }\n}\n```\n\n## Documentation\n\nClick [here](http://react-rasta.com) for the documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillicream%2Freact-rasta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchillicream%2Freact-rasta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillicream%2Freact-rasta/lists"}