Skip to content

Instantly share code, notes, and snippets.

@diego898
Last active January 10, 2023 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diego898/4457cbdf48153bc7a75755cbd798cd63 to your computer and use it in GitHub Desktop.
Save diego898/4457cbdf48153bc7a75755cbd798cd63 to your computer and use it in GitHub Desktop.
Defining some nice colors for use in latex math. Some are from seaborn, others are from https://flatuicolors.com
% Load color package
\usepackage{xcolor}
% Define Seaborn colors
\definecolor{seabornBlue}{RGB}{76,114,176}
\definecolor{seabornGreen}{RGB}{85,168,104}
\definecolor{seabornRed}{RGB}{196,78,82}
% Define FLATUI colors
\definecolor{orangePumpkin}{RGB}{211,84,0}
\definecolor{orangeCarrot}{RGB}{230,126,34}
\definecolor{blueBelizeHole}{RGB}{41,128,185}
\definecolor{redAlizarin}{RGB}{231,76,60}
\definecolor{redNasturcianFlower}{RGB}{232,65,24}
% Define color shortcuts
\newcommand{\blue}[1]{\textcolor{blueBelizeHole}{#1}}
\newcommand{\green}[1]{\textcolor{seabornGreen}{#1}}
\newcommand{\red}[1]{\textcolor{redNasturcianFlower}{#1}}
\newcommand{\orange}[1]{\textcolor{orangeCarrot}{#1}}
% Example
\frac{\green{c}^3}{\red{y^5}} + \sqrt{\orange{3x+5}} + \blue{\int_{I=1}^\infty}
@mahdienan
Copy link

Nice colors, thanks for this gist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment