{"id":13548184,"url":"https://github.com/tivac/modular-css","last_synced_at":"2026-02-17T03:11:57.593Z","repository":{"id":37602282,"uuid":"45149858","full_name":"tivac/modular-css","owner":"tivac","description":"CSS Modules, but better and usable via Rollup, Vite, Webpack, CLI, PostCSS, or JS API","archived":false,"fork":false,"pushed_at":"2026-01-02T23:47:50.000Z","size":14750,"stargazers_count":295,"open_issues_count":7,"forks_count":19,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-03T11:49:55.299Z","etag":null,"topics":["browserify","code-splitting","css","css-methodologies","css-modules","postcss","rollup","svelte","vite","vitejs","webpack"],"latest_commit_sha":null,"homepage":"http://m-css.com","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/tivac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-10-29T00:20:23.000Z","updated_at":"2026-01-01T20:26:28.000Z","dependencies_parsed_at":"2023-02-05T15:31:17.498Z","dependency_job_id":"364c0c18-945e-4227-ae55-32be71079890","html_url":"https://github.com/tivac/modular-css","commit_stats":{"total_commits":1317,"total_committers":26,"mean_commits":50.65384615384615,"dds":"0.33712984054669703","last_synced_commit":"aa3d7fe57db241b84d705bd0f35467ec0c4b56a9"},"previous_names":[],"tags_count":545,"template":false,"template_full_name":null,"purl":"pkg:github/tivac/modular-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tivac%2Fmodular-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tivac%2Fmodular-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tivac%2Fmodular-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tivac%2Fmodular-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tivac","download_url":"https://codeload.github.com/tivac/modular-css/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tivac%2Fmodular-css/sbom","scorecard":{"id":887952,"data":{"date":"2025-08-11","repo":{"name":"github.com/tivac/modular-css","commit":"9b032a3d7008a9775273e3942cdd28caeca8ff40"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/changesets.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/changesets.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/changesets.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/changesets.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/changesets.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/changesets.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/changesets.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/tivac/modular-css/ci.yml/main?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   4 out of   4 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-g5m6-hxpp-fc49","Warn: Project is vulnerable to: GHSA-mh2x-fcqh-fmqv","Warn: Project is vulnerable to: GHSA-rjjv-87mx-6x3h","Warn: Project is vulnerable to: GHSA-6q87-84jw-cjhp","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T10:42:26.803Z","repository_id":37602282,"created_at":"2025-08-24T10:42:26.803Z","updated_at":"2025-08-24T10:42:26.803Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29377940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T18:59:55.292Z","status":"ssl_error","status_checked_at":"2026-02-12T18:59:44.289Z","response_time":55,"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":["browserify","code-splitting","css","css-methodologies","css-modules","postcss","rollup","svelte","vite","vitejs","webpack"],"created_at":"2024-08-01T12:01:06.818Z","updated_at":"2026-02-12T19:05:14.646Z","avatar_url":"https://github.com/tivac.png","language":"JavaScript","readme":"# modular-css [![GitHub license](https://img.shields.io:/github/license/tivac/modular-css)](https://github.com/tivac/modular-css/blob/main/LICENSE) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/tivac/modular-css/ci.yml) ![GitHub issues](https://img.shields.io/github/issues/tivac/modular-css) [![Discord](https://img.shields.io:/discord/939737298256396328)](https://discord.gg/jQCZqMuMdt)\n\nA streamlined re-interpretation of [CSS Modules](https://github.com/css-modules/css-modules)\n\n## Documentation\n\nCheck out the official modular-css site: http://m-css.com/\n\n## Try it\n\nThere's an online REPL where you can try out `modular-css` without needing to install anything!\n\nhttp://m-css.com/repl\n\n## Features\n\n### Composition\n```css\n.red {\n    color: red;\n}\n\n.blue {\n    composes: red;\n\n    background: blue;\n}\n\n/* in the output .blue will be combination of both styles */\n```\n\n### Values\n```css\n@value alert: #F00;\n\n.alert {\n    color: alert;\n}\n\n/* will output as */\n\n.alert {\n    color: #F00;\n}\n```\n\n### Selector Scoping\n\n```css\n.style {\n    color: red;\n}\n\n:global(.style2) {\n    color: blue;\n}\n\n/* Will output as */\n\n/* Scoped with unique file-based prefix */\n.f5507abd_style {\n    color: red;\n}\n\n/* Remains unstyled due to :global() pseudo */\n.style2 {\n    color: blue;\n}\n```\n\n### Style Overrides\n```css\n/* input.css */\n.input {\n    width: 100%;\n}\n\n/* fieldset.css */\n.fieldset :external(input from \"./input.css\") {\n    width: 50%;\n}\n```\n\nMore detailed descriptions are available on [the website](https://m-css.com/guide/#features).\n\n## Install\n\nDetailed installation instructions are available on m-css.com\n\nhttps://m-css.com/overview/#introduction-how\n","funding_links":[],"categories":["JavaScript","Plugins"],"sub_categories":["CSS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftivac%2Fmodular-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftivac%2Fmodular-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftivac%2Fmodular-css/lists"}