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 🙏

© 2026 – Pkg Stats / Ryan Hefner

orange-core-ui

v0.1.5

Published

Orange Core UI - React component library with Tailwind CSS

Downloads

835

Readme

Orange Core UI

A React component library built with Tailwind CSS that strictly adheres to Orange Design System guidelines. The library supports Next.js 15+, React 19 Server Components, and can be easily integrated into any React project.

Installation

npm install orange-core-ui

Quick Start

import { Button, Input, Card } from 'orange-core-ui';
import 'orange-core-ui/styles';

export default function MyComponent() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Welcome</CardTitle>
      </CardHeader>
      <CardContent>
        <Input placeholder="Enter your name" />
        <Button variant="primary">Submit</Button>
      </CardContent>
    </Card>
  );
}

Features

  • 🎨 Strict Design Compliance - Follows Orange Design System guidelines exactly
  • ⚛️ React 19+ with Server Component support
  • 🚀 Next.js 15+ App Router compatible
  • 🎯 TypeScript - Full type safety
  • Accessible - WCAG 2.1 AA compliant
  • 📝 Form Validation - React Hook Form + Zod integration
  • 🎨 Tailwind CSS - Utility-first styling with Orange design tokens

Components

Form Components

  • Button - All variants (primary, secondary, success, danger, warning, info, light, dark, outline)
  • Input - Text inputs with validation states
  • Form - React Hook Form + Zod integration
  • FormField, FormItem, FormLabel, FormMessage, FormDescription - Form building blocks

Layout Components

  • Card - Container component with header, body, footer
  • Container - Responsive container
  • Grid & GridItem - Responsive grid system
  • Typography - Heading and text components

Feedback Components

  • Alert - Notification messages with variants
  • Modal - Dialog component

Navigation Components

  • Navbar - Navigation component
  • Dropdown - Dropdown menu

Usage Examples

Button

import { Button } from 'orange-core-ui';

<Button variant="primary">Primary Button</Button>
<Button variant="secondary">Secondary Button</Button>
<Button variant="outline-primary">Outline Button</Button>
<Button size="lg">Large Button</Button>

Form with Validation

import { Form, FormField, FormItem, FormLabel, FormMessage, Input, Button } from 'orange-core-ui';
import { z } from 'zod';

const schema = z.object({
  email: z.string().email('Invalid email'),
  name: z.string().min(2, 'Name must be at least 2 characters'),
});

<Form
  schema={schema}
  defaultValues={{ email: '', name: '' }}
  onSubmit={(data) => console.log(data)}
>
  {(methods) => (
    <>
      <FormField
        control={methods.control}
        name="email"
        render={({ field, fieldState }) => (
          <FormItem>
            <FormLabel required>Email</FormLabel>
            <Input {...field} type="email" error={fieldState.invalid} />
            <FormMessage error={fieldState.error?.message} />
          </FormItem>
        )}
      />
      <Button type="submit">Submit</Button>
    </>
  )}
</Form>

Card

import { Card, CardHeader, CardTitle, CardContent, CardFooter } from 'orange-core-ui';

<Card>
  <CardHeader>
    <CardTitle>Card Title</CardTitle>
  </CardHeader>
  <CardContent>
    <p>Card content goes here</p>
  </CardContent>
  <CardFooter>
    <Button>Action</Button>
  </CardFooter>
</Card>

Styling

Import Styles

You must import the library styles in your application:

import 'orange-core-ui/styles';

Tailwind Configuration

The library uses Tailwind CSS with Orange design tokens. Your project should have Tailwind configured:

// tailwind.config.js
module.exports = {
  content: [
    './node_modules/orange-core-ui/dist/**/*.{js,ts,jsx,tsx}',
    // ... your other content paths
  ],
  // ... rest of your config
};

Design System Compliance

All components strictly follow:

  • Orange Design System color palette
  • Orange spacing scale (1.25rem base = 20px)
  • Orange typography system
  • Boosted Bootstrap component variants
  • WCAG 2.1 AA accessibility standards

TypeScript Support

Full TypeScript support with exported types:

import { Button, type ButtonProps } from 'orange-core-ui';

const MyButton: React.FC<ButtonProps> = (props) => {
  return <Button {...props} />;
};

Peer Dependencies

This library requires the following peer dependencies:

{
  "react": "^19.0.0",
  "react-dom": "^19.0.0",
  "react-hook-form": "^7.0.0",
  "zod": "^3.22.0",
  "@hookform/resolvers": "^3.3.0"
}

Install them in your project:

npm install react react-dom react-hook-form zod @hookform/resolvers

Next.js Integration

For Next.js projects, configure transpilePackages in next.config.js:

/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: ['orange-core-ui'],
};

module.exports = nextConfig;

Development

Building the Library

cd orange-core-ui
npm run build

Running Tests

npm run test

Storybook

npm run storybook

Documentation

License

MIT

Contributing

This library follows strict Orange Design System guidelines. All components must:

  • Use Orange design tokens exclusively
  • Follow WCAG 2.1 AA accessibility standards
  • Include comprehensive tests
  • Be documented in Storybook