@umn-libraries/primo-color-theme

1.0.0 • Public • Published

Primo Color Theme

Stand-alone CLI tool for generating a custom Primo VE CSS color theme.

Note: this only works with Primo VE

Why would I want to use this?

Likely, this is only of interest to Primo VE sites that do not use Primo Studio or the Primo Development Environment. Color theme generation is already included in those tools.

Usage

First, define your color theme in a colors.json file (see example below.) Then run the following command to generate a CSS file (replace name-primo.exlibrisgroup.com with your Primo VE server name):

primo-color-theme --server name.primo.exlibrisgroup.com --file colors.json > color-theme.css

Colors JSON File

The JSON file should look something like this:

{
  "primary": "#53738C",
  "secondary" : "#A9CDD6",
  "backgroundColor" : "white",
  "links": "#3D6E94",
  "warning": "tomato",
  "positive": "#0f7d00",
  "negative": "gray",
  "notice": "#B84D00",
  "linkTitle": "#33FFFF",
  "citation": "tomato",
  "citationTitles": "rgb(68, 112, 123)",
  "personalization": "#7d1538" 
}

^ The default values are depicted there. You only need to define the values that you want to override.

Readme

Keywords

none

Package Sidebar

Install

npm i @umn-libraries/primo-color-theme

Weekly Downloads

2

Version

1.0.0

License

none

Unpacked Size

5.66 kB

Total Files

6

Last publish

Collaborators

  • nihiliad
  • gpeterso
  • codyh
  • mberkowski