CodyHouse Framework v3

3.0.14 · maintenance · verified Sun Apr 19

CodyHouse Framework v3 is a lightweight, front-end framework primarily built with SCSS for creating accessible and custom user interfaces. It emphasizes a 'no override' approach using CSS custom properties and provides a foundational set of CSS rules and utility classes. While the current stable version discussed here is v3.0.14, the project actively promotes v4.0.0 as the latest major release, suggesting v3 is now in a maintenance or legacy state with no further feature development or breaking changes expected. Its key differentiators include a focus on accessibility, ease of learning, and seamless integration with CodyHouse's library of HTML, CSS, and JS components and visual Global Editors for design system management.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates a basic HTML page setup using CodyHouse Framework v3, including linking the compiled CSS, adding the JS-enabled check, and using a few common utility classes and components like buttons and grid for layout.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CodyHouse Framework Quickstart</title>
  <script>document.getElementsByTagName("html")[0].className += " js";</script>
  <!-- Link the compiled CSS from your build process or directly from node_modules -->
  <link rel="stylesheet" href="./node_modules/codyhouse-framework/main/assets/css/style.css">
  <style>
    /* Custom styles using framework variables */
    :root {
      --color-primary-dark: hsl(210, 50%, 20%);
    }
    .my-custom-heading {
      color: var(--color-primary-dark);
      font-size: var(--text-xxl);
      margin-bottom: var(--space-md);
    }
  </style>
</head>
<body>
  <header class="container padding-y-md">
    <h1 class="my-custom-heading">Welcome to CodyHouse Framework</h1>
    <p class="color-contrast-medium text-sm">A lightweight, accessible front-end framework.</p>
  </header>

  <main class="container padding-y-lg">
    <button class="btn btn--primary margin-right-sm">Primary Button</button>
    <button class="btn btn--secondary">Secondary Button</button>

    <div class="grid gap-md margin-top-lg">
      <div class="col-6@md text-component">
        <p>This is a column using the framework's grid system. CodyFrame provides a flexible grid for responsive layouts.</p>
        <p>Text components allow for easy styling of paragraph elements without applying individual classes.</p>
      </div>
      <div class="col-6@md bg-primary-light radius-md padding-md text-component">
        <p>Another column with a light primary background and rounded corners. Utility classes like <code>bg-primary-light</code>, <code>radius-md</code>, and <code>padding-md</code> are used here.</p>
      </div>
    </div>
  </main>

  <footer class="container padding-y-md text-center border-top-alpha">
    <p class="text-sm color-contrast-low">Built with CodyHouse Framework.</p>
  </footer>

  <!-- Include the utility JS file if using CodyHouse components -->
  <script src="./node_modules/codyhouse-framework/main/assets/js/util.js"></script>
</body>
</html>

view raw JSON →