{"id":20725637,"url":"https://github.com/lskjs/ratsel","last_synced_at":"2025-07-08T12:41:23.421Z","repository":{"id":42015609,"uuid":"466767705","full_name":"lskjs/ratsel","owner":"lskjs","description":"🧩 Rätsel — flexible styled component library for React","archived":false,"fork":false,"pushed_at":"2025-01-13T09:57:45.000Z","size":8751,"stargazers_count":5,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T12:30:31.040Z","etag":null,"topics":["css-in-js","emotion","lskjs","react","react-components","styled","styled-components","ui-components"],"latest_commit_sha":null,"homepage":"https://lskjs.github.io/ratsel/","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/lskjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-06T14:53:45.000Z","updated_at":"2025-01-13T09:57:49.000Z","dependencies_parsed_at":"2024-11-17T07:16:35.135Z","dependency_job_id":null,"html_url":"https://github.com/lskjs/ratsel","commit_stats":{"total_commits":389,"total_committers":3,"mean_commits":"129.66666666666666","dds":"0.033419023136246784","last_synced_commit":"760801fdc97ce3e455aa6e9533fd77fa1810af5b"},"previous_names":[],"tags_count":119,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Fratsel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Fratsel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Fratsel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Fratsel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lskjs","download_url":"https://codeload.github.com/lskjs/ratsel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250386745,"owners_count":21422026,"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":["css-in-js","emotion","lskjs","react","react-components","styled","styled-components","ui-components"],"created_at":"2024-11-17T04:19:37.689Z","updated_at":"2025-04-23T18:09:09.253Z","avatar_url":"https://github.com/lskjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧩 Rätsel\n\n**Flexible UI components**\n\nRätsel ([German for puzzle/riddle](https://en.wiktionary.org/wiki/R%C3%A4tsel)) is a flexible styled component library for React.\n\n✂️ Partial import of only the required components\n\n🚀 Based on the performant [emotion](https://github.com/emotion-js/emotion) CSS-in-JS library\n\n👀 Docs / UI preview: https://lskjs.github.io/ratsel/\n\n\n### How to use\n1. You must have React version 18 or higher.\n2. Install `@ratsel/core` and any of the selected packages.\n    - Example: `npm i @ratsel/core @ratsel/button`\n3. Connect the theme provider to the root of the application\n    - Example:\n      ```js\n      import { ThemeProvider } from '@ratsel/core';\n      ...\n      return (\n        \u003cThemeProvider\u003e\n          \u003cApp /\u003e\n        \u003c/ThemeProvider\u003e  \n      );\n      ```\n    - You can also override the default theme. You need to pass the theme to the ThemeProvider.\n      - Option 1:\n        ```js\n        const theme = {\n          fonts: {\n            main: 'Helvetica',\n          },\n        };\n\n        \u003cThemeProvider theme={theme}\u003e\n        ```\n      - Option 2:\n        ```js\n        const theme = (parentTheme) =\u003e ({\n          ...parentTheme,\n          ratsel: {\n            ...parentTheme.ratsel,\n            fonts: {\n              main: 'Helvetica',\n            },\n          },\n        });\n\n        \u003cThemeProvider theme={theme}\u003e\n        ```\n4. Use the component you want\n   - Example:\n     ```js\n     import { Button } from '@ratsel/button';\n\n     return (\n       \u003cButton\u003eA coolest button\u003c/Button\u003e\n     );\n     ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flskjs%2Fratsel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flskjs%2Fratsel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flskjs%2Fratsel/lists"}