{"id":14990639,"url":"https://github.com/etareduction/clamp-tailwind","last_synced_at":"2026-01-05T11:06:25.321Z","repository":{"id":164199069,"uuid":"491486648","full_name":"etareduction/clamp-tailwind","owner":"etareduction","description":"CLI tool that merges your react/tailwind codebase className's into per-component CSS modules.","archived":false,"fork":false,"pushed_at":"2022-06-08T06:39:54.000Z","size":161,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T18:44:26.366Z","etag":null,"topics":["babel","css","css-modules","cssmodules","react","reactjs","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/etareduction.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":"2022-05-12T11:33:09.000Z","updated_at":"2023-05-19T22:26:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"27e6d961-579c-424c-bcc6-ed0992888e1a","html_url":"https://github.com/etareduction/clamp-tailwind","commit_stats":{"total_commits":30,"total_committers":3,"mean_commits":10.0,"dds":"0.16666666666666663","last_synced_commit":"9531488d0c4cea26dd3758392833dc4a30997f04"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etareduction%2Fclamp-tailwind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etareduction%2Fclamp-tailwind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etareduction%2Fclamp-tailwind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etareduction%2Fclamp-tailwind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etareduction","download_url":"https://codeload.github.com/etareduction/clamp-tailwind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244888468,"owners_count":20526803,"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":["babel","css","css-modules","cssmodules","react","reactjs","tailwindcss"],"created_at":"2024-09-24T14:20:29.498Z","updated_at":"2026-01-05T11:06:20.275Z","avatar_url":"https://github.com/etareduction.png","language":"TypeScript","readme":"## **WARNING!** Currently it overwrites source files, that's intentional. Make sure to save backups!\n\n### How it works:\n\n- Install the CLI tool from NPM registry:\n    ```bash\n    npm i -g clamp-tailwind\n    ```\n\n- Run it providing path to directory that contains `.tsx` source files:\n    ```bash\n    clamp-tailwind path/to/directory\n    ```\n- Such input source code:\n    ```tsx \n    // Button.tsx\n  \n    import type { FC } from 'react'\n    \n    const Button: FC = () =\u003e \u003cdiv className='w-10 h-10 bg-red-900' /\u003e\n    \n    export default Button\n    ```\n    Will result in such output:\n    ```tsx\n    // Button.tsx\n  \n    import styles from './Button.module.css'\n    import type { FC } from 'react'\n    \n    const Button: FC = () =\u003e \u003cdiv className={styles['div']} /\u003e\n    \n    export default Button \n    ```\n    ```css\n    /* Button.module.css */\n  \n    .div {\n        @apply w-10 h-10 bg-red-900;\n    }\n    ```\n---\n\nJest tests included:\n```bash\nnpm test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetareduction%2Fclamp-tailwind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetareduction%2Fclamp-tailwind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetareduction%2Fclamp-tailwind/lists"}