Colors

Color distinguishes the brand of State Web Template websites. Our custom color themes help create consistent experiences across products.

Add a color theme

There are two ways to customize your main theme colors:

  • Change the primary and secondary theme color variables in the SASS file (/src/scss/colortheme/oceanside.scss).
  • Manually find and replace your main theme colors and their variations in the CSS file.

Use meaningful colors to visually communicate what people need to see.

Color themes

Our color themes were developed following best practices in accessibility. Colors were carefully selected to have sufficient contrast between text and backgrounds. Additionally, each theme has css rules to ensure proper color contrast ratios.

People with low vision should be able to see and use your web products. We recommend choosing primary, secondary, and accent colors with accessible color contrast ratios. Use Accessible WEB opens in a new window to check the accessibility of your color combinations.

Grayscale

We've added a grayscale palette that works well with all color themes. This allows you to have more design flexibility.

.color-white
.bg-white
#ffffff

.gray-50
.bg-gray-50
#fafafa

.gray-100
.bg-gray-100
#ededef

.gray-200
.bg-gray-200
#d4d4d7

.gray-300
.bg-gray-300
#bcbbc1

.gray-400
.bg-gray-400
#a4a3ab

.gray-500
.bg-gray-500
#898891

.gray-600
.bg-gray-600
#72717c

.gray-700
.bg-gray-700
#5e5e6a

.gray-800
.bg-gray-800
#4a4958

.gray-900
.bg-gray-900
#3b3a48

.color-black
.bg-black
#000000