1.19.1 • Published 4 years ago

ygdir v1.19.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Ygdir

YGDIR: You gotta do it right!

A minimalist, convention-first CSS framework

Ygdir is a new CSS framework that aims to make CSS less painful, by working with strict filename and classname conventions, and aiming to write as little CSS as possible.

Documentation

Visit our website at http://ygdir.dev/

Install

npm i ygdir --save

How to use

Load in the full CSS file:

@import "../../node_modules/ygdir/scss/ygdir";

(Paths will depend on your specific framework)

This is useful for checking out Ygdir. In production, you will want to load in parts of the CSS, meant for specific things, by hand:

@import "../../node_modules/ygdir/scss/ygdir/reset"; // Always start with the reset
@import "../../node_modules/ygdir/scss/ygdir/e-base"; // Always load base elements as well
@import "../../node_modules/ygdir/scss/ygdir/c-button"; // Every other element is optional
@import "../../node_modules/ygdir/scss/ygdir/c-block-list";
@import "../../node_modules/ygdir/scss/ygdir/c-toolbar";

To get some inspiration on packages you would use for different contexts, check out ygdir-content-website.scss and ygdir-app.scss.

Develop

Run the following command:

npm run dev

This will run the Sass compiler with a “watch” style command, which compiles your CSS on save.

CDN Usage

To use Ygdir from a CDN:

<link rel="stylesheet" type="text/css" href="https://unpkg.com/ygdir@latest/css/ygdir.css">
1.19.1

4 years ago

1.19.0

4 years ago

1.17.0

4 years ago

1.16.0

4 years ago

1.15.3

4 years ago

1.15.2

4 years ago

1.15.1

4 years ago

1.14.1

4 years ago

1.14.0

4 years ago

1.13.0

4 years ago

1.12.0

4 years ago

1.11.0

4 years ago

1.10.4

4 years ago

1.10.3

4 years ago

1.10.2

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago