{"id":19653023,"url":"https://github.com/csstools/postcss-short-border-radius","last_synced_at":"2025-04-28T17:31:11.589Z","repository":{"id":57328497,"uuid":"69913523","full_name":"csstools/postcss-short-border-radius","owner":"csstools","description":"Use more border-radius properties in CSS","archived":true,"fork":false,"pushed_at":"2018-10-10T12:06:53.000Z","size":18,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-21T21:38:33.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jonathantneal.github.io/postcss-short/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-03T21:43:49.000Z","updated_at":"2024-10-18T11:27:08.000Z","dependencies_parsed_at":"2022-09-21T02:30:20.870Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-short-border-radius","commit_stats":null,"previous_names":["jonathantneal/postcss-short-border-radius"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-border-radius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-border-radius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-border-radius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-border-radius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-short-border-radius/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251218916,"owners_count":21554442,"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":[],"created_at":"2024-11-11T15:12:56.909Z","updated_at":"2025-04-28T17:31:11.570Z","avatar_url":"https://github.com/csstools.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Short Border Radius [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[PostCSS Short Border Radius] lets you use `border-top-radius`,\n`border-right-radius`, `border-bottom-radius`, and `border-left-radius`\nproperties in CSS, following the [1-to-2 syntax].\n\n```pcss\n.example-1 {\n  border-top-radius: 10px;\n}\n\n.example-2 {\n  border-top-radius: 10px 5px;\n}\n\n/* becomes */\n\n.example-1 {\n  border-top-left-radius: 10px;\n  border-top-right-radius: 10px;\n}\n\n.example-2 {\n  border-top-left-radius: 10px;\n  border-top-right-radius: 5px;\n}\n```\n\n## Usage\n\nAdd [PostCSS Short Border Radius] to your project:\n\n```bash\nnpm install postcss-short-border-radius --save-dev\n```\n\nUse [PostCSS Short Border Radius] to process your CSS:\n\n```js\nconst postcssShortBorderRadius = require('postcss-short-border-radius');\n\npostcssShortBorderRadius.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssShortBorderRadius = require('postcss-short-border-radius');\n\npostcss([\n  postcssShortBorderRadius(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Short Border Radius] runs in all Node environments, with special instructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- | --- |\n\n## Options\n\n#### prefix\n\nThe `prefix` option defines a prefix required by properties being transformed.\nWrapping dashes are automatically applied, so that `x` would transform\n`-x-border-top-radius`.\n\n```js\npostcssShortBorderRadius({ prefix: 'x' });\n```\n\n```pcss\n.example-1 {\n  -x-border-top-radius: 10px;\n}\n\n/* becomes */\n\n.example-1 {\n  border-top-left-radius: 10px;\n  border-top-right-radius: 10px;\n}\n```\n\n#### skip\n\nThe `skip` option defines the skip token used to ignore portions of the\nshorthand.\n\n```js\npostcssShortBorderRadius({ skip: '-' });\n```\n\n```pcss\n.example-1 {\n  -x-border-top-radius: - 10px;\n}\n\n/* becomes */\n\n.example-1 {\n  border-top-right-radius: 10px;\n}\n```\n\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-short-border-radius.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-short-border-radius\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/postcss-short-border-radius.svg\n[npm-url]: https://www.npmjs.com/package/postcss-short-border-radius\n\n[1-to-2 syntax]: https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#Tricky_edge_cases\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Short Border Radius]: https://github.com/jonathantneal/postcss-short-border-radius\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-short-border-radius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-short-border-radius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-short-border-radius/lists"}