{"id":19218,"date":"2013-10-24T15:05:47","date_gmt":"2013-10-24T15:05:47","guid":{"rendered":"https:\/\/blog.jetbrains.com\/phpstorm\/?p=6750"},"modified":"2024-01-09T15:00:22","modified_gmt":"2024-01-09T14:00:22","slug":"phpstorm-7-web-toolkit-series-stylus-and-compass-support","status":"publish","type":"phpstorm","link":"https:\/\/blog.jetbrains.com\/phpstorm\/2013\/10\/phpstorm-7-web-toolkit-series-stylus-and-compass-support\/","title":{"rendered":"PhpStorm 7 Web Toolkit Series &#8211; Stylus and Compass Support"},"content":{"rendered":"<p><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image0012.png\"><img decoding=\"async\" loading=\"lazy\" style=\"margin: 12px;border: 0px currentColor;padding-top: 0px;padding-right: 0px;padding-left: 0px\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image001_thumb2.png\" border=\"0\" alt=\"PhpStorm 7 Web Toolkit Series - Stylus and Compass Support\" hspace=\"12\" vspace=\"12\" width=\"271\" height=\"195\" align=\"right\" \/><\/a>In web development, there are quite some options available to make writing CSS more concise and developer-friendly. There is <a href=\"http:\/\/lesscss.org\/\" target=\"_blank\" rel=\"noopener\">Less<\/a>, <a href=\"http:\/\/sass-lang.com\/\" target=\"_blank\" rel=\"noopener\">Sass<\/a>, <a href=\"http:\/\/sass-lang.com\/\" target=\"_blank\" rel=\"noopener\">SCSS<\/a> and more recently <a href=\"http:\/\/learnboost.github.io\/stylus\/\" target=\"_blank\" rel=\"noopener\">Stylus<\/a>, all languages that sprinkle CSS with variables, mixins, operations and functions. And then there\u2019s <a href=\"http:\/\/compass-style.org\/\" target=\"_blank\" rel=\"noopener\">Compass<\/a> which builds on Sass and enriches it with a number of reusable patterns.<\/p>\n<p>We\u2019ve had support for Less, Sass and SCSS already. Now PhpStorm 7 adds support for <a href=\"http:\/\/learnboost.github.io\/stylus\/\" target=\"_blank\" rel=\"noopener\">Stylus<\/a> and <a href=\"http:\/\/compass-style.org\/\" target=\"_blank\" rel=\"noopener\">Compass<\/a>!<!--more--><\/p>\n<p><em>This functionality is available in <\/em><a href=\"http:\/\/www.jetbrains.com\/idea\/\" target=\"_blank\" rel=\"noopener\"><em>IntelliJ IDEA<\/em><\/a><em>, <\/em><a href=\"http:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\" rel=\"noopener\"><em>PyCharm<\/em><\/a><em>, <\/em><a href=\"http:\/\/www.jetbrains.com\/webstorm\/\" target=\"_blank\" rel=\"noopener\"><em>WebStorm<\/em><\/a><em>, <\/em><a href=\"http:\/\/www.jetbrains.com\/phpstorm\/\" target=\"_blank\" rel=\"noopener\"><em>PhpStorm<\/em><\/a><em>, <\/em><a href=\"http:\/\/www.jetbrains.com\/ruby\/\" target=\"_blank\" rel=\"noopener\"><em>RubyMine<\/em><\/a><em> and <\/em><a href=\"http:\/\/www.jetbrains.com\/objc\/\" target=\"_blank\" rel=\"noopener\"><em>AppCode<\/em><\/a><em>.<\/em><\/p>\n<p><em> <\/em><\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image0022.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" style=\"border: 0px currentColor;padding-top: 0px;padding-right: 0px;padding-left: 0px\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image002_thumb2.png\" border=\"0\" alt=\"This functionality is available in IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, RubyMine and AppCode. \" width=\"453\" height=\"102\" \/><\/a><em> <\/em><\/p>\n<p>Syntax highlighting, code completion and structure view for Less, Sass and SCSS are available in PhpStorm by default. For Stylus, we should install the <a href=\"http:\/\/plugins.jetbrains.com\/plugin\/7316?pr=phpStorm\" target=\"_blank\" rel=\"noopener\">Stylus support plugin<\/a> through our <strong><em>IDE Settings | Plugins<\/em><\/strong>, <strong><em>Install JetBrains plugin\u2026<\/em><\/strong><\/p>\n<p>PhpStorm 7 supports these languages and their various compilers through File Watchers: the first time a <em>.less<\/em>, <em>.sass<\/em>, <em>.scss<\/em> or <em>.styl<\/em> file is added to a project, PhpStorm will transpile the file to CSS whenever it is saved. Note that a compiler for the language has to be installed. PhpStorm has a built-in Node.js Package Manager (<strong><em>Project Settings | JavaScript | Node.js<\/em><\/strong>) which can be used to install one.<\/p>\n<p><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image0032.png\"><img decoding=\"async\" loading=\"lazy\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image003_thumb2.png\" border=\"0\" alt=\"Using Stylus in PhpStorm for writing CSS\" width=\"588\" height=\"238\" \/><\/a><\/p>\n<p><a href=\"http:\/\/compass-style.org\/\" target=\"_blank\" rel=\"noopener\">Compass<\/a> integration is also available. Through the<em> <strong>Project Settings | Compass<\/strong><\/em>, we can specify the path to the Compass executable and a configuration file after which we can use it within PhpStorm.<\/p>\n<p><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image0042.png\"><img decoding=\"async\" loading=\"lazy\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2013\/10\/phpstorm-clip_image004_thumb2.png\" border=\"0\" alt=\"Compass support\" width=\"581\" height=\"278\" \/><\/a><\/p>\n<p>Are you working with these features? We\u2019re anxious to hear your feedback in the <a href=\"http:\/\/youtrack.jetbrains.com\/issues\/WI\" target=\"_blank\" rel=\"noopener\">issue tracker<\/a>, through the comments below or in our <a href=\"http:\/\/devnet.jetbrains.com\/community\/wi?view=discussions\" target=\"_blank\" rel=\"noopener\">forums<\/a>!<\/p>\n<p><em>Develop with pleasure!<br \/>\n<\/em><em>\u2013 JetBrains PhpStorm Team<\/em><\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","categories":[808,907],"tags":[714,199,602,198,743,41,2205,2172],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/phpstorm\/19218"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/phpstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/types\/phpstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/comments?post=19218"}],"version-history":[{"count":1,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/phpstorm\/19218\/revisions"}],"predecessor-version":[{"id":432160,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/phpstorm\/19218\/revisions\/432160"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media?parent=19218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/categories?post=19218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/tags?post=19218"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/cross-post-tag?post=19218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}