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

@mavenlink/design-system

Package Overview
Dependencies
Maintainers
4
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mavenlink/design-system

Mavenlink React Components

  • 0.104.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

A set of React components created by, and for, Mavenlink. See all the available components at our Github Page.

For a living style guide of design patterns, visit our site on Notion.

Installation

  • Install with NPM or Yarn

    npm install --save @mavenlink/design-system
    
    # or
    
    yarn add @mavenlink/design-system
    
  • Setup React JSX processing. One way of doing that is with babel-loader for Webpack.

  • Setup CSS modules. One way of doing that is with style-loader for Webpack and css-loader for Webpack.

  • Setup SVG processing. One way of doing that is with svg-sprite-loader for Webpack.

    // Webpack configuration
    const SpriteLoaderPlugin = require('svg-sprite-loader/plugin');
    
    module.exports = {
      module: {
        rules: [{
          test: /\.jsx?$/,
          use: [{
            loader: 'babel-loader',
          }],
        }, {
          test: /\.css$/,
          use: [{
            loader: 'style-loader'
          }, {
            loader: 'css-loader',
            options: {
              modules: true
            },
          }],
        }, {
          test: /\.svg$/,
          use: [{
            loader: 'svg-sprite-loader',
          }],
        }],
      },
      plugins: [
        new SpriteLoaderPlugin(),
      ],
    };
    
  • Use in your project

    import Input from '@mavenlink/design-system/src/components/input/input.jsx';
    
    function App() {
      return <Input id="hello!" />;
    }
    

Style linter

We periodically update and upgrade styles. We have also created linters to help with those changes! To use, do the following:

  • Install stylelint into your project

  • In your stylelint configuration file (.stylelintrc.json, .stylelintrc, stylelint.config.js) include the following:

    const path = require('path');
    
    module.exports = {
      plugins: [
        path.resolve('@mavenlink/design-system/src/linters/colors.js'),
      ],
      rules: {
        'mds/colors': true,
      },
    };
    
  • Run stylelint to see failures

Documentation

Keywords

FAQs

Package last updated on 05 Jul 2022

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