Colors

Swatches

As mentioned before, Nord UI uses Nord colors. Nord consists sixteen colors, placed in four color palettes:

Polar Night

Polar Night is made up of four darker colors that are commonly used for base elements like backgrounds or text color in bright ambiance designs.

nord-0
#2E3440
nord-1
#3B4252
nord-2
#434C5E
nord-3
#4C566A

Snow Storm

Snow Storm is made up of three bright colors that are commonly used for text colors or base UI elements in bright ambiance designs.

nord-4
#D8DEE9
nord-5
#E5E9F0
nord-6
#ECEFF4

Frost

Frost can be described as the heart palette of Nord, a group of four bluish colors that are commonly used for primary UI component and text highlighting and essential code syntax elements.

nord-7
#8FBCBB
nord-8
#88C0D0
nord-9
#81A1C1
nord-10
#5E81AC

Aurora

Aurora consists of five colorful components reminiscent of the „Aurora borealis“, sometimes referred to as polar lights or northern lights.

nord-11
#BF616A
nord-12
#D08770
nord-13
#EBCB8B
nord-14
#A3BE8C
nord-15
#B48EAD

For more details about colors, refer to Nord Theme Documents.

Color Variants

Nord UI uses six colors as it's color swatch. these are core colors that commonly been used in components. some components even have special modifier class to easily switch to one of these colors.

Primary
Secondary
Info
Success
Warning
Danger
  • Primary: suitable for many UI states.
  • Secondary: suitable for many UI states and in combination with Primary color.
  • Info: useful when showing information or noticing user.
  • Success: indicates a successful operation.
  • Warning: to warn user about something.
  • Danger: indicates an error, failure operation or dangerous actions.

Using Color

It's easy to modify Nord UI components and other UI element using these colors. each color comes with two modifier class. one for textual content and one for background color.

If you've installed Nord UI using package managers (link NPM and Yarn), you need to manually import colors classes.

Import Path

Import following style(s) to include colors classes in your app:

  • Base: nord-ui/dist/colors.css
  • Dark Theme: none

Texts

Each color has a modifier class that ends with the color's name, prefixed by text-. for example, nord-3's class is text-nord3.

Using nord-11 to display this text
<span class="text-nord11">Using nord-11 to display this text</span>


Also, core colors, can be accessed with both variant name and color name. e.g. the Primary is nord-7 and has both text-primary and text-nord7 classes.

See Example:

A successful message

Another successful message

<p class="text-success">A successful message</p>
<p class="text-nord14">Another successful message</p>

Backgrounds

Like textual content, we can change background-color property of an element using modifier class, except we'll use bg- prefix on class name.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
<div class="card">
    <div class="card-body bg-primary">
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
    </div>
</div>