Skip to main content

Starter template

Get started with boodoo by using this starter HTML template that includes everything you need: the CSS, JavaScript, and a responsive layout with the grid.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>boodoo starter template</title>
    <link href="https://boodoo.dihadiwala.com/dist/css/boodoo.min.css" rel="stylesheet">
  </head>
  <body class="bg-light">
    <main class="container py-5">
      <div class="p-4 p-md-5 mb-4 rounded-4 bg-white shadow-sm text-center">
        <h1 class="display-5 fw-semibold text-primary">Hello, world!</h1>
        <p class="lead mb-4">
          Build responsive, mobile-first projects on the web with the world's most
          popular front-end component library.
        </p>
        <a class="btn btn-primary btn-lg btn-ripple ripple" href="#">Learn more</a>
      </div>
    </main>
    <script src="https://boodoo.dihadiwala.com/dist/js/boodoo.js"></script>
  </body>
</html>

Important globals

boodoo uses a reset (normalize-style reboot) and a set of sensible global styles. Key points:

  • Box-sizing: box-sizing: border-box is set globally so borders and padding no longer break widths.
  • Reboot: boodoo-reboot normalizes elements across browsers.
  • Fonts: a system font stack with Segoe UI and Roboto kickers.
  • RTL & dark mode: logical properties and prefers-color-scheme are respected out of the box.

Community starters

Check out the source on GitHub for example projects and code snippets to help you get up and running quickly.