Chalk CSS
Simple and clean.
Chalk CSS is a lightweight css framework that allows you to make your website look clean and simple. It has a simple grid system and uses soft font types and colors. If you need a simple and clean looking site, then this is the perfect framework for you. Get Chalk CSS now by following the guide below.
Clone the project from github:
$ git clone https://github.com/rowanryan/chalkcss.git
The grid system is simple. To use the grid system, you first need a row. You will be able to make columns in that row. The grid is divided in 12 parts and each column can take up multiple parts.
<div class="row">
<div class="col col-3">
<p>.col col-3</p>
</div>
<div class="col col-6">
<p>.col col-6</p>
</div>
<div class="col col-3">
<p>.col col-3</p>
</div>
</div>
.col col-3
.col col-6
.col col-3
As you can see, you can use the grid however you like. Do keep in mind that a row can only hold 12 parts. That means that you have to start a new row if you've used up all 12 parts in one row. Below, you will find an example.
1
11
2
10
3
9
4
8
5
7
6
6
7
5
8
4
9
3
10
2
11
1
To flourish up your text, make use of the classes below.
.size-1
.size-2
.size-3
.size-4
.size-5
.size-6
.primary
.info
.danger
.success
.tip
The color of text can only be changed if it's wrapped by a h1, h2, h3, h4, h5, h6, p, a or span.
Cards are simple objects that can be used to display information. A good use-case for a card would be to show an item in a webshop.
<div class="card">
<div class="card-image">
<img src="https://images.pexels.com/photos/371633/pexels-photo-371633.jpeg?auto=compress&cs=tinysrgb&h=350" alt="card">
</div>
<div class="card-content">
<h1 class="size-6">Title</h1>
<br>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium esse voluptate nesciunt eligendi quod consequuntur iste corrupti pariatur.
</p>
<button class="btn btn-primary">Add</button>
</div>
</div>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium esse voluptate nesciunt eligendi quod consequuntur iste corrupti pariatur.
Forms are an essential part of every CSS framework. Chalk CSS keeps it simple and clean. Every group of inputs are wrapped by a form field. Form fields are made by adding form-field as a class to a div. Inline fields are also available. To make a field inline, add the inline class to the form field. Inputs must always have the class input assigned to have the styling applied.
<form class="form">
<div class="form-field">
<input type="text" class="input" placeholder="Name">
<input type="email" class="input" placeholder="Email">
</div>
</form>
<form class="form">
<div class="form-field inline">
<input type="text" class="input" placeholder="Name">
<input type="email" class="input" placeholder="Email">
</div>
</form>
<form class="form">
<div class="form-field">
<textarea class="textarea" cols="50" rows="10"></textarea>
</div>
</form>
<form class="form">
<div class="form-field">
<select class="select">
<option disabled>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
</form>
Tables are the easiest way to display structured data. All you need to do is assign the class table to the main table element.
Name | Alias | Height | Comics universe |
---|---|---|---|
Bruce Wayne | Batman | 6'2" (188 cm) | DC Comics |
Peter Parker | Spiderman | 5'10" (178 cm) | Marvel |
You can also add the bordered class to the main table element to surround the table with a border.
Name | Alias | Height | Comics universe |
---|---|---|---|
Bruce Wayne | Batman | 6'2" (188 cm) | DC Comics |
Peter Parker | Spiderman | 5'10" (178 cm) | Marvel |
In addition to adding the bordered class to the main element, you can add bordered to each seperate row.
Name | Alias | Height | Comics universe |
---|---|---|---|
Bruce Wayne | Batman | 6'2" (188 cm) | DC Comics |
Peter Parker | Spiderman | 5'10" (178 cm) | Marvel |
All you need to do to make a list is add the list class to a ul or ol element. Each list item takes the class list-item . To make a list-item active, add the active class.
<ul class="list">
<li class="list-item">list-item</li>
<li class="list-item active">list-item active</li>
<li class="list-item">list-item</li>
</ul>
A notification is a handy little object to notify your visitors of something. Add the notification class to a div for the styling to appear. You can add a color to the notification by adding one of the color classes to the notification.
<div class="notification primary">
<p>
Your subscription has expired! Click
<a href="#notifications" class="primary">here</a>
to renew your subscription
</p>
</div>
Your subscription has expired! Click here to renew your subscription
Your subscription has expired! Click here to renew your subscription
Your subscription has expired! Click here to renew your subscription
Your subscription has expired! Click here to renew your subscription
Your subscription has expired! Click here to renew your subscription