Skip to content

How to use Tailwind with shadow dom? #1935

Answered by jenstornell
jenstornell asked this question in Help

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: 29 comments 53 replies

You must be logged in to vote
2 replies
@codeyourwayup

@teffcode

Answer selected by jenstornell

You must be logged in to vote
1 reply
@jenstornell

You must be logged in to vote
1 reply
@EricRohlfs

You must be logged in to vote
9 replies
@kiranmarshall

@evbo

@kiranmarshall

@evbo

@kiranmarshall

You must be logged in to vote
1 reply
@JaapWeijland

You must be logged in to vote
1 reply
@carloslfu

You must be logged in to vote
0 replies

You must be logged in to vote
5 replies
@jshimkoski

@jshimkoski

@jshimkoski

@mgibas

@saadeghi

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
4 replies
@Buroni

@ciriousjoker

@esphoenixc

@ciriousjoker

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

@Buroni

You must be logged in to vote
0 replies

You must be logged in to vote
10 replies
@esphoenixc

@endepointe

@esphoenixc

@endepointe

@esphoenixc

You must be logged in to vote
2 replies
@rolznz

@carloslfu

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@simpleshadow

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@ahdyt

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@scarletczen

You must be logged in to vote
0 replies

You must be logged in to vote
4 replies
@igorlanko

@irina-baeva

@igorlanko

@irina-baeva

You must be logged in to vote
1 reply
@rafal-zelek

You must be logged in to vote
1 reply
@rxliuli

You must be logged in to vote
6 replies
@MihirMalaviya

@MihirMalaviya

@rxliuli

@MihirMalaviya

@rxliuli

You must be logged in to vote
0 replies

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