Grain gives art the tooth of real stock. <Grain /> is an overlay inside an art host; the utility class mk-grain adds the tooth to any element marked data-mk-layer="art". Tooth follows the theme (dark specks on Bone, light on Night); speck and fibre come from the pulp stock.
Example#
Usage#
Use grain to give art the tooth of real paper: covers, art plates, gutters at Press. It is an overlay of a fine texture tile inside an art host.
- Kinds.
tooth(default, a paper surface),speck(ink specks) andfibre(for Kraft and pulp stocks). - Amount scales the opacity; keep it subtle.
- Art hosts only. The
.mk-grainclass on an element with text in it failscheck:brand: grain never sits on a plate.
Layer and volume#
Art only, never on a plate. Quiet: none. Studio: art plates and covers. Press: plus gutters. Rave: any surface except plates. None under more contrast.
Anatomy#
- Art hostPositioned, aria-hidden.
[data-mk-layer="art"] - GrainThe tile, over the host.
.mk-grain-layer
Volume#
Quiet
Studio
Press
Rave
Content#
- Grain carries no words and changes no meaning; it is texture.
Do and don't#
Do
Don't
Grain over a form's white plate, so the field labels sit on speckles.
Accessibility#
aria-hidden; texture never sits behind words.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
kind | GrainKind | none | |
amount | number | 1 | 0 to 2, scales the volume's strength (default 1). |
children | undefined | none |
Tokens#
System tokens (1)
Its own properties (8)
--mk-grain-amount--mk-grain-tile--mk-t-bone--mk-t-night--mk-tile-fibre--mk-tile-grain-dark--mk-tile-grain-light--mk-tile-speck
Changelog#
Arrived in 0.1.0.
- The print and comic kits, P0 (21 P2-T11 to P2-T15): the art core (seeded halftone, bursts, balloons, lines, krackle, printer's marks, SFX layers, the texture tiles and
gen-print-tiles), the print kit (Halftone,Overprint,PrinterMarks,Sticker,Stamp,Seal,useStampLand,Tape,Grain,Misregistrationand the.mk-ovsecond ink,GiantGlyph,ShapeGlyph), the dataCover(grid and score,coverAlt,CoverLegend), the comic registers and kit (Panel,PanelGrid,Balloon,Caption,CornerBox,EditorsNote,ContinuedIn,SFX,SfxBurst,SpeedLines,FocusLines,ImpactStar,KeyPop).