JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 138
  • Score
    100M100P100Q100079F
  • License MIT

Shared design system for AnyAuth projects

Package Exports

  • @anyauth/design-system
  • @anyauth/design-system/base
  • @anyauth/design-system/components/accordion
  • @anyauth/design-system/components/alert
  • @anyauth/design-system/components/badge
  • @anyauth/design-system/components/button
  • @anyauth/design-system/components/callout
  • @anyauth/design-system/components/card
  • @anyauth/design-system/components/code-tabs
  • @anyauth/design-system/components/concept-cards
  • @anyauth/design-system/components/dialog
  • @anyauth/design-system/components/feature-card
  • @anyauth/design-system/components/form
  • @anyauth/design-system/components/input
  • @anyauth/design-system/components/install-command
  • @anyauth/design-system/components/label
  • @anyauth/design-system/components/navigation-cards
  • @anyauth/design-system/components/separator
  • @anyauth/design-system/components/step-guide
  • @anyauth/design-system/components/table
  • @anyauth/design-system/components/tabs
  • @anyauth/design-system/components/textarea
  • @anyauth/design-system/components/troubleshooting-list
  • @anyauth/design-system/styles
  • @anyauth/design-system/styles/global
  • @anyauth/design-system/theme

Readme

@anyauth/design-system

Shared design system for AnyAuth projects. OKLCH color tokens and shadcn/ui components.

Installation

npm install @anyauth/design-system

Usage

Import Styles

// Import the complete design system
import '@anyauth/design-system/styles';

// Or import specific parts
import '@anyauth/design-system/theme';  // Just theme variables

Use Components

import { Button, Card, Badge } from '@anyauth/design-system';

function MyComponent() {
  return (
    <Card>
      <Button>Click me</Button>
      <Badge>New</Badge>
    </Card>
  );
}

Use Utilities

import { cn } from '@anyauth/design-system';

// Combine className with conditional classes
const className = cn('base-class', condition && 'conditional-class');

Brand Assets

This package includes the official AnyAuth brand icons in the assets/icons/ directory:

  • favicon.ico - Multi-size favicon
  • apple-touch-icon.png - iOS home screen icon
  • icon-192.png / icon-192-maskable.png - PWA icons (192x192)
  • icon-512.png / icon-512-maskable.png - PWA icons (512x512)

Using Icons in Your Project

After installing the package, copy the icons to your public directory:

cp node_modules/@anyauth/design-system/assets/icons/*.{png,ico} ./public/

See assets/README.md for detailed usage instructions.

Publishing

Automated via GitHub Actions on changes to src/ or package.json.

License

MIT