webflow svelte components logoWFS

Colors

Semantic color variables for consistent and meaningful design.

The design system uses semantic color variables to ensure consistency and meaningful use of colors across the application.

Semantic color variables are named values that connect colors to their functional meaning in the interface, using descriptive names like primary or warning instead of using primitive color names like blue or yellow.

All color variables are designed to work seamlessly across all three Webflow interface appearance settings - Brighter, Default, and Darker, ensuring optimal visibility and contrast in any environment.

Color Roles

Color system is organized into semantic roles that guide consistent and meaningful usage across the interface:

  • Primary: Used for primary actions, key interactive elements, and brand representation. These colors guide users to important actions and maintain brand consistency.

  • Critical: Used to communicate error states, destructive actions, or critical warnings that require immediate attention. Examples include error messages and delete confirmations.

  • Warning: Used to indicate caution states, draw attention to important notices, or highlight potential issues that need user awareness but aren't critical.

  • Success: Used to communicate successful operations, completed states, or positive outcomes. Examples include confirmation messages and completion indicators.

  • Orange, Pink, Purple: Accent colors used for visual variety and hierarchy without implying semantic meaning.

Background Colors

Background color variables define surface colors for UI elements, containers, and interactive states throughout the interface.

--wfs-bg-base
--wfs-bg-muted
--wfs-bg-default
--wfs-bg-inverted
--wfs-bg-input
--wfs-bg-primary
--wfs-bg-primary-hover
--wfs-bg-primary-transparent
--wfs-bg-primary-transparent-hover
--wfs-bg-success
--wfs-bg-success-hover
--wfs-bg-success-transparent
--wfs-bg-success-transparent-hover
--wfs-bg-warning
--wfs-bg-warning-hover
--wfs-bg-warning-transparent
--wfs-bg-warning-transparent-hover
--wfs-bg-critical
--wfs-bg-critical-hover
--wfs-bg-critical-transparent
--wfs-bg-critical-transparent-hover
--wfs-bg-orange
--wfs-bg-orange-hover
--wfs-bg-orange-transparent
--wfs-bg-orange-transparent-hover
--wfs-bg-pink
--wfs-bg-pink-hover
--wfs-bg-pink-transparent
--wfs-bg-pink-transparent-hover
--wfs-bg-purple
--wfs-bg-purple-hover
--wfs-bg-purple-transparent
--wfs-bg-purple-transparent-hover

Foreground Colors

Foreground colors are used for text and icons. They ensure readability and proper contrast against the background colors.

--wfs-fg-base
--wfs-fg-muted
--wfs-fg-subtle
--wfs-fg-inverted
--wfs-fg-disabled
--wfs-fg-primary
--wfs-fg-success
--wfs-fg-warning
--wfs-fg-critical
--wfs-fg-orange
--wfs-fg-pink
--wfs-fg-purple

Border Colors

Border colors are used for element borders and dividers to visually separate and organize content.

--wfs-border-base
--wfs-border-muted
--wfs-border-default
--wfs-border-medium
--wfs-border-inverted
--wfs-border-primary
--wfs-border-success
--wfs-border-warning
--wfs-border-critical
--wfs-border-orange
--wfs-border-pink
--wfs-border-purple

Persistent Colors

Persistent colors maintain consistent values across all themes, unlike other color variables that adapt to each theme setting.

--wfs-persistent-white
--wfs-persistent-black

On this page