{"id":60165,"date":"2021-11-13T19:35:19","date_gmt":"2021-11-13T14:05:19","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=60165"},"modified":"2026-10-07T07:24:53","modified_gmt":"2026-10-07T01:54:53","slug":"chota-micro-css-framework","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/","title":{"rendered":"Chota CSS Framework: A 3 KB Bootstrap Alternative (How to Use It)"},"content":{"rendered":"<p>Looking for a lightweight Bootstrap alternative? The Chota CSS framework is a tiny, under-3 KB micro CSS framework with a Bootstrap-like 12-column grid, buttons, forms, cards, navigation and a built-in dark mode. In 2021 I replaced our heavy custom Bootstrap theme with Chota on this site, and it took about 15 minutes. Here&#8217;s how to use the Chota CSS framework, what it includes, and when it&#8217;s the right choice in 2026.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-60169\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/chota-css-framework-1024x429.jpg\" alt=\"Chota CSS framework Bootstrap alternative\" width=\"760\" height=\"318\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/chota-css-framework-1024x429.jpg 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/chota-css-framework-300x126.jpg 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/chota-css-framework-150x63.jpg 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/chota-css-framework-768x322.jpg 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/chota-css-framework.jpg 1368w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> Add <code>&lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/chota@latest\"&gt;<\/code> to your page&#8217;s <code>&lt;head&gt;<\/code>, then use classes like <code>container<\/code>, <code>row<\/code>, <code>col-6<\/code>, <code>button primary<\/code> and <code>card<\/code>. There&#8217;s no JavaScript or build step required.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6afcaf6ea358b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6afcaf6ea358b\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Why_we_switched_from_Bootstrap_to_Chota\" >Why we switched from Bootstrap to Chota<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#How_to_use_the_Chota_CSS_framework\" >How to use the Chota CSS framework<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#What_Chota_includes\" >What Chota includes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Inline_Chota_as_critical_CSS\" >Inline Chota as critical CSS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Chota_vs_Bootstrap_and_other_micro_CSS_frameworks\" >Chota vs Bootstrap and other micro CSS frameworks<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Frequently_asked_questions\" >Frequently asked questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Is_Chota_CSS_still_maintained\" >Is Chota CSS still maintained?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Does_Chota_need_JavaScript\" >Does Chota need JavaScript?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/11\/chota-micro-css-framework\/#Can_I_use_Chota_with_WordPress\" >Can I use Chota with WordPress?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Why_we_switched_from_Bootstrap_to_Chota\"><\/span>Why we switched from Bootstrap to Chota<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I&#8217;ve long been a <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/07\/twitter-bootstrap\/\">Bootstrap fan<\/a>, and this site ran on our own <a href=\"https:\/\/www.quickonlinetips.com\/archives\/quickstrap-wordpress-theme\/\">QuickStrap WordPress theme<\/a> for years. But when <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2020\/05\/core-web-vitals\/\">Core Web Vitals<\/a> became a ranking signal, <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2015\/02\/best-web-page-speed-tests-online\/\">page speed tests<\/a> kept flagging Bootstrap&#8217;s render-blocking CSS: over 200 KB unminified, around 25\u201330 KB compressed, mostly classes we never used.<\/p>\n<p><a href=\"https:\/\/jenil.github.io\/chota\/\" target=\"_blank\" rel=\"noopener\">Chota<\/a> is under 3 KB gzipped and uses similar class names (<code>container<\/code>, <code>row<\/code>, <code>col<\/code>), so most of our HTML worked without changes. Because it&#8217;s so small, I inlined it straight into the HTML as critical CSS, removing the render-blocking request entirely. Small CSS also kept our Open Graph and meta tags near the top of the page source, which large inlined Bootstrap CSS had pushed down. (We&#8217;ve since moved to a Kadence child theme, but Chota remains our favourite micro framework for small projects.)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_use_the_Chota_CSS_framework\"><\/span>How to use the Chota CSS framework<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Add Chota from a CDN, or install it with <code>npm install chota<\/code>:<\/p>\n<pre><code>&lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/chota@latest\"&gt;<\/code><\/pre>\n<p>Then build a responsive layout with its 12-column grid:<\/p>\n<pre><code>&lt;div class=\"container\"&gt;\r\n  &lt;div class=\"row\"&gt;\r\n    &lt;div class=\"col-8\"&gt;Main content&lt;\/div&gt;\r\n    &lt;div class=\"col-4\"&gt;Sidebar&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;a class=\"button primary\" href=\"#\"&gt;Read more&lt;\/a&gt;\r\n&lt;\/div&gt;<\/code><\/pre>\n<p>Columns stack automatically on small screens. Use <code>col-6-md<\/code> or <code>col-4-lg<\/code> for breakpoint-specific widths.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_Chota_includes\"><\/span>What Chota includes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Grid:<\/strong> flexbox-based 12-column grid with responsive classes.<\/li>\n<li><strong>Components:<\/strong> buttons, forms, cards, tabs, tags, navigation bars and details\/summary.<\/li>\n<li><strong>Utilities:<\/strong> text alignment, colours, spacing, <code>is-hidden<\/code>, <code>hide-xs<\/code> and more.<\/li>\n<li><strong>Dark mode:<\/strong> add the <code>dark<\/code> class to <code>&lt;body&gt;<\/code>, or switch with a one-line script.<\/li>\n<li><strong>CSS variables:<\/strong> change colours and fonts by overriding variables like <code>--color-primary<\/code> and <code>--font-family-sans<\/code>.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Inline_Chota_as_critical_CSS\"><\/span>Inline Chota as critical CSS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Because Chota is so small, you can paste the minified CSS inside a <code>&lt;style&gt;<\/code> tag in your page head. This works like <a href=\"https:\/\/web.dev\/articles\/extract-critical-css\" target=\"_blank\" rel=\"noopener\">critical CSS<\/a>: the browser can render the page immediately without waiting for an external stylesheet. On WordPress, plugins like <a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" target=\"_blank\" rel=\"noopener\">Autoptimize<\/a> or <a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\" target=\"_blank\" rel=\"noopener\">LiteSpeed Cache<\/a> can inline CSS for you. See more ways to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/05\/css-files-load-faster\/\">load CSS files faster<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Chota_vs_Bootstrap_and_other_micro_CSS_frameworks\"><\/span>Chota vs Bootstrap and other micro CSS frameworks<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/getbootstrap.com\/\" target=\"_blank\" rel=\"noopener\">Bootstrap<\/a>: full-featured with JavaScript components like modals and dropdowns, but much heavier. Best for complex apps.<\/li>\n<li><a href=\"https:\/\/picocss.com\/\" target=\"_blank\" rel=\"noopener\">Pico CSS<\/a>: styles plain HTML elements with almost no classes, about 10 KB gzipped.<\/li>\n<li><a href=\"https:\/\/watercss.kognise.dev\/\" target=\"_blank\" rel=\"noopener\">Water.css<\/a>: a classless drop-in stylesheet for simple pages.<\/li>\n<li><a href=\"https:\/\/tailwindcss.com\/\" target=\"_blank\" rel=\"noopener\">Tailwind CSS<\/a>: utility-first, with only the classes you use in the final CSS, but needs a build step.<\/li>\n<\/ul>\n<p>Choose Chota when you want Bootstrap-style classes and a grid in the smallest possible file, for blogs, landing pages, documentation and prototypes.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_asked_questions\"><\/span>Frequently asked questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Is_Chota_CSS_still_maintained\"><\/span>Is Chota CSS still maintained?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Chota is stable and widely used, though updates are infrequent because it&#8217;s intentionally minimal. It works in all modern browsers.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Does_Chota_need_JavaScript\"><\/span>Does Chota need JavaScript?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. It&#8217;s pure CSS. You only need a few lines of JavaScript if you want a dark mode toggle button.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_I_use_Chota_with_WordPress\"><\/span>Can I use Chota with WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes. Enqueue the stylesheet in your theme&#8217;s <code>functions.php<\/code>, or inline it in the header, and use Chota classes in your templates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking for a lightweight Bootstrap alternative? The Chota CSS framework is a tiny, under-3 KB micro CSS framework with a&#8230;<\/p>\n","protected":false},"author":4,"featured_media":60169,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"default","_kad_post_title":"default","_kad_post_layout":"default","_kad_post_sidebar_id":"","_kad_post_content_style":"default","_kad_post_vertical_padding":"default","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[49],"class_list":["post-60165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/60165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=60165"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/60165\/revisions"}],"predecessor-version":[{"id":63387,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/60165\/revisions\/63387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/60169"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=60165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=60165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=60165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}