{"id":15740777,"url":"https://github.com/jossmac/adjustable","last_synced_at":"2025-07-15T04:35:45.881Z","repository":{"id":57173419,"uuid":"171599498","full_name":"jossmac/adjustable","owner":"jossmac","description":"Adjustable helper utilities for CSS-in-JS","archived":false,"fork":false,"pushed_at":"2019-02-20T04:41:46.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T00:57:46.872Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jossmac.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-02-20T04:15:21.000Z","updated_at":"2023-03-08T03:20:24.000Z","dependencies_parsed_at":"2022-08-24T14:41:15.082Z","dependency_job_id":null,"html_url":"https://github.com/jossmac/adjustable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jossmac/adjustable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jossmac%2Fadjustable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jossmac%2Fadjustable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jossmac%2Fadjustable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jossmac%2Fadjustable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jossmac","download_url":"https://codeload.github.com/jossmac/adjustable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jossmac%2Fadjustable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402833,"owners_count":23759237,"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-10-04T02:40:46.238Z","updated_at":"2025-07-15T04:35:45.859Z","avatar_url":"https://github.com/jossmac.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adjustable\n\n\u003e NOTE: This is not ready for production.\n\nAdjustable is a helper to support Tailwind-style utilities for CSS-in-JS.\n\n### Install\n\n```sh\nyarn add adjustable\n```\n\n### Use\n\n```jsx\nimport { Adjustable, Adjustment } from \"./adjust\";\nimport config from \"./config\";\n\nconst Heading = props =\u003e \u003cAdjustment {...props} /\u003e;\nconst H1 = props =\u003e \u003cHeading as=\"h1\" css={{ fontSize: 24 }} {...props} /\u003e;\nconst H2 = props =\u003e \u003cHeading as=\"h2\" css={{ fontSize: 16 }} {...props} /\u003e;\n\nfunction App() {\n  return (\n    \u003cAdjustable config={config}\u003e\n      \u003cH1 adjust=\"fg-teal\"\u003eTeal colored text\u003c/H1\u003e\n      \u003cH2 adjust=\"ta-center pb-2 pt-2\"\u003e\n        Centered text with padding top and bottom\n      \u003c/H2\u003e\n    \u003c/Adjustable\u003e\n  );\n}\n```\n\n### Config\n\n```js\nconst colors = {\n  ...\n  teal: \"#4dc0b5\",\n};\n\nconst spacing = [\"0\", \"0.5rem\", \"1rem\", \"1.5rem\", \"2rem\"];\n\nexport default {\n\t...\n  backgroundColors: colors,\n  borderRadius: [0, \"0.125rem\", \"0.25rem\", \"0.5rem\", \"50%\"],\n  fontWeight: [300, 400, 700],\n  leading: [1, 1.25, 1.5, 2],\n  margin: spacing,\n  padding: spacing,\n  textColors: colors,\n  tracking: [\"-0.05em\", \"0\", \"0.05em\"],\n  zIndex: [0, 100, 200, 300, 400, 500]\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjossmac%2Fadjustable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjossmac%2Fadjustable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjossmac%2Fadjustable/lists"}