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

@forgerock/ui-design

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forgerock/ui-design - npm Package Compare versions

Comparing version 0.0.15 to 0.1.0

lib/forgerock.css

44

package.json
{
"name": "@forgerock/ui-design",
"version": "0.0.15",
"version": "0.1.0",
"description": "ForgeRock Styles and Styleguide",
"files": [
"styleguide/src/assets",
"styleguide/_site/src/assets/css",
"src/scss/abstracts/img"
"lib/",
"src/"
],
"main": "./styleguide/_site/src/assets/css/style.css",
"main": "./lib/forgerock.css",
"scripts": {
"sprite": "svg-sprite -cD ./src/scss/ --cscss --css-dest abstracts --css-render-scss-dest _sprite.scss --css-sprite img/sprite.svg --css-render-scss-template ./src/svg/tpl/sprite.scss ./src/svg/*.svg",
"serve": "cd styleguide && jekyll serve"
"build": "npm-run-all -s lint -p clean build:sprite build:sass build:types",
"build:sass": "build/build.js",
"build:sprite": "svg-sprite -cD ./ --cscss --css-dest src/scss/ --css-render-scss-dest _sprite.scss --css-sprite sprites/sprite.svg --css-render-scss-template src/svg/tpl/sprite.scss ./src/svg/*.svg",
"build:types": "tcm lib/ -c",
"clean": "rimraf dist/*",
"lint": "stylelint \"src/scss/**/*\"",
"lint:fix": "stylelint \"src/scss/**/*\" --fix",
"watch:all": "npm-run-all --parallel watch:sass watch:sprite watch:types",
"watch:sass": "onchange -i 'src/scss/**/*.scss' -- npm-run-all build:sass",
"watch:sprite": "onchange -i 'src/svg/**/*' -- npm-run-all build:sprite",
"watch:types": "onchange 'lib/**/*.css' -- npm-run-all build:types"
},

@@ -19,3 +27,3 @@ "repository": {

},
"author": "",
"author": "FRAAS Engineering",
"license": "ISC",

@@ -26,8 +34,22 @@ "bugs": {

"homepage": "https://github.com/ForgeRock/ui-design#readme",
"dependencies": {
"style": "lib/forgerock.css",
"devDependencies": {
"bootstrap": "^4.3.1",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"onchange": "^6.1.0",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"sass": "^1.22.12",
"stylelint": "^11.0.0",
"stylelint-config-prettier": "^6.0.0",
"stylelint-prettier": "^1.1.1",
"stylelint-scss": "^3.11.1",
"svg-sprite": "^1.5.0",
"typed-css-modules": "^0.6.2"
},
"devDependencies": {
"svg-sprite": "^1.5.0"
"dependencies": {
"lib": "^4.0.5",
"stylelint-config-standard": "^19.0.0"
}
}
# UI Design
Jekyll Styleguide
`stylguide/`
The ForgeRock UI Design package is a CSS library built on top of Bootstrap. All existing Bootstrap
styles and class names are unchanged, and this library should be used as if it were the original
Bootstrap library.
## Usage as a package
### Installation
`$ npm install @forgerock/ui-design`
### CSS, Source Map, TypeDef files
The main `forgerock.css` file is located in the `lib/` folder along with a CSS sourcemap and
TypeScript type definitions file
```
forgerock.css
forgerock.css.map
forgerock.css.d.ts
```
### Spritesheet
The spritesheet SVG file will be located in `src/scss/sprites` and will have a css-busting unqiue filename with
each build.
```
sprite-#####.svg
```
## Building & Developing
### Complete Package
Running this script will automatically build the complete SCSS library. The build process includes
linting, building spritesheet, and creating type definitions. Compiled files are located in the
`lib` folder.
```
$ npm run build
```
### Sass
Running this script will build the complete SCSS library, or individual components depending on
passed arguments. Arguments are passed to an npm script via the `--` delimeter. Compiled CSS files
are located in the `dist` folder.
##### All components
Outputted filename will be `forgerock.css`
```
$ npm run build:sass
```
##### Specific components
Outputted filename will be `component1-component2-etc.css` ex: `alert-badge-card.css`
```
$ npm run build:sass -- alert badge card
```
### Sprites
To update the sprite library, add your svg to the `src/svg/` folder and run the below script. This
will render a new PNG spritesheet in the `src/svg/sprites/` folder, and the SASS file
`src/scss/_sprite.scss`.
```
$ npm run build:sprites
```
### Type Definitions
Running this script will build type definitions for the main CSS file located in the `lib` folder.
```
$ npm run build:types
```
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