All Projects → styled-components → Webstorm Styled Components

styled-components / Webstorm Styled Components

Licence: mit
styled-components highlighting support in IntelliJ editors

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Webstorm Styled Components

React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (-12.87%)
Mutual labels:  styled-components
Ble.sh
Bash Line Editor―a full-featured line editor written in pure Bash! Syntax highlighting, auto suggestions, vim modes, etc. are available in Bash interactive sessions!
Stars: ✭ 306 (-10.53%)
Mutual labels:  syntax-highlighting
Clangkit
ClangKit provides an Objective-C frontend to LibClang. Source tokenization, diagnostics and fix-its are actually implemented.
Stars: ✭ 330 (-3.51%)
Mutual labels:  syntax-highlighting
Intellij Elm
Elm language support for IntelliJ, WebStorm, PhpStorm and PyCharm (JetBrains)
Stars: ✭ 305 (-10.82%)
Mutual labels:  webstorm
Rainbow
Simple syntax highlighting library written in javascript
Stars: ✭ 3,241 (+847.66%)
Mutual labels:  syntax-highlighting
History Search Multi Word
Multi-word, syntax highlighted history searching for Zsh
Stars: ✭ 314 (-8.19%)
Mutual labels:  syntax-highlighting
Color Themes For Google Code Prettify
Syntax highlighting color themes for Google Code Prettify
Stars: ✭ 297 (-13.16%)
Mutual labels:  syntax-highlighting
Rainbow csv
🌈Rainbow CSV - Vim plugin: Highlight columns in CSV and TSV files and run queries in SQL-like language
Stars: ✭ 337 (-1.46%)
Mutual labels:  syntax-highlighting
Lowlight
Virtual syntax highlighting for virtual DOMs and non-HTML things
Stars: ✭ 310 (-9.36%)
Mutual labels:  syntax-highlighting
Typescript Plugin Styled Components
TypeScript transformer for improving the debugging experience of styled-components
Stars: ✭ 330 (-3.51%)
Mutual labels:  styled-components
Styled Reset
Eric Meyer's Reset CSS for styled-components
Stars: ✭ 305 (-10.82%)
Mutual labels:  styled-components
Tailwindcss Classnames
TypeScript support for TailwindCSS
Stars: ✭ 305 (-10.82%)
Mutual labels:  webstorm
Vim Crystal
Vim filetype and tools support for Crystal language.
Stars: ✭ 326 (-4.68%)
Mutual labels:  syntax-highlighting
Styled Components Theme
Defines themes via flexible color selectors for use with styled-components
Stars: ✭ 302 (-11.7%)
Mutual labels:  styled-components
File System React
File System UI in Web using react
Stars: ✭ 331 (-3.22%)
Mutual labels:  styled-components
Devii
A developer blog starter for 2020 (Next.js + React + TypeScript + Markdown + syntax highlighting)
Stars: ✭ 296 (-13.45%)
Mutual labels:  syntax-highlighting
Coderplanets web
the most sexiest community for developers, build with React, Mobx/MST, GraphQL, Styled-Components, Rxjs, Ramda ... and ❤️
Stars: ✭ 314 (-8.19%)
Mutual labels:  styled-components
Rock Paper Scissors React
Challenge #5 from Frontend Mentor
Stars: ✭ 339 (-0.88%)
Mutual labels:  styled-components
Jetbrains Alfred Workflow
Open a project with one of JetBrains' product.
Stars: ✭ 335 (-2.05%)
Mutual labels:  webstorm
Intellij Idea Tutorial
IntelliJ IDEA 简体中文专题教程
Stars: ✭ 19,071 (+5476.32%)
Mutual labels:  webstorm

webstorm-styled-components

Support for styled-components 💅 in WebStorm

The plugin can be installed in WebStorm, IntelliJ IDEA Ultimate, PhpStorm, PyCharm Pro, and RubyMine v2017.2 and above.

Installation

To install the plugin open the IDE Preferences | Plugins, then click Browse repositories... and search for Styled Components.

Features

With this plugin you can enjoy the full coding assistance for styled-components 💅

  • Start typing to get code completion for CSS properties and values
  • Hit Alt-Enter to see available intentions and quick-fixes
  • Start typing in the interpolation to see completion suggestions for JavaScript variables, methods and functions
  • Cmd/Ctrl-click on the JavaScript symbol to go to its definition

Configuration

To configure additional tags, search for 'styled-components' in the IDE preferences, and enter any additional tags to treat as styled components.

For 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;`.

FAQ

  • Why is code inside styled-components strings highlighted green?

The IDE highlights injected language fragments by default. The highlighting can be disabled in Preferences | Editor | Color Scheme | General | Inejcted Language Fragment.

  • Why is code inside styled-components strings not reformatted?

Formatting template strings with arguments is not currently supported by the IDE. Please follow this IDE issue for updates.

  • Why am I seeing syntax errors after a template argument?
The IDE's parser tries to determine what syntax element a template string argument replaces (property, value, etc). In 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:
const getColor = () => condition ? "color: red;" : "color: white;";

styled.div`
  ${getColor()}
  padding-right: 10px
`;

In such cases, try placing a semicolon after the template argument:

styled.div`
  ${getColor()};
  padding-right: 10px
`;

Contributing to the plugin

Please report any issue with the plugin on GitHub. We welcome your pull requests.

The plugin is written in Kotlin and uses Gradle.

To start contributing

  1. Clone this repository.
  2. Open the resulting directory in a recent version of Intellij IDEA (2017.*) using 'Open project'.
  3. In the 'Import Project from Gradle' dialog, accept the default settings.
  • 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)

  • To launch IDEA with the plugin built from your current sources use runIde

  • To prepare a zip archive for deployment use buildPlugin

The project structure and dependencies are defined in build.gradle.

Useful links

License (MIT)

Copyright 2017 Hossam Saraya

Permission 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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].