{"id":20489334,"url":"https://github.com/bustoutsolutions/tailwindcss-container-bleed","last_synced_at":"2025-04-13T16:32:41.258Z","repository":{"id":41328730,"uuid":"342708218","full_name":"bustoutsolutions/tailwindcss-container-bleed","owner":"bustoutsolutions","description":"Tailwind CSS plugin to generate container bleed utilities.","archived":false,"fork":false,"pushed_at":"2021-03-03T18:41:41.000Z","size":663,"stargazers_count":22,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-27T07:21:23.808Z","etag":null,"topics":["tailwindcss"],"latest_commit_sha":null,"homepage":"https://bustoutsolutions.github.io/tailwindcss-container-bleed","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/bustoutsolutions.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}},"created_at":"2021-02-26T21:40:53.000Z","updated_at":"2024-08-28T15:10:49.000Z","dependencies_parsed_at":"2022-08-20T09:40:12.965Z","dependency_job_id":null,"html_url":"https://github.com/bustoutsolutions/tailwindcss-container-bleed","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bustoutsolutions%2Ftailwindcss-container-bleed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bustoutsolutions%2Ftailwindcss-container-bleed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bustoutsolutions%2Ftailwindcss-container-bleed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bustoutsolutions%2Ftailwindcss-container-bleed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bustoutsolutions","download_url":"https://codeload.github.com/bustoutsolutions/tailwindcss-container-bleed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610359,"owners_count":21132924,"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"],"created_at":"2024-11-15T17:12:28.976Z","updated_at":"2025-04-13T16:32:41.239Z","avatar_url":"https://github.com/bustoutsolutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tailwind CSS Container Bleed Plugin\n\nThis plugin generates utilities classes to bleed into container padding and margin at each screen breakpoint.\n\n[View live demo](https://bustoutsolutions.github.io/tailwindcss-container-bleed)\n\n```html\n\u003cmain class=\"container\"\u003e\n  \u003csection class=\"bx-container\"\u003e\n    This element breaks out of the container to the edges of the browser\n    window. Padding is applied so this content will remain inline with other\n    container content.\n  \u003c/section\u003e\n  \u003csection class=\"bx-container-padding\"\u003e\n    This element breaks out of the container padding only. Padding is applied\n    so this content will remain inline with other container content.\n  \u003c/section\u003e\n  \u003c!-- See more utilities in demo --\u003e\n\u003c/main\u003e\n```\n\n## Installation\n\nInstall the plugin from npm:\n\n```sh\n# Using npm\nnpm install --save-dev tailwindcss-container-bleed\n\n# Using Yarn\nyarn add -D tailwindcss-container-bleed\n```\n\nThen add the plugin to your `tailwind.config.js` file:\n\n```js\n// tailwind.config.js\nmodule.exports = {\n  theme: {\n    // ...\n  },\n  plugins: [\n    require('tailwindcss-container-bleed'),\n    // ...\n  ],\n}\n```\n\n## Usage\n\nThis plugin works in conjunction with the native [container](https://tailwindcss.com/docs/container) component and its [horizontal padding options](https://tailwindcss.com/docs/container#horizontal-padding). There are no additional options to be configured in the theme.\n\nThere are, however, a few options that can be configured when the plugin is included:\n\n```js\n// tailwind.config.js\nmodule.exports = {\n  plugins: [\n    require('tailwindcss-container-bleed', {\n      // Defaults\n      rootSelector: ':root',\n      screenWidthVar: '--screen-width',\n      screenWidthDefault: theme('width.screen'),\n      currentScreenVar: '--current-screen',\n      currentScreenDefault: screenWidthDefault,\n      paddingVar: '--container-padding'\n    })\n  ]\n}\n```\n\n**Notes:**\n* Requires Tailwind CSS v1.3+\n* Fully works best when `container.center = true`\n* Relies on CSS custom properties\n\n## Utilities\n\nThe following utility classes are generated. They can also be used with `@apply`.\n\n### Bleed\n\nThe bleed classes are a combination of the respective negative margin and padding utilites below. For example, `.bx-container` is equal to `.-mx-container .px-container`.\n\n```\n.bl-container\n.br-container\n.bx-container\n\n.b-container-padding\n.bl-container-padding\n.br-container-padding\n.bt-container-padding\n.bb-container-padding\n.bx-container-padding\n.by-container-padding\n\n.bl-container-margin\n.br-container-margin\n.bx-container-margin\n```\n\n### Negative Margins\n\n```\n.-ml-container\n.-mr-container\n.-mx-container\n\n.-m-container-padding\n.-ml-container-padding\n.-mr-container-padding\n.-mt-container-padding\n.-mb-container-padding\n.-mx-container-padding\n.-my-container-padding\n\n.-ml-container-margin\n.-mr-container-margin\n.-mx-container-margin\n```\n\n### Padding\n\n```\n.pl-container\n.pr-container\n.px-container\n\n.p-container-padding\n.pl-container-padding\n.pr-container-padding\n.pt-container-padding\n.pb-container-padding\n.px-container-padding\n.py-container-padding\n\n.pl-container-margin\n.pr-container-margin\n.px-container-margin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbustoutsolutions%2Ftailwindcss-container-bleed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbustoutsolutions%2Ftailwindcss-container-bleed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbustoutsolutions%2Ftailwindcss-container-bleed/lists"}