{"id":20994406,"url":"https://github.com/awcross/postcss-each-variables","last_synced_at":"2025-07-30T15:04:14.647Z","repository":{"id":57327959,"uuid":"111031369","full_name":"awcross/postcss-each-variables","owner":"awcross","description":"PostCSS plugin enabling variable mapping for each","archived":false,"fork":false,"pushed_at":"2017-11-28T06:54:36.000Z","size":8,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-30T05:37:07.607Z","etag":null,"topics":["each","postcss","postcss-plugin","properties","rules","variables","vars"],"latest_commit_sha":null,"homepage":"","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/awcross.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-16T22:54:06.000Z","updated_at":"2022-03-04T14:31:52.000Z","dependencies_parsed_at":"2022-09-18T17:50:12.207Z","dependency_job_id":null,"html_url":"https://github.com/awcross/postcss-each-variables","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/awcross/postcss-each-variables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcross%2Fpostcss-each-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcross%2Fpostcss-each-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcross%2Fpostcss-each-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcross%2Fpostcss-each-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awcross","download_url":"https://codeload.github.com/awcross/postcss-each-variables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcross%2Fpostcss-each-variables/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267889175,"owners_count":24161144,"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":["each","postcss","postcss-plugin","properties","rules","variables","vars"],"created_at":"2024-11-19T07:18:11.632Z","updated_at":"2025-07-30T15:04:14.579Z","avatar_url":"https://github.com/awcross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-each-variables [![Build Status](https://travis-ci.org/awcross/postcss-each-variables.svg?branch=master)](https://travis-ci.org/awcross/postcss-each-variables)\n\n[PostCSS](https://github.com/postcss/postcss) plugin enabling variable mapping for `@each`.\n\n\n## Install\n```js\nnpm install --save-dev postcss-each-variables\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-each-variables') ])\n```\n\nNote: you must include postcss-each-variables before other at-rules plugins.\n\n### Before\n\n```css\n:root {\n\t--breakpoints: (\n\t\tsm: 576px,\n\t\tmd: 768px,\n\t\tlg: 992px,\n\t\txl: 1200px\n\t);\n}\n\n@each $key, $value in var(--breakpoints) {\n\t.container-$(key) {\n\t\tmax-width: $(value);\n\t}\n}\n```\n\n### After\n\n```css\n:root {\n\t--breakpoints: (\n\t\tsm: 576px,\n\t\tmd: 768px,\n\t\tlg: 992px,\n\t\txl: 1200px\n\t);\n}\n\n@each $key, $value in (sm, md, lg, xl), (576px, 768px, 992px, 1200px) {\n\t.container-$(key) {\n\t\tmax-width: $(value);\n\t}\n}\n```\n\nSee [PostCSS](https://github.com/postcss/postcss) docs for examples for your environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcross%2Fpostcss-each-variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawcross%2Fpostcss-each-variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcross%2Fpostcss-each-variables/lists"}