Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harvest-profit-ui

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harvest-profit-ui

Harvest Profit UI Components

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-57.69%
Maintainers
5
Weekly downloads
 
Created
Source

Harvest Profit

npm Build Status Coverage Status npm

A collection of React components used by Harvest Profit to rapidly prototype new ideas without re-inventing the wheel.

Check out the docs!

Installation

You can install this via NPM:

npm install harvest-profit-ui

Or Yarn:

yarn add harvest-profit-ui

Usage

Javascript

Each component is actually exported from the main package, so you would simply do the following:

import { Button, InputString } from 'harvest-profit-ui';

Styles

You will need something to compile SASS, like webpack with sass-loader.

Styles are SCSS files contained separately from the code. You'll have to import those yourself, either in a SASS file, like so:

// Import from the node modules directory directly
@import './node_modules/harvest-profit-ui/scss/index';

// Import after setting up webpack (or other build method) with node_modules included
@import 'harvest-profit-ui/scss/index';

Or you can require it in a bundled Javascript file (when using webpack or other build tool with SASS):

// Using ES6 "import"
import 'harvest-profit-ui/scss/index.scss';

// Using "require" syntax
require('harvest-profit-ui/scss/index.scss');

You can overwrite the default variables by looking at the _variables.scss file, and creating the variables ahead of time, when using your own SCSS file:

/* my-styles.scss */

// Define "blue" before the import
$blue: #3d87bf;

// Anything "blue" will use the new "blue"
@import 'harvest-profit-ui/scss/index';

Documentation

The documentation for this project can be found here.

Development

This project uses React Styleguidist for documentation. While developing, you may find it useful to preview your components. You can do so by running the development server with:

yarn run start

To deploy a new version to NPM, bump the version number, commit/merge to master, and run the following:

yarn run clean
yarn run build

# Either NPM
npm publish
# Or Yarn, they do the same thing
yarn publish

License

This project is MIT licensed

Keywords

FAQs

Package last updated on 05 Aug 2021

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