Skip to content
created by Aha00aAha00a at 2026-05-25
last modified by Aha00aAha00a at 2026-06-26
revision: 4

MacroThemes

[[Themes]]는 현재 AhaWiki 테마 팔레트를 미리보기 카드와 토큰 표로 보여준다.

CSS custom properties를 추가하거나 바꿀 때 Light/Dark 값을 한 화면에서 점검하기 위한 개발용 매크로다.

1. Usage

[[Themes]]

2. Output

AhaWiki Light

Body text sample with link text.

code sample
Body contrast 21.0:1
AhaWiki Dark

Body text sample with link text.

code sample
Body contrast 15.4:1
TokenUsageAhaWiki LightAhaWiki Dark
Base
--color-bgPage backgroundCopied!!Copied!!
--color-textBody textCopied!!Copied!!
--color-surfacePrimary surfaceCopied!!Copied!!
--color-surface-altSecondary surfaceCopied!!Copied!!
--color-surface-panelPanel surfaceCopied!!Copied!!
--color-borderDefault borderCopied!!Copied!!
--color-border-subtleSubtle borderCopied!!Copied!!
--color-mutedMuted textCopied!!Copied!!
--color-muted-strongStrong muted textCopied!!Copied!!
Content
--color-linkLinkCopied!!Copied!!
--color-link-visitedVisited linkCopied!!Copied!!
--color-link-hover-bgLink hover backgroundCopied!!Copied!!
--color-link-schemaSchema linkCopied!!Copied!!
--color-missing-decorationMissing page underlineCopied!!Copied!!
--color-missing-markerMissing page markerCopied!!Copied!!
--color-code-bgCode block backgroundCopied!!Copied!!
--color-code-textCode block textCopied!!Copied!!
--color-code-borderCode block borderCopied!!Copied!!
--color-code-linkCode block linkCopied!!Copied!!
--color-blockquote-bgBlockquote backgroundCopied!!Copied!!
--color-blockquote-borderBlockquote borderCopied!!Copied!!
--color-heading-borderHeading borderCopied!!Copied!!
--color-heading-shadowHeading shadowAaCopied!!AaCopied!!
UI
--color-shadow-softSoft shadowCopied!!Copied!!
--color-overlay-bgOverlayCopied!!Copied!!
--color-input-bgInput backgroundCopied!!Copied!!
--color-input-borderInput borderCopied!!Copied!!
--color-focus-ringFocus ringCopied!!Copied!!
Navigation
--color-navbar-bgNavbar backgroundCopied!!Copied!!
--color-navbar-borderNavbar borderCopied!!Copied!!
--color-navbar-shadowNavbar shadowCopied!!Copied!!
--color-navbar-textNavbar textCopied!!Copied!!
--color-navbar-homeHome linkCopied!!Copied!!
--color-navbar-menu-bgDropdown backgroundCopied!!Copied!!
--color-navbar-text-shadowNavbar text shadowAaCopied!!AaCopied!!
Flash
--color-flash-success-textSuccess textCopied!!Copied!!
--color-flash-success-bgSuccess backgroundCopied!!Copied!!
--color-flash-success-borderSuccess borderCopied!!Copied!!
--color-flash-error-textError textCopied!!Copied!!
--color-flash-error-bgError backgroundCopied!!Copied!!
--color-flash-error-borderError borderCopied!!Copied!!
--color-flash-info-textInfo textCopied!!Copied!!
--color-flash-info-bgInfo backgroundCopied!!Copied!!
--color-flash-info-borderInfo borderCopied!!Copied!!
--color-flash-warning-textWarning textCopied!!Copied!!
--color-flash-warning-bgWarning backgroundCopied!!Copied!!
--color-flash-warning-borderWarning borderCopied!!Copied!!
Tables
--color-table-borderTable borderCopied!!Copied!!
--color-table-header-bgTable headerCopied!!Copied!!
--color-table-row-alt-bgAlternating rowCopied!!Copied!!
--color-table-row-hover-bgHover rowCopied!!Copied!!
Metrics
--color-percent-trackPercent trackCopied!!Copied!!
--color-percent-barPercent barCopied!!Copied!!
--color-percent-labelPercent labelCopied!!Copied!!
Adjacent Graph
--color-adjacent-placeholder-bgPlaceholder backgroundCopied!!Copied!!
--color-adjacent-placeholder-borderPlaceholder borderCopied!!Copied!!
--color-adjacent-placeholder-textPlaceholder textCopied!!Copied!!
--color-adjacent-placeholder-iconPlaceholder iconCopied!!Copied!!
--color-adjacent-placeholder-mutedPlaceholder muted textCopied!!Copied!!
--color-adjacent-hud-bgHUD backgroundCopied!!Copied!!
--color-adjacent-hud-borderHUD borderCopied!!Copied!!
--color-adjacent-hud-shadowHUD shadowCopied!!Copied!!
--color-adjacent-hud-textHUD textCopied!!Copied!!
--color-adjacent-hud-titleHUD titleCopied!!Copied!!
--color-adjacent-hud-action-bgHUD actionCopied!!Copied!!
--color-adjacent-hud-action-textHUD action textCopied!!Copied!!
--color-adjacent-hud-action-active-bgHUD active actionCopied!!Copied!!
--color-adjacent-hud-action-active-textHUD active action textCopied!!Copied!!
--color-adjacent-dot-rootRoot nodeCopied!!Copied!!
--color-adjacent-dot-hop11-hop nodeCopied!!Copied!!
--color-adjacent-dot-hop22-hop nodeCopied!!Copied!!
Kanban
--color-kanban-bgBoard backgroundCopied!!Copied!!
--color-kanban-column-bgColumn backgroundCopied!!Copied!!
--color-kanban-card-bgCard backgroundCopied!!Copied!!
--color-kanban-borderBorderCopied!!Copied!!
--color-kanban-mutedMuted textCopied!!Copied!!
--color-kanban-textTextCopied!!Copied!!
--color-kanban-primaryPrimary accentCopied!!Copied!!
--color-kanban-shadowCard shadowCopied!!Copied!!

출력 내용은 다음과 같다.

  • AhaWiki Light 미리보기 카드
  • AhaWiki Dark 미리보기 카드
  • 각 테마의 본문, 링크, 코드 샘플
  • 각 테마의 본문 대비 값
  • swatch와 원본 값을 함께 보여주는 wikiTableSimple 토큰 표

3. Token Groups

토큰 표는 UI 영역별로 묶인다.

  • Base
  • Content
  • UI
  • Navigation
  • Flash
  • Tables
  • Metrics
  • Adjacent Graph
  • Kanban

각 행은 토큰 이름, 용도, AhaWiki Light 값, AhaWiki Dark 값을 보여준다.

4. Implementation Notes

매크로 구현은 MacroThemes.scala에 있고, 등록되는 매크로 이름은 Themes다.

문서 이름은 MacroThemes이지만 사용 문법은 [[Themes]]다.

새 테마 토큰을 추가할 때는 다음을 함께 처리한다.

  • light.valuesdark.values에 같은 token key를 추가한다.
  • 용도를 설명하는 ThemeToken 행을 추가한다.
  • 값의 종류에 따라 Preview.Background, Preview.Shadow, Preview.TextShadow 중 하나를 고른다.
  • 새 group이 생기면 이 문서의 Token Groups도 갱신한다.

6. See Also

6.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

6.3. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+