@dmitriikapustin/ui 0.2.1 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,14 +10,23 @@ npm install @dmitriikapustin/ui
10
10
 
11
11
  ## Usage
12
12
 
13
+ **Step 1.** Import design tokens stylesheet **once** in your app's root layout (e.g. `app/layout.tsx` for Next.js, or `main.tsx` for Vite):
14
+
13
15
  ```tsx
14
- import { Button, Input, Badge } from '@dmitriikapustin/ui';
15
16
  import '@dmitriikapustin/ui/styles.css';
17
+ ```
18
+
19
+ This registers all CSS custom properties (`--bg`, `--fg`, `--brand-primary`, `--radius-lg`, etc.) on `:root`. Components reference these tokens — without this import, components render without colors / typography / spacing.
20
+
21
+ **Step 2.** Use components anywhere:
22
+
23
+ ```tsx
24
+ import { Button, Input, Badge } from '@dmitriikapustin/ui';
16
25
 
17
26
  export function App() {
18
27
  return (
19
28
  <div>
20
- <Button variant="primary">Get Started</Button>
29
+ <Button variant="primary" size="hero">Get Started</Button>
21
30
  <Input label="Email" placeholder="you@example.com" />
22
31
  <Badge color="success">Active</Badge>
23
32
  </div>
@@ -41,10 +50,10 @@ Dark mode activates via `[data-theme="dark"]` on `<html>`.
41
50
  Button, Input, Badge, Tag, Toggle, Avatar, Spinner, Divider, MenuItem, IconButton, Logo, StatBadge, Textarea, Select, Checkbox, Radio, Link, Tooltip, Skeleton, Icons
42
51
 
43
52
  ### Molecules
44
- Card, FormField, SearchBar, Stat, Alert, Tabs, ChatInput, ChatMessage, TopPromo, ProfileNav, IconWithText, StampCard, PasswordInput, Breadcrumbs, Toast, Pagination, CodeInput, Modal, DropdownMenu
53
+ Card, IconBadge, Gallery, FormField, SearchBar, Stat, Alert, Tabs, ChatInput, ChatMessage, TopPromo, ProfileNav, IconWithText, StampCard, PasswordInput, Breadcrumbs, Toast, Pagination, CodeInput, Modal, DropdownMenu
45
54
 
46
55
  ### Organisms
47
- Header, Footer, PricingCard, TestimonialCard, FeatureGrid, Sidebar, AppCard, AppTopLine, EmptyState, HeroSection, LogoCloud, StatsBar, CTASection, BentoGrid, FAQSection, ComparisonTable, PromoBento, PromoShowcase, PromoSplit, PromoTrustGrid, PromoDevicesCTA, PromoTestimonials, PromoHero, PromoPricing, PromoActionCards
56
+ Header, Footer, PricingCard, TestimonialCard, FeatureGrid, Sidebar, AppCard, AppTopLine, EmptyState, HeroSection, LogoCloud, StatsBar, CTASection, BentoGrid, FAQSection, ComparisonTable, PromoBento, PromoShowcase, PromoSplit, PromoTrustGrid, PromoDevicesCTA, PromoTestimonials, PromoHero, PromoHeroForm, PromoPricing, PromoActionCards
48
57
 
49
58
  ### Templates
50
59
  ArticleHero, ArticleBody, ArticleHeading, ArticleFigure, ArticleTable, ArticleList, ArticleNote, ArticleChatBlock, ArticleLinkButton, ArticleFooter, ArticleLayout, LandingLayout, ArticleLineChart, ArticleBarChart, ArticleScatterChart