{"id":24178771,"url":"https://github.com/suryarajendhran/change-css","last_synced_at":"2025-12-31T01:05:13.440Z","repository":{"id":40672300,"uuid":"394866977","full_name":"suryarajendhran/change-css","owner":"suryarajendhran","description":"A library to help modify CSS in all its forms easily.","archived":false,"fork":false,"pushed_at":"2023-10-08T05:36:41.000Z","size":2171,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T02:43:44.805Z","etag":null,"topics":["css","frontend","modify"],"latest_commit_sha":null,"homepage":"https://github.com/suryarajendhran/change-css","language":"JavaScript","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/suryarajendhran.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-11T04:57:25.000Z","updated_at":"2022-11-14T04:21:58.000Z","dependencies_parsed_at":"2025-01-13T05:13:31.028Z","dependency_job_id":"b9f78388-704f-4266-9b48-d3fa97d220c4","html_url":"https://github.com/suryarajendhran/change-css","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suryarajendhran%2Fchange-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suryarajendhran%2Fchange-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suryarajendhran%2Fchange-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suryarajendhran%2Fchange-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suryarajendhran","download_url":"https://codeload.github.com/suryarajendhran/change-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549134,"owners_count":19980476,"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","frontend","modify"],"created_at":"2025-01-13T05:13:23.332Z","updated_at":"2025-12-31T01:05:13.425Z","avatar_url":"https://github.com/suryarajendhran.png","language":"JavaScript","readme":"\u003c!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Thanks again! Now go create something AMAZING! :D\n***\n***\n***\n*** To avoid retyping too much info. Do a search and replace for the following:\n*** suryarajendhran, change-css, SuryaRajendhran, suryarajendhran@outlook.com, Change CSS, A library to help modify css in all it's forms easily.\n--\u003e\n\n\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/suryarajendhran/change-css/Node.js%20CI?style=for-the-badge)\n\u003c!-- [![LinkedIn][linkedin-shield]][linkedin-url] --\u003e\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003c!-- TODO: Add a logo --\u003e\n  \u003c!-- \u003ca href=\"https://github.com/suryarajendhran/change-css\"\u003e\n    \u003cimg src=\"images/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e --\u003e\n\n  \u003ch3 align=\"center\"\u003eChange CSS\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A library to help find, modify and work with css rules easily.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/suryarajendhran/change-css\"\u003e\u003cstrong\u003e« Explore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n\u003c!--     \u003ca href=\"https://github.com/suryarajendhran/change-css\"\u003eView Demo\u003c/a\u003e --\u003e\n    ·\n    \u003ca href=\"https://github.com/suryarajendhran/change-css/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/suryarajendhran/change-css/issues\"\u003eRequest Feature\u003c/a\u003e\n    ·\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003c!-- \u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgements\"\u003eAcknowledgements\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e --\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nSometimes, swapping out classes is not enough so you can instead modify the stylesheets themselves. change-css is a library that can help you do just that. This can be a very easy path to theming a dynamic site, especially if the theme variables are generated through JS.\n\u003c!-- [![Product Name Screen Shot][product-screenshot]](https://example.com)\n\nHere's a blank template to get started:\n**To avoid retyping too much info. Do a search and replace with your text editor for the following:**\n`suryarajendhran`, `change-css`, `SuryaRajendhran`, `suryarajendhran@outlook.com`, `Change CSS`, `A library to help modify css in all it's forms easily.` --\u003e\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nTo add the library to your project\n\n### Prerequisites\n\nThe library has no dependencies, works with plain old HTML/CSS/JS.\n\n### Installation\n\n1. Install the package from npm\n\n   ```sh\n   npm install --save change-css\n   ```\n\n2. Also available as a CDN download.\n\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\n### Usage as an ES6 module\n\n#### Get a CSS Rule\n\nUse getCSSRule() to search your document's stylesheets for a [CSS Rule](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule).\n\n```js\nimport { getCSSRule } from 'change-css';\nconst CSSRule = getCSSRule('.text-base'); \n// Returns a CSSRule if such a rule exists \n// in any of the stylesheets in your document \n// else returns false.\n```\n\n#### Modify a CSS Rule\n\nThe modifyCSSRule() function makes it easier to modify a [CSS Rule](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule) with a single function call.\n\n```js\nimport { modifyCSSRule } from 'change-css';\nmodifyCSSRule('body', { fontFamily: 'Inter' });\n```\n\n### Usage as a CDN script\n\nFrom version 0.3, Change CSS can now be used in the browser environment. Usage example can be found on [codepen](https://codepen.io/suryarajendhran/pen/mdweBYm).\n\n\u003c!-- _For more examples, please refer to the [Documentation](https://example.com)_ --\u003e\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/suryarajendhran/change-css/issues) for a list of proposed features (and known issues).\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nSurya Rajendhran - [@SuryaRajendhran](https://twitter.com/SuryaRajendhran) - suryarajendhran@outlook.com\n\nProject Link: [https://github.com/suryarajendhran/change-css](https://github.com/suryarajendhran/change-css)\n\n\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n## Acknowledgements\n\nThanks to\n* This awesome [guide](https://zellwk.com/blog/publish-to-npm/) about publishing to NPM by [Zell Liew](https://github.com/zellwk).\n\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/suryarajendhran/change-css.svg?style=for-the-badge\n[contributors-url]: https://github.com/suryarajendhran/change-css/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/suryarajendhran/change-css.svg?style=for-the-badge\n[forks-url]: https://github.com/suryarajendhran/change-css/network/members\n[stars-shield]: https://img.shields.io/github/stars/suryarajendhran/change-css.svg?style=for-the-badge\n[stars-url]: https://github.com/suryarajendhran/change-css/stargazers\n[issues-shield]: https://img.shields.io/github/issues/suryarajendhran/change-css.svg?style=for-the-badge\n[issues-url]: https://github.com/suryarajendhran/change-css/issues\n[license-shield]: https://img.shields.io/github/license/suryarajendhran/change-css.svg?style=for-the-badge\n[license-url]: https://github.com/suryarajendhran/change-css/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://linkedin.com/in/suryarajendhran\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuryarajendhran%2Fchange-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuryarajendhran%2Fchange-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuryarajendhran%2Fchange-css/lists"}