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.

First, this is a great plugin, and a great project, thanks.

Is your feature request related to a problem? Please describe. It’s great to have everything in the html: <div class="dark:bg-blue-100"></div>.

Describe the solution you’d like But what would be even better would be to have something that can be used in CSS like the @screen directive:

input {
	@apply bg-gray-300;
}

input:focus {
	@apply bg-white;
}

@theme dark {
	input {
		@apply bg-gray-800;
	}
	input:focus {
		@apply bg-gray-500;
	}
}

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.

Additional context Add any other context or screenshots about the feature request here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
estevanmaitocommented, Jun 21, 2020

I think it’s a good idea to mention that it needs nesting support.

If users don’t want to use nesting, they can do something like:

.theme-dark a {
  @apply text-blue-300;
}

Added to the docs. Thanks!

1reaction
laymonagecommented, Jun 21, 2020

I think it’s a good idea to mention that it needs nesting support.

If users don’t want to use nesting, they can do something like:

.theme-dark a {
  @apply text-blue-300;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to CSS Functions
Like any other programming language, CSS has functions. They can be inserted where you'd place a value, or in some cases, accompanying another ......
Read more >
CSS Functional Notation - CSS: Cascading Style Sheets | MDN
CSS functional notation is a type of CSS value that can represent more complex data types or invoke special data processing or calculations....
Read more >
CSS Functions - Quackit Tutorials
CSS functions are used as a value for various CSS properties. For example, you can use the rgb() function to provide a color...
Read more >
Functions - web.dev
CSS has a range of inbuilt functions. In this module you will find out about some of the key functions, and how to...
Read more >
CSS Functions Complete Reference - GeeksforGeeks
HTML ; CSS attr() Function, The attr() function is an inbuilt function in CSS that returns the value of an attribute of the...
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