{"id":18032323,"url":"https://github.com/tmkx/tailwind-bicolor","last_synced_at":"2026-01-22T10:35:52.536Z","repository":{"id":132560480,"uuid":"437572435","full_name":"tmkx/tailwind-bicolor","owner":"tmkx","description":"Auto handle tailwind dark mode color","archived":false,"fork":false,"pushed_at":"2024-09-30T14:39:32.000Z","size":163,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T21:11:36.959Z","etag":null,"topics":["dark","dark-mode","dark-theme","tailwind","tailwindcss","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"https://bicolor.fancier.dev","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/tmkx.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-12-12T14:47:12.000Z","updated_at":"2024-09-30T14:39:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"933918e6-71e1-4ffc-9786-4302d3243e52","html_url":"https://github.com/tmkx/tailwind-bicolor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tmkx/tailwind-bicolor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmkx%2Ftailwind-bicolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmkx%2Ftailwind-bicolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmkx%2Ftailwind-bicolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmkx%2Ftailwind-bicolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmkx","download_url":"https://codeload.github.com/tmkx/tailwind-bicolor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmkx%2Ftailwind-bicolor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28661874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["dark","dark-mode","dark-theme","tailwind","tailwindcss","tailwindcss-plugin"],"created_at":"2024-10-30T10:12:59.567Z","updated_at":"2026-01-22T10:35:52.514Z","avatar_url":"https://github.com/tmkx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwind-bicolor\n\nAuto handle tailwind dark mode color, support `class` and `media`.\n\n```html\n\u003cdiv class=\"bg-white dark:bg-black\"\u003e\u003c/div\u003e\n\u003c!-- Replace with below ↓↓↓ --\u003e\n\u003cdiv class=\"bi:bg-white\"\u003e\u003c/div\u003e\n```\n\n\u003e Tested in tailwind 3.x only.\n\n## Features\n\n- `bg-white` to `bg-black`\n- `bg-slate-50` to `bg-slate-900`\n- `bg-slate-100` to `bg-slate-800`\n- `bg-slate-200` to `bg-slate-700`\n- `bg-slate-300/40` to `bg-slate-600/40`\n- and so on...\n\nFor example:\n\n```html\n\u003cdiv class=\"bi:bg-green-400\"\u003e\u003c/div\u003e\n```\n\nwill generate:\n\n```css\n.bi\\:bg-green-400 {\n  --tw-bg-opacity: 1;\n  /* green-400 */\n  background-color: rgb(74 222 128 / var(--tw-bg-opacity));\n}\n.dark .bi\\:bg-green-400 {\n  /* green-500 */\n  background-color: rgb(34 197 94 / var(--tw-bg-opacity));\n}\n```\n\n## Usage\n\n```javascript\n// tailwind.config.js\nconst { bicolor } = require('tailwind-bicolor');\n\nmodule.exports = {\n  // ...\n  plugins: [bicolor()],\n};\n```\n\nprefix support list:\n\n- bg (background-color)\n- text (color)\n- decoration (text-decoration-color)\n- border (border-color)\n- border-x, border-y, border-t, border-r, border-b, border-l\n- outline (outline-color)\n- accent (accent-color)\n- caret (caret-color)\n- fill\n- stroke\n- shadow\n- ring, ring-offset\n- divide\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmkx%2Ftailwind-bicolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmkx%2Ftailwind-bicolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmkx%2Ftailwind-bicolor/lists"}