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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@sphere-crm/ui

v0.1.6

Published

UI component library for Sphere CRM - Bank Respublika

Downloads

485

Readme

Sphere UI

Sphere UI is the React/TypeScript component library used across Sphere CRM. The goal is to ship a consistent design system that developers can drop into any React (or Next.js) app, with sensible defaults that still allow heavy customization. The current repository already exposes foundational building blocks such as Button, Loader, and the shared icon set, and the final version will contain many more components built with the same standards.

Key Features

  • Typed React components that target React 18+ and React 19 without workarounds.
  • Design tokens and SCSS variables so that designers can evolve the brand system without rewriting components.
  • Tree-shakeable build generated through Vite and TypeScript to keep bundles lean.
  • Icon library with reusable SVG components for common CRM actions.
  • Future-ready architecture for adding new inputs, layouts, and complex widgets as the design system grows.

Installation

Install the package plus its peer dependencies:

npm install @sphere-crm/ui react react-dom @mui/material @emotion/react @emotion/styled react-to-print

If you use another package manager, swap npm install for pnpm add or yarn add.

Usage

Import the styles once near the root of your application and pull in the components you need:

import '@sphere-crm/ui/styles.css'
import { Button } from '@sphere-crm/ui'

function Example() {
  return (
    <Button size="md" tone="primary" onClick={() => console.log('clicked')}>
      Create deal
    </Button>
  )
}

Customizing Tokens

Every component reads from the shared SCSS variables in src/styles/variables.scss. Override them inside your app to align with your brand palette:

:root {
  --sphere-color-primary: #0052cc;
  --sphere-color-primary-hover: #003d99;
  --sphere-radius-md: 8px;
}

More tokens (spacing, typography, motion) will be documented as the component catalog grows.

Available Components

| Category | Components | Notes | |------------|-------------------------------------------|-----------------------------------------| | Actions | Button | Variants, sizes, loading states | | Feedback | Loader (Circle, Linear) | Works standalone or inline | | Visuals | icons/* | 170+ SVG icons tailored for CRM flows |

Roadmap: inputs, tables, dashboards, printable templates, and layout primitives will follow the same API patterns so migrations remain easy.

Local Development

npm install
npm run dev      # story playground via Vite dev server
npm run build    # type-check + library build
npm run preview  # serve the production build locally

The build step runs tsc followed by vite build to emit both ESM and CJS bundles plus .d.ts files in dist/.

Contribution Workflow

  1. Create a component folder inside src/components and keep logic functional + typed.
  2. Co-locate styles via SCSS modules and share tokens through src/styles/variables.scss.
  3. Export the component through src/index.ts so it becomes part of the published bundle.
  4. Add usage docs to this README (or the future docs site) so consumers know the props and patterns.

Please open a PR with design references whenever you add a new component. The maintainers will help ensure consistency and accessibility (focus rings, keyboard navigation, ARIA attributes, etc.).

License

MIT © Bank Respublika. Reach out to the Sphere CRM platform team for access questions or to request early design assets.