Expand and harmonize color sets.

This commit is contained in:
2025-08-29 12:56:36 -05:00
parent 9147415df7
commit fc3e8e2575
9 changed files with 188 additions and 71 deletions

View File

@@ -9,24 +9,18 @@
\providelength{\boxoutpadding}[1em]
\providelength{\boxoutrule}[1pt]
\colorlet{BoxoutBGColor}{PrimePaleBlue}
\colorlet{BoxoutFGColor}{PrimeBlue}
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
\definecolor{WarningBoxFGColor}{RGB}{255, 150, 0}
\NewTblrEnviron{tblrBoxout}
\SetTblrInner[tblrBoxout]{
cells = {BoxoutBGColor},
cells = {boxoutBG},
hborder{1} = {belowspace=\boxoutpadding},
hborder{Z} = {abovespace=\boxoutpadding},
hlines = {0pt,BoxoutBGColor},
hline{1,Z} = {\boxoutrule,BoxoutFGColor},
hlines = {0pt,boxoutBG},
hline{1,Z} = {\boxoutrule,boxoutFG},
%row{1} = {font={\bfseries\sbfamily}},
vborder{1} = {rightspace=\boxoutpadding},
vborder{Z} = {leftspace=\boxoutpadding},
vlines = {0pt,BoxoutBGColor},
vline{1,Z} = {\boxoutrule,BoxoutFGColor},
vlines = {0pt,boxoutBG},
vline{1,Z} = {\boxoutrule,boxoutFG},
}
\NewDocumentEnvironment{@boxout}{
@@ -51,8 +45,8 @@
+b
}{%
\ifthenelse{\equal{#4}{w}\OR\equal{#4}{W}}{%
\colorlet{BoxoutBGColor}{WarningBoxBGColor}%
\colorlet{BoxoutFGColor}{WarningBoxFGColor}%
\colorlet{boxoutBG}{warningBG}%
\colorlet{boxoutFG}{warningFG}%
}{}%
\IfBlankTF{#3}{%
\begin{@boxout}{#1}{#2}{}%
@@ -101,7 +95,7 @@
\NewDocumentEnvironment{WrapBoxout}{
% position [l,r,i,o]
O{O}
O{o}
% offset
O{\marparwidth}
% width