Gradient Library User Guide
Browse, inspect, test, save, share and export 8,192 generated gradients with perceptual metadata, accessibility checks and production-ready formats.
Overview
Browse, inspect, test, save, share and export 8,192 generated gradients with perceptual metadata, accessibility checks and production-ready formats.
1. What the Gradient Library is
+
The Gradient Library is the public browser for the generated Auric Artisan gradient dataset. It
lives at /library/gradient/ and loads
/data/gradient-gen/gradient-index.json, a compact index of the collection generated from
@auric-artisan/gradient-gen; a gradient's full generator metrics load from a detail
file when you open it.
The page is built for design-system work, visual exploration and implementation handoff. You can scan the whole collection, inspect individual gradients, test readable text, preview color vision filters, save candidates and export both single gradients and filtered sets.
- Primary route:
/library/gradient/. - Main data:
/data/gradient-gen/gradient-index.json. - Current count: 8,192 generated gradients.
- Methods: analogous, aurora, chaotic, complementary, duotone, golden, monochrome, nebula, prismatic, spectral, terrain and thermal.
- Stop range: 2 to 46 color stops.
- Best use cases: hero backgrounds, product surfaces, visual systems, editorial palettes, wallpaper assets, theme studies and reusable design tokens.
2. Start the workflow
+Open Gradient Library. Every tab is available from the start: Library, Inspect, Vision, Accessibility, Pair, Tags, Stats, Export and Saved.
- Browse the grid or press / to focus search.
- Use filters when you need a method, complexity level, stop count, interpolation space, easing curve, score band or banding risk.
- Select a card to inspect its stops, CSS and generator metrics.
- Open Vision and Accessibility before placing text or UI on top of the gradient.
- Export a selected gradient, export the visible filtered set or save it to the workspace.
Above the collection, Will your gradient band? takes up to 12 stops of your own, samples the ramp the way a browser paints it and says whether any transition, measured in OKLab, is large enough to read as a step, and where.
3. Browse gradient cards
+The Library tab shows gradient cards in one continuous scroll. Each card is keyboard focusable and opens Inspect with Enter, Space or click.
- Preview: shows the CSS linear gradient using the stored angle and stops.
- Name: includes the generation method, complexity and sequence number, such
as
Aurora Simple #00001. - Stop strip: shows representative stops when a gradient has many colors.
- Score chip: shows the generated quality score.
- CSS action: copies the full CSS gradient.
- Save action: pins the gradient locally and mirrors it to the Library workspace.
The counter under the grid shows which cards are in view, and Back to top returns to the start. The Open a random gradient button opens one from the full collection in Inspect. Shuffle changes the visible order by setting sort to random.
4. Search, filter and sort
+Search matches gradient name, type, angle, stop HEX values, scheme, method, complexity, interpolation, easing and banding metadata. The result search field filters within the same dataset, so you can combine broad search with precise filters.
| Control | What It Does |
|---|---|
Method |
Filters the 12 generator methods: analogous, aurora, chaotic, complementary, duotone, golden, monochrome, nebula, prismatic, spectral, terrain and thermal. |
Scheme |
Filters the display scheme labels derived from metadata. |
Complexity |
Filters simple, detailed or extreme gradients. Current counts are 2,732 simple, 4,095 detailed and 1,365 extreme. |
Stops |
Groups gradients into 2 to 4, 5 to 8, 9 to 16, 17 to 32 and 33+ stop ranges. |
Interpolation |
Filters generated spaces used in the current dataset: lch-short, linear-rgb, oklab, oklch-long and oklch-short. |
Easing |
Filters cubic-in-out, linear, quart-in-out, sine-in-out and smootherstep ramps. |
Score |
Separates top quality at 0.70+, balanced+ at 0.55+ and wild or experimental below 0.55. |
Banding |
Groups smooth, subtle-compression and visible-step-risk results as low, medium and high banding risk. |
Sort |
Sorts by original order, score, complexity, stop count, dominant hue or random. |
5. Inspect a gradient
+Inspect turns a card into a technical report. It shows the full preview, CSS, stop list, generator metadata and quick exports.
- Quick metrics: type, angle, stop count, method, complexity, score, interpolation space, easing, banding, white text minimum, black text minimum and dominant hue.
- CSS panel: shows the exact
linear-gradient()string and copy, CSS download and SVG download actions. - Color stops: lists every stop with index, swatch, HEX and percent position.
- Generator metrics: exposes scheme, interpolation, easing, sample count, complexity score, Delta E mean, uniformity, banding and seed.
- Quick export: downloads JSON, Tailwind, PNG, share links, design tokens and saved state from the selected gradient.
Use Inspect when a gradient looks promising but needs implementation details. The CSS string is already ordered by stop position and normalized for browser use.
6. Preview color vision states
+The Vision panel renders the active gradient through SVG filters so you can catch gradients that collapse under common color vision conditions.
- Normal: original gradient.
- Deuteranopia: green-insensitive simulation.
- Protanopia: red-insensitive simulation.
- Tritanopia: blue-yellow simulation.
- Achromatopsia: grayscale simulation.
- Low Vision: blur plus reduced saturation.
These previews are screening tools. They help identify risk before a formal accessibility review, especially when gradients communicate status, direction or category.
7. Read accessibility sampling
+The Accessibility panel samples the selected gradient across the ramp and computes WCAG-style contrast against white, black and automatic text choice.
- White text min: weakest contrast sample for white text.
- Black text min: weakest contrast sample for black text.
- Auto text min: contrast after choosing white or black per sample.
- Adjacent stop min: lowest contrast between neighboring stored stops.
- AA-safe samples: count of sampled positions where auto text reaches 4.5:1.
- Sampled stops: 17 evenly spaced samples with HEX and best white/black contrast.
Gradients often pass in one area and fail in another. Treat the weakest sampled region as the design constraint, not the average or the most attractive region.
8. Test text pairing
+Pair is a practical typography test. Choose a text color with the color input, HEX input or quick buttons for white, black and gold.
- The preview places real copy over the active gradient.
- The result panel reports minimum contrast, average contrast, text color and a status message.
- A minimum of 4.5:1 means sampled normal text passes AA across the whole ramp.
- A minimum from 3:1 to 4.49:1 means large text may work in weaker regions.
- A minimum below 3:1 usually needs an overlay, shadow, different text color or a different gradient.
Pair is the fastest way to decide whether a gradient can be a real content surface or should remain decorative.
9. Use tags and stats
+Tags and Stats are exploratory panels for understanding the full dataset or the current filtered result set.
- Tags: counts and clickable filters for methods, schemes, complexity levels, interpolation spaces, easing curves and banding labels.
- Stats: bar charts for methods, complexity, stop counts, interpolation, easing and score bands.
- Tag click: applies the matching filter and returns to Library.
- Filtered statistics: Stats uses the filtered set when filters are active, then falls back to the full collection.
Use these panels when you need to audit coverage, find underused interpolation spaces or prepare a curated export set.
10. Export gradients
+Gradient Library supports selected-gradient exports and visible-set bulk exports.
| Export | Scope | Use Case |
|---|---|---|
Copy CSS |
Selected | Paste the active linear-gradient() into CSS, Figma notes or a design
ticket. |
CSS class |
Selected or visible | Reusable .aa-gradient-... classes. |
JSON |
Selected or visible | Structured metadata, stops, angle, type, score and generator information. |
SVG |
Selected | Vector preview for docs, specs and design review. |
PNG |
Selected | Raster preview generated on a 1600 x 1000 canvas. |
CSV |
Visible | Spreadsheet review of id, name, method, complexity, score, banding and CSS. |
Tailwind |
Selected or visible | Token fragments keyed by slugged gradient names. |
Design tokens |
Selected | Token-dialog export with one composite gradient token and one stop token per color. |
Share link |
Selected | Open the Auric Artisan share dialog with gradient id, name, CSS, stops and method. |
12. Understand the dataset
+| Field | Current Value |
|---|---|
source |
@auric-artisan/gradient-gen |
count |
8192 |
seed |
20260514 |
generated_at |
2026-05-14T12:41:17.986Z |
default_steps |
96 |
stop_count_range |
2 to 46 |
score_range |
0.315 to 0.782 |
Each gradient stores angle, type, stops,
name and meta. Stops use pos, hex and
optional oklch arrays. Metadata includes method, complexity, sample count,
interpolation space, easing, score, complexity score, Delta E mean, uniformity, banding, CSS
preview, source and seed.
13. Good practice and limits
+- Use search when you know a method, HEX value, interpolation space or name fragment.
- Use score and banding filters together when a gradient is headed for production UI.
- Inspect stop count before using a gradient in environments that simplify CSS.
- Use Vision before encoding meaning with hue transitions.
- Use Pair before placing body copy, labels or buttons over a gradient.
- Use JSON for audits, CSS for implementation, SVG or PNG for review and Tailwind or design tokens for system work.
- Rename exported classes or tokens before shipping them in a public product system.
- Regenerate exports after the source dataset changes; share ids depend on the current collection order.
For generator internals, see the Gradient Gen Developer Reference. For this browser's implementation, see the Gradient Library Developer Reference.