{"id":23645747,"url":"https://github.com/soakit/postcss-plugin-cssvar-mod","last_synced_at":"2025-07-31T00:08:26.238Z","repository":{"id":57328278,"uuid":"397441789","full_name":"soakit/postcss-plugin-cssvar-mod","owner":"soakit","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-04T05:44:36.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T08:25:26.910Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soakit.png","metadata":{"files":{"readme":"README.en.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":"2021-08-18T01:52:55.000Z","updated_at":"2021-09-04T05:44:39.000Z","dependencies_parsed_at":"2022-09-18T17:23:04.637Z","dependency_job_id":null,"html_url":"https://github.com/soakit/postcss-plugin-cssvar-mod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soakit/postcss-plugin-cssvar-mod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soakit%2Fpostcss-plugin-cssvar-mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soakit%2Fpostcss-plugin-cssvar-mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soakit%2Fpostcss-plugin-cssvar-mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soakit%2Fpostcss-plugin-cssvar-mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soakit","download_url":"https://codeload.github.com/soakit/postcss-plugin-cssvar-mod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soakit%2Fpostcss-plugin-cssvar-mod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267962827,"owners_count":24172754,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-28T12:47:19.223Z","updated_at":"2025-07-31T00:08:26.216Z","avatar_url":"https://github.com/soakit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-plugin-cssvar-mod\n\nEnglish | [简体中文](README.md)\n\nAdd a suffix to the value of the css variable in the rgb(a) function.\n\n## Start\n\n1. Install\n\n   ```shell\n   npm i postcss-plugin-cssvar-mod\n   ```\n\n2. Call\n\n   ```js\n   const postcss = require(\"postcss\");\n   const plugin = require(\"postcss-plugin-cssvar-mod\");\n\n   const options = {};\n   postcss().use(plugin(options));\n   ```\n\n   before\n\n   ```css\n   .test1 {\n     color: rgb(var(--theme-color));\n   }\n   ```\n\n   after\n\n   ```css\n   .test1 {\n     color: rgb(var(--theme-color-rgb));\n   }\n   ```\n\n## Options API\n\n| Options   | Description                                                                                                                                                                                         |\n| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| suffix    | The suffix value of the variable value, the default is `-rgb`                                                                                                                                       |\n| functions | The regular string of the function name, the default is `rgba?`                                                                                                                                     |\n| include   | Array of file paths                                                                                                                                                                                 |\n| basePath  | Base path of files                                                                                                                                                                                  |\n| onFinish  | The callback after the processing is completed, the parameter is the de-duplication array of the processed css variable value. like`[{ oldValue: '--theme-color', newValue: '--theme-color-rgb' }]` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoakit%2Fpostcss-plugin-cssvar-mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoakit%2Fpostcss-plugin-cssvar-mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoakit%2Fpostcss-plugin-cssvar-mod/lists"}