Moss Kit

Welcome to Moss Kit

Don't write any CSS, just write HTML. The styles are just there.

The idea here is that you write only HTML. Leaning on CSS grid and the absolute simplest design possible we can build a lot of really powerful stuff without thinking much.

There are better alternatives and ways of building most notably using v0. But this is a chance to try something leaning only on existing HTML elements that are prestyled for you.

Challenge...is it possible to build a micro saas without CSS classes? eCom? Get perfect CWV in a Next.js site preloading Moss Kit into the head?

About

The smallest amount of CSS to make a great looking site that removes CSS completely. Inspired by the million other CSS frameworks that do the exact same thing. I wanted to make something that was so simple that it would be easy to understand and easy to use. I expect to break some rules alonge the way in order to make a very good looking and explicit looking site, without CSS that would make sites extremely fast. The idea is to also experiment with this in Next.js sites to see if we can cut Core Web Vitals even further if you use this over other frameworks. To dev on this follow the instructions below. I really wanted to also have a published NPM package and learn how to make that work so here we are. Moss was born. Hope you enjoy, contribute with questions and ideas or code and have fun with it.

Installation

https://unpkg.com/moss-kit@1.0.0/moss-kit.min.css

Customize

https://unpkg.com/moss-kit@1.0.0/moss-kit.min.css

Type System


h1 Examples

h2 Examples

h3 Examples

h4 Examples

h5 Examples
h6 Examples

Basic Text Elements

Regular paragraph

Bold text

Strong text

Italic text

Emphasized text

Marked text

Small text

Deleted text

Inserted text

Subscript and Superscript

Underlined text

Strikethrough text

Preformatted
  text with
    preserved
      formatting
Code element

Typography Elements

Address element
Blockquote element Citation element
Inline quote element Abbr Definition element Keyboard input Sample output Variable Bi-directional text isolation Bi-directional override (han) Data element Wordbreakopportunity

Semantic Elements

Article header
Main content
Article footer
Details summary Details content
Figure caption
Figure content

Form Elements

Text Inputs
Number Inputs Meter Progress
Date/Time Inputs
Selection Inputs Output
Buttons

Embedded Content

Images

Placeholder image Responsive image Clickable area

Multimedia

Canvas not supported

Embedded Content

Templates and Portals

Interactive Elements

Dialog Content

This is a modal dialog box

  • Table Elements

    Table Caption
    Header 1 Header 2 Header 3
    Cell 1 Cell 2 Cell 3
    Footer 1 Footer 2 Footer 3