{"id":13480293,"url":"https://github.com/benface/tailwindcss-layout","last_synced_at":"2025-03-27T10:31:18.856Z","repository":{"id":96092770,"uuid":"132368141","full_name":"benface/tailwindcss-layout","owner":"benface","description":"[DEPRECATED] Tailwind CSS plugin to generate layout utilities","archived":true,"fork":false,"pushed_at":"2019-05-13T15:29:53.000Z","size":121,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T02:26:52.172Z","etag":null,"topics":["tailwindcss","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"","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/benface.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":"2018-05-06T19:11:26.000Z","updated_at":"2023-01-28T18:21:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2b0d9f1-7cc7-4d98-ad3c-c2f88e3b1662","html_url":"https://github.com/benface/tailwindcss-layout","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benface","download_url":"https://codeload.github.com/benface/tailwindcss-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826836,"owners_count":20678863,"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":["tailwindcss","tailwindcss-plugin"],"created_at":"2024-07-31T17:00:36.899Z","updated_at":"2025-03-27T10:31:18.555Z","avatar_url":"https://github.com/benface.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# ⛔️ DEPRECATED\n\nTailwind CSS 1.0 (released in May 2019) now includes everything that this plugin used to offer except aspect ratio utilities. Therefore you should be using the smaller, more appropriately named [`tailwindcss-aspect-ratio`](https://github.com/webdna/tailwindcss-aspect-ratio) plugin instead. Thank you!\n\n# Layout Tailwind CSS Plugin\n\n## Installation\n\n```bash\nnpm install tailwindcss-layout\n```\n\n## Usage\n\n```js\n// In your Tailwind CSS config\n{\n  plugins: [\n    require('tailwindcss-layout')({\n      variants: ['responsive'],\n      offset: {\n        'full': '100%',\n      },\n      flexGrow: {\n        '2': '2',\n        '3': '3',\n      },\n      flexShrink: {\n        '2': '2',\n        '3': '3',\n      },\n      order: {\n        '1': '1',\n      },\n      aspectRatio: {\n        '1/2': 1/2,\n        '16/9': 16/9,\n      },\n    }),\n  ],\n}\n```\n\nThis plugin generates the following utilities:\n\n```css\n/* configurable with the \"offset\" option */\n.t-[name] {\n  top: [value];\n}\n.r-[name] {\n  right: [value];\n}\n.b-[name] {\n  bottom: [value];\n}\n.l-[name] {\n  left: [value];\n}\n\n/* configurable with the \"flexGrow\" option */\n.flex-grow-[name] {\n  flex-grow: [value];\n}\n\n/* configurable with the \"flexShrink\" option */\n.flex-shrink-[name] {\n  flex-shrink: [value];\n}\n\n/* configurable with the \"order\" option */\n.order-[name] {\n  order: [value];\n}\n\n/* configurable with the \"aspectRatio\" option */\n.aspect-ratio-16\\/9 {\n  padding-bottom: 56.25%;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenface%2Ftailwindcss-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenface%2Ftailwindcss-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenface%2Ftailwindcss-layout/lists"}