YACCK

Yet Another Classless CSS Kit

YACCK - Yet Another Classless CSS Kit

YACCK is a classless, responsive CSS kit that focuses on pure HTML semantic elements. It is inspired by many other similar minimal CSS frameworks, such as MVP.css and new.css. It is intended to be used on simple websites and blogs.

This is a work in (slow) progress. View the source on GitHub.

Install

You can download the `yacck.css` file from GitHub and include it in your project:

<link rel="stylesheet" href="path/to/yacck.css">

or use a CDN (minimized file):

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sphars/yacck/yacck.min.css">

For more details, including customizing and fonts, see the GitHub readme.


The following is an example of how various elements are styled. Please see the source code of this page for the markup structure.

Text Elements

Headings

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6

Paragraphs

Lorem ipsum dolor sit amet consectetur adipiscing elit ac ridiculus curabitur porttitor, interdum pretium sed velit natoque mus commodo feugiat habitasse aliquam justo class, nostra per dui risus quisque erat mauris semper dictum nisi. Ac at enim eleifend nulla turpis erat interdum accumsan facilisi, consequat quisque euismod id fringilla sed potenti.

Inline Text Elements

Blockquotes

Do I need to be liked? Absolutely not. I like to be liked. I enjoy being liked. I have to be liked, but it's not like this compulsive need to be liked, like my need to be praised.

Preformatted Text

P R E F O R M A T T E D T E X T
! " # $ % & ' ( ) * + , - . /
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~ 

Code Block

Wrap your <code> element in a <pre> element to display it as a block.

<div>
    <p>This is a very important paragraph. It goes on and on and on and on...<p>
<div>

Images

An image of a dog

Lists

Unordered List

Ordered List

  1. List Item 1
  2. List Item 2
  3. List Item 3
  4. List Item 4

Definition List

Term 1
Definition 1
Term 2
Definition 2
Term 3
Definition 3

Details

Also sometimes referred to as an accordion element.

More Details

This is the extra details you need to know.

Horizontal Row


Tables

Note: I'd prefer to have the tables be full-width, with overscroll-x for large tables that expand beyond the viewport. However, without a wrapper around it, I haven't found clean CSS-only solution. A div wrapper can't be targeted via CSS without a class or adding some attribute. There may be a solution I am unaware of. For now, tables are full-width and if the table content is too large, the content will be clipped on as viewport width is reduced. This may change, depending how I feel about adding extra stuff.

This is a table of very important data.
Column 1 Column 2 Column 3 Column 4
Row 1 Col 1 Row 1 Col 2 Row 1 Col 3 Row 1 Col 4
Row 2 Col 1 Row 2 Col 2 Row 2 Col 3 Row 2 Col 4
Row 3 Col 1 Row 3 Col 2 Row 3 Col 3 Row 3 Col 4
Row 4 Col 1 Row 4 Col 2 Row 4 Col 3 Row 4 Col 4
Footer 1 Footer 2 Footer 3 Footer 4

Forms

An Example Form

Form elements should be a combination of a label and an input wrapped in a block-level element such as a div. Checkboxes and radio buttons should be wrapped in a li element, wrapped in a ul element.

Note: Most of these inputs are not yet styled, other than adjusting the sizing. As soon as I figure out how to adjust the styles, I work on that.

Common Inputs
Select Controls
Other Controls
Buttons