{"action":"closed","issue":{"url":"https://api.github.com/repos/stylus/stylus/issues/2163","repository_url":"https://api.github.com/repos/stylus/stylus","labels_url":"https://api.github.com/repos/stylus/stylus/issues/2163/labels{/name}","comments_url":"https://api.github.com/repos/stylus/stylus/issues/2163/comments","events_url":"https://api.github.com/repos/stylus/stylus/issues/2163/events","html_url":"https://github.com/stylus/stylus/issues/2163","id":147042414,"number":2163,"title":"Alternate Tint function","user":{"login":"coreyworrell","id":162595,"avatar_url":"https://avatars.githubusercontent.com/u/162595?v=3","gravatar_id":"","url":"https://api.github.com/users/coreyworrell","html_url":"https://github.com/coreyworrell","followers_url":"https://api.github.com/users/coreyworrell/followers","following_url":"https://api.github.com/users/coreyworrell/following{/other_user}","gists_url":"https://api.github.com/users/coreyworrell/gists{/gist_id}","starred_url":"https://api.github.com/users/coreyworrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreyworrell/subscriptions","organizations_url":"https://api.github.com/users/coreyworrell/orgs","repos_url":"https://api.github.com/users/coreyworrell/repos","events_url":"https://api.github.com/users/coreyworrell/events{/privacy}","received_events_url":"https://api.github.com/users/coreyworrell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-08T21:20:23Z","updated_at":"2016-04-08T21:38:18Z","closed_at":"2016-04-08T21:38:18Z","body":"Right now the `tint` function **adjusts** (\"relative\" action) the tint based on the value you provide. `tint(black, 30%)` is saying tint the color black 30%. But it would be great to **set** (\"absolute\" action) the tint of a color as well: `tint(black, 70%)`. Both of these result in a 70% tint of black. But the latter makes it easy when working with color palettes and \"syncing\" your CSS to how your vector artwork is created.\r\n\r\nI can easily create a mixin function to do this:\r\n\r\n```stylus\r\n// what to call it though?\r\nset-tint(color, amount)\r\n  tint(color, 100 - amount)\r\n```\r\n\r\n`set-tint` doesn't feel like the right thing to call it though. And as far as I can tell there is no way to override builtin functions (is this possible through a plugin?)\r\n\r\nSo I'm just wondering if this is something that could be in core or if I should continue to use a mixin?"}}