Skip to content

Instantly share code, notes, and snippets.

@tannerhodges
Created March 9, 2022 10:37
Show Gist options
  • Save tannerhodges/4c2b727edea02cae9b16a4ebf15d5fe3 to your computer and use it in GitHub Desktop.
Save tannerhodges/4c2b727edea02cae9b16a4ebf15d5fe3 to your computer and use it in GitHub Desktop.
🧠 Reset CSS for Web Components
/**
* Reset all inheritable properties.
*
* Excluded uncommon properties: azimuth, elevation, pitch-range, pitch, richness, speech-rate, stress, voice-family, volume.
*
* @see https://open-wc.org/guides/knowledge/styling/styles-piercing-shadow-dom/
* @see https://gist.github.com/dcneiner/1137601
*
*/
:host {
border-collapse: separate;
border-spacing: 0;
caption-side: top;
color: canvastext;
cursor: auto;
direction: ltr;
empty-cells: show;
font: normal normal normal normal medium normal sans-serif;
letter-spacing: normal;
line-height: normal;
list-style: disc outside none;
orphans: 2;
quotes: auto;
speak: auto;
text-align: start;
text-indent: 0;
text-transform: none;
visibility: visible;
white-space: normal;
widows: 2;
word-spacing: normal;
}
@tannerhodges
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment