{"id":22703543,"url":"https://github.com/shrpne/postcss-clear-empty-strings","last_synced_at":"2026-04-30T01:40:15.267Z","repository":{"id":57327844,"uuid":"122857177","full_name":"shrpne/postcss-clear-empty-strings","owner":"shrpne","description":"Remove declarations with empty values","archived":false,"fork":false,"pushed_at":"2018-02-25T17:11:18.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:56:15.135Z","etag":null,"topics":["clear","empty","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/shrpne.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":"2018-02-25T17:09:05.000Z","updated_at":"2018-08-28T16:46:59.000Z","dependencies_parsed_at":"2022-09-17T14:31:58.479Z","dependency_job_id":null,"html_url":"https://github.com/shrpne/postcss-clear-empty-strings","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrpne%2Fpostcss-clear-empty-strings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrpne%2Fpostcss-clear-empty-strings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrpne%2Fpostcss-clear-empty-strings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrpne%2Fpostcss-clear-empty-strings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shrpne","download_url":"https://codeload.github.com/shrpne/postcss-clear-empty-strings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237438,"owners_count":20745348,"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":["clear","empty","postcss"],"created_at":"2024-12-10T08:11:10.038Z","updated_at":"2026-04-30T01:40:10.236Z","avatar_url":"https://github.com/shrpne.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Clear Empty Strings [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin remove declarations with empty values, except `content` property.\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/shrpne/postcss-clear-empty-strings.svg\n[ci]:      https://travis-ci.org/shrpne/postcss-clear-empty-strings\n\nIf you use CSS framework like [Bootstrap](https://getbootstrap.com/) or [Uikit](https://getuikit.com/), you can override their variables with empty string to remove declaration which use that variable.\n\n```scss\n/* Bootstrap scss source */\nh1, .h1 { font-size: $h1-font-size; }\nh2, .h2 { font-size: $h2-font-size; }\nh3, .h3 { font-size: $h3-font-size; }\nh4, .h4 { font-size: $h4-font-size; }\nh5, .h5 { font-size: $h5-font-size; }\nh6, .h6 { font-size: $h6-font-size; }\n\n/* Your scss variables */\n$h1-font-size: 32px;\n$h2-font-size: 24px;\n$h3-font-size: 16px;\n$h4-font-size: \"\";\n$h5-font-size: \"\";\n$h6-font-size: \"\";\n\n/* css output generated from scss */\nh1, .h1 { font-size: 32px; }\nh2, .h2 { font-size: 24px; }\nh3, .h3 { font-size: 16px; }\nh4, .h4 { font-size: \"\"; }\nh5, .h5 { font-size: \"\"; }\nh6, .h6 { font-size: \"\"; }\n\n/* postcss-clear-empty-string */\nh1, .h1 { font-size: 32px; }\nh2, .h2 { font-size: 24px; }\nh3, .h3 { font-size: 16px; }\nh4, .h4 { }\nh5, .h5 { }\nh6, .h6 { }\n\n/* minify */\nh1,.h1{font-size:32px}h2,.h2{font-size:24px}h3,.h3{font-size:16px}\n```\n\n\n## Usage\n\n```js\npostcss([ require('postcss-clear-empty-strings') ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrpne%2Fpostcss-clear-empty-strings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshrpne%2Fpostcss-clear-empty-strings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrpne%2Fpostcss-clear-empty-strings/lists"}