{"id":14970930,"url":"https://github.com/wallpants/hsl-radix-colors","last_synced_at":"2025-10-26T14:30:37.383Z","repository":{"id":240065762,"uuid":"801294542","full_name":"wallpants/hsl-radix-colors","owner":"wallpants","description":"Radix UI Colors in hsl format for better compatibility with tailwind","archived":false,"fork":false,"pushed_at":"2024-05-24T05:33:50.000Z","size":95,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-08T10:19:08.610Z","etag":null,"topics":["radix-ui-colors","shadcn-ui","tailwind","tailwindcss"],"latest_commit_sha":null,"homepage":"","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/wallpants.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":"2024-05-16T00:39:47.000Z","updated_at":"2024-07-04T19:36:17.000Z","dependencies_parsed_at":"2024-05-16T15:27:41.972Z","dependency_job_id":"74635760-4ddf-4586-8f61-cc13ca7b041c","html_url":"https://github.com/wallpants/hsl-radix-colors","commit_stats":null,"previous_names":["wallpants/radix-colors"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallpants%2Fhsl-radix-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallpants%2Fhsl-radix-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallpants%2Fhsl-radix-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallpants%2Fhsl-radix-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wallpants","download_url":"https://codeload.github.com/wallpants/hsl-radix-colors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219862755,"owners_count":16555951,"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":["radix-ui-colors","shadcn-ui","tailwind","tailwindcss"],"created_at":"2024-09-24T13:44:22.595Z","updated_at":"2025-10-26T14:30:32.067Z","avatar_url":"https://github.com/wallpants.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HSL Radix Colors\n\nThis repo contains CSS files with _Radix Colors_ converted to _hsl_ to support\n[setting opacity in tailwind](https://tailwindcss.com/docs/customizing-colors#using-css-variables)\nlike so:\n\n```html\n\u003cdiv class=\"bg-primary/30\"\u003e\n  \u003ch1\u003eHello world\u003c/h1\u003e\n\u003c/div\u003e\n```\n\nHelpful when using [shadcn/ui](https://ui.shadcn.com/) as they usually style\ncomponents with opacity.\n\nTo get a list of [all colors](https://www.radix-ui.com/colors) visit the\nofficial Radix Colors website.\n\n## Install\n\n```sh\nbun add hsl-radix-colors\n```\n\n## Usage example\n\n### Add colors to _tailwind_\n\n```ts\n// tailwind.config.ts\nimport type { Config } from \"tailwindcss\";\n\nfunction color(cssVar: string) {\n  return `hsl(var(--${cssVar}) / \u003calpha-value\u003e)`;\n}\n\nexport default {\n  content: [\"./app/**/*.{ts,tsx}\"],\n  theme: {\n    extend: {\n      colors: {\n        primary: {\n          DEFAULT: color(\"crimson-11\"),\n          foreground: color(\"crimson-1\"),\n        },\n        secondary: {\n          DEFAULT: color(\"blue-11\"),\n          foreground: color(\"blue-1\"),\n        },\n      },\n    },\n  },\n} satisfies Config;\n```\n\n### Import css files in your _global.css_\n\n```css\n/* global.css */\n@import \"hsl-radix-colors/crimson.css\"; /* both light and dark included */\n@import \"hsl-radix-colors/blue.css\"; /* both light and dark included */\n\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallpants%2Fhsl-radix-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwallpants%2Fhsl-radix-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallpants%2Fhsl-radix-colors/lists"}