{"id":28358,"date":"2019-11-05T18:19:55","date_gmt":"2019-11-05T10:19:55","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=28358"},"modified":"2023-03-31T17:32:55","modified_gmt":"2023-03-31T09:32:55","slug":"milligram-css","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/","title":{"rendered":"Milligram.css &#8211; Minimalist Frontend Library for Developers"},"content":{"rendered":"<p>From <a href=\"https:\/\/www.hongkiat.com\/blog\/boostrap-4-best-features\/\">Bootstrap<\/a> to <a href=\"https:\/\/www.hongkiat.com\/blog\/foundation-6\/\">Foundation<\/a> there\u2019s no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many existing CSS libraries are <strong>heavy and brimming with excessive features<\/strong>.<\/p>\n<p>But <a target=\"_blank\" href=\"https:\/\/milligram.io\/\" rel=\"noopener noreferrer\">Milligram<\/a> is a <strong>super lightweight alternative totaling about 8KB in a minified .css file<\/strong>. It can be installed via Bower, NPM, or direct download hosted locally or through a CDN.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.jpg\" alt=\"milligram css\"><\/figure>\n<p>By default the library is built on Normalize so <strong>you\u2019ll need to include this library too<\/strong>. But there\u2019s a handy <a target=\"_blank\" href=\"https:\/\/milligram.io\/getting-started.html\" rel=\"noopener noreferrer\">getting started guide<\/a> on the Milligram homepage that can help you get moving quickly.<\/p>\n<p>If you\u2019re just testing it out then <strong>try adding the files directly <a target=\"_blank\" href=\"https:\/\/cdnjs.com\/libraries\/milligram\" rel=\"noopener noreferrer\">from a live CDN<\/a> instead of downloading them locally.<\/strong> This way you can setup a sample project on CodePen or another <a href=\"https:\/\/www.hongkiat.com\/blog\/cloud-ide-developers\/\">cloud-based IDE<\/a>.<\/p>\n<p>Also the library uses the free <a target=\"_blank\" href=\"https:\/\/fonts.google.com\/specimen\/Roboto\" rel=\"noopener noreferrer\">Roboto font<\/a> hosted by Google for all its typography. You can use Milligram without Roboto but you won\u2019t get the same sleek font designs.<\/p>\n<p>The extra Normalize library & Google Font can feel like a burden. But they can all be <strong>hosted on external CDNs<\/strong> so you <strong>don\u2019t need to worry about HTTP load times from your server<\/strong>. And Milligram comes with default formatting for all the basic page elements:<\/p>\n<ul>\n<li>Headers & paragraphs<\/li>\n<li>Ordered & unordered lists<\/li>\n<li>Blockquotes<\/li>\n<li>Tables<\/li>\n<li>Form fields<\/li>\n<li>Images with captions<\/li>\n<li>And quite a bit more!<\/li>\n<\/ul>\n<p>Take a peek at the <a target=\"_blank\" href=\"https:\/\/milligram.io\/\" rel=\"noopener noreferrer\">Milligram.css homepage<\/a> to find source code samples and to grab the CDN links. You can also see a <a target=\"_blank\" href=\"https:\/\/codepen.io\/p-dg\/pen\/xOKyOM\" rel=\"noopener noreferrer nofollow\">kitchen sink demo<\/a> embedded below featuring all the custom-styled Milligram page elements.<\/p>\n<p data-height=\"350\" data-theme-id=\"0\" data-slug-hash=\"xOKyOM\" data-default-tab=\"result\" data-user=\"p-dg\" data-embed-version=\"2\" class=\"codepen\">\n<\/p><p><script async src=\"https:\/\/assets.codepen.io\/assets\/embed\/ei.js\"><\/script><\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/bootstrap-alternatives\/\">10 Lightweight Alternatives To Bootstrap & Foundation<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>From Bootstrap to Foundation there\u2019s no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many existing CSS libraries are heavy and brimming with excessive features. But Milligram is a super lightweight alternative totaling about 8KB in a minified .css file. It can be installed&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3393],"tags":[507,4109],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Milligram.css - Minimalist Frontend Library for Developers - Hongkiat<\/title>\n<meta name=\"description\" content=\"From Bootstrap to Foundation there&#039;s no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many\" \/>\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\/milligram-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Milligram.css - Minimalist Frontend Library for Developers\" \/>\n<meta property=\"og:description\" content=\"From Bootstrap to Foundation there&#039;s no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/milligram-css\/\" \/>\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=\"2019-11-05T10:19:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-31T09:32:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Milligram.css &#8211; Minimalist Frontend Library for Developers\",\"datePublished\":\"2019-11-05T10:19:55+00:00\",\"dateModified\":\"2023-03-31T09:32:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/\"},\"wordCount\":281,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/milligram-css\\\/01-milligram-css-homepage.jpg\",\"keywords\":[\"CSS\",\"CSS Frameworks\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/\",\"name\":\"Milligram.css - Minimalist Frontend Library for Developers - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/milligram-css\\\/01-milligram-css-homepage.jpg\",\"datePublished\":\"2019-11-05T10:19:55+00:00\",\"dateModified\":\"2023-03-31T09:32:55+00:00\",\"description\":\"From Bootstrap to Foundation there's no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/milligram-css\\\/01-milligram-css-homepage.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/milligram-css\\\/01-milligram-css-homepage.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/milligram-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Milligram.css &#8211; Minimalist Frontend Library for Developers\"}]},{\"@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":"Milligram.css - Minimalist Frontend Library for Developers - Hongkiat","description":"From Bootstrap to Foundation there's no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many","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\/milligram-css\/","og_locale":"en_US","og_type":"article","og_title":"Milligram.css - Minimalist Frontend Library for Developers","og_description":"From Bootstrap to Foundation there's no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many","og_url":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2019-11-05T10:19:55+00:00","article_modified_time":"2023-03-31T09:32:55+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Milligram.css &#8211; Minimalist Frontend Library for Developers","datePublished":"2019-11-05T10:19:55+00:00","dateModified":"2023-03-31T09:32:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/"},"wordCount":281,"commentCount":3,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.jpg","keywords":["CSS","CSS Frameworks"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/milligram-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/","url":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/","name":"Milligram.css - Minimalist Frontend Library for Developers - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.jpg","datePublished":"2019-11-05T10:19:55+00:00","dateModified":"2023-03-31T09:32:55+00:00","description":"From Bootstrap to Foundation there's no shortage of custom CSS libraries. But what if you need a very simple lightweight option for new web projects? Many","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/milligram-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/milligram-css\/01-milligram-css-homepage.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/milligram-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Milligram.css &#8211; Minimalist Frontend Library for Developers"}]},{"@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-7no","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/28358","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=28358"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/28358\/revisions"}],"predecessor-version":[{"id":65466,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/28358\/revisions\/65466"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=28358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=28358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=28358"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=28358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}