{"id":13564091,"url":"https://github.com/simonsmith/postcss-property-lookup","last_synced_at":"2025-03-31T08:08:49.302Z","repository":{"id":32559883,"uuid":"36142524","full_name":"simonsmith/postcss-property-lookup","owner":"simonsmith","description":"PostCSS plugin for property lookups, similar to Stylus","archived":false,"fork":false,"pushed_at":"2021-08-11T04:06:14.000Z","size":132,"stargazers_count":67,"open_issues_count":2,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-18T08:36:25.974Z","etag":null,"topics":["lookup","postcss","postcss-property-lookup","stylus"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"parse-community/Parse-SDK-dotNET","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-05-23T21:06:49.000Z","updated_at":"2024-04-01T11:30:42.000Z","dependencies_parsed_at":"2022-09-21T01:50:31.391Z","dependency_job_id":null,"html_url":"https://github.com/simonsmith/postcss-property-lookup","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fpostcss-property-lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fpostcss-property-lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fpostcss-property-lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fpostcss-property-lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsmith","download_url":"https://codeload.github.com/simonsmith/postcss-property-lookup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436390,"owners_count":20776995,"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":["lookup","postcss","postcss-property-lookup","stylus"],"created_at":"2024-08-01T13:01:26.480Z","updated_at":"2025-03-31T08:08:49.264Z","avatar_url":"https://github.com/simonsmith.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# postcss-property-lookup [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin that allows referencing property values without a variable, [similar to Stylus](https://learnboost.github.io/stylus/docs/variables.html#property-lookup).\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://api.travis-ci.org/simonsmith/postcss-property-lookup.svg?branch=master\n[ci]:      https://travis-ci.org/simonsmith/postcss-property-lookup\n\n\n```css\n.Test {\n  margin-left: 20px;\n  margin-right: @margin-left;\n  color: red;\n  background: @color url('test.png');\n  line-height: 1.5;\n  font-size: @(line-height)em;\n}\n```\n\n```css\n.Test {\n  margin-left: 20px;\n  margin-right: 20px;\n  color: red;\n  background: red url('test.png');\n  line-height: 1.5;\n  font-size: 1.5em;\n}\n```\n\nCheck the [test fixtures](test/fixtures/in) for more examples.\n\n## Usage\n\n```js\npostcss([ require('postcss-property-lookup') ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n## Installation\n\n```\n$ yarn add postcss-property-lookup\n```\n\n## Usage\n\n### JavaScript\n\n```js\npostcss([\n  require('postcss-property-lookup')(/* options */),\n  // more plugins...\n])\n```\n\n### TypeScript\n\n```ts\n///\u003creference path=\"node_modules/postcss-property-lookup/.d.ts\" /\u003e\nimport postcssPropertyLookup from 'postcss-property-lookup';\n\npostcss([\n  postcssPropertyLookup(/* options */),\n  // more plugins...\n])\n```\n\n## Options\n\n### logLevel\n\nType: `string: \u003cerror|warn\u003e`\u003cbr\u003e\nRequired: `false`\u003cbr\u003e\nDefault: `warn`\n\nWhen a lookup cannot be resolved, this specifies whether to throw an error or log a warning. In the case of a warning, the invalid lookup value will be replaced with an empty string.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsmith%2Fpostcss-property-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsmith%2Fpostcss-property-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsmith%2Fpostcss-property-lookup/lists"}