{"id":22100335,"url":"https://github.com/css-george/postcss-george","last_synced_at":"2025-07-24T23:33:51.644Z","repository":{"id":38327703,"uuid":"306069362","full_name":"css-george/postcss-george","owner":"css-george","description":"A plugin for PostCSS to allow runtime manipulation of variables.","archived":false,"fork":false,"pushed_at":"2024-11-11T22:36:52.000Z","size":434,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-11T23:28:36.795Z","etag":null,"topics":["css-variables","hacktoberfest","postcss"],"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/css-george.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-21T15:30:46.000Z","updated_at":"2024-11-11T22:36:55.000Z","dependencies_parsed_at":"2024-09-17T04:05:44.333Z","dependency_job_id":"3ab2c959-aede-4d01-ab25-830419dfbef4","html_url":"https://github.com/css-george/postcss-george","commit_stats":{"total_commits":90,"total_committers":2,"mean_commits":45.0,"dds":0.0888888888888889,"last_synced_commit":"af6c48c0c37489fc3a7477a6a83f5d265fceb135"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/css-george%2Fpostcss-george","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/css-george%2Fpostcss-george/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/css-george%2Fpostcss-george/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/css-george%2Fpostcss-george/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/css-george","download_url":"https://codeload.github.com/css-george/postcss-george/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227489210,"owners_count":17780529,"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-variables","hacktoberfest","postcss"],"created_at":"2024-12-01T05:13:39.995Z","updated_at":"2024-12-01T05:13:40.731Z","avatar_url":"https://github.com/css-george.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"postcss-george\n==============\n\nA plugin for [PostCSS](https://postcss.org/) to allow runtime manipulation of\nvariables.\n\nThis plugin will take CSS variables marked with a comment, and add an\nannotation to the resulting CSS file so that the values can be edited at\nruntime using the CSS George editor. This is intended as a tool for designers\nworking with theming systems to experiment with colour palettes at a variable\nlevel, which is often more broad than individual style rules as edited in the\nbrowser developer tools.\n\n\nInstallation\n------------\n\nInstallation is easy via npm:\n\n```\nnpm install --save-dev postcss-george\n```\n\n\nUsage\n-----\n\n### Marking variables for export\n\nIn your .css files, you can add special comments to flag variables to be\nexported as runtime-editable CSS variables.  The special comment syntax is the\nword `@export` preceeding the variable declaration.\n\nAll of the following examples are accepted:\n\n```css\n/* @export */ --header-bg: #ffffff;\n\n/* @export */\n--navbar-text: #333333;\n\n/*@export*/ --navbar-height: 56px;\n```\n\n\n### Compiling with Exported Variables\n\nOnce you've installed the css-george plugin, you need to add the plugin to your\nPostCSS configuration and it will generate an output .css file with the\nexported variables defined as CSS variables.\n\nExample `postcss.config.js`:\n\n```javascript\nmodule.exports = {\n    plugins: [\n        require('postcss-george')\n    ]\n}\n```\n\n\nContributing\n------------\n\nContributions of bug reports, feature requests, and pull requests are greatly\nappreciated!\n\nPlease note that this project is released with a [Contributor Code of\nConduct](https://github.com/css-george/postcss-george/blob/main/CODE_OF_CONDUCT.md).\nBy participating in this project you agree to abide by its terms.\n\n\nLicence\n-------\n\nCopyright © 2020 Darryl Pogue  \nLicensed under the MIT Licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcss-george%2Fpostcss-george","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcss-george%2Fpostcss-george","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcss-george%2Fpostcss-george/lists"}