lore-ui
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Lore UI

Package used to perform Lore stylization.

See below how to search for colors:

Installation

This is a Node.js library available through the npm registry. Before installing, download and install Node.js. Node.js 18.10.0 or higher is required.

If this is a brand new project, make sure you create a package.json first with the command npm init.

Installation is done using the command yarn add or npm install:

$ yarn add lore-ui

or

$ npm install lore-ui

Usage

Below are some ways to obtain the colors contained in this library:

import { colors } from 'lore-ui'

const red = colors.red[900]
const green = colors.green[900]
const blue = colors.blue[900]

console.log(red) // #F44336
console.log(green) // #4CAF50
console.log(blue) // #008AD8

Replacing a parameter with a specific color

Here are some examples for when it is necessary to use a color replacing some parameter.

import { colors } from 'lore-ui'

let text = 'The hexadecimal color is {{HEXADECIMAL}}'

text = text.replace('{{HEXADECIMAL}}', colors.blue[900])

console.log(text) // The hexadecimal color is #008AD8

let text = '<{{COLOR}}>Hello world!</{{COLOR}}>'

text = text.replaceAll('{{COLOR}}', colors.red[500])

console.log(text) // <#F88E86>Hello world!</#F88E86>

Package Sidebar

Install

npm i lore-ui

Weekly Downloads

106

Version

1.0.1

License

MIT

Unpacked Size

33 kB

Total Files

24

Last publish

Collaborators

  • amarcosos
  • andretertuliano
  • adrianopb