Provides drop-in support for LESS stylesheets chained with postcss plugin support.
npm install --save gatsby-plugin-postcss-less
- Include the plugin in your
gatsby-config.js
file. - Write your stylesheets in LESS (with your desired postcss featureset) and require/import them
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-postcss-less`,
options: {
postCssPlugins: [somePostCssPlugin()],
precision: 8, // LESS default: 8
theme: {
"text-color": `#ffffff`
}
}
}
];