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

@cakemail-org/ui

v2.0.0

Published

Cakemail UI Component Library - Reusable React components for all Cakemail web properties

Readme

@cakemail-org/ui

Reusable React component library for all Cakemail web properties. Built with TypeScript, Tailwind CSS, and based on shadcn/ui and Radix UI primitives.

Installation

npm install @cakemail-org/ui @cakemail-org/design-tokens
# or
pnpm add @cakemail-org/ui @cakemail-org/design-tokens
# or
yarn add @cakemail-org/ui @cakemail-org/design-tokens

Setup

1. Configure Tailwind

// tailwind.config.js
module.exports = {
  presets: [require('@cakemail-org/ui/tailwind-preset')],
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@cakemail-org/ui/**/*.{js,ts,jsx,tsx}',
  ],
};

2. Import Styles

// In your app entry point (e.g., _app.tsx, layout.tsx, or main.tsx)
import '@cakemail-org/ui/styles';

Components

Button

Primary, secondary, and tertiary button variants following Cakemail brand guidelines.

import { Button } from '@cakemail-org/ui';

<Button variant="primary">Get Started Free</Button>
<Button variant="secondary">Learn More</Button>
<Button variant="tertiary">Cancel</Button>

Props:

  • variant: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'link'
  • size: 'default' | 'sm' | 'lg' | 'icon'
  • All standard button HTML attributes

Hero

Hero section component with eyebrow, heading, description, and CTA.

import { Hero, Button } from '@cakemail-org/ui';

<Hero
  eyebrow="EMAIL MARKETING PLATFORM"
  title="Built to drive results"
  description="Cakemail delivers with precision—so every send hits, converts, and drives revenue."
  subtext="No credit card required"
  align="center"
>
  <Button variant="primary">Create Free Account</Button>
</Hero>

Props:

  • eyebrow: Optional category label
  • title: Main heading (required)
  • description: Supporting text
  • subtext: Small text below CTA
  • align: 'center' | 'left'
  • children: CTA buttons or other content

Card

Flexible card component for features, testimonials, etc.

import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@cakemail-org/ui';

<Card>
  <CardHeader>
    <CardTitle>AI-Powered Content Generation</CardTitle>
    <CardDescription>
      Jumpstart campaign content creation with the help of AI.
    </CardDescription>
  </CardHeader>
  <CardContent>
    Additional content goes here...
  </CardContent>
</Card>

Eyebrow

Category label component (small, uppercase, purple text).

import { Eyebrow } from '@cakemail-org/ui';

<Eyebrow>EMAIL MARKETING PLATFORM</Eyebrow>

Usage Examples

Marketing Page

import { Hero, Button, Card, CardHeader, CardTitle, CardDescription } from '@cakemail-org/ui';

export default function MarketingPage() {
  return (
    <>
      <Hero
        eyebrow="EMAIL MARKETING PLATFORM"
        title="Built to drive results"
        description="Cakemail delivers with precision—so every send hits, converts, and drives revenue."
        subtext="No credit card required"
      >
        <Button variant="primary">Get Started Free</Button>
        <Button variant="secondary">Learn More</Button>
      </Hero>

      <section className="py-4xl">
        <div className="container mx-auto px-xl">
          <h2 className="text-center mb-3xl">Features</h2>

          <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-xl">
            <Card>
              <CardHeader>
                <CardTitle>AI-Powered Content</CardTitle>
                <CardDescription>
                  Jumpstart campaign content creation with AI.
                </CardDescription>
              </CardHeader>
            </Card>

            <Card>
              <CardHeader>
                <CardTitle>Personalized Messaging</CardTitle>
                <CardDescription>
                  Send content that adapts to each subscriber.
                </CardDescription>
              </CardHeader>
            </Card>

            <Card>
              <CardHeader>
                <CardTitle>Auto-Branded Templates</CardTitle>
                <CardDescription>
                  Start with your brand, not a blank page.
                </CardDescription>
              </CardHeader>
            </Card>
          </div>
        </div>
      </section>
    </>
  );
}

Customization

All components support className prop for additional customization:

<Button className="w-full" variant="primary">
  Full Width Button
</Button>

<Hero className="bg-neutral-100" title="Custom Background">
  <Button>CTA</Button>
</Hero>

Design Tokens

Components automatically use design tokens from @cakemail-org/design-tokens. You can also use tokens directly in your custom components:

<div className="bg-brand-primary-purple text-white p-xl rounded-medium">
  Custom component using design tokens
</div>

TypeScript Support

All components are fully typed with TypeScript. Import types as needed:

import type { ButtonProps, HeroProps } from '@cakemail-org/ui';

Browser Support

  • Chrome (latest 2 versions)
  • Firefox (latest 2 versions)
  • Safari (latest 2 versions)
  • Edge (latest 2 versions)

Contributing

When adding new components:

  1. Place base UI components in src/components/ui/
  2. Place Cakemail-specific components in src/components/cakemail/
  3. Export from src/index.ts
  4. Follow existing patterns for props and styling
  5. Use design tokens from @cakemail-org/design-tokens

License

UNLICENSED - Internal use only for Cakemail properties.