{"id":19670768,"url":"https://github.com/cap-go/tailwindtouno","last_synced_at":"2025-07-18T11:08:44.012Z","repository":{"id":222755202,"uuid":"758293170","full_name":"Cap-go/tailwindtouno","owner":"Cap-go","description":"Convert Tailwind plugin to unocss preset","archived":false,"fork":false,"pushed_at":"2024-02-16T03:08:10.000Z","size":7,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T23:47:07.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Cap-go.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},"funding":{"github":"Cap-go","patreon":null,"open_collective":"capgo","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-02-16T02:07:58.000Z","updated_at":"2024-10-05T23:15:49.000Z","dependencies_parsed_at":"2024-02-16T03:23:21.686Z","dependency_job_id":"b335c5e1-3fcf-4bdf-9ff4-f4284b5f17be","html_url":"https://github.com/Cap-go/tailwindtouno","commit_stats":null,"previous_names":["cap-go/tailwindtouno"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Ftailwindtouno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Ftailwindtouno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Ftailwindtouno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Ftailwindtouno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap-go","download_url":"https://codeload.github.com/Cap-go/tailwindtouno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224142788,"owners_count":17262884,"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-11T17:07:04.731Z","updated_at":"2024-11-11T17:07:05.695Z","avatar_url":"https://github.com/Cap-go.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Cap-go","https://opencollective.com/capgo"],"categories":[],"sub_categories":[],"readme":"  \u003ca href=\"https://capgo.app/\"\u003e\u003cimg src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ch2\u003e\u003ca href=\"https://capgo.app/\"\u003eCheck out: Capgo — Instant updates for Capacitor app\u003c/a\u003e\u003c/h2\u003e\n\u003c/div\u003e\n\n# Tailwind to Unocss\n\nThis is a simple plugin to convert Tailwindcss plugins to Unocss presets.\n\nIt's not perfect, contributions are welcome.\n\n## Installation\n\n```bash\nnpm install --save-dev tailwindtouno\n```\n\n## Usage\n\nThe way tailwind plugins work require to give the unoConfig to the tailwindToUno function.\nThat why the unoConfig is declared before using tailwindToUno function.\nIf you use many tailwind plugins, repeat the 2 last lines for each plugin.\n\n```typescript\nimport { defineConfig, presetAttributify, presetUno } from 'unocss'\n\nimport { pluginToPreset, TailwindColorToUno, TailwindThemeToUno } from 'tailwindtouno';\nimport containerQueries  from 'tailwindcss/container-queries';\nimport { colors } from 'tailwindcss/colors';\n\nconst unoConfig = defineConfig({\n  presets: [\n    presetAttributify({ /* preset options */}),\n    presetUno(),\n  ],\n  theme: {\n    extend: {\n      colors: {\n        ...TailwindColorToUno(colors),\n      },\n      ...TailwindThemeToUno({\n        extend: {\n          screens: {\n            '3xl': '1600px',\n          },\n        },\n      }),\n    }\n  }\n})\nconst presetRes = pluginToPreset('tailwindContainerQueries', containerQueries, unoConfig)\nunoConfig.presets.push(presetRes)\n\nexport default unoConfig\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap-go%2Ftailwindtouno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcap-go%2Ftailwindtouno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap-go%2Ftailwindtouno/lists"}