1 \documentclass[tikz
]{standalone
}
2 \usetikzlibrary{positioning
}
4 \begin{tikzpicture
}[node distance=
1em,nodes=
{rectangle,draw,text=white,minimum width=
10em,minimum height=
2.5em
}]
5 \node (
0)
[fill=red
] {Presentation layer
};
6 \node (
1)
[fill=violet,below=of
0] {Business layer
};
7 \node (
2)
[fill=blue,below=of
1] {Resource access layer
};
9 \draw [<->
] (
0) -- (
1);
10 \draw [<->
] (
1) -- (
2);