Colors in SuiteCommerce: Sass Variable Definitions

Colors in SuiteCommerce are defined using Sass variables for flexible web design. Learn how neutral shades and theme palettes are structured.

·2 min read·View Oracle Docs

Colors play a crucial role in the design and experience of SuiteCommerce websites by utilizing Sass variables for enhanced flexibility and maintainability. These variables are defined into various categories such as primary, secondary, themes, and neutral shades, making it easier to manage the color palette across a web store.

How Are Colors Defined in SuiteCommerce?

The definition of colors in SuiteCommerce and SuiteCommerce Advanced is layered and organized. The primary categories include:

  • Primary Colors: The main colors used for branding and key interface elements.
  • Secondary Colors: These complement primary colors, providing additional options for design.
  • Neutral Shades: Colors that provide balance in the design.
  • Theme Colors: Customizable palettes that help define the overall look and feel of your website.

Neutral Shades Design

Neutral shades are represented on a shading scale ranging from 1000 (dark) to 0 (light). The BaseSassStyle module handles these definitions in the BaseSassStyles/Sass/variables/_colors.scss file. Here is a breakdown of how neutral shades are typically structured:

css
1//...
2$sc-neutral-shade: #4D5256;
3$sc-neutral-shade-700: darken($sc-neutral-shade, 18);
4$sc-neutral-shade-500: $sc-neutral-shade;
5$sc-neutral-shade-300: lighten($sc-neutral-shade, 20);
6$sc-neutral-shade-0: lighten($sc-neutral-shade, 100);
7//...

In this example:

  • $sc-neutral-shade is defined as a base gray color.
  • Other shades are derived from this base using darkening and lightening functions, creating a range of grey variations.

Intermediate neutral shades

Theme Color Palette

The theme palette employs colors defined elsewhere rather than specifying hex values directly. This method allows for greater consistency and ease of updating across a website's design.

Summary

By using Sass for color definitions, SuiteCommerce websites can easily maintain and adjust their color palettes. This structure allows developers to manage colors more intuitively, enhancing overall site coherence and design adaptability.

Key Considerations

  • Ensure colors are accessible and maintain readability against backgrounds.
  • Utilize the shading scale effectively to create varied designs without straying from your brand identity.
  • Regularly update and test your color definitions to keep your online presence fresh and user-friendly.

Key Takeaways

  • SuiteCommerce utilizes Sass for flexible and maintainable color variables.
  • Colors are categorized into primary, secondary, neutral, and theme colors.
  • Neutral shades follow a systematic shading scale for ease of use.
  • Theme colors reference existing defined colors for consistent design.
  • Maintaining good color contrast enhances user experience.

Frequently Asked Questions (4)

How are neutral shades structured in SuiteCommerce's color system?
Neutral shades in SuiteCommerce are structured on a shading scale from 1000 (dark) to 0 (light). They are based on a gray color defined as `$sc-neutral-shade`, with additional shades created using darkening and lightening functions.
Where can I find the Sass variable definitions for neutral shades in SuiteCommerce?
The Sass variable definitions for neutral shades in SuiteCommerce can be found in the `BaseSassStyles/Sass/variables/_colors.scss` file, managed by the BaseSassStyle module.
Can theme palette colors in SuiteCommerce directly use hex values?
No, theme palette colors in SuiteCommerce do not directly use hex values. Instead, they reference colors defined elsewhere, allowing for consistent and easily updateable design elements.
What should be considered when updating color definitions in SuiteCommerce?
When updating color definitions in SuiteCommerce, ensure that colors are accessible and maintain readability against backgrounds. Regular updates and testing are crucial to keep the online presence fresh and user-friendly.
Source: Colors Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →