Skip to content

Instantly share code, notes, and snippets.

@PapeCoding
Last active August 20, 2025 14:28
Show Gist options
  • Select an option

  • Save PapeCoding/0294de3921c1de4c020efaa1f9b541e4 to your computer and use it in GitHub Desktop.

Select an option

Save PapeCoding/0294de3921c1de4c020efaa1f9b541e4 to your computer and use it in GitHub Desktop.
Rendering Code for Color Scheme Bars using TikZ
\resizebox{\linewidth}{!}{\begin{tikzpicture}[font=\sffamily]
\newcommand{\colorBar}[3]{
\foreach \c / \l / \i in {#3} {%
\definecolor{boxColor}{HTML}{\c}
\node[fill=boxColor,minimum width=6mm,anchor=west] at (\i*6mm,#2*9mm) {\strut\textbf{\l}};
}
\node[anchor=east] at (0,#2*9mm){#1};
}
\colorBar{Dark Colors:} {0} {BC96C6/a/0,A8A3F7/b/1,9AACFF/c/2,8EB4FF/d/3,82BDFF/e/4,71C8FF/f/5,5BD5FF/g/6,45E0EF/h/7,31E8C9/i/8,29EEA5/j/9,3EF17E/k/10,61F158/l/11,84EE37/m/12,A2E824/n/13,BEDF25/o/14,D9D42F/p/15,F0C738/q/16,FFB83C/r/17,FFA83C/s/18,FF963B/t/19,FF853B/u/20,FF783E/v/21,FF7142/w/22,FF6F48/x/23,FF7050/y/24,FF755D/z/25}
\end{tikzpicture}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment