Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Cascade style classes? #473

Open
bdrtsky opened this issue Mar 2, 2020 · 0 comments
Open

Cascade style classes? #473

bdrtsky opened this issue Mar 2, 2020 · 0 comments

Comments

@bdrtsky
Copy link

bdrtsky commented Mar 2, 2020

Is there any convenient way to extend Tailwind classes depending on some class on body tag? For example some theme related class. How to have one Tailwind class that will change depending on some parent class?

.dark {
   & .tailwind-class {
    color: black
  }
}

.light {
   & .tailwind-class {
    color: white
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant