{"id":32119700,"url":"https://github.com/mapcss/postcss-mapcss","last_synced_at":"2026-02-19T02:01:57.626Z","repository":{"id":42521247,"uuid":"475739499","full_name":"mapcss/postcss-mapcss","owner":"mapcss","description":"PostCSS plugin to use MapCSS","archived":false,"fork":false,"pushed_at":"2022-04-01T16:02:27.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T18:24:25.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mapcss.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":"2022-03-30T05:58:22.000Z","updated_at":"2022-03-31T03:18:50.000Z","dependencies_parsed_at":"2022-09-05T06:21:49.858Z","dependency_job_id":null,"html_url":"https://github.com/mapcss/postcss-mapcss","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mapcss/postcss-mapcss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapcss%2Fpostcss-mapcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapcss%2Fpostcss-mapcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapcss%2Fpostcss-mapcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapcss%2Fpostcss-mapcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapcss","download_url":"https://codeload.github.com/mapcss/postcss-mapcss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapcss%2Fpostcss-mapcss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29600844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"online","status_checked_at":"2026-02-19T02:00:07.702Z","response_time":117,"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":"2025-10-20T18:11:17.870Z","updated_at":"2026-02-19T02:01:57.621Z","avatar_url":"https://github.com/mapcss.png","language":"TypeScript","readme":"# postcss-mapcss\n\n[PostCSS] plugin to use [MapCSS]\n\n[PostCSS]: https://github.com/postcss/postcss\n[MapCSS]: https://mapcss.miyauchi.dev\n\ninput:\n\n```css\nbody {\n  @apply antialiased text-gray-800\n}\n```\n\noutput:\n\n```css\nbody{\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-font-smoothing: antialiased;\n  color: rgb(31 41 55/1)\n}\n```\n\n## Usage\n\nCreate a `mapcss.config.ts` file in the project root.\n\n```ts\n// mapcss.config.ts\nimport {\n  bracketExtractor,\n  Config,\n  simpleExtractor,\n} from \"https://deno.land/x/mapcss@$VERSION/core/mod.ts\";\nimport { presetTw } from \"https://deno.land/x/mapcss@$VERSION/preset_tw/mod.ts\";\n\nexport default \u003cConfig\u003e {\n  preset: [presetTw()],\n  extractor: [simpleExtractor, bracketExtractor],\n};\n```\n\nSee more\n[Config](https://github.com/TomokiMiyauci/mapcss/blob/beta/core/types.ts#L219).\n\n```ts\nimport postcss from \"https://deno.land/x/postcss_core@$VERSION/mod.js\";\nimport mapcss from \"https://deno.land/x/postcss_mapcss@VERSION/mod.ts\";\n\nconst css = `body {\n  @apply antialiased text-gray-800\n}\n`;\n\nconst result = await postcss([mapcss]).process(css);\n```\n\n## Option\n\n### useConfig\n\nWhether load MapCSS config file or not.\n\n@default `true`\n\n### others\n\nMapCSS Config\n\nYou can also pass `Config` directly.\n\nIf `useConfig` is `true` and `mapcss.config.ts` exists, it will be merged in\nfavor of the `Config` passed as argument.\n\n```ts\nimport postcss from \"https://deno.land/x/postcss_core@$VERSION/mod.js\";\nimport mapcss from \"https://deno.land/x/postcss_mapcss@VERSION/mod.ts\";\nimport {\n  bracketExtractor,\n  Config,\n  simpleExtractor,\n} from \"https://deno.land/x/mapcss@$VERSION/core/mod.ts\";\nimport { presetTw } from \"https://deno.land/x/mapcss@$VERSION/preset_tw/mod.ts\";\n\nconst config: Config = {\n  extractor: [simpleExtractor, bracketExtractor],\n  preset: [presetTw()],\n};\n\nconst css = `body {\n  @apply antialiased text-gray-800\n}\n`;\n\nconst result = await postcss([mapcss(config)]).process(css);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapcss%2Fpostcss-mapcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapcss%2Fpostcss-mapcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapcss%2Fpostcss-mapcss/lists"}