Skip to content

Commit

Permalink
add default overrides to reset.css (#23)
Browse files Browse the repository at this point in the history
Adds default 'reset' styles based on
https://tailwindcss.com/docs/preflight
  • Loading branch information
arturbien authored Dec 5, 2023
1 parent 507b462 commit 2aba9c3
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions packages/frosted-ui/src/styles/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,64 @@
font-family: inherit;
margin: 0;
}

/* Global reset based on https://tailwindcss.com/docs/preflight */

*,
::before,
::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}

ol,
ul {
list-style: none;
margin: 0;
padding: 0;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
vertical-align: middle;
}

img,
video {
max-width: 100%;
height: auto;
}

0 comments on commit 2aba9c3

Please # to comment.