Icon library

Icon library

Client

QuillBot

Service

Visual Design

Industry

Design

Year

January 2024

QuillBot's icon system follows the Material Design rounded icon style as a reference, with a few tweaks added in to fit our use cases. We created below guidelines while crafting new icons for our library. This makes it easy for everyone to contribute to the Foundations library.


As a rule of thumb we follow:

  • Use icons to augment text rather than replace it.

  • If an icon doesn’t have any text labels, use an aria-label.

  • If an icon has a label and is merely decorative, make sure screen readers skip it.

Anatomy

Anatomy

logo design example
  1. Safe area: Area where the icon shape resides. For our default large icon, this boundary will be 20x20 pixels.


  1. Trim area: Area outside the safe area that forms the complete icon. Icons shouldn’t extend into the trim area unless visual weight adjustments are needed. For our default large icon, this boundary will be 24x24 (20x20 safe area + 2 padding all around).

Variants

Variants

2 types

2 types

  1. Global icons Global icons use permissible colors from our StyleQ theme. These icons will change colors based on the theme selected.


  1. Static icons These have a fixed, predefined color and can’t be changed with a theme switch. Examples include product icons, social media icons, and logos.


Note: Global icons should use our color-icon token to ensure they render well in our color modes. Icons can also take in our color-accent, color-brand or color-semantic color tokens based on the use case.

4 sizes

4 sizes

logo example

1. Xlarge (32x32), 2. Large (24x24), 3. Medium (16x16), 4. Small (12x12)ALT

Large-size (24x24) icons are used by default, followed by medium (16x16) icons. Xlarge and small icons are used in special circumstances only. Small icons are generally reserved for extension-specific scenarios. Use icons only at their designated sizes to ensure strokes don't become too thin.

Contribution guide

Before icons are added to the library, we consider the following:


  1. Where will the icon be used? Is it necessary in that context?

  2. Could we use an existing icon without blurring its established meaning? For example: We can’t use a product icon for a feature icon. Check out our icons page in Figma or icon explorer in Storybook.

  3. Is there a Material Design icon that we can use? Use this Figma plugin to check.

  4. If you’re creating a custom icon, are you following our icon design guidelines?

  5. Have you prepped the icon for library addition?

    1. Steps for designers

    2. Steps for developers

Design guidelines

Design guidelines

Use these guidelines as a reference when designing new StyleQ icons. All StyleQ icons should be designed for a base size of 24 pixels.

Key shapes

Key shapes

Use the following key shapes as a baseline to construct icons. This ensures the visual weight of the icon matches the rest of the icon library.


Square: 18x18

Circle: 20x20

Vertical rectangle: 20x16

Horizontal rectangle: 16x20


Note: This is just a guide. Not all icons are meant to fit precisely in a simple shape. Article on optical alignment.

Style

Style

We follow the Material Design rounded outline style (without fill) for our icons, which pairs well with our overall rounded brand aesthetic. Our icons should be simple, universal, consistent, and accessible.


Create icons using basic geometric shapes whenever possible. Aim for single-object shapes with less complexity.


Use fill shapes only for toggle states or in rare situations when the icon demands it (e.g., a pie chart icon).

Pixel-snap whenever possible

Pixel-snap whenever possible

Position icons “on pixel” by making the x and y coordinates whole numbers. Curved lines can’t perfectly conform to a square pixel, but the idea is to get as close as possible. Try to at least align the outer edge of the icon shape on whole pixels.

Corners

Corners

To give a rounded feel to the icons, we use a 2px corner radius by default. You can take in a 1px corner radius for cases where 2px dilutes the icon shape.


This also applies to cases where the stroke itself is less than 2px. The goal is for the icons to have a consistent aesthetic without compromising legibility. The inside corners are generally not rounded.


The 1px radius gives more definition to the extremities of the bookmark icon.

Stroke & end caps

Stroke & end caps

The default weight for both strokes and counterstrokes is set at 2px. If a stroke is complex, you can subtly adjust it for visual alignment (e.g., reducing it from 2px to 1.5px).


Use whole, even number increments where possible. Fold down to 1px or 0.5px if necessary. Use rounded end caps for strokes by default.


When working with enclosed shapes, keep the strokes set inside for easier pixel fitting.

logo design
design example

Let's work together and bring great ideas to life

© 2024 — Swati Yadav

Let's work together and bring great ideas to life

© 2024 — Swati Yadav