{"id":19526437,"url":"https://github.com/ogty/astro-tailwindcss-template","last_synced_at":"2025-02-26T01:45:24.057Z","repository":{"id":59179182,"uuid":"532341607","full_name":"ogty/astro-tailwindcss-template","owner":"ogty","description":"🚀 × 💨 Astro and Tailwind CSS template repository. Icon component creation and unused component deletion functions are available.","archived":false,"fork":false,"pushed_at":"2023-03-07T02:15:03.000Z","size":307,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T09:47:13.555Z","etag":null,"topics":["astro","icons","tailwindcss","template","tools"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/ogty.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":"2022-09-03T18:23:46.000Z","updated_at":"2023-02-23T15:09:16.000Z","dependencies_parsed_at":"2023-01-20T13:31:24.551Z","dependency_job_id":null,"html_url":"https://github.com/ogty/astro-tailwindcss-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogty%2Fastro-tailwindcss-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogty%2Fastro-tailwindcss-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogty%2Fastro-tailwindcss-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogty%2Fastro-tailwindcss-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ogty","download_url":"https://codeload.github.com/ogty/astro-tailwindcss-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240777563,"owners_count":19855857,"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":["astro","icons","tailwindcss","template","tools"],"created_at":"2024-11-11T01:09:51.923Z","updated_at":"2025-02-26T01:45:23.725Z","avatar_url":"https://github.com/ogty.png","language":"Makefile","readme":"\u003ch1 align=\"center\"\u003eAstro × Tailwind CSS Template\u003c/h1\u003e\n\n## 📷 Icon Component Creation\n\nIcons in [Bootstrap Icons](https://icons.getbootstrap.com/) can be easily converted to icon components.\n\n```zsh\n$ make icon name=1-circle\n```\n\nThe `OneCircle.astro` file will be created in `src/components/icons` after executing the above command.\n\nUse `size=1` to set the `size` prop for the icon component.\nUse `color=1` to set the `color` prop for the icon component.\n\n```zsh\n$ make icon name=1-circle size=1\n```\n\n\u003e **Note**  \n\u003e The default value is false with both `size` and `color` being 0\n\nThis command will generate the following file.\n\n**`src/components/icons/OneCircle.astro`**\n\n```astro\n---\nexport interface Props {\n  size: number;\n}\n\nconst { size } = Astro.props;\n---\n\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width={size} height={size} fill=\"currentColor\" class=\"bi bi-1-circle\" viewBox=\"0 0 16 16\"\u003e\n  \u003cpath d=\"M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8Zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0ZM9.283 4.002V12H7.971V5.338h-.065L6.072 6.656V5.385l1.899-1.383h1.312Z\"/\u003e\n\u003c/svg\u003e\n```\n\nBoth `size` and `color` can be used.\n\n```zsh\n$ make icon name=1-circle size=1 color=1\n```\n\n\u003e **Note**  \n\u003e Component extensions and paths can be changed by rewriting `COMPONENT_EXTENSION` and `ICON_PATH` in the Makefile.\n\n## 🗑 Remove modules that have not been called\n\nUnused components can be identified and removed by executing the following commands.\n\nRewrite `IGNORE_DIRS` and `IGNORE_FILES` in `tools/unused` for any directories or files you do not want to include.\n\n```zsh\n$ make unused\n```\n\n### Target extensions\n\nThe target files are written in `TARGET_EXTENSIONS` and by default the following extensions are covered.\n\n\u003cdiv align=\"center\"\u003e\n\n  \u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/main/icons/react.svg\" width=\"12%\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/main/icons/react_ts.svg\" width=\"12%\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/main/icons/astro.svg\" width=\"12%\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/main/icons/svelte.svg\" width=\"12%\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/main/icons/vue.svg\" width=\"12%\" /\u003e\n\n\u003c/div\u003e\n\n- `.jsx`\n- `.tsx`\n- `.astro`\n- `.svelte`\n- `.vue`\n\n## 🌳 Directory structure directly under src\n\n```\nsrc\n├── assets\n│   └── images\n├── components\n│   ├── atoms\n│   ├── icons\n│   ├── molecules\n│   ├── organisms\n│   └── templates\n├── env.d.ts\n├── layouts\n│   └── Layout.astro\n└── pages\n    └── index.astro\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogty%2Fastro-tailwindcss-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogty%2Fastro-tailwindcss-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogty%2Fastro-tailwindcss-template/lists"}