You should use Skeleton if you're feeling like whole UI frameworks like Bootstrap and Foundation are overkill for your project and you just want the basics. Skeleton only styles a handful of standard HTML elements and includes a grid, but that's often more than enough to get started. In fact, this site is built on Skeleton and has less than 100 lines of custom CSS.
Love Skeleton and want to share it, follow it, love it? Well, I appreciate that <3
TweetThe grid is just a 12-column fluid grid with a max width of 960px, but the max can be changed with one line of CSS. The syntax is simple and it makes responsive implementation much, much easier. Go ahead, resize the browser.
One
Eleven
Two
Ten
Ten
Two
Eleven
One
Type is all set with the rems
, so font-sizes and spacial relationships are responsively sized based on a single <html>
font-size property. Everything is still base 10 though so, an <h1>
is 5.0rem
, which just means 50px
.
The typography base is 15rem (15px) over a 1.6 line height (24px). Other type basics like anchors, strong, emphasis, and underline are all obviously included.
Headings create a family of distinct sizes each with specific letter-spacing
, line-height
, and margins
.
<h1>
50rem<h2>
42rem<h3>
36rem<h4>
30rem<h5>
24rem<h6>
15rem
One
Eleven
Buttons come in two basic flavors in Skeleton. The standard <button>
element is vibrant, whereas the .secondary
button takes a monotone backseat.
Forms are a huge pain, but hopefully these styles make it a bit easier.
Code styling was kept super basic – basically just wrap something in a <code>
tag and it will look just like that code tag just did. For blocks of code just use a <pre>
tag.
.some-class {
background-color: red
}
Only most basic styling for tabular data. Remember to always use a proper table structure – check the code example if you're not sure about it.
Name | Age | Sex | Location |
---|---|---|---|
Dave Gamache | 26 | Male | San Francisco |
Dwayne Johnson | 42 | Male | Hayward |
Skeleton uses media queries to serve the scalable grid, but also has a list of queries for convenience of styling your site across devices. There are two sets of queries, the first is mobile-first style, meaning they target min-width
so all the base styles are mobile, then queries are used to enhance for larger screen sizes. Mobile-first queries are how Skeleton's grid is styled. I've also provided the same set of queries with max-width
if that's your preference. The sizes for the queries are:
All parts of Skeleton are free to use and abuse under the open-source MIT license. More importantly, if you're into coding head over to the Github page and contribute or fork this bad boy.