What is the best way to create one TikZ-node like this?
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\pgfmathsetlengthmacro\cellwidth{12mm}
\begin{document}
\begin{tikzpicture}[
Cell/.style={align=center, inner sep=0pt,
text width=\cellwidth,
minimum height=\cellwidth,
draw=black, fill=purple,
font=\sffamily
},
]
\node[Cell]{Ba};
\end{tikzpicture}
\end{document}
(Ba)
, then add\node[anchor=north west, inner sep=1pt, font=\small] at (Ba.north west){56};
and so on... ?tabular
into the node, or aminipage
. But you will lose flexibility