New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-less

Package Overview
Dependencies
Maintainers
2
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-less

Adds the ability to load and parse less-files to include in project your

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-58.6%
Maintainers
2
Weekly downloads
 
Created
Source

gatsby-plugin-less

Adds the ability to load and parse Less-flavored CSS.

Install

npm install --save gatsby-plugin-less

How to use

Add the plugin to your gatsby-config.js.

plugins: [`gatsby-plugin-less`];

By default this plugin will compile *.less and *.module.less files. The plugin can also be used with modifyVars as it is explained here. By defining a javascript object you can overwrite less-variables. This can be useful when using a component library like antd.

plugins: [
  {
    resolve: `gatsby-plugin-less`,
    options: {
      theme: {
        "text-color": `#fff`,
      },
    },
  },
];

Or you can specify a file which exports a object in the same form.

plugins: [
  {
    resolve: `gatsby-plugin-less`,
    options: {
      theme: `./src/theme.js`,
    },
  },
];

In file ./src/theme.js:

module.exports = {
  "text-color": `#fff`,
};

Keywords

FAQs

Package last updated on 02 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc