{"id":18365392,"url":"https://github.com/le0pard/storybook-addon-root-attribute-demo","last_synced_at":"2026-05-06T18:35:51.993Z","repository":{"id":40746203,"uuid":"193239421","full_name":"le0pard/storybook-addon-root-attribute-demo","owner":"le0pard","description":"Demo for storybook-addon-root-attribute","archived":false,"fork":false,"pushed_at":"2023-01-07T04:12:44.000Z","size":1646,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T20:15:52.564Z","etag":null,"topics":["css","html","library","storybook","storybook-addon"],"latest_commit_sha":null,"homepage":"https://storybook-addon-root-attribute.leopard.in.ua","language":"JavaScript","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/le0pard.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}},"created_at":"2019-06-22T13:52:45.000Z","updated_at":"2021-12-11T00:09:57.000Z","dependencies_parsed_at":"2023-02-06T11:30:45.273Z","dependency_job_id":null,"html_url":"https://github.com/le0pard/storybook-addon-root-attribute-demo","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/le0pard%2Fstorybook-addon-root-attribute-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le0pard%2Fstorybook-addon-root-attribute-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le0pard%2Fstorybook-addon-root-attribute-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le0pard%2Fstorybook-addon-root-attribute-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/le0pard","download_url":"https://codeload.github.com/le0pard/storybook-addon-root-attribute-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225664,"owners_count":21068078,"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":["css","html","library","storybook","storybook-addon"],"created_at":"2024-11-05T23:13:20.651Z","updated_at":"2026-05-06T18:35:46.973Z","avatar_url":"https://github.com/le0pard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo repo for [Storybook-addon-root-attribute](https://github.com/le0pard/storybook-addon-root-attribute)\n\n## Deploy\n\nRun:\n\n```bash\n$ yarn\n$ yarn run deploy-storybook\n```\n\n## How demo works\n\nAll \"magic\" inside css file:\n\n```css\n:root {\n  --baseColor: #657b83;\n  --bgColor: #fdf6e3;\n  --headsColor: #eee8d5;\n  --commentColor: #93a1a1;\n  --linkColor: #b58900;\n  --linkHoverColor: #cb4b16;\n}\n\n:root.dark {\n  --baseColor: #839496;\n  --bgColor: #002b36;\n  --headsColor: #073642;\n  --commentColor: #586e75;\n  --linkColor: #b58900;\n  --linkHoverColor: #cb4b16;\n}\n\n:root.blue {\n  --baseColor: #fff;\n  --bgColor: #f5f5f5;\n  --headsColor: #2196f3;\n  --commentColor: #fff;\n  --linkColor: #ccc;\n  --linkHoverColor: #aaa;\n}\n\nhtml {\n  background-color: var(--headsColor);\n  color: var(--baseColor);\n  font-size: 2rem;\n}\n\na {\n  margin: 0 50px;\n  color: var(--linkColor);\n}\n\na:hover {\n  color: var(--linkHoverColor);\n  text-decoration: none;\n}\n```\n\nIf you change \"class\" for html tag, this will \"override\" css custom variables.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle0pard%2Fstorybook-addon-root-attribute-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fle0pard%2Fstorybook-addon-root-attribute-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle0pard%2Fstorybook-addon-root-attribute-demo/lists"}