{"id":22982866,"url":"https://github.com/neomaxzero/react-klazs","last_synced_at":"2026-04-16T08:32:34.471Z","repository":{"id":119683931,"uuid":"126704841","full_name":"neomaxzero/react-klazs","owner":"neomaxzero","description":":grey_exclamation:Override react CSS classes with ease ","archived":false,"fork":false,"pushed_at":"2018-04-10T02:31:50.000Z","size":970,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T14:35:33.954Z","etag":null,"topics":["classnames","css","css-modules","react"],"latest_commit_sha":null,"homepage":"","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/neomaxzero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-03-25T14:18:25.000Z","updated_at":"2018-04-24T00:19:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d7f471c-e82a-48a0-8967-7aa55230fc25","html_url":"https://github.com/neomaxzero/react-klazs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neomaxzero/react-klazs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2Freact-klazs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2Freact-klazs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2Freact-klazs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2Freact-klazs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neomaxzero","download_url":"https://codeload.github.com/neomaxzero/react-klazs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2Freact-klazs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31877591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["classnames","css","css-modules","react"],"created_at":"2024-12-15T02:33:23.397Z","updated_at":"2026-04-16T08:32:34.452Z","avatar_url":"https://github.com/neomaxzero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch4 align=\"center\" styles=\"font-weight: 200;\"\u003e\n  React\n  \u003cbr\u003e\n  \n  \u003cimg src=\"https://github.com/neomaxzero/react-klazs/blob/master/Klazs-logo.png?raw=true\" alt=\"React-klazs logo\" title=\"klazs logo\" width=\"280\"\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n[![Build Status](https://travis-ci.org/neomaxzero/react-klazs.svg?branch=master)](https://travis-ci.org/neomaxzero/react-klazs)\n[![Coverage Status](https://coveralls.io/repos/github/neomaxzero/react-klazs/badge.svg?branch=master)](https://coveralls.io/github/neomaxzero/react-klazs?branch=master)\n\nOpinionated utility to override CSS Modules.\n\n## Motivation\n\nWhen building truly reusable components, styling is a controversial topic. There are so many ways to do it that if you don't take a decition, a project with different members will reinvent the wheel every single time, or they will just copy the first alternative they found. Defining a constraint is sometimes useful. \n\n\u003e This is the way it worked for us.\n\n## Examples\n\nCool examples can be found [here](https://github.com/neomaxzero/react-klazs/tree/master/src/examples)\n\n\n## Installation\n\n```js\nyarn add react-klazs\n```\n## Usage \n\n```js\n// Paragraph.js\n\nimport klazs from 'react-klazs';\nconst styles = {\n    textPrimary: 'innerText',\n}\nconst Paragraph = props =\u003e {\n  const { children } = props;\n  const myKlazs = klazs(styles, props);\n\n  return \u003cp className={myKlazs.textPrimary}\u003e {children}\u003c/p\u003e;\n};\n\n```\n\nThen you can override all the classes inside your component from the props. \n\n```js\nimport Paragraph from './Paragraph';\n\nconst CoolParagraph = () =\u003e \n    (\u003cParagraph\n      overrideClasses={{\n        textPrimary: \"textImportant\"\n      }}\n    \u003e\n        React Klazs is awesome. Dan abramov and Sophie Bits recomended without even knowing.\n    \u003c/Paragraph\u003e)\n```\n\nThe resulting CSS class for the Component will be the merged css classes for that tag.\n\n# License\n\nMIT Licensed. Copyright (c)  | Neomaxzero.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomaxzero%2Freact-klazs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneomaxzero%2Freact-klazs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomaxzero%2Freact-klazs/lists"}