Loading...
Loading...
Creates professional TikZ flowcharts with a standardized style (Google Material-like colors, node shapes, and layout).
npx skill4agent add yzlnew/infra-skills tikz-flowchartdataNodeopNodegreenFillgreenStrokememFillmemStrokecoreFillcoreStrokeoptFilloptStrokeprocFillprocStrokedataNodememNodeopNodekernelBoxgroup\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, fit, backgrounds, calc, shadows.blur, decorations.pathreplacing}
% --- Color Definitions ---
\definecolor{greenFill}{HTML}{E8F5E9}
\definecolor{greenStroke}{HTML}{43A047}
\definecolor{memFill}{HTML}{FFF3E0}
\definecolor{memStroke}{HTML}{FFB74D}
\definecolor{coreFill}{HTML}{E1F5FE}
\definecolor{coreStroke}{HTML}{0277BD}
\definecolor{optFill}{HTML}{FCE4EC}
\definecolor{optStroke}{HTML}{E91E63}
\definecolor{procFill}{HTML}{FFF9C4}
\definecolor{procStroke}{HTML}{FBC02D}
\begin{document}
\begin{tikzpicture}[
node distance=1.2cm and 1.8cm, % Vertical and Horizontal spacing
font=\sffamily\footnotesize,
>=Stealth,
% --- Styles ---
dataNode/.style={
rectangle, rounded corners=3pt,
draw=greenStroke, thick,
fill=greenFill,
minimum width=2.4cm, minimum height=1.2cm,
align=center,
drop shadow
},
memNode/.style={
cylinder, cylinder uses custom fill,
cylinder body fill=memFill, cylinder end fill=memFill!90!gray,
shape border rotate=90,
aspect=0.25,
draw=memStroke, thick,
minimum width=1.8cm, minimum height=1.3cm,
align=center
},
opNode/.style={
rectangle, rounded corners=3pt,
draw=coreStroke, thick,
fill=coreFill,
minimum width=2.6cm, minimum height=1.2cm,
align=center,
drop shadow
},
kernelBox/.style={
rectangle, rounded corners=8pt,
draw=coreStroke, thick, dashed,
fill=coreFill!20,
inner sep=12pt,
align=center
},
group/.style={
draw=gray!30, dashed, rounded corners=8pt, inner sep=12pt, fill=gray!5
},
edgeLabel/.style={
font=\scriptsize,
text=black!80,
align=center,
inner sep=1pt
}
]
% --- Nodes ---
% Example:
% \node[dataNode] (Input) {Input Data};
% \node[opNode, right=of Input] (Process) {Process};
% --- Layout Containers (Optional) ---
% \begin{scope}[on background layer]
% \node[group, fit=(Input)(Process)] (MainGroup) {};
% \end{scope}
% --- Connections ---
% \draw[->, thick, color=gray!80] (Input) -- (Process);
\end{tikzpicture}
\end{document}right=of Nodebelow=of Nodenode distancetikzpicturefitgroup\begin{scope}[on background layer]-||-(A) -| (B)\\\scriptsize