# Ink

A high-performance, zero-lag custom text highlighting engine.

## Installation

```bash
npm install ink-highlight
```

## Usage

Import `initInk` and pass target CSS selectors to wrap and initialize:

```javascript
import { initInk } from 'ink-highlight';

// Initialize the zero-lag selection engine on DOM load
document.addEventListener('DOMContentLoaded', () => {
    initInk([
        '.hero-title',
        '.hero-desc',
        '.section-title',
        'p'
    ]);
});
```

## CSS Customization

Configure visual highlights easily using custom CSS properties on `:root`:

```css
:root {
  --ink-color: #000000;       /* Highlight background block color */
  --ink-text-color: #fffcf2;  /* Highlighted text color */
  --ink-height: 0.8em;        /* Highlight height relative to font size */
  --ink-y-offset: 50%;        /* Vertical position of highlight block */
  --ink-x-offset: 0px;        /* Horizontal shift */
}
```
