{"id":30176807,"url":"https://github.com/ronmelkhior/tailwindcss-dir","last_synced_at":"2025-08-12T03:09:36.492Z","repository":{"id":56622363,"uuid":"151888534","full_name":"RonMelkhior/tailwindcss-dir","owner":"RonMelkhior","description":"Adds direction (LTR, RTL) variants to your Tailwind project","archived":false,"fork":false,"pushed_at":"2020-10-28T09:37:06.000Z","size":56,"stargazers_count":233,"open_issues_count":8,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T12:54:49.229Z","etag":null,"topics":["css","left-to-right","right-to-left","rtl","tailwind","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RonMelkhior.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-06T22:58:23.000Z","updated_at":"2025-06-27T20:23:35.000Z","dependencies_parsed_at":"2022-08-15T22:10:19.106Z","dependency_job_id":null,"html_url":"https://github.com/RonMelkhior/tailwindcss-dir","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/RonMelkhior/tailwindcss-dir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonMelkhior%2Ftailwindcss-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonMelkhior%2Ftailwindcss-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonMelkhior%2Ftailwindcss-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonMelkhior%2Ftailwindcss-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RonMelkhior","download_url":"https://codeload.github.com/RonMelkhior/tailwindcss-dir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonMelkhior%2Ftailwindcss-dir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269993471,"owners_count":24509028,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","left-to-right","right-to-left","rtl","tailwind","tailwindcss"],"created_at":"2025-08-12T03:09:34.755Z","updated_at":"2025-08-12T03:09:36.474Z","avatar_url":"https://github.com/RonMelkhior.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tailwind Direction\n\n\u003ca href=\"https://www.npmjs.com/package/tailwindcss-dir\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/tailwindcss-dir.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/RonMelkhior/tailwindcss-dir/releases\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/tailwindcss-dir.svg\" alt=\"Latest Release\"\u003e\u003c/a\u003e\n\nTailwind Direction adds a custom `direction` variant to your tailwind project,\nletting you have custom CSS rules for LTR and RTL layouts.\n\n**Note: This package requires Tailwind \u003e= v1.0.1.**\n\n# Getting started\n\nInstall the package via NPM/Yarn.\n\n```bash\n# Yarn\nyarn add tailwindcss-dir --dev\n\n# NPM\nnpm install tailwindcss-dir --save-dev\n```\n\nNow, setup the plugin in your Tailwind config's `plugins` section.\nCurrently the plugin doesn't offer any configuration.\n\n```js\nplugins: [\n\trequire('tailwindcss-dir')(),\n],\n```\n\nFinally, you can use the plugin and add it to modules you want to use it with.\n\n```js\nvariants: {\n\tfloat: ['responsive', 'direction'],\n\tmargin: ['responsive', 'direction'],\n\tpadding: ['responsive', 'direction'],\n},\n```\n\n# Usage\n\nThe plugin adds `ltr` and `rtl` variants to your modules. With the default Tailwind configuration, you can use them like so:\n\n```html\n\u003cdiv class=\"text-green text-2xl ltr:pl-4 rtl:pr-4\"\u003e\n\tHello world.\n\u003c/div\u003e\n```\n\n# License\n\nTailwind Direction is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronmelkhior%2Ftailwindcss-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronmelkhior%2Ftailwindcss-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronmelkhior%2Ftailwindcss-dir/lists"}