{"id":43665,"date":"2018-04-25T18:01:06","date_gmt":"2018-04-25T10:01:06","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=43665"},"modified":"2018-04-25T16:11:08","modified_gmt":"2018-04-25T08:11:08","slug":"nanoreset-css-resets","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/","title":{"rendered":"Nanoreset &#8211; The Tiniest CSS Reset Weighing Less than 1KB"},"content":{"rendered":"<p>Most developers would never want to build a site completely from scratch. This leaves two options: work with a <a href=\"https:\/\/www.hongkiat.com\/blog\/bootstrap-alternatives\/\">frontend framework<\/a> or use a custom reset.<\/p>\n<p>The most popular reset is <strong>Normalize which formats all browser default styles<\/strong> the same, making it easier to keep consistency across different OS\u2019 and browsers.<\/p>\n<p>If you try Normalize you\u2019ll probably love it. But <a href=\"https:\/\/github.com\/tiaanduplessis\/nanoreset\" target=\"_blank\">Nanoreset<\/a> is another option that\u2019s built for speed.<\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/normalized-css\/\">Using Normalize.css For Homogeneous Development<\/a><\/p>\n<figure><a href=\"https:\/\/github.com\/tiaanduplessis\/nanoreset\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg\" alt=\"nanoreset library\" width=\"1000\" height=\"323\"><\/a><\/figure>\n<p>This free reset library measures a crazy <strong>950 bytes<\/strong> when minified. That\u2019s probably the smallest reset I\u2019ve ever seen to date.<\/p>\n<p>It <strong>supports all major browsers and customizes all basic page elements<\/strong> for all rendering engines. You just include the Nanoreset CSS file into your page or merge it with your stylesheet using a <a href=\"https:\/\/www.hongkiat.com\/blog\/javascript-minifying-tools\/\">code minifier<\/a>.<\/p>\n<p>And this free reset couldn\u2019t be easier to use. It works through package managers npm and <a href=\"https:\/\/www.hongkiat.com\/blog\/yarn-package\/\">Yarn<\/a> so you can <strong>download a copy straight from the terminal window<\/strong>. Or you can nab a copy from an <a href=\"https:\/\/cdn.rawgit.com\/tiaanduplessis\/nanoreset\/master\/nanoreset.min.css\" target=\"_blank\">online CDN<\/a> which may help <a href=\"https:\/\/www.hongkiat.com\/blog\/website-speed-and-performance-check-tools\/\">speed up<\/a> the load time.<\/p>\n<p>The CDN files also let you embed this reset into CodePen or any online <a href=\"https:\/\/www.hongkiat.com\/blog\/cloud-ide-developers\/\">cloud IDE<\/a>. This way you can test the reset in your browser without downloading a single file.<\/p>\n<figure><a href=\"https:\/\/github.com\/tiaanduplessis\/nanoreset\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/02-nanoreset-sample-file-css.jpg\" alt=\"css resets with nanoreset\" width=\"1000\" height=\"407\"><\/a><\/figure>\n<p>If you\u2019d like to see how the page looks by default have a peek <a href=\"https:\/\/tiaanduplessis.github.io\/nanoreset\/\" target=\"_blank\">at this demo<\/a> also hosted on GitHub. It\u2019s certainly not a pretty sight but it gives you an idea of the defaults you have to work with.<\/p>\n<p>This <strong>library is released under the MIT license<\/strong> so it\u2019s open sourced and available for all types of web projects.<\/p>\n<p>Everything you need to get started can be found on the <a href=\"https:\/\/github.com\/tiaanduplessis\/nanoreset\" target=\"_blank\">main GitHub repo<\/a> so that\u2019s the place to go for toying around with Nanoreset.<\/p>","protected":false},"excerpt":{"rendered":"<p>Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[4109],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Nanoreset - The Tiniest CSS Reset Weighing Less than 1KB - Hongkiat<\/title>\n<meta name=\"description\" content=\"Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nanoreset - The Tiniest CSS Reset Weighing Less than 1KB\" \/>\n<meta property=\"og:description\" content=\"Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-25T10:01:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Nanoreset &#8211; The Tiniest CSS Reset Weighing Less than 1KB\",\"datePublished\":\"2018-04-25T10:01:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/\"},\"wordCount\":304,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/nanoreset-css-resets\\\/01-nanoreset-logo.jpg\",\"keywords\":[\"CSS Frameworks\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/\",\"name\":\"Nanoreset - The Tiniest CSS Reset Weighing Less than 1KB - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/nanoreset-css-resets\\\/01-nanoreset-logo.jpg\",\"datePublished\":\"2018-04-25T10:01:06+00:00\",\"description\":\"Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/nanoreset-css-resets\\\/01-nanoreset-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/nanoreset-css-resets\\\/01-nanoreset-logo.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/nanoreset-css-resets\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nanoreset &#8211; The Tiniest CSS Reset Weighing Less than 1KB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Nanoreset - The Tiniest CSS Reset Weighing Less than 1KB - Hongkiat","description":"Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/","og_locale":"en_US","og_type":"article","og_title":"Nanoreset - The Tiniest CSS Reset Weighing Less than 1KB","og_description":"Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.","og_url":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2018-04-25T10:01:06+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Nanoreset &#8211; The Tiniest CSS Reset Weighing Less than 1KB","datePublished":"2018-04-25T10:01:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/"},"wordCount":304,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg","keywords":["CSS Frameworks"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/","url":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/","name":"Nanoreset - The Tiniest CSS Reset Weighing Less than 1KB - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg","datePublished":"2018-04-25T10:01:06+00:00","description":"Free and extremely light CSS reset library measuring less than 1KB and works efficiently on nmp and Yarn.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/nanoreset-css-resets\/01-nanoreset-logo.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/nanoreset-css-resets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Nanoreset &#8211; The Tiniest CSS Reset Weighing Less than 1KB"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-bmh","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/43665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=43665"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/43665\/revisions"}],"predecessor-version":[{"id":43667,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/43665\/revisions\/43667"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=43665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=43665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=43665"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=43665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}