question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No highlight for just styled``

See original GitHub issue

CSS is Highlighted with styled.div but not with just styled

Code

import styled from "styled-components";

styled.div`
	background-color: black;
	color: green;
	font-size: 12px;
`;

Preview

styled div

Code

import styled from "styled-components";

styled`
	background-color: black;
	color: green;
	font-size: 12px;
`;

Preview

styled

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
deadcoder0904commented, Feb 22, 2018

Noopsy I wasn’t dreaming. I have seen it somewhere written that if you write just styled than it return styled.div or something like that.

Idk if version 3.0 changed it or not but it was written like that. I’ll see if I can find it.

I’d like to think my memory is good enough sometimes 😂

0reactions
deadcoder0904commented, Feb 22, 2018

Nope, its not. I guess I was dreaming then 😂

Glamor comes close though. So I guess this issue isn’t valid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No color highlighting when using function that returns code #364
To reproduce, simply add a function that returns some css code into a styled component and no color highlighting will be shown.
Read more >
How to disable text selection highlighting - css - Stack Overflow
can elements within the element witch has highlighting disabled, have highlighting enabled with in css in the style or class attribute? or in ......
Read more >
HOW TO HIGHLIGHT WITHOUT OVERLAPPING - YouTube
Here are a few tips and tricks to highlighting hair without ... FOLLOW ME: Instagram- @jz. styles, @jzstyles.co, @jessigish BUY HAIR ...
Read more >
Single-Process Color vs. Highlights: What's the Difference?
"With highlights, your colorist should be using more than one color, not just bleach," says stylist Darren Anderson.
Read more >
25 Gorgeous Ways to Highlight Your Hair in 2022 - Allure
Effectively, playground highlights recreate the look of virgin hair naturally highlighted by the sun – just like when you were a child. Taylor ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found