An open API service indexing awesome lists of open source software.

https://github.com/narkoz/zint

Modern, pre-built CSS gradients for text, using the OKLCH color model
https://github.com/narkoz/zint

css npm-package sass

Last synced: 3 months ago
JSON representation

Modern, pre-built CSS gradients for text, using the OKLCH color model

Awesome Lists containing this project

README

          

# Zint

Modern, ready-to-use CSS gradients for text, built entirely with the OKLCH color
model.

[**Live Demo**](https://narkoz.github.io/zint/)

## Installation

Install the package from the npm registry:

```sh
npm install zint
```

## Usage

You can include the CSS in your project using multiple methods:

- **Import the compiled CSS directly** in your stylesheet or JavaScript file.
- **Use the Sass source** to customize or extend styles in your own Sass/SCSS files.
- **Load the CSS from a CDN** for quick integration without installing the package.

Choose the method that best fits your workflow and project needs.

### Compiled CSS

Import the compiled CSS in your main stylesheet or directly in your JavaScript/TypeScript entry file:

```css
@import "~zint/dist/zint.css";
```

or, with webpack/Vite/Parcel, directly in JS:

```js
import 'zint/dist/zint.css';
```

### Sass Source

If you want to customize variables or use mixins, import the main Sass file in your Sass/SCSS entry:

```scss
@use "zint/src/zint";
```

### CDN

Link the stylesheet in your HTML:

```html

```

Then, apply the gradient classes to your text elements:

```html

Hello, World!


```

## Available Gradients

* `zint-aqua-flora`
* `zint-azure-tide`
* `zint-coral-glow`
* `zint-deep-sea-mist`
* `zint-dreamy-haze`
* `zint-forest-stream`
* `zint-fuchsia-flash`
* `zint-galactic-beam`
* `zint-glacial-ice`
* `zint-graphite-sheen`
* `zint-liquid-gold`
* `zint-meadow-spring`
* `zint-neon-fusion`
* `zint-pastel-morning`
* `zint-phoenix-fire`
* `zint-solar-flare`
* `zint-starlit-abyss`
* `zint-supernova-burst`
* `zint-tropical-zest`
* `zint-volcanic-sunset`

## License

Released under the BSD 2-clause license. See LICENSE.txt for details.