1.1.4 • Published 2 years ago

@klickste/ink v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ink logo

Color tooling and core colors library.

npm publish npm (scoped)

Usage

Run npm i @klickste/ink in your project directory.

Use and (optionally) configure the Sass module:

@use '@klickste/ink' with (
  $namespace: 'acme',
  $useDarkMode: false,
  $useDisplayP3: false
);

Use the predefined modules:

@use '@klickste/ink/core';
@use '@klickste/ink/gray';

:root {
  @include core.palette;
  @include gray.palette;
}

Use the built-in mixins

Declare multiple colors:

$myPalette: (
  'brand': rgb(242 59 34),
  'accent': rgb(52 195 117),
);

:root {
  @include ink.colors($myPalette);
}

Declare a single color:

:root {
  // RGB color
  @include ink.color('brand', rgb(242 59 34));

  // Display P3 color
  @include ink.color('brand', rgb(242 59 34), true);
}
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago