Socket
Book a DemoInstallSign in
Socket

klara-ui

Package Overview
Dependencies
Maintainers
10
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klara-ui

A shared library for the klara components and interface

latest
npmnpm
Version
11.5.2
Version published
Maintainers
10
Created
Source

Klara-UI

A repository for shared components and styles used in Klara.

Get Started

npm install klara-ui

Publishing

npm run bump
npm publish [--tag next]

Usage

Layout

  • Lists

Components

Klara UI comes with a set of components. They adhere to the overall design, and allow for some configuration.

Styles

All the styles should be in the form of .styl If you add a new file don't forget to import it in the styles.styl

Using the styles

Including styles in your own project can be tricky if not done correctly. Fortunately we can use stylus loader for resolving to .styl files in nodemodules

Include all the styles in your .styl with:

@import "~klara-ui/style/styles.styl"

You can also specify the precise path for a file, eg.

@import "~klara-ui/style/variables/typography.styl"

Read more at: https://www.npmjs.com/package/stylus-loader

Site

The styleguide is publicly available at http://bonniernews.github.io/klara-ui.

The site folder contains all code for the site. Build and run it using the npm scripts:

npm run site:start
npm run site:build
npm run site:publish

FAQs

Package last updated on 16 Aug 2024

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