dunji/theme

Types

카카오 우편번호 서비스 UI 색상 커스터마이징 설정.

default()로 생성한 뒤 builder 함수로 원하는 색상만 설정한다.

예시

let my_theme =
  theme.default()
  |> theme.search_bg_color("#0B65C8")
  |> theme.query_text_color("#FFFFFF")
pub type Theme {
  Theme(
    bg_color: option.Option(String),
    search_bg_color: option.Option(String),
    content_bg_color: option.Option(String),
    page_bg_color: option.Option(String),
    text_color: option.Option(String),
    query_text_color: option.Option(String),
    postcode_text_color: option.Option(String),
    emph_text_color: option.Option(String),
    outline_color: option.Option(String),
  )
}

Constructors

  • Theme(
      bg_color: option.Option(String),
      search_bg_color: option.Option(String),
      content_bg_color: option.Option(String),
      page_bg_color: option.Option(String),
      text_color: option.Option(String),
      query_text_color: option.Option(String),
      postcode_text_color: option.Option(String),
      emph_text_color: option.Option(String),
      outline_color: option.Option(String),
    )

    Arguments

    bg_color

    전체 배경색.

    search_bg_color

    검색창 배경색.

    content_bg_color

    본문 영역 배경색.

    page_bg_color

    페이지 배경색.

    text_color

    기본 글자색.

    query_text_color

    검색창 글자색.

    postcode_text_color

    우편번호 글자색.

    emph_text_color

    강조 글자색.

    outline_color

    테두리 색상.

Values

pub fn bg_color(theme: Theme, color: String) -> Theme

전체 배경색 설정.

pub fn content_bg_color(theme: Theme, color: String) -> Theme

본문 영역 배경색 설정.

pub fn default() -> Theme

기본 테마 (모든 색상 미설정 — 카카오 기본값 사용).

pub fn emph_text_color(theme: Theme, color: String) -> Theme

강조 글자색 설정.

pub fn outline_color(theme: Theme, color: String) -> Theme

테두리 색상 설정.

pub fn page_bg_color(theme: Theme, color: String) -> Theme

페이지 배경색 설정.

pub fn postcode_text_color(theme: Theme, color: String) -> Theme

우편번호 글자색 설정.

pub fn query_text_color(theme: Theme, color: String) -> Theme

검색창 글자색 설정.

pub fn search_bg_color(theme: Theme, color: String) -> Theme

검색창 배경색 설정.

pub fn text_color(theme: Theme, color: String) -> Theme

기본 글자색 설정.

Search Document