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

@xola/ui-kit

Package Overview
Dependencies
Maintainers
2
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xola/ui-kit

Xola UI Kit

  • 2.0.0-5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.3K
decreased by-13.27%
Maintainers
2
Weekly downloads
 
Created
Source

Xola UI Kit

React component library for the next generation of Xola apps.

Requirements

  • Node.js v14
  • NPM v7

Usage

Install the UI kit:

$ npm install @xola/ui-kit

Install peer dependencies:

$ npm install autoprefixer postcss tailwindcss lodash

Create PostCSS and Tailwind config files:

$ echo 'module.exports = require("@xola/ui-kit/tailwind.config");' > tailwind.config.js
$ echo 'module.exports = require("@xola/ui-kit/postcss.config");' > postcss.config.js

Import main CSS files in your project:

import "@xola/ui-kit/index.css";
import "@xola/ui-kit/build/style.css";

UI kit expects you already have a working React dev environment with PostCSS support.

Import and use the components:

import { Button } from "@xola/ui-kit";

Development

Installation

Install all required dependencies:

$ nvm use # Project needs Node.js v14 with NPM v7
$ npm install

Start the Storybook development server:

$ npm run dev

Use the Package Locally

In order for this to work you will have to set up an NPM workspace. Also, ui-kit and your-project has to be in the same directory.

Start by creating a package.json file in your "workspace" directory with the following content:

{
    "workspaces": ["ui-kit", "your-project"]
}
$ cd workspace
$ npm install --legacy-peer-deps

Next, start the build command from ui-kit:

$ cd ui-kit
$ npm run build -- --watch

If you encounter some issues, try removing the following directories and running the install command again:

$ rm -rf ui-kit/node_modules
$ rm -rf your-project/node_modules
$ npm install --legacy-peer-deps

Lint & Auto-fix

To automatically fix lint issues in this project you have the following commands:

npm run lint # Run lint on `src` and output issues
npm run lint:fix # Run lint and automatically fix any issues. Any that are not fixed are output to screen.

Notes

To avoid issues with how npm v7 resolves peer dependencies, we enabled legacy-peer-deps rule in .npmrc.

In order to avoid issues in your projects that are using this UI Kit, use the same .npmrc file or always run installs with --legacy-peer-deps flag.

For example:

$ npm install --legacy-peer-deps

Or:

$ npm install some-package --legacy-peer-deps

FAQs

Package last updated on 14 Sep 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