I created a lewis formula with chemfig:
Now I want to color only the charges like OP did in this question.
This is my code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{verbatim}
\pagenumbering{gobble}
\usepackage{chemfig}
\usepackage[version=4]{mhchem}
\renewcommand*\printatom[1]{\sffamily{#1}}
\newcommand*\forcelen[1]{#1/\CF@atom@sep}
\begin{document}
\chemfig{\charge{90=\|,90:7pt=$\delta^-$}{N}(-[0]\charge{0:6pt=$\delta^+$}{H})(-[4]\charge{180:6pt=$\delta^+$}{H})(-[6]\charge{270:6pt=$\delta^+$}{H})}
\end{document}
I tried to use what I thought was his code but it didn't work:
\newcommand{\pol}[1]{\rlap{${}^{^{\color{red} \delta #1}}$}}
I also found this in the documentation:
\setchemfig{atom style=red}
Is there a chemfig style like "charge style" or something like that? Where can I find a list of all available chemfig styles?