Socket
Book a DemoInstallSign in
Socket

@trimble-oss/modus-variables

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trimble-oss/modus-variables

This project provides a CSS sheet of variables for the Modus Design System, accessible via the `modus-variables` npm package.

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
268
15.02%
Maintainers
7
Weekly downloads
 
Created
Source

Modus Variables

This project provides a CSS sheet of variables for the Modus Design System, accessible via the modus-variables npm package.

Getting Started

  • Install the package:

    npm i --save-dev @trimble-oss/modus-variables copyfiles
    
  • Set up the postinstall script in your package.json:

    Create a postinstall script to copy the CSS file automatically. This will copy your CSS file to your public directory after running npm install. We recommend using copyfiles.

    {
      "name": "your-project-name",
      "version": "1.0.0",
      "scripts": {
        "postinstall": "copyfiles -f ./node_modules/@trimble-oss/modus-variables/css/modus-variables.css ./public"
      },
      "dependencies": {
        "@trimble-oss/modus-variables": "^1.0.0",
        "copyfiles": "^2.4.1"
      }
    }
    
  • Reference the CSS file in your HTML:

    Add the following line to reference the CSS file in your HTML file:

    <link rel="stylesheet" type="text/css" href="public/modus-variables.css">
    
  • Use the variables in your CSS:

    You can now use the Modus variables globally:

    .my-element {
      color: var(--col_trimble_blue);
    }
    

FAQs

Package last updated on 03 Jun 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.