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.

Add utility variants in the Utiliity API

See original GitHub issue

@mdo, it would be very helpful to have the possibility to choose whether we need variants for different utility classes inside the API. For example, we could add a transform or shadow property on hover, focus, and so on.

$utilities: (
   "opacity": (
      property: shadow,
      responsive: true,
      **variants: hover, focus**
      values: $shadow-values
   )
);

I think this is one feature that would make this cool API almost complete.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ydmitrycommented, Oct 10, 2020

Yes, states is better

1reaction
mdocommented, Dec 6, 2020

Added in Beta 1!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Utility API · Bootstrap v5.0
The utility API is a Sass-based tool to generate utility classes. ... List of pseudo-class variants like :hover or :focus to generate for...
Read more >
Utility API · Boosted v5.0
The utility API is a Sass-based tool to generate utility classes. ... All utility variables are added to the $utilities variable within our...
Read more >
Bill Blocks - API - UtilityAPI
To organize utility data for a bill, we split data up into smaller objects ... Extensible: We may add variants to this enumeration...
Read more >
Docs - Formats - UtilityAPI
UtilityAPI is a utility api that automatically downloads bill and usage data from electric utilities.
Read more >
Interval Blocks - API - UtilityAPI
To organize utility data for a Interval, we split data up into smaller objects ... Extensible: We may add variants to this enumeration...
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