Skip to content

Instantly share code, notes, and snippets.

@james2doyle

james2doyle/body.css

Last active Nov 16, 2020
Embed
What would you like to do?
Sane defaults for the body tag in CSS
body {
margin: 0;
padding: 0;
min-width: 100vw;
min-height: 100vh;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-feature-settings: 'lnum' 1;
font-variant-numeric: lining-nums;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment