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-baseHover
Hover state
primary-hoverPressed
Pressed state
primary-pressedFocus
Focus state
primary-focusFill
Background color
primary-fillReverse
Reverse color (text)
primary-reverseOutline
Outline color
primary-outlineUsing in SCSS
You can apply colors using the color() function in SCSS modules:
@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:
<!-- 텍스트 색상 -->
<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>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.
// Light 모드
document.documentElement.setAttribute('data-color-mode', 'light');
// Dark 모드
document.documentElement.setAttribute('data-color-mode', 'dark');
// 자동 (브라우저 설정 따름)
document.documentElement.setAttribute('data-color-mode', '');All Color Swatches
View all colors and variants at a glance:
Primary (primary)
primary-baseprimary-hoverprimary-pressedprimary-focusprimary-fillprimary-reverseprimary-outlineDefault (default)
default-basedefault-hoverdefault-presseddefault-focusdefault-filldefault-reversedefault-outlineDefault Deep (default-deep)
default-deep-basedefault-deep-hoverdefault-deep-presseddefault-deep-focusdefault-deep-filldefault-deep-reversedefault-deep-outlineInfo (info)
info-baseinfo-hoverinfo-pressedinfo-focusinfo-fillinfo-reverseinfo-outlineLink (link)
link-baselink-hoverlink-pressedlink-focuslink-filllink-reverselink-outlineSuccess (success)
success-basesuccess-hoversuccess-pressedsuccess-focussuccess-fillsuccess-reversesuccess-outlineWarning (warning)
warning-basewarning-hoverwarning-pressedwarning-focuswarning-fillwarning-reversewarning-outlineDanger (danger)
danger-basedanger-hoverdanger-presseddanger-focusdanger-filldanger-reversedanger-outline