@mars-stack/ui
v8.0.4
Published
Design-token-driven UI components and styles for MARS apps.
Maintainers
Readme
@mars-stack/ui
Design-token-driven UI components and styles for MARS apps.
Installation
yarn add @mars-stack/uiComponents
Primitives: Button, Input, Checkbox, Select, Textarea, Badge, Avatar, Spinner, Divider, Table, Text, JsonLd
Patterns: Card, Modal, Toast, FormField, EmptyState, PasswordStrengthIndicator
Styles
Import the full design system in your globals.css:
@import 'tailwindcss';
@import '@mars-stack/ui/styles/index.css';
@import './brand.css';Override --brand-50 through --brand-950 in brand.css to customise your brand colour.
Usage
import { Button, Card, Input, Text } from '@mars-stack/ui';
import { useZodForm } from '@mars-stack/ui/hooks';License
MIT
