{"id":14977434,"url":"https://github.com/styled-components/webstorm-styled-components","last_synced_at":"2025-04-08T11:09:31.152Z","repository":{"id":38706656,"uuid":"101891547","full_name":"styled-components/webstorm-styled-components","owner":"styled-components","description":"styled-components highlighting support in IntelliJ editors","archived":false,"fork":false,"pushed_at":"2025-03-27T18:37:45.000Z","size":845,"stargazers_count":375,"open_issues_count":25,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-01T09:32:34.650Z","etag":null,"topics":["styled-components","syntax-highlighting","webstorm","webstorm-plugin"],"latest_commit_sha":null,"homepage":"https://plugins.jetbrains.com/plugin/9997-styled-components","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/styled-components.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-30T14:28:30.000Z","updated_at":"2025-02-26T09:22:21.000Z","dependencies_parsed_at":"2023-02-19T11:01:19.089Z","dependency_job_id":"432722d3-7528-400f-8e99-c2041f0095d4","html_url":"https://github.com/styled-components/webstorm-styled-components","commit_stats":{"total_commits":100,"total_committers":24,"mean_commits":4.166666666666667,"dds":0.71,"last_synced_commit":"4b0dcd715bc995badd510aac7d2efeb0c5eae165"},"previous_names":[],"tags_count":548,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fwebstorm-styled-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fwebstorm-styled-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fwebstorm-styled-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fwebstorm-styled-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styled-components","download_url":"https://codeload.github.com/styled-components/webstorm-styled-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829498,"owners_count":21002996,"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":["styled-components","syntax-highlighting","webstorm","webstorm-plugin"],"created_at":"2024-09-24T13:55:39.147Z","updated_at":"2025-04-08T11:09:31.129Z","avatar_url":"https://github.com/styled-components.png","language":"Kotlin","readme":"# webstorm-styled-components\n\n![Discord](https://img.shields.io/discord/818449605409767454?logo=discord)\n\nSupport for styled-components 💅 in WebStorm\n\nThe plugin can be installed in WebStorm, IntelliJ IDEA Ultimate, PhpStorm, PyCharm Pro, and RubyMine v2017.2 and above.\n\n# Installation\nTo install the plugin open the IDE `Preferences | Plugins`, then click `Browse repositories...` and search for `Styled Components`.\n\n# Features\nWith this plugin you can enjoy the full coding assistance for styled-components 💅\n\n- Start typing to get code completion for CSS properties and values\n\n\u003cimg src=\"https://blog.jetbrains.com/webstorm/files/2017/09/ws-st-comp-css-completion.png\" width=680\u003e\n\n- Hit \u003ckbd\u003eAlt\u003c/kbd\u003e-\u003ckbd\u003eEnter\u003c/kbd\u003e to see available intentions and quick-fixes\n\n\u003cimg src=\"https://blog.jetbrains.com/webstorm/files/2017/09/ws-st-comp-intentions.png\" width=680\u003e\n\n- Start typing in the interpolation to see completion suggestions for JavaScript variables, methods and functions\n\n\u003cimg src=\"https://blog.jetbrains.com/webstorm/files/2017/09/ws-st-comp-js-completion.png\" width=680\u003e\n\n- Cmd/Ctrl-click on the JavaScript symbol to go to its definition\n\n# Configuration\nTo configure additional tags, search for 'styled-components' in the IDE preferences, and enter any additional tags to treat as styled components.\n\nFor example, adding a value like `media` will enable CodeInsight for whose tag starts with it, e.g ``media.tablet`padding: 20px;` ``, ``media.desktop`padding: 10px;` ``.\n\u003cimg src=\"/docs/additional_tags.png\" width=680\u003e\n\n# FAQ\n- Why is code inside styled-components strings highlighted green?\n\nThe IDE highlights injected language fragments by default. The highlighting can be disabled in `Preferences | Editor | Color Scheme | General | Inejcted Language Fragment`.\n- Why is code inside styled-components strings not reformatted?\n \n Formatting template strings with arguments is not currently supported by the IDE. Please follow this [IDE issue](https://youtrack.jetbrains.com/issue/WEB-28540) for updates.\n- Why am I seeing syntax errors after a template argument?\n\n\u003cimg src=\"./docs/error_after_argument.png\"\u003e\nThe IDE's parser tries to determine what syntax element a template string argument replaces (property, value, etc). \nIn some cases, it may be clear from code that at runtime the template argument will be a CSS property but not possible to infer the same statically:\n\n```js\nconst getColor = () =\u003e condition ? \"color: red;\" : \"color: white;\";\n\nstyled.div`\n  ${getColor()}\n  padding-right: 10px\n`;\n```\nIn such cases, try placing a semicolon after the template argument:\n```js\nstyled.div`\n  ${getColor()};\n  padding-right: 10px\n`;\n```\n\n# Contributing to the plugin\nPlease report any issue with the plugin on [GitHub](https://github.com/styled-components/webstorm-styled-components/issues). We welcome your pull requests.\n\nThe plugin is written in [Kotlin](https://kotlinlang.org/) and uses [Gradle](https://gradle.org/).\n\n**To start contributing**\n1. Clone this repository.\n2. Open the resulting directory in a recent version of Intellij IDEA (2017.*) using 'Open project'.\n3. In the 'Import Project from Gradle' dialog, accept the default settings.\n\n* To **run tests** use `test` task (from the IDEA UI search for 'Execute Gradle Task' and select `test` or run `./gradlew test` from the command line)\n\n* To **launch IDEA** with the plugin built from your current sources use `runIde`\n\n* To **prepare a zip archive** for deployment use `buildPlugin`\n\nThe project structure and dependencies are defined in [build.gradle](https://github.com/styled-components/webstorm-styled-components/blob/master/build.gradle).\n\n**Useful links**\n* [gradle-intellij-plugin](https://github.com/JetBrains/gradle-intellij-plugin) documentation on available Gradle tasks and build.gradle configuration options\n* [IntelliJ Platform SDK documentation](https://plugins.jetbrains.com/docs/intellij) describes IDE plugin structure in general\n* [Kotlin language reference](https://kotlinlang.org/docs/reference/) \n\n# License (MIT)\nCopyright 2017 Hossam Saraya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyled-components%2Fwebstorm-styled-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyled-components%2Fwebstorm-styled-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyled-components%2Fwebstorm-styled-components/lists"}