# From brand guidelines to a design system

This page is for whoever sets Lolly up for an organisation that already has an identity: a logo, colours, typefaces and written standards. At the end you have a design system that every tool draws with, checked on a real piece. The steps use the app. To build a brand pack in a source checkout instead, see [Build a brand pack](/info/build/brand-pack.html).

The examples use Harbour Shire Water, an invented water utility, and values from Lolly Demo, Lolly's own sample design system.

<!--i:eti-building-->
## Start from your organisation's own systems

- **Lolly Work.** If your organisation runs Lolly Work, its design system may be on the instance already. Ask its administrator before you build another ([Design-system administration](/info/manage/design-system-administration.html)).
- **An asset system.** If your organisation keeps its marks in a digital asset management system, Lolly Work can connect part of the library to Lolly tools ([Use Lolly with your existing DAM](/info/manage/use-with-dam.html)). In the Assets view, choose **Open with… → Open in Unpack** on a PDF, SVG, AI or PSD file from any source to open the file straight in Unpack without downloading first. On a connected instance, **Add from… → Organisation library** in Design System Setup brings marks, guidelines PDFs and fonts straight from the library.

**Not yet:** a logo slot keeps a copy of the mark, not a link to the library's file. **Until then:** when the library's mark changes, place the new file again.

<!--i:eti-clipboard-->
## What to collect

An identity has four parts: marks, colours, typefaces and rules. Take each part from the best source you can reach.

| Part | Best source | Next best |
| --- | --- | --- |
| Marks | The organisation's own SVG files, from its logo pack or press kit | A mark lifted from its own PDF with Unpack |
| Colours | The values its standards print: HEX, RGB, CMYK and spot inks | The colours Lolly reads from its website or a saved page |
| Typefaces | The names in its standards, and the fallback face they state | The names Unpack lists from its PDFs |
| Rules | The wording of its standards | None: leave the rule out and note the gap |

Write down where each value came from: the file, the page, and whether the file states the value or you inferred the value.

<!--i:eti-shapes-->
## Marks

You need each mark the standards show, such as the horizontal and the stacked mark, for a light ground and for a dark ground. The **Logos** room has a slot for each ([Logos](/info/create/brand-studio.html#logos)). Use the organisation's own SVG files when you have them.

### Get a mark out of a PDF

1. Open **Unpack** (`#/unpack`) from Utilities and drop the PDF.
2. Open the **Logos** tab. Each tile shows a mark, the page it came from and the colours it paints with.
3. Find the organisation's logo. A guidelines file holds many marks: diagrams, icons and other organisations' logos shown as examples.
4. Press **Download SVG** on its tile, or **Send to Logos** to hand the mark to Design System Setup.

Unpack opens on the first 40 pages of a PDF so long manuals stay fast. When the logo pages come later, type the page range under **Pages** in the Unpack bar (such as `41` to `80`) and press **Read pages**. A terminal can read a page range directly with `lolly unpack guidelines.pdf --out-dir=out --pages=4-6`.

### Clean a lifted mark

A mark lifted from a PDF holds the mark's own shapes, any other shape wholly inside its box and any text set inside its box. Unpack leaves out the page's other text, the page background and any picture under the mark. Open the SVG in a vector editor before you place the mark, and look for these:

| Look for | Why it is there | What to do |
| --- | --- | --- |
| Text | Words set inside the mark's box, such as a trademark sign | Keep the text or delete the text, as the standards say |
| A picture | A texture or photo inside the mark's box | Delete the picture. A mark that needs the picture is not a vector logo |
| Colours a little off the standards | The PDF stores print colours, and Unpack converts them for the screen | Set each fill to the HEX value the standards give |

### Files Unpack does not read

| File | What happens | What to do |
| --- | --- | --- |
| EPS | Unpack explains that the file is EPS and asks for PDF or SVG | Save the mark from a vector editor as SVG or PDF |
| An Illustrator file saved without PDF content | Unpack explains that no PDF content was saved | Save the file again with PDF compatibility, or as SVG |
| A swatch file (`.ase`) | Unpack explains that `.ase` is not read | Type the values into **Colours** |
| A `.penpot` file in Penpot's older format | Unpack explains that the export uses an older Penpot format | Open the file in a current Penpot and export a new `.penpot` |
| A PDF with a password, or encrypted against reading | Unpack stops and states that the PDF is encrypted | Ask its publisher for an open copy |

<!--i:eti-palette-->
## Colours

Take each colour from the standards' own text, not from the fills of a mark.

1. In Unpack, press **Download .md**. Each page comes out as text, with the values the page prints.
2. Check each value against the page picture beside the text on Unpack's **Text** tab. When two pages disagree, note both and record which one you used.
3. In Design System Setup, open **Colours** and paste the values. A pasted list becomes a row of chips. Add each one, then open the swatch and **Rename** the colour to the organisation's own name.
4. In the swatch, open **Print substitutes**. Lock the **CMYK** build and set the **Spot colour**, with its **Name** and **Book**.
5. In **Colour roles**, give the main colours roles in the organisation's own words, and choose what Lolly reads each role as ([Colour roles](/info/create/brand-studio.html#colour-roles-what-the-colours-are-called)).
6. Read the line under each role's value: **Text reads well**, **Large text only** or **Hard to read as text**.

One colour from Lolly Demo, written down in full:

| Field | Value |
| --- | --- |
| Name | Spearmint |
| HEX | `#033633` |
| CMYK | 100 31 59 79 |
| Spot ink | H190_L020_C020, in the freieFarbe HLC Colour Atlas XL |

A website's stylesheet can state the colours too. **Add from…** reads a website or a saved page for its colours ([Bring a brand in](/info/create/brand-studio.html#bring-a-brand-in)). Some websites refuse to be read by a program: save the page from your browser and choose **Saved web page** instead.

<!--i:eti-type-->
## Typefaces

1. Unpack's **Fonts** tab lists the faces a PDF embeds. Most are subsets: they hold only the characters the file printed, and a subset you install is missing every other character. Use the tab for the names, and get the full font file from the organisation or its foundry.
2. Find out whether you may pass the font file on. An open licence, such as the SIL Open Font License, allows that. For a commercial face, each person installs a licensed copy of their own.
3. In the **Type** room, choose the face for each role: Primary, Headings, Code and Italic. Drop a font file you are licensed to use, or pick a Google Font ([Type](/info/create/brand-studio.html#type)).
4. Where the standards state a fallback face, such as Arial for people without the brand face, write the role as a stack in the token file, such as `["Harbour Sans", "Arial"]` ([Design Tokens](/info/build/design-tokens.html#the-format-a-dtcg-profile)).

A design system that comes as a brand pack can bring its font files with it: a face the pack lists draws in the app with nothing to install ([Marks and fonts](/info/build/brand-pack.html#marks-and-fonts)).

<!--i:eti-checklist-->
## Rules

Tokens hold values, and most of an identity's rules are not values. Put each rule where Lolly can use the rule:

| Rule | Where it goes | What Lolly does with it |
| --- | --- | --- |
| Approved colour pairs, text weight, alignment and case, which logo goes on which ground | House rules in the token file, listed in the **Rules** room | Lolly Design checks them in **Before you export**, and `lolly check` checks a saved document |
| Clear space, minimum size, voice, photography | A brand skill, in the brand's own words | People and agents read the skill. Lolly does not check a skill |
| The logo's position, the margins, a footer line | A template made in Lolly Design | Each new piece starts from the template. [Share a design with rules](/info/create/create-a-tool.html) fixes what others cannot change |

House rules are written in the token file ([What the tokens can say](/info/build/brand-pack.html#what-the-tokens-can-say)). In the app, a brand skill can come from a `DESIGN.md`: bring the file in with **Add from…**, and its prose can be kept as a draft skill. **Keep this skill** in the **Skills** room keeps the draft ([Bring a brand in](/info/create/brand-studio.html#bring-a-brand-in)).

<!--i:eti-upload-->
## Put the pieces into Design System Setup

Open **Design System Setup** (`#/start`). The rooms come in any order. This order suits an identity that already exists:

1. **Name the system.** Your first edit makes a design system of your own and asks for its name, such as *Harbour Shire Water*.
2. **Logos.** Drop the cleaned SVG files on the drop zone. Each file waits under **Waiting for a slot** with a suggestion. Press **Place**, or **Change slot** to choose another slot.
3. **Colours.** Paste the values, then rename each colour and set its print values and roles, as in [Colours](#colours).
4. **Type.** Choose a face for each role.
5. **Rules** and **Skills.** Check that the house rules are listed, and keep the brand skills.
6. **Export.** **Export** in the bar writes the whole system as one `.lolly` file to keep or hand on.

**Send N marks and M colours to Design System Setup**, in Unpack's bar, sends your ticked marks and ticked colour-table swatches in one press. Table swatches travel with their own names, CMYK builds and spot inks; fills from chosen marks stay in a separate **Mark fills** group in the **Tray**. Waiting marks stay in the tray across reloads until you place or dismiss them. Nothing installs until you add a candidate to a room.

<!--i:eti-monitor-->
## The app's own room

Some of the brand reaches the app around your work with nothing more to do:

- the app's accent takes the lead colour while **Interface follows the design system** is on in **Settings → Appearance**, as it is by default;
- the app's text takes the brand face;
- the app's corners follow the design system's corner radius.

When a token file states no `color.chrome` group, Lolly derives the page, panels, menus and inks from the brand's own `color.semantic.surface`, `text` and `muted` colours, walking an ink in lightness when contrast is under 4.5:1 ([App chrome from a design pack](/info/build/design-tokens.html#app-chrome-from-a-design-pack)). A stated `color.chrome` group still wins, and a surface outside its theme's lightness band keeps Lolly's own room for that look.

<!--i:eti-badge-check-->
## Check the result

1. **Read what the system holds.** The **Board** in Design System Setup counts your colours, faces and marks, and each block opens its room.
2. **Make one piece in three shapes.** Open [Quote](/t/quote-card) and fill in a real quote. In the export panel, type a width and a height for a portrait, a landscape and a square in turn, such as 1080 by 1350, 1920 by 1080 and 1080 by 1080. The tool lays the piece out again for each shape. Look at the mark, the colours and the type in each.
3. **Try each look.** In the tool's **Design system** section, switch between **Light** and **Dark**, and pick each colourway's dot when the system has colourways.
4. **Compare a PDF with its PNG.** Export the same piece in both formats and put the two side by side.
5. **Check a composition.** In Lolly Design, the **Before you export** card checks a piece against the house rules ([Before you export](/info/create/design.html#before-you-export)).

After a PDF or outlined SVG export, the export notes say when another face drew the words, and how many lines: "Harbour Sans has no font file in this design system. 14 lines were drawn in SUSE." Install the face in the **Type** room, then export again.

<!--i:eti-layers-->
## More than one brand, campaign or look

[A colourway, a logo identity, or a design system of its own](/info/create/brand-architectures.html#a-colourway-a-logo-identity-or-a-design-system-of-its-own) helps you choose the smallest block for each difference. [Brand architectures](/info/create/brand-architectures.html) maps divisions, products, endorsed brands and seasons onto those blocks. [One brand, several kinds of communication](/info/create/kinds-of-communication.html) covers campaigns, notices and local pieces under one master brand. [Working with partners](/info/create/partners.html) covers a partner's mark on your work.

<!--i:eti-info-->
## What Lolly does not read yet

- Clear space and minimum size for your own marks. In a Lolly Work partner programme, a partner kit checks a partner's marks ([Partner kits](/info/manage/partner-programmes.html#partner-kits)).
- Which mark goes on which kind of communication ([Cause and advocacy campaigns](/info/create/kinds-of-communication.html#cause-and-advocacy-campaigns)).
- A logo chosen by colourway. Tools draw the main logo set ([Expanded](/info/create/brand-architectures.html#expanded)).
- Token maths and another product's own token names ([Tokens from another product](/info/build/brand-pack.html#tokens-from-another-product)).

---

Code ([MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/)) · Content ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)) · [lolly.tools](https://lolly.tools)
