The purpose of this framework is to be used as a starting point for web pages. It is mostly Classless so it can be used just by adding to a page's header:
<link rel="stylesheet" href="cream-mn.css">
Typography
Header level 1
Header level 2
Header level 3
Header level 4
Header level 5
Header level 6
The framework was designed by following some design patterns from Google's Material Design 3, GitHub's Primer Design System and Apple's Human Interface Guidelines.
To be sure that the look is the same in different browsers, I selected modern-normalize to set a default starting style.
The dist directory contains minified versions for:
- CreamCSS - 4.7k
- CreamCSS + modern-normalize - 6.1k
- CreamCSS + cream-extra - 5.3k
- CreamCSS + cream-extra + modern-normalize - 6.6k
This is a
blockquoteincluded here for demo purposes.
Custom elements may complicate the usage and increase the framework's size, custom attributes
should start with data- and increase the code size in the long term so,
for added flexibility, I have decided to add some classes:
c-reqto style the labels of required inputsc-txtandc-txtdfor standard and dim text colorc-main,c-errorandc-codeto apply colorsbg-m,bg-0,bg-1,bg-2to set background colors- In the
cream-extra.cssfile,br-classes for borders
There are some custom HTML semantic elements in the cream-extra.css file:
cream-rowis a column / row responsive flex containercream-cardis a flex container with rounded corners
cream-row and cream-card are used in the Colors section of this page.
Here is a complete <head> with the combined and minimized version:
<head>
<meta charset="UTF-8">
<title>Page Title</title>
<meta name="description" content="Page description">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="cream-all-mn.css">
</head>