\begin{quote}
Convert values with Post\+CSS (e.\+g. ms -\/$>$ s) \end{quote}
\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20975}{}\doxysection{Install}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20975}
With \href{https://npmjs.org/package/postcss-convert-values}{\texttt{ npm}} do\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{npm install postcss-\/convert-\/values -\/-\/save }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20976}{}\doxysection{Example}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20976}
This plugin reduces CSS size by converting values to use different units where possible; for example, {\ttfamily 500ms} can be represented as {\ttfamily .5s}. You can read more about these units in \href{https://css-tricks.com/the-lengths-of-css/}{\texttt{ this article}}.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20977}{}\doxysubsection{Input}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20977}

\begin{DoxyCode}{0}
\DoxyCodeLine{h1 \{}
\DoxyCodeLine{    font-\/size: 16px;}
\DoxyCodeLine{    width: 0em}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20978}{}\doxysubsection{Output}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20978}

\begin{DoxyCode}{0}
\DoxyCodeLine{h1 \{}
\DoxyCodeLine{    font-\/size: 1pc;}
\DoxyCodeLine{    width: 0}
\DoxyCodeLine{\} }

\end{DoxyCode}


Note that this plugin only covers conversions for duration and absolute length values. For color conversions, use \mbox{[}postcss-\/colormin\mbox{]}\mbox{[}colormin\mbox{]}.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20979}{}\doxysection{API}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20979}
\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20980}{}\doxysubsection{convert\+Values(\mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20980}
\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20981}{}\doxysubsubsection{options}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20981}
\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20982}{}\doxyparagraph{length}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20982}
Type\+: {\ttfamily boolean} Default\+: {\ttfamily true}

Pass {\ttfamily false} to disable conversion from {\ttfamily px} to other absolute length units, such as {\ttfamily pc} \& {\ttfamily pt} \& vice versa.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20983}{}\doxyparagraph{time}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20983}
Type\+: {\ttfamily boolean} Default\+: {\ttfamily true}

Pass {\ttfamily false} to disable conversion from {\ttfamily ms} to {\ttfamily s} \& vice versa.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20984}{}\doxyparagraph{angle}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20984}
Type\+: {\ttfamily boolean} Default\+: {\ttfamily true}

Pass {\ttfamily false} to disable conversion from {\ttfamily deg} to {\ttfamily turn} \& vice versa.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20985}{}\doxyparagraph{precision}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20985}
Type\+: {\ttfamily boolean$\vert$number} Default\+: {\ttfamily false}

Specify any numeric value here to round {\ttfamily px} values to that many decimal places; for example, using {\ttfamily \{precision\+: 2\}} will round {\ttfamily 6.\+66667px} to {\ttfamily 6.\+67px}, and {\ttfamily \{precision\+: 0\}} will round it to {\ttfamily 7px}. Passing {\ttfamily false} (the default) will leave these values as is.

It is recommended for most use cases to set this option to {\ttfamily 2}.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20986}{}\doxysection{Usage}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20986}
See the \href{https://github.com/postcss/postcss\#usage}{\texttt{ Post\+CSS documentation}} for examples for your environment.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20987}{}\doxysection{Contributors}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20987}
See \href{https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md}{\texttt{ CONTRIBUTORS.\+md}}.\hypertarget{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20988}{}\doxysection{License}\label{md_sfcode_node_modules_postcss_convert_values_README_autotoc_md20988}
MIT © \href{http://beneb.info}{\texttt{ Ben Briggs}} 