simple

Overview

simple allows you to create responsive landing pages quickly and easily, utilizing HTML, CSS, and minimal JavaScript. The design adapts to light and dark modes based on the user’s operating system settings. Zero Dependencies.

Directory Structure

Code is in the src directory Everything is laid out directly

Preview Here

Features

Page Layout

Body,header, and top navigation menu

body
    header
        nav
            div class="logo"
            div class="extra-elements"
            ul  class="nav-links (lines)
            div class="menu-icon"

Note, in the header, the div and nav links can appear in any order you want. They render left to right.

The site container

This comes in 3 sizes specified via class name. This is part of the name, not an additional class.

body
    div class="site-container-(size)"

Inside the site-container div is placed a series of sections.

body
    div class="site-container-(size)"
    section
    section
    section

Sections can be defined using <section> tags or any other block element with a class <div class="section">. In the documentation we will show only the class name, but our recommendation is to use the <section> tag.

Section padding sizing.

Section Layout for centering.

Top and Bottom Padding for Section Children

Grid System

Use .row and .row-[number] classes to create responsive grid layouts. These can be nested to create whatever you need - the demo page shows this nesting.

<h2>3 columns (the default) on large / 1 column on small (three divs are stacked on small)</h2>
<div class="row">
    <div>
        <p>Some Text</p>
    </div>
    <div>
        <p>Second Text</p>
    </div>
    <div>
        <p>Third Text</p>
    </div>
</div>

Light/Dark Mode

The framework uses CSS variables to define light and dark color schemes:

The brand color remains the same across both modes.

Customization

You can easily adjust the framework to fit your brand’s color scheme by modifying the CSS variables defined in the :root.

Usage

  1. Include the CSS: Add the framework’s CSS file to your project.
  2. Include the scripts.js Add the tiny bit of JS to your project or page for dropdown nav.
  3. Set Up HTML Structure: Use the predefined classes for grid and navigation.
  4. Customize Colors: Adjust the CSS variables in the :root to fit your brand.