% Copyright (c) 2026 Wang Yang (王阳) and contributors
% SPDX-License-Identifier: CC-BY-SA-4.0
% HUST names and institutional marks are excluded from this license grant.
% See LICENSE and NOTICE.md for details.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthemehust}[2026/07/20 v0.7.1 HUST colors]

\mode<presentation>

% HUST standard screen colors from the 2024 visual identity specification.
\providecolor{hustblue}{RGB}{0,74,152}
\providecolor{hustred}{RGB}{210,11,23}
\providecolor{hustspacegray}{RGB}{128,128,128}

% Theme-local semantic palette.
%
% Page blue belongs to page structure and never becomes ordinary running-text
% emphasis. HUSTBlue preserves the official reference color for compatibility;
% HUSTFrame* owns page fields, while the reference-derived box blue is a
% separate component accent confined to semantic title bands.
\definecolor{HUSTBlue}{RGB}{0,74,152}
\definecolor{HUSTFrameBlue}{RGB}{0,62,124}
\definecolor{HUSTFrameBlueSoft}{RGB}{36,82,126}
\definecolor{HUSTFrameRule}{RGB}{174,188,201}
\colorlet{HUSTBlueDeep}{HUSTFrameBlue}
\definecolor{HUSTRed}{RGB}{210,11,23}
\definecolor{HUSTInk}{RGB}{23,27,32}
\definecolor{HUSTText}{RGB}{49,54,60}
\definecolor{HUSTMuted}{RGB}{101,108,116}
\definecolor{HUSTPaper}{RGB}{249,249,247}
\definecolor{HUSTMist}{RGB}{245,246,247}
\definecolor{HUSTSurfaceStrong}{RGB}{235,237,239}
\definecolor{HUSTBluePale}{RGB}{225,236,246}
\definecolor{HUSTCode}{RGB}{247,248,249}
\definecolor{HUSTRule}{RGB}{207,211,216}

% Reference-derived split-box palette. Saturated color is confined to the
% narrow title band; the reading surface stays nearly neutral.
\definecolor{HUSTBoxBlue}{RGB}{0,119,190}
\definecolor{HUSTBoxBlueWash}{RGB}{248,246,248}
\definecolor{HUSTBoxPink}{RGB}{255,178,178}
\definecolor{HUSTBoxPinkWash}{RGB}{254,242,237}
\definecolor{HUSTBoxGold}{RGB}{202,151,28}
\definecolor{HUSTAlertDeep}{RGB}{151,8,17}

\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{normal text}{fg=HUSTText,bg=white}
\setbeamercolor{structure}{fg=HUSTInk}
\setbeamercolor{alerted text}{fg=HUSTRed}
\setbeamercolor{example text}{fg=HUSTInk}

% Moloch 0.3 and 2.2 read different colors for standout frames.
\setbeamercolor{palette primary}{fg=white,bg=HUSTFrameBlue}
\setbeamercolor{palette secondary}{fg=HUSTInk,bg=HUSTMist}
\setbeamercolor{palette tertiary}{fg=white,bg=HUSTFrameBlue}
\setbeamercolor{palette quaternary}{fg=white,bg=HUSTInk}
\setbeamercolor{standout}{fg=white,bg=HUSTFrameBlue}

\setbeamercolor{title}{fg=HUSTInk}
\setbeamercolor{subtitle}{fg=HUSTMuted}
\setbeamercolor{author}{fg=HUSTInk}
\setbeamercolor{date}{fg=HUSTMuted}
\setbeamercolor{institute}{fg=HUSTMuted}
\setbeamercolor{frametitle}{fg=HUSTInk,bg=white}
\setbeamercolor{hust page label}{fg=HUSTFrameBlueSoft,bg=white}
\setbeamercolor{hust frame label}{fg=HUSTFrameBlueSoft,bg=white}
\setbeamercolor{hust section label}{fg=HUSTFrameBlueSoft,bg=white}

\setbeamercolor{title separator}{fg=HUSTFrameRule}
\setbeamercolor{progress bar}{fg=HUSTFrameBlue,bg=HUSTFrameRule}
\setbeamercolor{progress bar in head/foot}{%
  fg=HUSTFrameBlue,bg=HUSTFrameRule}

\setbeamercolor{itemize/enumerate body}{fg=HUSTText}
\setbeamercolor{itemize/enumerate subbody}{fg=HUSTText}
\setbeamercolor{itemize/enumerate subsubbody}{fg=HUSTMuted}
\setbeamercolor{itemize item}{fg=HUSTInk}
\setbeamercolor{itemize subitem}{fg=HUSTMuted}
\setbeamercolor{itemize subsubitem}{fg=HUSTMuted}
\setbeamercolor{enumerate item}{fg=HUSTInk}
\setbeamercolor{enumerate subitem}{fg=HUSTMuted}
\setbeamercolor{enumerate subsubitem}{fg=HUSTMuted}
\setbeamercolor{description item}{fg=HUSTInk}
\setbeamercolor{hust item title}{fg=HUSTInk}
\setbeamercolor{hust item note}{fg=HUSTMuted}

\setbeamercolor{block title}{fg=white,bg=HUSTBoxBlue}
\setbeamercolor{block body}{fg=HUSTText,bg=HUSTBoxBlueWash}
\setbeamercolor{block title example}{fg=HUSTInk,bg=HUSTBoxPink}
\setbeamercolor{block body example}{fg=HUSTText,bg=HUSTBoxPinkWash}
\setbeamercolor{block title alerted}{fg=HUSTAlertDeep,bg=HUSTBoxPink}
\setbeamercolor{block body alerted}{fg=HUSTText,bg=HUSTBoxPinkWash}

\setbeamercolor{section in toc}{fg=HUSTInk,bg=white}
\setbeamercolor{section number projected}{fg=HUSTFrameBlue,bg=white}
\setbeamercolor{footline}{fg=HUSTMuted,bg=white}
\setbeamercolor{page number in head/foot}{fg=HUSTFrameBlue,bg=white}
\setbeamercolor{section page}{fg=white,bg=HUSTFrameBlue}

\setbeamercolor{hust kicker}{fg=HUSTInk}
\setbeamercolor{hust metric card}{fg=HUSTInk,bg=white}
\setbeamercolor{hust metric}{fg=HUSTInk}
\setbeamercolor{hust metric label}{fg=HUSTMuted}
\setbeamercolor{hust metric rule}{fg=HUSTRule}
\setbeamercolor{hust outline item}{fg=HUSTText,bg=white}
\setbeamercolor{hust outline number}{fg=HUSTInk}
\setbeamercolor{hust outline note}{fg=HUSTMuted}
\setbeamercolor{hust closing title}{fg=white}
\setbeamercolor{hust closing subtitle}{fg=HUSTBluePale}
\setbeamercolor{hust closing detail}{fg=HUSTBluePale}

\mode<all>
\endinput
