Created
June 26, 2023 10:08
-
-
Save wilsonowilson/598c732d056d746a260e76c1f598fe34 to your computer and use it in GitHub Desktop.
Tailwind Prefixed Preflight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#your-container *, | |
#your-container ::before, | |
#your-container ::after { | |
box-sizing: border-box; | |
border-width: 0; | |
border-style: solid; | |
border-color: theme("borderColor.DEFAULT", currentColor); | |
} | |
#your-container ::before, | |
#your-container ::after { | |
--tw-content: ""; | |
} | |
#your-container html { | |
line-height: 1.5; | |
-webkit-text-size-adjust: 100%; | |
-moz-tab-size: 4; | |
tab-size: 4; | |
font-family: theme( | |
"fontFamily.sans", | |
ui-sans-serif, | |
system-ui, | |
-apple-system, | |
BlinkMacSystemFont, | |
"Segoe UI", | |
Roboto, | |
"Helvetica Neue", | |
Arial, | |
"Noto Sans", | |
sans-serif, | |
"Apple Color Emoji", | |
"Segoe UI Emoji", | |
"Segoe UI Symbol", | |
"Noto Color Emoji" | |
); | |
} | |
#your-container body { | |
margin: 0; | |
line-height: inherit; | |
} | |
#your-container hr { | |
height: 0; | |
color: inherit; | |
border-top-width: 1px; | |
} | |
#your-container abbr:where([title]) { | |
text-decoration: underline dotted; | |
} | |
#your-container h1, | |
#your-container h2, | |
#your-container h3, | |
#your-container h4, | |
#your-container h5, | |
#your-container h6 { | |
font-size: inherit; | |
font-weight: inherit; | |
} | |
#your-container a { | |
color: inherit; | |
text-decoration: inherit; | |
} | |
#your-container b, | |
#your-container strong { | |
font-weight: bolder; | |
} | |
#your-container code, | |
#your-container kbd, | |
#your-container samp, | |
#your-container pre { | |
font-family: theme( | |
"fontFamily.mono", | |
ui-monospace, | |
SFMono-Regular, | |
Menlo, | |
Monaco, | |
Consolas, | |
"Liberation Mono", | |
"Courier New", | |
monospace | |
); | |
font-size: 1em; | |
} | |
#your-container small { | |
font-size: 80%; | |
} | |
#your-container sub, | |
#your-container sup { | |
font-size: 75%; | |
line-height: 0; | |
position: relative; | |
vertical-align: baseline; | |
} | |
#your-container sub { | |
bottom: -0.25em; | |
} | |
#your-container sup { | |
top: -0.5em; | |
} | |
#your-container table { | |
text-indent: 0; | |
border-color: inherit; | |
border-collapse: collapse; | |
} | |
#your-container button, | |
#your-container input, | |
#your-container optgroup, | |
#your-container select, | |
#your-container textarea { | |
font-family: inherit; | |
font-size: 100%; | |
line-height: inherit; | |
color: inherit; | |
margin: 0; | |
padding: 0; | |
} | |
#your-container button, | |
#your-container select { | |
text-transform: none; | |
} | |
#your-container button, | |
#your-container [type="button"], | |
#your-container [type="reset"], | |
#your-container [type="submit"] { | |
-webkit-appearance: button; | |
background-color: transparent; | |
background-image: none; | |
} | |
#your-container :-moz-focusring { | |
outline: auto; | |
} | |
#your-container :-moz-ui-invalid { | |
box-shadow: none; | |
} | |
#your-container progress { | |
vertical-align: baseline; | |
} | |
#your-container ::-webkit-inner-spin-button, | |
#your-container ::-webkit-outer-spin-button { | |
height: auto; | |
} | |
#your-container [type="search"] { | |
-webkit-appearance: textfield; | |
outline-offset: -2px; | |
} | |
#your-container ::-webkit-search-decoration { | |
-webkit-appearance: none; | |
} | |
#your-container ::-webkit-file-upload-button { | |
-webkit-appearance: button; | |
font: inherit; | |
} | |
#your-container summary { | |
display: list-item; | |
} | |
#your-container blockquote, | |
#your-container dl, | |
#your-container dd, | |
#your-container h1, | |
#your-container h2, | |
#your-container h3, | |
#your-container h4, | |
#your-container h5, | |
#your-container h6, | |
#your-container hr, | |
#your-container figure, | |
#your-container p, | |
#your-container pre { | |
margin: 0; | |
} | |
#your-container fieldset { | |
margin: 0; | |
padding: 0; | |
} | |
#your-container legend { | |
padding: 0; | |
} | |
#your-container ol, | |
#your-container ul, | |
#your-container menu { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} | |
#your-container textarea { | |
resize: vertical; | |
} | |
#your-container input::placeholder, | |
#your-container textarea::placeholder { | |
opacity: 1; | |
color: theme("colors.gray.400", #9ca3af); | |
} | |
#your-container button, | |
#your-container [role="button"] { | |
cursor: pointer; | |
} | |
#your-container :disabled { | |
cursor: default; | |
} | |
#your-container img, | |
#your-container svg, | |
#your-container video, | |
#your-container canvas, | |
#your-container audio, | |
#your-container iframe, | |
#your-container embed, | |
#your-container object { | |
display: block; | |
vertical-align: middle; | |
} | |
#your-container img, | |
#your-container video { | |
max-width: 100%; | |
height: auto; | |
} | |
#your-container [hidden] { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment