{"id":18269695,"url":"https://github.com/yarastqt/postcss-theme-fallback","last_synced_at":"2026-04-30T15:31:32.973Z","repository":{"id":102016378,"uuid":"330555933","full_name":"yarastqt/postcss-theme-fallback","owner":"yarastqt","description":"A postcss plugin to adding fallback values for css-variables","archived":false,"fork":false,"pushed_at":"2021-01-25T11:59:56.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T03:15:15.867Z","etag":null,"topics":["css-vars","css-vars-fallback","postcss","postcss-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yarastqt.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-01-18T04:40:44.000Z","updated_at":"2021-01-25T11:59:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f252118-84ef-4220-b6b1-f4e9b53b60a2","html_url":"https://github.com/yarastqt/postcss-theme-fallback","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yarastqt/postcss-theme-fallback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarastqt%2Fpostcss-theme-fallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarastqt%2Fpostcss-theme-fallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarastqt%2Fpostcss-theme-fallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarastqt%2Fpostcss-theme-fallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yarastqt","download_url":"https://codeload.github.com/yarastqt/postcss-theme-fallback/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarastqt%2Fpostcss-theme-fallback/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32469344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["css-vars","css-vars-fallback","postcss","postcss-plugin"],"created_at":"2024-11-05T11:36:52.695Z","updated_at":"2026-04-30T15:31:32.959Z","avatar_url":"https://github.com/yarastqt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-theme-fallback [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url] [![github (ci)][github-ci]][github-ci]\n\nA postcss plugin to adding fallback values for css-variables.\n\n## ✈️ Install\n\n```sh\nnpm i -DE postcss-theme-fallback\n```\n\n## ☄️ Usage\n\n```js\n// postcss.config.js\nmodule.exports = {\n  plugins: [\n    require('postcss-theme-fallback')({\n      // Use variables from object:\n      variables: {\n        '--var-a': '10px',\n        '--var-b': '20px',\n      },\n      // Or load variables from theme:\n      // themeSource: './src/theme/acme.css',\n    }),\n  ],\n}\n```\n\n### Options\n\n| Name                                  | Description                                            | Default |\n|---------------------------------------|--------------------------------------------------------|---------|\n| `variables?` *Record\u003cstring, string\u003e* | Object with theme variables                            |         |\n| `themeSource?` *string*               | A source path to theme, uses for extract css-variables |         |\n| `silent?` *boolean*                   | Disable warnings output                                | false   |\n\n## 🌈 Example\n\n```css\n/* input.css */\n.component {\n  width: var(--var-a);\n}\n\n/* output.css */\n.component {\n  width: var(--var-a, 10px);\n}\n```\n\n## License\n\nProject is [MIT licensed](https://github.com/yarastqt/postcss-theme-fallback/blob/master/LICENSE.md).\n\n[npm-img]: https://img.shields.io/npm/v/postcss-theme-fallback.svg\n[npm-url]: https://www.npmjs.com/package/postcss-theme-fallback\n[github-ci]: https://github.com/yarastqt/postcss-theme-fallback/workflows/ci/badge.svg?branch=master\n[PostCSS]: https://github.com/postcss/postcss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarastqt%2Fpostcss-theme-fallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyarastqt%2Fpostcss-theme-fallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarastqt%2Fpostcss-theme-fallback/lists"}