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

designbricks

v0.2.2

Published

Databricks Design System React Components

Readme

DesignBricks - Databricks Extended Design System

Note: @databricks/design-system is the official Databricks Design System package.
DesignBricks is an extended, community-driven implementation offering additional features and components.

A React component library implementing the Databricks design system.

📦 Installation

npm install designbricks
# or
yarn add designbricks

🚀 Quick Start

import { Button, Card, Typography } from 'designbricks';

function App() {
  return (
    <Card variant="elevated">
      <Typography variant="h3">Welcome to DesignBricks</Typography>
      <Button variant="primary">Get Started</Button>
    </Card>
  );
}

New to DesignBricks? Check out our Getting Started Guide for a comprehensive tutorial (< 30 minutes).

📚 Components

Foundation

  • Button - Primary, secondary, tertiary, and danger variants with multiple sizes
  • Typography - Consistent text styles from h1 to caption and code

Inputs

  • TextField - Text input with label, helper text, and error states
  • Checkbox - Checkbox with label and indeterminate state support

Feedback

  • Alert - Success, info, warning, and error alerts with multiple variants

Data Display

  • Card - Container component with default, outlined, and elevated variants

🎨 Design Tokens

The design system includes comprehensive design tokens for:

  • Colors - Primary, neutral, semantic (success, warning, error, info)
  • Typography - Font families, sizes, weights, line heights
  • Spacing - Consistent spacing scale based on 4px unit
  • Shadows - Elevation system for depth
  • Border Radius - Consistent corner rounding

🛠 Development

Quick Start

# Install dependencies
npm install

# Start Storybook
npm run storybook

# Run tests
npm test

# Build the library
npm run build

Developer Tools 🆕

# Generate new component
npm run generate:component -- MyComponent

# Validate design tokens
npm run validate:tokens

# Generate API documentation
npm run docs:generate

Learn more about Developer Tools →

Project Structure

designbricks/
├── src/
│   ├── components/       # React components
│   │   ├── Button/
│   │   ├── Typography/
│   │   ├── TextField/
│   │   ├── Checkbox/
│   │   ├── Alert/
│   │   └── Card/
│   ├── tokens/           # Design tokens
│   │   ├── colors.ts
│   │   ├── typography.ts
│   │   ├── spacing.ts
│   │   └── index.ts
│   └── index.ts          # Main export
├── example/              # Demo application
│   ├── App.tsx
│   └── App.css
├── package.json
├── tsconfig.json
└── README.md

🎯 Design Principles

  1. Rational - Every design decision has a clear purpose
  2. Human - Prioritize user needs and intuitive interactions
  3. Data-Focused - Optimized for data visualization and analysis workflows
  4. Performant - Fast loading and responsive, especially with large datasets
  5. Collaborative - Support team-based workflows and sharing

📖 Component API

Button

interface ButtonProps {
  variant?: 'primary' | 'secondary' | 'tertiary' | 'danger';
  size?: 'small' | 'medium' | 'large';
  fullWidth?: boolean;
  loading?: boolean;
  disabled?: boolean;
  iconBefore?: ReactNode;
  iconAfter?: ReactNode;
}

Typography

interface TypographyProps {
  variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' |
            'body1' | 'body2' | 'caption' | 'overline' | 'code';
  color?: 'primary' | 'secondary' | 'disabled' |
          'error' | 'warning' | 'success' | 'info';
  align?: 'left' | 'center' | 'right' | 'justify';
  truncate?: boolean;
  weight?: 'normal' | 'medium' | 'semibold' | 'bold';
}

TextField

interface TextFieldProps {
  label?: string;
  helperText?: string;
  error?: string;
  size?: 'small' | 'medium' | 'large';
  fullWidth?: boolean;
  required?: boolean;
  disabled?: boolean;
  iconBefore?: ReactNode;
  iconAfter?: ReactNode;
}

Checkbox

interface CheckboxProps {
  label?: string;
  size?: 'small' | 'medium' | 'large';
  error?: boolean;
  indeterminate?: boolean;
  helperText?: string;
  disabled?: boolean;
}

Alert

interface AlertProps {
  severity?: 'success' | 'info' | 'warning' | 'error';
  variant?: 'filled' | 'outlined' | 'standard';
  icon?: ReactNode;
  title?: string;
  onClose?: () => void;
}

Card

interface CardProps {
  variant?: 'default' | 'outlined' | 'elevated';
  padding?: 'none' | 'small' | 'medium' | 'large';
  clickable?: boolean;
  selected?: boolean;
}

🎨 Theming

The design system uses CSS custom properties for theming. Colors are based on the Databricks brand:

  • Primary Blue: #2272B4
  • Text Primary: #11171C
  • Background Light: #F6F7F9

♿ Accessibility

All components are built with accessibility in mind:

  • Proper ARIA attributes
  • Keyboard navigation support
  • Focus management
  • Screen reader support
  • WCAG 2.1 AA compliance

📚 Documentation

🤝 Contributing

Contributions are welcome! See our Contributing Guide.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links


Built with ❤️ by Pulkit Chadha