A swatch chip names an ink. With pairs it lists the pairs that ink is sanctioned for in a look, with the WCAG ratio and the APCA Lc from the tokens' pair data, so a colour page shows what each ink may carry.
Example#
- on-m on ink-m-solid
- 5.3:1, Lc 80
- on-m on ink-m-hover
- 6.1:1, Lc 83
- on-m on ink-m
- 5.3:1, Lc 80
- ink on ink-m-tint
- 15.2:1, Lc 92
- ink-2 on ink-m-tint
- 6.7:1, Lc 75
- ink on ink-m-tint-hover
- 16.7:1, Lc 99
Usage#
Use a swatch chip to specify an ink: a solid block with its name, common name and hex, and, with pairs, the sanctioned text pairs with their WCAG ratio and APCA Lc. The colour pages, the brand book and the client-colourway helper use it.
- Props.
ink,name,code(a reference such as "MAKR 806"),hexandpairs. lookpins the look the values are read in;maxPairscaps the list.
Layer and volume#
Composite: the ink block is an art-free plate and the label a plate. Identical at every volume (reference content).
Anatomy#
- on-m on ink-m-solid
- 5.3:1, Lc 80
- on-m on ink-m-hover
- 6.1:1, Lc 83
- on-m on ink-m
- 5.3:1, Lc 80
- ink on ink-m-tint
- 15.2:1, Lc 92
- ink-2 on ink-m-tint
- 6.7:1, Lc 75
- ink on ink-m-tint-hover
- 16.7:1, Lc 99
- Ink blockSolid, no texture.
.mk-swatch-chip-ink - NameAnybody 900.
.mk-swatch-chip-name - CodeThe house reference and the hex, tabular.
.mk-swatch-chip-code - PairsText pairs with WCAG and Lc.
.mk-swatch-chip-pairs
Volume#
Quiet
MAKR 806Process magenta - on-m on ink-m-solid
- 5.3:1, Lc 80
- on-m on ink-m-hover
- 6.1:1, Lc 83
- on-m on ink-m
- 5.3:1, Lc 80
- ink on ink-m-tint
- 15.2:1, Lc 92
- ink-2 on ink-m-tint
- 6.7:1, Lc 75
- ink on ink-m-tint-hover
- 16.7:1, Lc 99
Studio
MAKR 806Process magenta - on-m on ink-m-solid
- 5.3:1, Lc 80
- on-m on ink-m-hover
- 6.1:1, Lc 83
- on-m on ink-m
- 5.3:1, Lc 80
- ink on ink-m-tint
- 15.2:1, Lc 92
- ink-2 on ink-m-tint
- 6.7:1, Lc 75
- ink on ink-m-tint-hover
- 16.7:1, Lc 99
Press
MAKR 806Process magenta - on-m on ink-m-solid
- 5.3:1, Lc 80
- on-m on ink-m-hover
- 6.1:1, Lc 83
- on-m on ink-m
- 5.3:1, Lc 80
- ink on ink-m-tint
- 15.2:1, Lc 92
- ink-2 on ink-m-tint
- 6.7:1, Lc 75
- ink on ink-m-tint-hover
- 16.7:1, Lc 99
Rave
MAKR 806Process magenta - on-m on ink-m-solid
- 5.3:1, Lc 80
- on-m on ink-m-hover
- 6.1:1, Lc 83
- on-m on ink-m
- 5.3:1, Lc 80
- ink on ink-m-tint
- 15.2:1, Lc 92
- ink-2 on ink-m-tint
- 6.7:1, Lc 75
- ink on ink-m-tint-hover
- 16.7:1, Lc 99
Content#
- The name is the ink's print name; the code is the house reference.
- Values come from the tokens, never typed by hand.
Do and don't#
Do
Don't
A swatch with a hex copied by hand from a screenshot.
Accessibility#
- The name, value and pairs are reading text; the block is decoration beside them.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
ink required | string | none | A role or any CSS colour (a client's ink). |
name required | string | none | The common name ("Process magenta", "Fernlight green"). |
code | string | none | The ink's code ("MAKR 806"); printed large when given, else the name is. |
hex | string | none | The value to print ("#C31A9D"). |
pairs | boolean | none | Lists the ink's sanctioned pairs in `look` (role inks only). |
look | LookSelector | Process, Studio, Bone, normal contrast | The look the pairs are read in (default Process, Studio, Bone, normal contrast). |
maxPairs | number | 6 | At most this many pairs (default 6). |
children | undefined | none |
Tokens#
System tokens (15)
--mk-border--mk-font-display--mk-font-text--mk-ink--mk-paper-plate--mk-rule--mk-shadow-soft--mk-space-1--mk-space-2--mk-space-3--mk-space-4--mk-type-label-leading--mk-type-label-size--mk-type-label-tracking--mk-type-label-weight
Its own properties (5)
--mk-swatch--mk-swatch-code-leading--mk-swatch-code-size--mk-swatch-code-wdth--mk-swatch-line-gap
Changelog#
Arrived in 0.9.0.
EditionNumber,ProofSheet,DieLine,InkDrawdownandSwatchChip(withinkPairs, the ink's sanctioned pairs in a look), and theHalftonephoto plate case. Read the whole entry