#StackBounty: #tikz-pgf #tcolorbox #tikz-arrows Reproducing the following figure using tcolorbox along with tikz

Bounty: 50

I want to reproduce the following figure using tcolorbox along with tikz. Need some nodes adjustment with tcolorbox joined with arrows.

enter image description here

My code is

documentclass[border=10pt]{standalone}
%documentclass[border=10pt]{article}

usepackage{enumitem}
setlist[itemize]{leftmargin=*, itemsep = 0em}
usepackage[none]{hyphenat}

usepackage{tikz}
usetikzlibrary{matrix, shapes, arrows, positioning}

usepackage[most]{tcolorbox}

begin{document}


newtcolorbox{GreenBox}[2][]{%
   enhanced,
   colback   = green!5!white,
   colframe  = green!75!black, 
   arc       = 4mm, 
   outer arc = 1mm, 
   fonttitle = hugeslshapetextbf,
   center title, 
   title     = #2,
   #1}


newtcolorbox{RedBox}[2][]{%
   enhanced,
   colback   = red!5!white,
   colframe  = red!95!black, 
   arc       = 4mm, 
   outer arc = 1mm, 
   fonttitle = hugeslshapetextbf,
   center title, 
   title     = #2,
   #1}

newtcolorbox{BrownBox}[2][]{%
   enhanced,
   colback   = brown!5!white,
   colframe  = brown!75!black, 
   arc       = 4mm, 
   outer arc = 1mm, 
   fonttitle = hugeslshapetextbf,
   center title, 
   title     = #2,
   #1}

newtcolorbox{BlueBox}[2][]{%
   enhanced,
   colback   = blue!5!white,
   colframe  = blue!75!black, 
   arc       = 4mm, 
   outer arc = 1mm, 
   fonttitle = hugeslshapetextbf,
   center title, 
   title     = #2,
   #1}
   
begin{GreenBox}{ASD}

  begin{RedBox}[width=3cm, remember as=box1, nobeforeafter]{A}
  begin{itemize}
  item A
  item B
  end{itemize}
  end{RedBox}
  hfill
  begin{RedBox}[width=3cm, remember as=box2, nobeforeafter]{B}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{RedBox}
  hfill
  begin{RedBox}[width=3cm, remember as=box3, nobeforeafter]{C}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{RedBox}
  vspace{2cm}
  begin{RedBox}[width=3cm, remember as=box4, nobeforeafter]{D}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{RedBox}
  hfill
  begin{BlueBox}[width=3cm, remember as=box5, nobeforeafter]{E}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{BlueBox}
  hfill
  begin{RedBox}[width=3cm, remember as=box6, nobeforeafter]{F}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{RedBox}
  vfill
  begin{BrownBox}[width=3cm, remember as=box7, nobeforeafter]{G}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{BrownBox}
  hfill
  begin{BrownBox}[width=3cm, remember as=box8, nobeforeafter]{H}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{BrownBox}
  hfill
  begin{BrownBox}[width=3cm, remember as=box9, nobeforeafter]{I}
  begin{itemize}
  item AS
  item BC
  end{itemize}
  end{BrownBox}
end{GreenBox}

begin{tikzpicture}[overlay, remember picture, line width=1mm, draw=red]
draw[->] (box1)--(box5);
draw[->] (box2)--(box5);
draw[->] (box3)--(box5);
draw[->] (box4)--(box5);
draw[->] (box6)--(box5);
draw[->] (box7)--(box5);
draw[->] (box8)--(box5);
draw[->] (box9)--(box5);
end{tikzpicture}

end{document}

which produces the following figure
enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.