As the title describes, I want only the biggest rectangle to have rounded corners.
This is my code now
\begin{tikzpicture}[cell/.style={rectangle,draw=black,thin, minimum size=0.4cm}]
\begin{scope}
\node[cell,fill=red!20] at (0,0) {};
\node[cell,fill=red!20] at (0.8,0) {};
\node[cell,fill=red!20] at (0.4,0.4) {};
\node[cell,fill=red!20] at (0,0.8) {};
\node[cell,fill=red!20] at (0.8,0.8) {};
\node[cell,fill=blue!30] at (0.4,0) {};
\node[cell,fill=blue!30] at (0,0.4) {};
\node[cell,fill=blue!30] at (0.8,0.4) {};
\node[cell,fill=blue!30] at (0.4,0.8) {};
\end{scope}
\end{tikzpicture}
I also wonder if there is a easier way to fill the grid with customized colors.

