Package Exports
- @anyauth/design-system
- @anyauth/design-system/auth-types
- @anyauth/design-system/base
- @anyauth/design-system/cloudflare-utils
- @anyauth/design-system/components/accordion
- @anyauth/design-system/components/alert
- @anyauth/design-system/components/alert-dialog
- @anyauth/design-system/components/aspect-ratio
- @anyauth/design-system/components/avatar
- @anyauth/design-system/components/badge
- @anyauth/design-system/components/breadcrumb
- @anyauth/design-system/components/button
- @anyauth/design-system/components/calendar
- @anyauth/design-system/components/callout
- @anyauth/design-system/components/card
- @anyauth/design-system/components/carousel
- @anyauth/design-system/components/checkbox
- @anyauth/design-system/components/code-tabs
- @anyauth/design-system/components/collapsible
- @anyauth/design-system/components/command
- @anyauth/design-system/components/concept-cards
- @anyauth/design-system/components/context-menu
- @anyauth/design-system/components/dialog
- @anyauth/design-system/components/drawer
- @anyauth/design-system/components/dropdown-menu
- @anyauth/design-system/components/empty
- @anyauth/design-system/components/feature-card
- @anyauth/design-system/components/form
- @anyauth/design-system/components/hover-card
- @anyauth/design-system/components/input
- @anyauth/design-system/components/install-command
- @anyauth/design-system/components/kbd
- @anyauth/design-system/components/label
- @anyauth/design-system/components/menubar
- @anyauth/design-system/components/navigation-cards
- @anyauth/design-system/components/navigation-menu
- @anyauth/design-system/components/pagination
- @anyauth/design-system/components/popover
- @anyauth/design-system/components/progress
- @anyauth/design-system/components/radio-group
- @anyauth/design-system/components/resizable
- @anyauth/design-system/components/scroll-area
- @anyauth/design-system/components/select
- @anyauth/design-system/components/separator
- @anyauth/design-system/components/sheet
- @anyauth/design-system/components/skeleton
- @anyauth/design-system/components/slider
- @anyauth/design-system/components/sonner
- @anyauth/design-system/components/spinner
- @anyauth/design-system/components/step-guide
- @anyauth/design-system/components/switch
- @anyauth/design-system/components/table
- @anyauth/design-system/components/tabs
- @anyauth/design-system/components/textarea
- @anyauth/design-system/components/toast
- @anyauth/design-system/components/toaster
- @anyauth/design-system/components/toggle
- @anyauth/design-system/components/toggle-group
- @anyauth/design-system/components/tooltip
- @anyauth/design-system/components/troubleshooting-list
- @anyauth/design-system/logger
- @anyauth/design-system/styles
- @anyauth/design-system/styles/global
- @anyauth/design-system/theme
- @anyauth/design-system/utils
Readme
@anyauth/design
Shared design system for AnyAuth Astro projects. Includes shadcn/ui components, Tailwind CSS v4 with OKLCH color tokens, and Cloudflare utilities.
Installation
This package is part of the AnyAuth monorepo and located at anyauth-docs/package-manager/anyauth-design.
Features
- 56+ shadcn/ui React components
- Tailwind CSS v4 with OKLCH color system
- Cloudflare Workers utilities
- Type-safe utilities and helpers
- Brand assets and icons
Usage in Astro
---
import { Button, Card, Badge } from '@anyauth/design';
---
<Card client:load>
<Button client:load>Click me</Button>
<Badge client:load>New</Badge>
</Card>Importing Styles
// In your Astro layout or global styles
import '@anyauth/design/styles';
// Or import specific parts
import '@anyauth/design/theme'; // Just theme variables
import '@anyauth/design/base'; // Base stylesUtilities
import { cn } from '@anyauth/design/utils';
import {
fetchServiceBinding,
isCloudflareWorker,
} from '@anyauth/design/cloudflare-utils';
import { logger } from '@anyauth/design/logger';
// Combine classNames
const className = cn('base-class', condition && 'conditional-class');
// Cloudflare Workers helpers
if (isCloudflareWorker()) {
const response = await fetchServiceBinding(env.API, '/endpoint');
}
// Structured logging
logger.info('User logged in', { userId: user.id });Brand Assets
Icons are located in assets/icons/:
favicon.ico- Multi-size faviconapple-touch-icon.png- iOS home screen icon- PWA icons (192x192 and 512x512)
Development
# Build the package
pnpm build
# Type check
pnpm type-checkLicense
MIT