{"id":13759224,"url":"https://github.com/benface/tailwindcss-triangles","last_synced_at":"2025-05-10T09:32:14.357Z","repository":{"id":40827535,"uuid":"171185074","full_name":"benface/tailwindcss-triangles","owner":"benface","description":"Tailwind CSS plugin to generate custom triangle components","archived":false,"fork":false,"pushed_at":"2023-01-06T01:39:25.000Z","size":1092,"stargazers_count":29,"open_issues_count":19,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-30T09:39:31.965Z","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":"isc","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":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-17T23:36:43.000Z","updated_at":"2023-05-04T12:35:11.000Z","dependencies_parsed_at":"2023-02-05T01:40:12.354Z","dependency_job_id":null,"html_url":"https://github.com/benface/tailwindcss-triangles","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-triangles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-triangles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-triangles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Ftailwindcss-triangles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benface","download_url":"https://codeload.github.com/benface/tailwindcss-triangles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224940837,"owners_count":17395766,"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-08-03T13:00:49.211Z","updated_at":"2024-11-16T16:30:37.891Z","avatar_url":"https://github.com/benface.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# [BLACK LIVES MATTER](https://blacklivesmatters.carrd.co)\n\n### Be aware. Be angry. Do better. Demand change. Show your support any way you can. Click on the link above to find protests, petitions, and other ways to help. DO NOT LET IT GO SILENT.\n\n# Triangles Plugin for Tailwind CSS\n\n## Requirements\n\nThis plugin requires Tailwind CSS 1.5 or later. If your project uses an older version of Tailwind, you should install the latest 2.x version of this plugin (`npm install tailwindcss-triangles@2.x`).\n\n## Installation\n\n```bash\nnpm install tailwindcss-triangles\n```\n\n## Usage\n\n```js\n// tailwind.config.js\nmodule.exports = {\n  theme: {\n    triangles: { // defaults to {}\n      'left': {\n        direction: 'left',      // one of 'left', 'right', 'up', 'down', 'left-up', 'left-down', 'right-up', and 'right-down'\n        size: '1em',            // defaults to defaultSize\n        height: '0.5em',        // defaults to half the size; has no effect on the diagonal directions (e.g. 'left-up')\n        color: 'currentColor',  // defaults to defaultColor\n      },\n    },\n  },\n  variants: {\n    triangles: ['responsive'], // defaults to []\n  },\n  plugins: [\n    require('tailwindcss-triangles')({\n      componentPrefix: 'c-',        // defaults to 'c-'\n      defaultSize: '1em',           // defaults to '1em'\n      defaultColor: 'currentColor', // defaults to 'currentColor'\n    }),\n  ],\n};\n```\n\nThe above configuration would generate the following CSS:\n\n```css\n.c-triangle-left {\n  width: 0;\n  height: 0;\n  border: 0;\n  border-right: .5em solid currentColor;\n  border-top: .5em solid transparent;\n  border-bottom: .5em solid transparent;\n}\n\n@media (min-width: 640px) {\n  .sm\\\\:c-triangle-left {\n    width: 0;\n    height: 0;\n    border: 0;\n    border-right: .5em solid currentColor;\n    border-top: .5em solid transparent;\n    border-bottom: .5em solid transparent;\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenface%2Ftailwindcss-triangles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenface%2Ftailwindcss-triangles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenface%2Ftailwindcss-triangles/lists"}