A simple and to the point classless CSS stylesheet
What is this ?
This is a classless CSS stylesheet, built for lightness and simplicity.
Concrete can be a great starting point for a simple website.
It also switches to a dark theme if your OS uses one.
Best used in pair with normalize.css.
Get Started
In your HTML
Just drop these lines into your HTML head.
rel="stylesheet" href="https://unpkg.com/[email protected]/normalize.css">
rel="stylesheet" href="https://unpkg.com/[email protected]/concrete.css">
In your javascript project
Add the dependencies:
npm install normalize.css concrete.css
Import them somewhere in your code:
import 'normalize.css'
import 'concrete.css'
Typography
Concrete does not redefine headings, although normalize does. This is what you can expect:
h2 heading
h3 heading
h4 heading
h5 heading
h6 heading
I can simply be a paragraph.
I can be a link.
I can be bold.
I can be underlined.
I can be emphasised.
I can be small.
h1 heading
h2 heading
h3 heading
h4 heading
h5 heading
h6 heading
I can simply be a paragraph.
I can be href="./">a link.
I can be bold.
I can be underlined.
I can be emphasised.
I can be small.
Sections
For structuring your page, you can use the element inside of the body.
It will be automatically centered on the page, with a maximum width of 640px, like the page you are reading right now.
To isolate the title of your page, and make it bigger, you can use the
element.
You can see an example at the top of this page.
You can use the element to separate between the different sections.
The section will simply be given some bottom padding.
The element will center the text inside of it.
You can see an example at the bottom of this page.
Title
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Buttons
href="./">a link button
href="./">
a button
type="submit" value="an input submit button" />
type="submit" disabled value="a disabled input submit button" />
Images
Simply add an image element, and voilà !
src="https://picsum.photos/640/480?grayscale" />
Lists
The concrete list is simply marked by a square.
- Unordered element 1
- Unordered element 2
- Ordered element 1
- Ordered element 2
- Description term
- Description detail
Unordered element 1
Unordered element 2
Ordered element 1
Ordered element 2
Description term
Description detail
Forms
Please enter your information
type="text" name="firstname" id="firstname">
type="text" name="lastname" id="lastname">
type="submit" value="Send">
Tables
Name | Year | Size | Comment |
---|---|---|---|
Skeleton | 2011 | 5.7kB | Awesome |
Milligram | 2015 | 8.3kB | Amazing |
Name
Year
Size
Comment
Skeleton
2011
5.7kB
Awesome
Milligram
2015
8.3kB
Amazing
Blockquotes
"I'm quoting myself" - Louis Merlin
"I'm quoting myself" - Louis Merlin
Progress Bar
Break line
/>