Hydra

Hydra Utilities

Experiments

Hydra’s experiments API has beta features that can be helpful in projects. Currently, it provides a function to import CSS scripts for fonts such as Klash Legacy or Inter.

var css = lib.experiments.importCSS("https://legacy.klash.dev/legacy.css");

// Remove later on
css.remove();

[!CAUTION] Be sure you trust the file you’re loading onto your page.

You can also use experiments to create a simple Noise renderer:

lib.experiments.createNoiseRenderer(
    width,
    height,
    colors, // Colors is an array of max. 2 {r,g,b,a} objects. R/G/B are in 255, while A is in 0-1.
    offset
)

Utilities

Hydra provides a hydra.utility for simple ease of use functions.

The last 2 gradient funcs can be used within any “color” property.