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

qpp-style

Package Overview
Dependencies
Maintainers
1
Versions
956
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qpp-style

Shared style guide across the QPP program.

  • 1.8.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
411
decreased by-37.73%
Maintainers
1
Weekly downloads
 
Created
Source

qpp-style

Shared style guide across the QPP program.

This repository houses qpp-style, a shared style guide/library for the QPP program. qpp-style was built on top of bootstrap.

The purpose of qpp-style is to provide assets such as CSS, SCSS, JS, images and fonts to design a site with the visual style of qpp.cms.gov. This allows multiple sites built in separate repositories and with different languages to share a global style without repeating styling code. The qpp-style library is primarily distributed on the node/npm ecosystem.

Style Guide Documentation

The style guide is located at https://cmsgov.github.io/qpp-style/ but can be viewed locally by running:

$ bundle exec jekyll serve --config _config.dev.yml

Install and Use

The best way to install qpp-style is with npm or yarn. If you haven't already installed the qpp-style module, run the following command to install qpp-style into your project.

npm install --save qpp-style

or

yarn add qpp-style

Once installed, all the assets from qpp-style need to be consumed by your project. The simplest way to to this is by copying over the relevant assets with build commands and include them from the html with link tags. For example:

  1. Build all assets that came with the module:
    $ pushd .
    $ cd ./node_modules/qpp-style
    $ npm install
    $ npm start
    
  2. Copy assets to project directory:
    $ popd
    $ mkdir -p public
    $ cp -r ./node_modules/qpp-style/build/* public 
    
  3. Create webpage:
    $ touch public/index.html
    
  4. Link to css in html:
    <html lang="en">
        <head>
            <link href="/css/qpp-style.css" type="text/css" rel="stylesheet" />
        </head>
        <body>
            <h1>QPP Quality Payment Program</h1>
        </body>
    </html>
    

Another way to use the style is by importing the sass into your project. This can be done in the following way:

  1. Copy the fonts to /fonts:

    $ mkdir -p fonts
    $ cp -r ./node_modules/qpp-style/fonts/* fonts
    
  2. Create a .scss file and adding this line:

@import "../node_modules/qpp-style/styles/qpp_style";

Keywords

FAQs

Package last updated on 22 Sep 2017

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