{"id":15981474,"url":"https://github.com/hideoo/less-variables-demo","last_synced_at":"2026-04-09T22:53:48.075Z","repository":{"id":85853428,"uuid":"120475133","full_name":"HiDeoo/less-variables-demo","owner":"HiDeoo","description":"Sharing Less variables to JavaScript","archived":false,"fork":false,"pushed_at":"2018-02-06T15:22:52.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T19:17:15.082Z","etag":null,"topics":["css","javascript","less","loader","webpack"],"latest_commit_sha":null,"homepage":"","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/HiDeoo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-06T15:02:45.000Z","updated_at":"2022-09-13T13:11:17.000Z","dependencies_parsed_at":"2023-03-13T07:00:02.748Z","dependency_job_id":null,"html_url":"https://github.com/HiDeoo/less-variables-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HiDeoo/less-variables-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiDeoo%2Fless-variables-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiDeoo%2Fless-variables-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiDeoo%2Fless-variables-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiDeoo%2Fless-variables-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HiDeoo","download_url":"https://codeload.github.com/HiDeoo/less-variables-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiDeoo%2Fless-variables-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260427397,"owners_count":23007503,"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","javascript","less","loader","webpack"],"created_at":"2024-10-08T00:44:15.445Z","updated_at":"2026-04-09T22:53:43.030Z","avatar_url":"https://github.com/HiDeoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# less-variables-demo\n\nA demo on how to share Less variables to JavaScript in a Webpack environment using CSS Modules without using any external module or modifying any configuration.\n\nResolving variables is also not an issue when using this method.\n\n## Installation\n\nClone the repository and install the demo dependencies using\n\n`yarn install`\n\nBuild the demo:\n\n`yarn run build`\n\nOpen the `dist/index.html` file in your browser (you don't even have to serve it).\n\nResize your browser window.\n\n## Details\n\nThe setup assume you're using a combination of Webpack loaders including less-loader, style-loader and css-loader (with the `modules` option set to true to enable CSS Modules).\n\nWhen CSS Modules are enabled, we can use the [ICSS (Interoperable CSS) superset](https://github.com/css-modules/icss) which allow us to take advantage of the additional `:export` pseudo-selector.\n\nEvery symbols in this pseudo-selector are going to be exported to the consumer. This is the equivalent of `module.exports` in JavaScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhideoo%2Fless-variables-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhideoo%2Fless-variables-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhideoo%2Fless-variables-demo/lists"}