in order to keep a coherant look in my tabular, I wanted to define a command like \def\YES{\SetCell{bg=green9} YES} to automatically add a green background when I type \YES. Unfortunately, it does not apply the background color:
\documentclass{memoir}
\usepackage{tabularx}
\usepackage{xcolor}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
{
\def\YES{\SetCell{bg=green9} YES}
\begin{center}
\begin{tblr}{colspec={cc}}% Tried to use expand=\YES, does not work.
\YES{} & fails but this works: & \SetCell{bg=green9} YES \
\end{tblr}
\end{center}
}
\end{document}
