{"id":20294216,"url":"https://github.com/teambit/react-tailwind-env","last_synced_at":"2025-04-11T11:42:50.276Z","repository":{"id":44423576,"uuid":"364674634","full_name":"teambit/react-tailwind-env","owner":"teambit","description":"An example of a custom react env with basic support for tailwindcss","archived":false,"fork":false,"pushed_at":"2022-09-17T06:49:25.000Z","size":88,"stargazers_count":9,"open_issues_count":9,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T08:03:20.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/teambit.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}},"created_at":"2021-05-05T18:43:19.000Z","updated_at":"2024-01-09T03:32:18.000Z","dependencies_parsed_at":"2022-08-27T08:02:15.337Z","dependency_job_id":null,"html_url":"https://github.com/teambit/react-tailwind-env","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/teambit%2Freact-tailwind-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Freact-tailwind-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Freact-tailwind-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Freact-tailwind-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teambit","download_url":"https://codeload.github.com/teambit/react-tailwind-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248385958,"owners_count":21094980,"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":[],"created_at":"2024-11-14T15:28:17.655Z","updated_at":"2025-04-11T11:42:50.257Z","avatar_url":"https://github.com/teambit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-tailwind-env\nAn example of a custom bit react env with basic support for tailwindcss\n\nRead docs about [Custom Webpack Config](https://harmony-docs.bit.dev/extending-bit/mutate-webpack-config)\n\nSee the already exported components in [https://bit.dev/shohamgilad/tailwind-test/](https://bit.dev/shohamgilad/tailwind-test/)\n## requirements\nThis repo has recently changed to use new APIs of bit available only from version 0.0.426 or higher.\n\n## run project\n```bash\ngit clone https://github.com/teambit/react-tailwind-env.git\nbit install\nbit compile\nbit install\nbit start\n```\n## export to your own remote scope\nIn case you plan to use it and export components to your own remote scope, I recommend run: \n- `bit init --reset-new` to make all the components new components.\n- Change the default scope, and the relevant import statements.\n- Change the env aspect id in the file `components/envs/tailwind-bit/tailwind-react.aspect.ts`\n\n## components\n### tailwind-react\nA custom env which extend the core react aspect and transform its webpack config to support tailwind css.\nThe env also define a preview runtime, which imports the `styles.css` from the `tailwind-styles` component.\nSee `import '@shohamgilad/tailwind-test.styles.tailwind-styles/dist/styles.css';` in `components/envs/tailwind-bit/tailwind-react.preview.runtime.tsx`\n\n### tailwind-styles\nA simple component to:\n- add the core of tailwind css styles\n- add custom theme for tailwind (spacing) (see `tailwind.config.js`)\n\n### tailwind-button\nA simple button component that uses the tailwind-styles component, and use some tailwind builtin classes\nIt's build using the tailwind-react env described above\n\n### themed-component\nA simple component that demonstrate a usage of custom theme from tailwind config","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteambit%2Freact-tailwind-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteambit%2Freact-tailwind-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteambit%2Freact-tailwind-env/lists"}