Colors
Carefully curated selection of colors that have been formally endorsed or sanctioned for use in specific contexts such as branding and design purposes. We possess a unique and comprehensive collection of colors for visually expressing our brand. More info at HPU Branding Guides
How It Works
- The HPU approved colors arranged in order and use ordinal adjectives (*-1st, *-2nd, *-3rd, etc.) to easily follow the color hierarchy.
-
To apply colors on any element, the base format will be .hpu-{type}-{color}:
-
Where the type is one of:
- bg - for background colors
- border - for borders
- overlay - for semi-transparent colored background
- text - for text colors
-
Where the color is one of the ordinal adjectives mentioned above, or name of the colors that are not included in the hierarchy, such as:
- black
- white
- dark-gray
- gray
- success
- warning
-
Where the type is one of:
-
For other HPUCSS modules, the same format generally applies, with variations depending on the specific module and module type. For example:
- For Cards: .hpu-card .card-bg-{color}
- For Buttons: .hpu-btn .btn-bg-{color} for solid buttons or .btn-outline-{color} for outlined buttons
- For Navbars: .hpu-nav .nav-bg-{color}
- Please refer to the specific module for guidance on applying colors to your elements.
SCSS Color Variables
HPU Color Palette is defined under _variables.scss, and is used as an array to loop with the different colors.
scss/components/_variables.scss
$hpu-colors : (
: #405c6e, // default
: #007298, // teal
: #71B1C8, // light teal
: #4f758b, // blue gray
: #397dc9, // deep ocean blue
: #002856, // blue
: #ffc72c, // warm sun (yellow)
: #dbe442, // new leaf green
: #f7941d, // sunset
: #000000, // black
: #333333, // dark gray
: #a3a5a6, // gray
: #71bf43, // green
: #da3228, // red
: #ffffff, // white
);
Background Colors
Enhance visual design and improve readability or emphasis on web pages. Apply background colors using .hpu-bg-{colors} classes.
NOTE: depending on the background color selected, the text color has already been set for contrast. If different text color is desired, then .hpu-text-{color} must be used.
The Default Color
Primary Colors
Teal (On a webpage, this color should be 75% dominant if color variety is desired).
Light Teal
Black
White (with black border for contrast)
Secondary Colors
Blue Gray
Ocean Blue
Dark Blue
Warm Sun
Leaf Green
Sunset
Dark Gray
Gray
Success
Warning
Border Colors
Apply border colors using .hpu-border-{colors} classes.
Default
Primary Colors
Teal
Light Teal
Black
White (with black background for contrast)
Secondary Colors
Blue Gray
Ocean Blue
Dark Blue
Warm Sun
Leaf Green
Sunset
Dark Gray
Gray
Success
Warning
Overlay Colors
Semi-transparent colors on top of underlying objects, such as background images. Great for landing page background or as text overlay: .hpu-overlay-{color}.
Primary Colors
Secondary Colors
Text Colors
Visual representation of textual content: .hpu-text-{color}. The default text color is #405c6e.
Default Color
Primary Colors:
Teal
Light Teal
Black
White
Secondary Colors:
Blue Gray
Ocean Blue
Dark Blue
Warm Sun
Leaf Green
Sunset
Dark Gray
Gray
Success
Warning