{"id":23577363,"url":"https://github.com/imedadel/cattous","last_synced_at":"2025-07-01T13:37:21.130Z","repository":{"id":34840438,"uuid":"184342446","full_name":"imedadel/cattous","owner":"imedadel","description":"CSS in JSX for lazy developers, built using styled-components and styled-system","archived":false,"fork":false,"pushed_at":"2022-12-09T21:45:20.000Z","size":2451,"stargazers_count":41,"open_issues_count":18,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-05T23:14:22.186Z","etag":null,"topics":["css","css-in-js","jsx","rebass","styled-components","styled-system"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cattous","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imedadel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-30T22:56:51.000Z","updated_at":"2024-08-12T15:05:48.000Z","dependencies_parsed_at":"2023-01-15T09:31:12.653Z","dependency_job_id":null,"html_url":"https://github.com/imedadel/cattous","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imedadel%2Fcattous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imedadel%2Fcattous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imedadel%2Fcattous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imedadel%2Fcattous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imedadel","download_url":"https://codeload.github.com/imedadel/cattous/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590632,"owners_count":21772940,"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","css-in-js","jsx","rebass","styled-components","styled-system"],"created_at":"2024-12-26T22:28:57.925Z","updated_at":"2025-05-05T23:14:28.738Z","avatar_url":"https://github.com/imedadel.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/ImedAdel/cattous/master/cattous.svg?sanitize=true\" alt=\"Cattous Logo\" \u003e\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eCattous 🐱\u003c/h1\u003e\n\u003cp align=\"center\"\u003eEasily define your design system and write your CSS using JSX.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n[![Travis][build-badge]][build] [![npm package][npm-badge]][npm] [![Coveralls][coveralls-badge]][coveralls]\n\n\u003c/p\u003e\n\n## How?\n\n1. Import `ThemeProvider` from `styled-components`.\n2. Import `Div`. (Optionally, you can also import `Normalize`, and `NormalizeOpenType`)\n3. Define your theme or import an existing one, like `cattous-tachyons`.\n\nAnd :tada:!\n\n```JS\nimport { ThemeProvider } from \"styled-components\"\nimport Div, { Normalize, NormalizeOpenType } from \"cattous\"\nimport cattousTachyons from \"cattous-tachyons\"\n\nconst Layout = () =\u003e (\n  \u003cThemeProvider theme={cattousTachyons}\u003e\n    \u003cDiv\u003e\n      \u003cDiv fontSize={[0,1,2]} color=\"black\" fontWeight=\"900\" as=\"h1\"\u003eCattous.\u003c/Div\u003e\n      \u003cDiv hover=\"dim\" fontSize=\"24px\" as=\"p\"\u003eA CSS in JSX library for lazy developers\u003c/Div\u003e\n    \u003c/Div\u003e\n  \u003c/ThemeProvider\u003e\n)\n```\n\nIf you would like to add extra styles to `Div`, you can easily use styled-components for that. `as` is used to change the resulting HTML element.\n\n```JS\nconst StyledDiv = styled(Div)`\n  // insert your CSS here\n`\n```\n\nCattous also comes with `Normalize`, `NormalizeOpenType` (by [Kenneth Ormandy](https://github.com/kennethormandy/normalize-opentype.css)), and `Pesticide` for debugging CSS (by [Pesticide](http://pesticide.io/)).\n\n## Why?\n\nI recently became fond of styled-components and I couldn't go back to using a CSS file in my projects. However, and especially for small projects, styled-components slows me down because I have to declare a new variable for every HTML element that I want to style.\n\nRebass and styled-system offered what I wanted, but they were still missing a bunch of CSS properties.\n\nThus, I made Cattous 🐱 to help me get done with styling my side projects as fast as possible. It uses styled-system API and adds all missing CSS properties along with some styling (`cattous-tachyons`).\n\n## What's still missing?\n\nThe project is still under development, although it can be used without any problems.\n\nI am still **improving the source code**, **adding more options for theming**, and **importing known CSS libraries** such as Tachyons (✔), Bootstrap, and TailwindCSS.\n\n## Questions? Suggestions?\n\nYou can find me on Twitter [@Imed_Adel](https://twitter.com/Imed_Adel) or on [Linkedin](https://www.linkedin.com/in/imedadel/).\n\n[build-badge]: https://img.shields.io/travis/ImedAdel/cattous/master.png?style=flat-square\n[build]: https://travis-ci.org/ImedAdel/cattous\n[npm-badge]: https://img.shields.io/npm/v/cattous.png?style=flat-square\n[npm]: https://www.npmjs.org/package/cattous\n[coveralls-badge]: https://img.shields.io/coveralls/ImedAdel/cattous/master.png?style=flat-square\n[coveralls]: https://coveralls.io/github/ImedAdel/cattous\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimedadel%2Fcattous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimedadel%2Fcattous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimedadel%2Fcattous/lists"}