npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@plume-ui-react/core

v0.0.9

Published

Core stuff for Plume UI lib

Downloads

8

Readme

Plume UI React Core

The Plume UI Core is the foundational module for the Plume UI library of React components. It provides configuration options and basic types used throughout the library.

Installation

You can install the Plume UI Core module using your preferred package manager:

npm install @plume-ui-react/core
# Or
yarn add @plume-ui-react/core

Configuration

The Plume UI Core allows you to customize the default configuration for the entire Plume UI library. You can configure various aspects, but the primary configuration is related to color palettes.

Default Configuration

The default configuration includes a set of predefined colors:

import { DefaultConfig } from '@plume-ui-react/core'

const defaultConfig: DefaultConfig = {
  colors: {
    primary: 'rgb(99, 102, 241)',
    secondary: 'rgb(107, 114, 128)',
    info: 'rgb(59, 130, 246)',
    warning: 'rgb(234, 179, 8)',
    error: 'rgb(239, 68, 68)',
    success: 'rgb(34, 197, 94)',
    dark: 'rgb(31, 41, 55)',
    light: 'rgb(250, 250, 250)',
  },
}

Custom Configuration

You can override the default configuration by providing your custom configuration:

import { setUserConfig } from '@plume-ui-react/core'

const customConfig = {
  colors: {
    primary: 'your-primary-color',
    // Add more custom color overrides as needed
  },
}

setUserConfig(customConfig)

Merged Configuration

To access the merged configuration that combines the default and custom configurations, use the following function:

import { getMergedConfig } from '@plume-ui-react/core'

const mergedConfig = getMergedConfig()

Types and Interfaces

The Plume UI Core module exports various types and interfaces that are essential for consistent and type-safe usage across the Plume UI library. These include:

  • DefaultConfig: The default configuration structure.
  • CustomUserConfig: The user's custom configuration structure.
  • PlumeUIConfig: The merged configuration that combines the default and user configurations.
  • ComponentProps: Common component props that allow custom classes and styles to be applied.

Additionally, it defines color palette types, sizing options, custom color palette interfaces, etc. to ensure consistent styling and theming across Plume UI components.