Colors

Color system and theme

Color System

Podo UI provides 8 semantic colors, each with 7 variants (base, hover, pressed, focus, fill, reverse, outline). Built on CSS variables, allowing easy light/dark mode switching.

Color Palette

Primary

primary

Primary actions and brand color

Default

default

Default UI elements

Default Deep

default-deep

Emphasized default color

Info

info

Informational messages

Link

link

Links and navigation

Success

success

Success state indication

Warning

warning

Warning messages

Danger

danger

Danger/error state

Color Variants

Each color provides 7 variants corresponding to various states:

Base

Base color

primary-base

Hover

Hover state

primary-hover

Pressed

Pressed state

primary-pressed

Focus

Focus state

primary-focus

Fill

Background color

primary-fill

Reverse

Reverse color (text)

primary-reverse

Outline

Outline color

primary-outline

Using in SCSS

You can apply colors using the color() function in SCSS modules:

component.module.scss
@use 'podo-ui/mixin' as *;

.button {
  // 기본 색상
  background: color(primary);
  color: color(primary-reverse);
  border: 1px solid color(primary);

  // 호버 상태
  &:hover {
    background: color(primary-hover);
    border-color: color(primary-hover);
  }

  // 눌림 상태
  &:active {
    background: color(primary-pressed);
  }

  // 포커스 상태
  &:focus {
    outline: 2px solid color(primary-outline);
  }
}

// Fill 스타일 버튼
.buttonFill {
  background: color(primary-fill);
  color: color(primary);
  border: 1px solid color(primary-outline);
}

Using with CSS Classes

You can directly apply color classes to HTML elements:

HTML
<!-- 텍스트 색상 -->
<div class="primary">Primary 색상 텍스트</div>
<div class="danger">Danger 색상 텍스트</div>

<!-- 배경 색상 -->
<div class="bg-primary">Primary 배경</div>
<div class="bg-success-fill">Success Fill 배경</div>

<!-- 테두리 색상 -->
<div class="border-primary">Primary 테두리</div>
<div class="border-warning">Warning 테두리</div>
Live Examples:
Primary Text
Info Text
Success Text
Warning Text
Danger Text

Dark Mode

Podo UI automatically supports dark mode. Click the theme toggle button in the top right corner to switch between light and dark modes.

JavaScript
// Light 모드
document.documentElement.setAttribute('data-color-mode', 'light');

// Dark 모드
document.documentElement.setAttribute('data-color-mode', 'dark');

// 자동 (브라우저 설정 따름)
document.documentElement.setAttribute('data-color-mode', '');
Tip: Built on CSS variables, the theme switches instantly without page refresh.

All Color Swatches

View all colors and variants at a glance:

Primary (primary)

Base
primary-base
Hover
primary-hover
Pressed
primary-pressed
Focus
primary-focus
Fill
primary-fill
Reverse
primary-reverse
Outline
primary-outline

Default (default)

Base
default-base
Hover
default-hover
Pressed
default-pressed
Focus
default-focus
Fill
default-fill
Reverse
default-reverse
Outline
default-outline

Default Deep (default-deep)

Base
default-deep-base
Hover
default-deep-hover
Pressed
default-deep-pressed
Focus
default-deep-focus
Fill
default-deep-fill
Reverse
default-deep-reverse
Outline
default-deep-outline

Info (info)

Base
info-base
Hover
info-hover
Pressed
info-pressed
Focus
info-focus
Fill
info-fill
Reverse
info-reverse
Outline
info-outline

Link (link)

Base
link-base
Hover
link-hover
Pressed
link-pressed
Focus
link-focus
Fill
link-fill
Reverse
link-reverse
Outline
link-outline

Success (success)

Base
success-base
Hover
success-hover
Pressed
success-pressed
Focus
success-focus
Fill
success-fill
Reverse
success-reverse
Outline
success-outline

Warning (warning)

Base
warning-base
Hover
warning-hover
Pressed
warning-pressed
Focus
warning-focus
Fill
warning-fill
Reverse
warning-reverse
Outline
warning-outline

Danger (danger)

Base
danger-base
Hover
danger-hover
Pressed
danger-pressed
Focus
danger-focus
Fill
danger-fill
Reverse
danger-reverse
Outline
danger-outline