{"id":24833496,"url":"https://github.com/hazae41/labase","last_synced_at":"2026-02-17T12:35:48.614Z","repository":{"id":274113026,"uuid":"921954184","full_name":"hazae41/labase","owner":"hazae41","description":"The Tailwind framework for monochrome apps","archived":false,"fork":false,"pushed_at":"2026-01-26T18:19:45.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-27T06:16:51.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["hazae41"],"patreon":"hazae41"}},"created_at":"2025-01-25T00:04:40.000Z","updated_at":"2026-01-26T18:19:49.000Z","dependencies_parsed_at":"2025-01-25T01:11:25.215Z","dependency_job_id":"cd69ac7d-4cc3-413b-a251-c55b371c99e3","html_url":"https://github.com/hazae41/labase","commit_stats":null,"previous_names":["hazae41/labase"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/hazae41/labase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Flabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Flabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Flabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Flabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/labase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Flabase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29543908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T12:21:34.159Z","status":"ssl_error","status_checked_at":"2026-02-17T12:21:02.057Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-01-31T02:01:43.112Z","updated_at":"2026-02-17T12:35:43.601Z","avatar_url":"https://github.com/hazae41.png","language":"CSS","funding_links":["https://github.com/sponsors/hazae41","https://patreon.com/hazae41"],"categories":["CSS"],"sub_categories":[],"readme":"# LaBase\n\nThe Tailwind framework for monochrome apps\n\n```bash\nnpm i @hazae41/labase\n```\n\n[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/labase)\n\n## Features\n- 100% CSS\n- Made for Tailwind 4.0\n- Easy setup\n\n## Setup\n\n```css\n@import \"../node_modules/@hazae41/labase/src/index.css\";\n```\n\n## Usage\n\n### Text\n\nYou can use `text-default` for a black text in light mode and a white text in dark mode\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"text-default\"\u003e\n    This text will be black in light mode and white in dark mode\n  \u003c/div\u003e\n}\n```\n\nAnd you can use `text-opposite` for a white text in light mode and a black text in dark mode\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"text-opposite\"\u003e\n    This text will be white in light mode and black in dark mode\n  \u003c/div\u003e\n}\n```\n\nYou also have `text-default-contrast` and `text-opposite-contrast` for the same color but with less opacity (e.g. secondary text)\n\n### Background\n\nYou can use `bg-default` for a white background in light mode and a black background in dark mode\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"bg-default\"\u003e\n    This div will be white in light mode and black in dark mode\n  \u003c/div\u003e\n}\n```\n\nAnd you can use `bg-opposite` for a black background in light mode and a white background in dark mode\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"bg-opposite\"\u003e\n    This div will be black in light mode and white in dark mode\n  \u003c/div\u003e\n}\n```\n\nYou have `bg-default-contrast` and `bg-opposite-contrast` for low opacity (e.g. div inside div)\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"bg-default-contrast\"\u003e\n    This div will contrast with its parent\n  \u003c/div\u003e\n}\n```\n\nAnd you have `bg-default-double-contrast` and `bg-opposite-double-contrast` for high opacity (e.g. effect on already contrasted background)\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"bg-default-contrast hover:bg-default-double-contrast\"\u003e\n    This div will contrast with its parent and contrast again on hover\n  \u003c/div\u003e\n}\n```\n\n### Border\n\nYou can use `border-default` and `border-opposite`\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"border-default\"\u003e\n    This div will have a black border in light mode and a white border in dark mode\n  \u003c/div\u003e\n}\n```\n\nAlong with `border-default-contrast` and `border-opposite-contrast`\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"border-default-contrast\"\u003e\n    This div will contrast with its parent \n  \u003c/div\u003e\n}\n```\n\nOn every side\n\n```tsx\nfunction Example() {\n  return \u003cdiv className=\"border-x-contrast\"\u003e\n    This div will only have a border on the left and on the right\n  \u003c/div\u003e\n}\n```\n\n### Divide and outline\n\nThey both have the same classes as `border-*` without the side-specific ones\n\n### Safe padding and margin\n\nYou can use `p-safe` and `m-safe` and their side-specific variants\n\n```tsx\nfunction Example() {\n  return \u003cmain className=\"p-safe\"\u003e\n    This will avoid browser interface\n  \u003c/div\u003e\n}\n```\n\nThis will use the `safe-area-inset-*` value\n\n### Oblong padding and margin\n\nYou can use oblong padding or margin to have more padding or margin on the x-axis than on the y-axis\n\n```tsx\nfunction Example() {\n  return \u003cmain className=\"po-4\"\u003e\n    This will have px-8 and py-4\n  \u003c/div\u003e\n}\n```\n\n### Scrollbars\n\nYou can use `scrollbar-default` and `scrollbar-opposite` to style scrollbars\n\n```tsx\nfunction Example() {\n  return \u003cmain className=\"bg-opposite text-opposite scrollbar-opposite h-[200px] overflow-auto\"\u003e\n    This div will have everything opposite-colored\n  \u003c/div\u003e\n}\n```\n\n### Animations\n\nYou can use animations such as\n\n- `animate-opacity-in` and `animate-opacity-out`\n\n- `animate-scale-in` and `animate-scale-out`\n\n- `animate-flip-in` and `animate-flip-out`\n\n- `animate-opacity-scale-in` and `animate-opacity-scale-in`\n\n- `animate-scale-xy-in` and `animate-scale-xy-out`\n\n- `animate-scale-xywh-in` and `animate-scale-xywh-out`\n\n- `animate-vibrate-loop`\n\n### Dark mode\n\nDark mode is automatic based on system, but you can also force it on a subtree with `data-theme=\"dark\"`\n\n```tsx\nfunction Example() {\n  return \u003cmain className=\"\"\u003e\n    \u003cdiv className=\"bg-default\"\u003e\n      This will depend on the system\n    \u003c/div\u003e\n    \u003cdiv className=\"bg-default\"\n      data-theme=\"dark\"\u003e\n      This will always be dark\n    \u003c/div\u003e\n  \u003c/div\u003e\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Flabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Flabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Flabase/lists"}