{"id":22202175,"url":"https://github.com/rumkin/stylex","last_synced_at":"2026-04-05T21:33:18.382Z","repository":{"id":47934825,"uuid":"224761760","full_name":"rumkin/stylex","owner":"rumkin","description":"Color palette as dependency","archived":false,"fork":false,"pushed_at":"2021-08-11T18:07:38.000Z","size":82,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T06:30:10.479Z","etag":null,"topics":["colors","css","palette"],"latest_commit_sha":null,"homepage":"https://rumkin.github.io/stylex/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumkin.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-29T02:25:55.000Z","updated_at":"2023-12-18T16:46:29.000Z","dependencies_parsed_at":"2022-08-12T14:32:24.133Z","dependency_job_id":null,"html_url":"https://github.com/rumkin/stylex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fstylex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fstylex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fstylex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fstylex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumkin","download_url":"https://codeload.github.com/rumkin/stylex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377989,"owners_count":20605377,"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":["colors","css","palette"],"created_at":"2024-12-02T16:12:38.585Z","updated_at":"2025-12-30T23:26:08.678Z","avatar_url":"https://github.com/rumkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stylex Colors\n\nVersionable colors for your web app as dependency.\n\nThis package contains colors for stylex design system. It presented\nas CSS, ESM, JSON and UMD. HSL model is used for color values due\nto its human and computation friendliness.\n\n\n## Install\n\n```bash\nnpm i @stylex/colors\n```\n\n## Usage\n\nCSS:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@stylex/colors@v1.3/colors.css\" /\u003e\n\u003cstyle\u003e\n  html {\n    background-color: var(--violet-90);\n    color: var(--pink-40);\n  }\n\u003c/style\u003e\n```\n\n### JS\n\nNode.JS:\n```js\nimport {red, silver} from '@stylex/colors'\n\nred[50] // -\u003e [0, 80, 50]\nsilver[90] // -\u003e [200, 5, 90]\n```\n\nBrowser ESM:\n```html\n\u003cscript type=\"module\"\u003e\nimport {red, green, blue} from 'https://unpkg.com/@styles/colors@v1.3/colors.js'\n\u003c/script\u003e\n```\n\nBrowser UMD:\n```html\n\u003cscript src=\"https://unpkg.com/@styles/colors@v1.3/colors.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Colors\n\nEach color has shades from 5 to 95. Each shade presented as index of lightness.\nCSS names format is `--${COLOR}-${SHADE}`.\n\nColors:\n* red\n* orange\n* yellow\n* green\n* teal\n* blue\n* violet\n* purple\n* pink\n* silver\n* gray\n* rusty\n\n## License\n\nMIT © [Rumkin](https://rumk.in)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fstylex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumkin%2Fstylex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fstylex/lists"}