Skip to content

How to use Tailwind with shadow dom? #1935

Answered by jenstornell
jenstornell asked this question in Help
Discussion options

You must be logged in to vote

An old article but other articles point in this direction as well.

https://www.smashingmagazine.com/2016/12/styling-web-components-using-a-shared-style-sheet/

Because the problem with trying to provide shared styles to web components stems from using the shadow DOM, one way to avoid the problem entirely is to not use the shadow DOM.

Replies: 25 comments 42 replies

Comment options

You must be logged in to vote
2 replies
@codeyourwayup
Comment options

@teffcode
Comment options

Answer selected by jenstornell
Comment options

You must be logged in to vote
1 reply
@jenstornell
Comment options

Comment options

You must be logged in to vote
1 reply
@EricRohlfs
Comment options

Comment options

You must be logged in to vote
9 replies
@kiranmarshall
Comment options

@evbo
Comment options

@kiranmarshall
Comment options

@evbo
Comment options

@kiranmarshall
Comment options

Comment options

You must be logged in to vote
1 reply
@JaapWeijland
Comment options

Comment options

You must be logged in to vote
1 reply
@carloslfu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@jshimkoski
Comment options

@jshimkoski
Comment options

@jshimkoski
Comment options

@mgibas
Comment options

@saadeghi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Buroni
Comment options

@ciriousjoker
Comment options

@esphoenixc
Comment options

@ciriousjoker
Comment options

Comment options

You must be logged in to vote
2 replies
@running-grass
Comment options

@Buroni
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@esphoenixc
Comment options

@endepointe
Comment options

@esphoenixc
Comment options

@endepointe
Comment options

@esphoenixc
Comment options

Comment options

You must be logged in to vote
2 replies
@rolznz
Comment options

@carloslfu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@simpleshadow
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ahdyt
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@scarletczen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@igorlanko
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet