Market
Pricing
Sign inStart
Field GuideUsing Gradiently
Using Gradiently

Auto ink: how Gradiently picks light or dark type for every line

A gradient is light in one place and dark in another, so no single text colour suits all of it. Auto ink decides line by line, and the Mark helps from behind.

GradientlyVerified Gradiently account·October 1, 2026·5 min read
Cover: Verdigris Portico · GR·3CA9·KF

The short version

  • Auto ink is a Gradiently setting that picks light or dark type for each line of text, whichever reads better on the part of the Mark right behind it.
  • Both inks come from the Mark's own palette, so the type always belongs to the background rather than defaulting to pure white or black.
  • Text can also be fixed to the light ink or the dark ink when you want one colour regardless of the background.
  • Auto ink works together with the Mark's reaction, which settles the material behind words, from Off through Invisible, Subtle and Clear to Bold.
  • Neither uses boxes, shadows or blur, and you choose how strongly the Mark responds.
On this page
Why one text colour fails on a gradientHow Auto ink chooses light or darkAuto, light or dark: the three ink modesHow the Mark helps from behindWhat Auto ink deliberately avoidsGetting the most from Auto ink

Auto ink is how Gradiently chooses the colour of your type. For each line of text set to Auto, it looks at the part of the Mark directly behind it and picks the light ink or the dark ink, whichever reads better there. Both inks come from the Mark's own palette, so a headline over a pale corner turns deep while a caption over a dark band turns light, and both still look like the same brand.

Why one text colour fails on a gradient

On a flat background you choose a text colour once. A gradient changes as it goes: the top of a story might be nearly white and the bottom nearly black. White text that reads beautifully at the bottom vanishes at the top, and a long headline can cross both. That is the core problem in text on a gradient background, and the usual fixes, boxes behind words and drop shadows, cover up the very background you chose.

Saturday and Sunday
Studio sale this weekend.
Prints, cards and seconds
Gradiently · @gradiently

One fixed colour across a changing background: parts of the type fight the material.

Saturday and Sunday
Studio sale this weekend.
Prints, cards and seconds
Gradiently · @gradiently

Auto ink with the Mark reacting: each line takes the ink that reads, and the material settles behind it.

How Auto ink chooses light or dark

Every Mark carries a light ink and a dark ink drawn from its palette: a pale tone and a deep tone that belong with its colours. When a line is set to Auto, Gradiently measures the material in the area that line covers and gives it whichever ink stands out more. Move the text and the choice follows. Resize the design to a story or a banner, where the light lands somewhere else, and each line is chosen again.

An example Mark palette with its two inks at either end. The inks are tinted with the Mark's own warmth, not pure white and pure black.

The idea behind it is the same contrast measure used in the web's accessibility guidelines: compare how light the text is with how light the background is. Here is the principle in a few lines of code, for anyone building something similar on the web.

js
// Relative luminance of an sRGB colour, as defined in WCAG
function luminance([r, g, b]) {
  const c = [r, g, b].map((v) => {
    v /= 255
    return v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4
  })
  return 0.2126 * c[0] + 0.7152 * c[1] + 0.0722 * c[2]
}

const contrast = (a, b) => {
  const [hi, lo] = [luminance(a), luminance(b)].sort((x, y) => y - x)
  return (hi + 0.05) / (lo + 0.05)
}

// Pick whichever ink contrasts more with the colour behind the line
function pickInk(behind, lightInk, darkInk) {
  return contrast(behind, lightInk) >= contrast(behind, darkInk) ? lightInk : darkInk
}

pickInk([156, 79, 107], [251, 243, 234], [26, 15, 31]) // the light ink
The principle only, not Gradiently's own code. A real background varies under a line, so the area behind it has to be measured, not a single pixel.

For the numbers themselves, WCAG asks for a contrast ratio of at least 4.5:1 for body text and 3:1 for large text. Colour contrast and accessibility explains the ratios, and WebAIM's contrast checker lets you test any pair.

Auto, light or dark: the three ink modes

AutoPicks the light or dark ink per line from what is behind it

Use it when

Almost always: headlines, details, captions on a changing background
LightAlways uses the Mark's light ink

Use it when

A dark Mark where you want every line to match, such as a quote card
DarkAlways uses the Mark's dark ink

Use it when

A pale, papery Mark, or print where you want one consistent ink
ModeWhat it doesUse it when
AutoPicks the light or dark ink per line from what is behind itAlmost always: headlines, details, captions on a changing background
LightAlways uses the Mark's light inkA dark Mark where you want every line to match, such as a quote card
DarkAlways uses the Mark's dark inkA pale, papery Mark, or print where you want one consistent ink
Text starts on Auto. Switching a line to a fixed ink is one choice in the type colour settings, and Back to Auto ink returns it.

You can still colour text with any colour from your brand kit or the Mark's palette. Auto ink is the default because it is the choice that keeps working when the design moves to another size.

How the Mark helps from behind

Choosing the right ink is half the job. The other half is the background itself. A Mark knows where the words are: its calmest, best contrasting region moves behind the text, colours near the letters deepen or lift, and busy detail relaxes. The full mechanism is in a background that adapts to text. Auto ink then picks the ink for that settled area, so the two reinforce each other.

Off

What happens behind your words

The material ignores your words
Invisible

What happens behind your words

Only where it is needed; nobody will notice
Subtle

What happens behind your words

Balanced: the look stays, the words read
Clear

What happens behind your words

Words always win
Bold

What happens behind your words

The most contrast it gives, calm a little wider
ReactionWhat happens behind your words
OffThe material ignores your words
InvisibleOnly where it is needed; nobody will notice
SubtleBalanced: the look stays, the words read
ClearWords always win
BoldThe most contrast it gives, calm a little wider
The reaction levels you can choose for a design, from the material ignoring words to giving the most contrast it can.

Past the presets, four dials let you tune it: Tone, how far the material settles behind words for contrast; Calm, how much its warp and busyness relax; Bend, a slight bend of the pattern at the edge of the words; and Reach, how far around the words it responds. You choose how strongly it acts, so a poster can stay wild while a menu stays quiet.

What Auto ink deliberately avoids

Avoid

  • A solid box behind every line
  • Drop shadows that smudge the edges of letters
  • Blurring the background behind the text
  • Pure white type on a pale corner

Do

  • Let each line take the ink that reads
  • Let the Mark settle a calmer area behind words
  • Keep the inks in the Mark's own palette
  • Raise the reaction level for small or long text

Boxes and shadows work, but they announce themselves and hide the background. Alternatives to text shadows covers why, and text on a busy background has more ways to keep words readable without them.

Getting the most from Auto ink

  1. 1

    Leave text on Auto

    Only fix a line to light or dark when you have a specific reason, such as matching a printed set.

  2. 2

    Pick a reaction for the job

    Subtle suits most social posts. Choose Clear or Bold for small type, long details or anything read at a distance.

  3. 3

    Check every size

    After resizing, look at each format. The ink is chosen again for each one, which is usually what you want.

  4. 4

    Keep headlines short

    A line that crosses from the lightest to the darkest part of a Mark is harder for any ink. Break it into two lines.

Design with a living gradient

Posts, stories, slides and banners in every size, with text that always reads.

Start designing, free

Questions people ask

What is Auto ink in Gradiently?

A type colour setting that picks the Mark's light or dark ink for each line, depending on which reads better against the part of the background behind it.

Can I turn Auto ink off?

Yes. Set a line to always use the light ink or the dark ink, or give it any colour you like. Back to Auto ink returns it.

Does Auto ink add shadows or boxes behind text?

No. It only changes the type colour. The Mark itself settles a calmer area behind the words, without boxes, shadows or blur.

What contrast ratio should text have on a background?

WCAG asks for at least 4.5:1 for body text and 3:1 for large text.

Why did my text change colour after I resized the design?

In a new size the light falls in a different place, so Auto ink picks the ink again for each line to keep it readable.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

Why one text colour fails on a gradientHow Auto ink chooses light or darkAuto, light or dark: the three ink modesHow the Mark helps from behindWhat Auto ink deliberately avoidsGetting the most from Auto ink

Share this guide

Next in Using Gradiently

A background that adapts to text: how a Mark makes room

Keep reading

All Using Gradiently guides
Using Gradiently

A background that adapts to text: how a Mark makes room

5 min read

Most backgrounds are pictures, and pictures don't know where your headline is. A Mark does, so it rearranges itself to let the words through instead of hiding behind a box.

Type and text

Text on gradient background: how to make it read every time

5 min read

A gradient changes under every letter, so a colour that reads at one end can vanish at the other. Here is the method that keeps words readable across the whole blend.

Colour

Color contrast: readable text for everyone

5 min read

Contrast is the difference between words people read and words people skip. The WCAG numbers in plain English, how to check them, and what changes when the background is a gradient.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designing

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently