{"action":"created","issue":{"url":"https://api.github.com/repos/stylus/stylus/issues/2032","repository_url":"https://api.github.com/repos/stylus/stylus","labels_url":"https://api.github.com/repos/stylus/stylus/issues/2032/labels{/name}","comments_url":"https://api.github.com/repos/stylus/stylus/issues/2032/comments","events_url":"https://api.github.com/repos/stylus/stylus/issues/2032/events","html_url":"https://github.com/stylus/stylus/issues/2032","id":112037187,"number":2032,"title":"Global Variable not found on built in stylus-functions","user":{"login":"CinKon","id":3854991,"avatar_url":"https://avatars.githubusercontent.com/u/3854991?v=3","gravatar_id":"","url":"https://api.github.com/users/CinKon","html_url":"https://github.com/CinKon","followers_url":"https://api.github.com/users/CinKon/followers","following_url":"https://api.github.com/users/CinKon/following{/other_user}","gists_url":"https://api.github.com/users/CinKon/gists{/gist_id}","starred_url":"https://api.github.com/users/CinKon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CinKon/subscriptions","organizations_url":"https://api.github.com/users/CinKon/orgs","repos_url":"https://api.github.com/users/CinKon/repos","events_url":"https://api.github.com/users/CinKon/events{/privacy}","received_events_url":"https://api.github.com/users/CinKon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylus/stylus/labels/w:%20Unconfirmed","name":"w: Unconfirmed","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-18T19:46:15Z","updated_at":"2016-02-04T18:28:40Z","closed_at":"2015-10-19T12:11:00Z","body":"Hi, \r\n\r\nI'm trying to switch from sass to stylus, but have a problem with built-in functions and global variables.\r\n\r\nThis is my style.styl:\r\n```stylus\r\n// Variables / Helpers\r\n@require \"_components/_variables\"\r\n\r\n// Components\r\n@require \"_components/_base\"\r\n```\r\n\r\nThis is my _components/_variables.styl:\r\n\r\n```stylus\r\n// Font Styles\r\nmain-font-size =    14px\r\nmain-font-size-large =    16px\r\nmain-line-height =  1.5\r\nmain-fonts =        \"Helvetica Neue\", Helvetica, Arial, sans-serif\r\nalt-fonts =         \"Helvetica Neue\", Helvetica, Arial, sans-serif\r\n\r\n// Layout\r\nscreen-sm = 480px \r\nscreen-md = 768px\r\nscreen-lg = 960px\r\nscreen-xl = 1220px \r\n\r\n// Theme\r\nprimary-color =   #ff0\r\nmain-color =      #333\r\n```\r\n\r\nAnd this my _components/_base.styl:\r\n\r\n```stylus\r\n[...]\r\na\r\n  color primary-color\r\n\r\n  &:hover,\r\n  &:focus,\r\n  &:active\r\n    color: darken(primary-color, 10)\r\n```\r\n\r\nUntil I come to the last part with the darken-function, everything wors just fine, but on darken it says:\r\n\r\n```\r\n[15:47:37] gulp-notify: [Error running Gulp] Error: /HTML5/node_modules/gulp-stylus/node_modules/stylus/lib/functions/index.styl:128:38\r\n   124|\r\n   125| // darken by the given amount\r\n   126|\r\n   127| darken(color, amount)\r\n   128|   adjust(color, 'lightness', - amount)\r\n---------------------------------------------^\r\n   129|\r\n   130| // lighten by the given amount\r\n   131|\r\n\r\nTypeError: expected rgba or hsla, but got ident:primary-color\r\n    at \"&:hover\" (/HTML5/src/stylus/_components/_base.styl:35:22)\r\n    at \"a\" (/HTML5/src/stylus/_components/_base.styl:32:124)\r\n```"},"comment":{"url":"https://api.github.com/repos/stylus/stylus/issues/comments/179983422","html_url":"https://github.com/stylus/stylus/issues/2032#issuecomment-179983422","issue_url":"https://api.github.com/repos/stylus/stylus/issues/2032","id":179983422,"user":{"login":"QuantumInformation","id":216566,"avatar_url":"https://avatars.githubusercontent.com/u/216566?v=3","gravatar_id":"","url":"https://api.github.com/users/QuantumInformation","html_url":"https://github.com/QuantumInformation","followers_url":"https://api.github.com/users/QuantumInformation/followers","following_url":"https://api.github.com/users/QuantumInformation/following{/other_user}","gists_url":"https://api.github.com/users/QuantumInformation/gists{/gist_id}","starred_url":"https://api.github.com/users/QuantumInformation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuantumInformation/subscriptions","organizations_url":"https://api.github.com/users/QuantumInformation/orgs","repos_url":"https://api.github.com/users/QuantumInformation/repos","events_url":"https://api.github.com/users/QuantumInformation/events{/privacy}","received_events_url":"https://api.github.com/users/QuantumInformation/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T18:28:40Z","updated_at":"2016-02-04T18:28:40Z","body":"So to import every file in a dir you can do `@import './components/**/*'` ?"}}