{"id":19653038,"url":"https://github.com/csstools/postcss-logical-gradients","last_synced_at":"2025-02-27T01:32:16.659Z","repository":{"id":66028394,"uuid":"100455777","full_name":"csstools/postcss-logical-gradients","owner":"csstools","description":"Write gradients with flow-relative directions in CSS","archived":false,"fork":false,"pushed_at":"2017-08-16T06:39:25.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-23T07:43:08.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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,"governance":null}},"created_at":"2017-08-16T06:30:46.000Z","updated_at":"2023-04-02T05:45:15.000Z","dependencies_parsed_at":"2023-03-16T02:17:17.818Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-logical-gradients","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"035fce429528fc288a4232a067437d711b2d8080"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-logical-gradients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-logical-gradients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-logical-gradients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-logical-gradients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-logical-gradients/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240850972,"owners_count":19867959,"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:59.325Z","updated_at":"2025-02-27T01:32:16.637Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Logical Gradients [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Linux Build Status][cli-img]][cli-url]\n[![Gitter Chat][git-img]][git-url]\n\n[PostCSS Logical Gradients] lets you use gradients with flow-relative\ndirections in CSS, following the speculative [Logical Gradients Specification].\n\n```css\nheader {\n  background-image: linear-gradient(to inline-end, yellow 0%, blue 100%);\n}\n\n/* used alongside postcss-nesting, postcss-dir-pseudo-class */\n\n[dir=\"ltr\"] header {\n  background-image: linear-gradient(to right, yellow 0%, blue 100%);\n}\n\n[dir=\"rtl\"] header {\n  background-image: linear-gradient(to left, yellow 0%, blue 100%);\n}\n```\n\n## Usage\n\nAdd [PostCSS Logical Gradients] to your build tool:\n\n```bash\nnpm install postcss-logical-gradients --save-dev\n```\n\n#### Node\n\nUse [PostCSS Logical Gradients] to process your CSS:\n\n```js\nrequire('postcss-logical-gradients').process(YOUR_CSS);\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nUse [PostCSS Logical Gradients] as a plugin:\n\n```js\npostcss([\n  require('postcss-logical-gradients')()\n]).process(YOUR_CSS);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nUse [PostCSS Logical Gradients] in your Gulpfile:\n\n```js\nvar postcss = require('gulp-postcss');\n\ngulp.task('css', function () {\n  return gulp.src('./src/*.css').pipe(\n    postcss([\n      require('postcss-logical-gradients')()\n    ])\n  ).pipe(\n    gulp.dest('.')\n  );\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nUse [PostCSS Logical Gradients] in your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n  postcss: {\n    options: {\n      use: [\n        require('postcss-logical-gradients')()\n      ]\n    },\n    dist: {\n      src: '*.css'\n    }\n  }\n});\n```\n\n[npm-url]: https://www.npmjs.com/package/postcss-logical-gradients\n[npm-img]: https://img.shields.io/npm/v/postcss-logical-gradients.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-logical-gradients\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-logical-gradients.svg\n[git-url]: https://gitter.im/postcss/postcss\n[git-img]: https://img.shields.io/badge/chat-gitter-blue.svg\n\n[PostCSS Logical Gradients]: https://github.com/jonathantneal/postcss-logical-gradients\n[Logical Gradients Specification]: https://jonathantneal.github.io/logical-gradients-spec/\n[PostCSS]: https://github.com/postcss/postcss\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-logical-gradients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-logical-gradients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-logical-gradients/lists"}