{"id":16438929,"url":"https://github.com/iliyazelenko/tailwindcss-vue","last_synced_at":"2025-02-25T22:24:44.439Z","repository":{"id":96387540,"uuid":"189894287","full_name":"iliyaZelenko/tailwindcss-vue","owner":"iliyaZelenko","description":"The package makes it easy to use the Tailwind CSS with Vue.","archived":false,"fork":false,"pushed_at":"2024-02-28T14:16:39.000Z","size":180,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T11:50:06.721Z","etag":null,"topics":["css","helpers","tailwind","tailwind-css","tailwindcss","tools","vue"],"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/iliyaZelenko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-06-02T20:54:42.000Z","updated_at":"2024-02-28T14:16:43.000Z","dependencies_parsed_at":"2024-11-10T22:39:49.057Z","dependency_job_id":"2b222358-aba2-4a1f-a531-5da4942f3f2c","html_url":"https://github.com/iliyaZelenko/tailwindcss-vue","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/iliyaZelenko%2Ftailwindcss-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliyaZelenko%2Ftailwindcss-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliyaZelenko%2Ftailwindcss-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliyaZelenko%2Ftailwindcss-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iliyaZelenko","download_url":"https://codeload.github.com/iliyaZelenko/tailwindcss-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240756169,"owners_count":19852525,"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","helpers","tailwind","tailwind-css","tailwindcss","tools","vue"],"created_at":"2024-10-11T09:07:05.634Z","updated_at":"2025-02-25T22:24:44.404Z","avatar_url":"https://github.com/iliyaZelenko.png","language":"TypeScript","readme":"  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/tailwindcss-vue\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/v/tailwindcss-vue.svg\" alt=\"Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/tailwindcss-vue\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/dm/tailwindcss-vue.svg\" alt=\"Downloads\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/tailwindcss-vue\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/l/tailwindcss-vue.svg\" alt=\"License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://circleci.com/gh/iliyaZelenko/tailwindcss-vue\"\u003e\n      \u003cimg src=\"https://circleci.com/gh/iliyaZelenko/tailwindcss-vue.svg?style=svg\" alt=\"CircleCI Build Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://lgtm.com/projects/g/iliyaZelenko/tailwindcss-vue/context:javascript\"\u003e\n      \u003cimg alt=\"Language grade: JavaScript\" src=\"https://img.shields.io/lgtm/grade/javascript/g/iliyaZelenko/tailwindcss-vue.svg?logo=lgtm\u0026logoWidth=18\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://standardjs.com/\"\u003e\n      \u003cimg alt=\"standard code style\" src=\"https://badgen.net/badge/code%20style/standard/f2a\" /\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\nThe package makes it easy to use the [Tailwind CSS](https://tailwindcss.com/) with Vue.\n\nWithout this package:\n\n```vue\n\u003cdiv class=\"bg-red-500 hover:bg-purple hover:text-white sm:bg-green-500 md:bg-blue-500 md:w-3/4 lg:bg-pink-500 lg:w-2/4 xl:bg-teal-500 xl:w-1/4\"\u003e\n  Text\n\u003c/div\u003e\n```\n\nWith this package:\n\n```vue\n\u003cdiv\n  :class=\"$tailwind({\n    default: 'bg-red-500',\n    hover: 'bg-purple text-white',\n    sm: 'bg-green-500',\n    md: 'bg-blue-500 w-3/4',\n    lg: 'bg-pink-500 w-2/4',\n    xl: 'bg-teal-500 w-1/4'\n  })\"\n\u003e\n  Text\n\u003c/div\u003e\n```\n\n## Installation\n\n```\nyarn add tailwindcss-vue\n# Or \nnpm install tailwindcss-vue\n```\n\n## Get started\n\n1) Add `Vue.use` for the plugin.\n\n```js\nimport { TailwindCssVue } from 'tailwindcss-vue'\n\nVue.use(TailwindCssVue)\n```\n\n2) Use `$tailwind` in your components. Here is a complete example:\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cdiv\n      :class=\"$tailwind({\n        default: 'bg-red-500',\n        hover: 'bg-purple text-white',\n        sm: 'bg-green-500',\n        md: 'bg-blue-500 w-3/4',\n        lg: 'bg-pink-500 w-2/4',\n        xl: 'bg-teal-500 w-1/4'\n      })\"\n    \u003e\n      Text\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\nThere is another use case with the script tag (CDN version of package):\n\n```html\n\u003cscript src=\"https://unpkg.com/tailwindcss-vue\"\u003e\u003c/script\u003e\n```\n\nOr\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/tailwindcss-vue\"\u003e\u003c/script\u003e\n```\n\n## Write your suggestions for improvement, I will be glad to read!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiyazelenko%2Ftailwindcss-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filiyazelenko%2Ftailwindcss-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiyazelenko%2Ftailwindcss-vue/lists"}