0.23.6 • Published 5 months ago

stylament v0.23.6

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Stylament

A fundament for your document styling.

This is gonna be solid. And flexible. At the same time. 😲 Awesome!

What?

Stylament is

  • a design system,
  • a blueprint for building well-structured and prettily-styled web pages,
  • a collection of HTML & CSS patterns.

Stylament is not

  • a “CSS framework” to keep you from learning CSS,
  • a simple theme to apply to your pages and be done,
  • a component library adding tons of JavaScript dependencies.

Why?

After decades of using big HTML & CSS frameworks like Foundation and Bootstrap, seeing hundreds of micro-frameworks popping up, being confronted with the popular misconception called “utility first”, I finally followed the urge to build my own design system. Mainly because I wanted to give proof of the viability of really systematic design approaches.

How?

🚧 N. B.: The how is still subject to change. There may be breaking changes with every release.

Standing on the Shoulders of Giants

Stylament is inspired by a lot of good work others did before me:

  • organized in layers like ITCSS
  • using the best of different methodologies (the right tool for the job) like CUBE CSS
  • founded on axioms like Every Layout
  • driven by a comprehensive set of CSS custom properties like Open Props or Pollen

Layers of Stylament

Install

npm install stylament

Configure

Create a configuration file, e. g. custom/config.scss:

$config: (
  layout: (
    length: (
      // …
    ),
    container: (
      // …
    ),
    spacing: (
      // …
    ),
  ),
  typography: (
    font-family: (
      // …
    ),
    font-weight: (
      // …
    ),
    letter-spacing: (
      // …
    ),
    line: (
      // …
    ),
    measure: (
      // …
    ),
    scale: (
      // …
    ),
  ),
  ui: (
    radius: (
      // …
    ),
    shadow: (
      // …
    ),
  ),
  coloring: (
    palettes: (
      // …
    ),
    color: (
      // …
    ),
  ),
);

See the documentation for details.

Use

In your stylesheet entry point (e. g. index.scss) load your custom configuration and all the Stylament layers, injecting your config into the axioms layer.

@use "custom/config" as custom;

@use "stylament/css/axioms" with ($config-custom: custom.$config);
@use "stylament/css/elements";
@use "stylament/css/idioms";
@use "stylament/css/objects";
@use "stylament/css/utilities";
0.23.6

5 months ago

0.23.5

6 months ago

0.23.4

6 months ago

0.23.3

6 months ago

0.20.1

12 months ago

0.20.0

12 months ago

0.19.0

12 months ago

0.19.1

12 months ago

0.19.2

12 months ago

0.19.3

12 months ago

0.19.4

12 months ago

0.23.2

10 months ago

0.23.1

11 months ago

0.23.0

11 months ago

0.21.1

11 months ago

0.21.0

11 months ago

0.18.1

12 months ago

0.20.5

11 months ago

0.20.4

11 months ago

0.22.1

11 months ago

0.20.3

12 months ago

0.22.0

11 months ago

0.20.2

12 months ago

0.20.4-1

11 months ago

0.20.4-2

11 months ago

0.12.0

1 year ago

0.13.0

1 year ago

0.14.0

1 year ago

0.15.0

1 year ago

0.11.4

1 year ago

0.16.0

1 year ago

0.15.1

1 year ago

0.17.0

12 months ago

0.15.2

1 year ago

0.18.0

12 months ago

0.11.3

1 year ago

0.11.2

1 year ago

0.11.1

1 year ago

0.11.0

1 year ago

0.10.3

1 year ago

0.10.2

1 year ago

0.10.1

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.5

1 year ago

0.8.4

1 year ago

0.8.3

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.2

2 years ago

0.5.1

2 years ago