rtellez700 / gatsby-plugin-postcss-less

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatsby-plugin-postcss-less

Provides drop-in support for LESS stylesheets chained with postcss plugin support.

Install

npm install --save gatsby-plugin-postcss-less

How to use

  1. Include the plugin in your gatsby-config.js file.
  2. 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`
      }
    }
  }
];

About


Languages

Language:JavaScript 100.0%