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.
Code is in the src directory Everything is laid out directly
/src
is the main codebase./src/css
is css/src/images
is images/src/js
is the tiny bit of javascriptbody
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.
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.
.space-sm
:
.75rem .75rem
(which translates to 12px
for all sides)..space-md or omit
2rem 1rem
(which translates to 32px
top and bottom, and 16px
left and right)..space-lg
:
3.75rem 1.25rem
(which translates to 60px
top and bottom, and 20px
left and right)..center
:
.tp
- Adds a padding-top of .625rem
(which translates to 10px
)..bp
- Adds a padding-bottom of .625rem
(which translates to 10px
).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>
.row
: Default to three equal-width columns..row-1
to .row-12
: Define columns ranging from one to twelve.The framework uses CSS variables to define light and dark color schemes:
The brand color remains the same across both modes.
You can easily adjust the framework to fit your brand’s color scheme by modifying the CSS variables defined in the :root
.
:root
to fit your brand.