shadcn-glass-ui 2.1.0 โ†’ 2.1.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,133 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
6
6
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.1.1] - 2025-12-14
9
+
10
+ ### ๐Ÿ› Bug Fixes
11
+
12
+ #### CI/CD Improvements
13
+
14
+ - **GitHub Packages Publishing** - Fixed publication to GitHub Packages registry
15
+ - Added `--ignore-scripts` flag to skip `prepublishOnly` hook during GitHub Packages publish
16
+ - Reuses build artifacts from npm publish step instead of rebuilding
17
+ - Prevents API Extractor scope validation error with `@Yhooi2` (uppercase scope)
18
+ - Added graceful handling for `package.json.bak` restore step
19
+
20
+ ### ๐Ÿ“ฆ Published Packages
21
+
22
+ - **npm Registry**: [shadcn-glass-ui@2.1.1](https://www.npmjs.com/package/shadcn-glass-ui/v/2.1.1)
23
+ - **GitHub Packages**:
24
+ [@Yhooi2/shadcn-glass-ui@2.1.1](https://github.com/Yhooi2/shadcn-glass-ui-library/packages)
25
+
26
+ ## [2.1.0] - 2025-12-14
27
+
28
+ ### ๐ŸŽ‰ Complete v2.0.0 Migration Applied
29
+
30
+ This release applies all v2.0.0 API changes across the entire codebase, ensuring consistency and
31
+ completing the migration roadmap.
32
+
33
+ ### โœจ Features
34
+
35
+ #### Component Implementations Updated
36
+
37
+ - **ButtonGlass** - All instances migrated to v2.0.0 API (`variant="default"`, `variant="link"`,
38
+ `size="default"`)
39
+ - **ToggleGlass** - All instances migrated to v2.0.0 API (`pressed`, `onPressedChange`)
40
+ - **SliderGlass** - All instances migrated to v2.0.0 API (`value: number[]`, `onValueChange`)
41
+ - **ComboBoxGlass** - All instances migrated to v2.0.0 API (`onValueChange`)
42
+
43
+ #### Demo Screenshots Added
44
+
45
+ - ๐Ÿ“ธ **GitHub Pages screenshots** - Added demo-screenshot.png and demo-screenshot-aurora.png to
46
+ public directory
47
+ - ๐ŸŽจ **Visual documentation** - Both Glass and Aurora theme screenshots in README
48
+
49
+ ### ๐Ÿ“š Documentation
50
+
51
+ #### Comprehensive Documentation Audit
52
+
53
+ - **Removed v1.x legacy content** (-875 lines total):
54
+ - Deleted 3 outdated migration guides (select-to-combobox.md, modal-glass-compound-api.md,
55
+ tabs-glass-compound-api.md)
56
+ - Streamlined AI_USAGE.md: 1,463 โ†’ 855 lines (-42%)
57
+ - Streamlined BREAKING_CHANGES.md: 585 โ†’ 238 lines (-59%)
58
+ - Updated CLAUDE.md: removed v1.0.0 legacy examples
59
+ - **Fixed all code examples** to use v2.0.0+ API patterns
60
+ - **Fixed broken documentation links** across 16 files
61
+ - **Updated component catalog** with correct API references
62
+ - **Enhanced README** with v2.0.0 API compatibility badge
63
+
64
+ #### Files Updated (Documentation)
65
+
66
+ - README.md - Updated Quick Start examples with v2.0.0 API
67
+ - CHANGELOG.md - Added complete v2.0.0 breaking changes
68
+ - CONTRIBUTING.md - Fixed email placeholder
69
+ - docs/AI_USAGE.md - Removed legacy content, focused on v2.0.0+
70
+ - docs/BREAKING_CHANGES.md - Streamlined to v2.0.0 only
71
+ - docs/COMPONENTS_CATALOG.md - Updated component references
72
+ - docs/GETTING_STARTED.md - Fixed CLI command naming
73
+ - docs/BEST_PRACTICES.md - Updated Tailwind version requirement (4.1+)
74
+ - docs/api/README.md - Updated API documentation paths
75
+ - docs/api/interfaces/ - Updated BadgeGlassProps, ButtonGlassProps
76
+
77
+ ### ๐Ÿ”ง Fixes
78
+
79
+ - **Bundle size badge** - Replaced bundlephobia badge with static size badge (fixes dynamic loading
80
+ issues)
81
+
82
+ ### ๐Ÿ“ฆ Internal Changes
83
+
84
+ #### Test Coverage Maintained
85
+
86
+ - **138/138 tests passing** โœ…
87
+ - All Storybook stories updated (.stories.tsx)
88
+ - All unit tests updated (**tests**/)
89
+ - All visual regression tests updated (**visual**/)
90
+ - Compliance tests updated (accessibility, tokens, glassmorphism)
91
+
92
+ #### Registry Updates
93
+
94
+ Auto-updated component registry files:
95
+
96
+ - button-glass.json, toggle-glass.json, slider-glass.json
97
+ - combobox-glass.json, ai-card-glass.json, repository-card-glass.json
98
+ - avatar-glass.json, badge-glass.json, year-card-glass.json
99
+
100
+ #### Theme Files Updated
101
+
102
+ Added component-specific CSS variables to all themes:
103
+
104
+ - glass.css - Updated with semantic token mappings
105
+ - light.css - Updated with semantic token mappings
106
+ - aurora.css - Updated with semantic token mappings
107
+
108
+ #### Files Changed
109
+
110
+ - **90 files changed**: 2,556 insertions(+), 3,051 deletions(-)
111
+ - Component implementations: 22 files
112
+ - Storybook stories: 25+ files
113
+ - Tests: 20+ files
114
+ - Documentation: 16 files
115
+ - Registry: 10 files
116
+ - Demos: 6 files
117
+
118
+ ### ๐ŸŽฏ Impact
119
+
120
+ - **100% codebase consistency** - All code now uses v2.0.0 API
121
+ - **Cleaner documentation** - Removed 875 lines of outdated content
122
+ - **Better DX** - All examples and documentation aligned with current API
123
+ - **Zero tech debt** - No legacy API references remaining
124
+
125
+ ### ๐Ÿ“– Migration Guide
126
+
127
+ All v2.0.0 migrations are now complete. For reference, see:
128
+
129
+ - [BREAKING_CHANGES.md](docs/BREAKING_CHANGES.md) - Complete v2.0.0 migration guide
130
+ - [API_PATTERNS_COMPARISON.md](docs/API_PATTERNS_COMPARISON.md) - Component API consistency
131
+ reference
132
+
133
+ ---
134
+
8
135
  ## [2.0.0] - 2025-12-14
9
136
 
10
137
  ### ๐ŸŽ‰ MAJOR MILESTONE: 100% shadcn/ui API Compatibility
package/README.md CHANGED
@@ -3,84 +3,42 @@
3
3
  [![npm version](https://img.shields.io/npm/v/shadcn-glass-ui.svg)](https://www.npmjs.com/package/shadcn-glass-ui)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/shadcn-glass-ui.svg)](https://www.npmjs.com/package/shadcn-glass-ui)
5
5
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
6
+ [![Bundle Size](https://img.shields.io/bundlephobia/minzip/shadcn-glass-ui?cacheSeconds=86400)](https://bundlephobia.com/package/shadcn-glass-ui)
6
7
  [![AI-Friendly](https://img.shields.io/badge/AI-Optimized-blueviolet)](docs/AI_USAGE.md)
7
- [![Bundle Size](https://img.shields.io/badge/gzip-372KB-success)](https://bundlephobia.com/package/shadcn-glass-ui)
8
8
 
9
- **Glassmorphism UI components for React** โ€” beautiful frosted glass effects, 57 production-ready
10
- components, 3 themes, drop-in compatible with shadcn/ui.
11
-
12
- **[Live Demo](https://yhooi2.github.io/shadcn-glass-ui-library/)** |
13
- **[Interactive Storybook](https://yhooi2.github.io/shadcn-glass-ui-library/)** |
14
- **[npm Package](https://www.npmjs.com/package/shadcn-glass-ui)**
9
+ **Glassmorphism components for React** โ€” drop-in compatible with shadcn/ui. 57 components, 3 themes,
10
+ zero migration.
15
11
 
16
12
  <div align="center">
17
- <img src="https://yhooi2.github.io/shadcn-glass-ui-library/demo-screenshot.png" alt="shadcn-glass-ui Demo - Glass Theme" width="100%" />
18
- <p><em>Glass theme showcase with glassmorphism effects</em></p>
13
+ <img src="https://yhooi2.github.io/shadcn-glass-ui-library/demo-screenshot.png" alt="shadcn-glass-ui Demo" width="100%" />
14
+ <br />
15
+ <a href="https://yhooi2.github.io/shadcn-glass-ui-library/"><strong>Live Demo</strong></a> ยท
16
+ <a href="https://www.npmjs.com/package/shadcn-glass-ui"><strong>npm</strong></a> ยท
17
+ <a href="docs/GETTING_STARTED.md"><strong>Docs</strong></a>
19
18
  </div>
20
19
 
21
20
  ---
22
21
 
23
- ## Why shadcn-glass-ui?
24
-
25
- | Feature | shadcn-glass-ui | Standard shadcn/ui |
26
- | -------------------- | ------------------------------------ | ------------------- |
27
- | **Themes** | 3 built-in (Glass/Light/Aurora) | 1 base theme |
28
- | **Glass Effects** | Native blur, glow, transparency | Manual CSS required |
29
- | **AI Documentation** | Optimized for Claude, Copilot, GPT | Basic docs |
30
- | **Components** | 57 specialized glassmorphism | ~40 base components |
31
- | **Token System** | 225 OKLCH primitives, zero hardcoded | CSS variables |
32
- | **Accessibility** | WCAG 2.1 AA + 44px touch targets | Basic a11y |
33
-
34
- **Key advantages:**
35
-
36
- - Works alongside existing shadcn/ui components โ€” same patterns, same CLI
37
- - AI-first documentation with decision trees and Context7 integration
38
- - 1,500+ tests (visual regression, compliance, unit)
39
- - 3-layer token system with zero hardcoded values
40
-
41
- ---
42
-
43
22
  ## Quick Start
44
23
 
45
- **Requirements:** React 18+, Tailwind CSS 4.1+
46
-
47
- ### Install
48
-
49
24
  ```bash
50
25
  npm install shadcn-glass-ui
51
26
  ```
52
27
 
53
- ### Use
54
-
55
28
  ```tsx
56
- import { ButtonGlass, InputGlass, ThemeProvider } from 'shadcn-glass-ui';
29
+ import { ButtonGlass, ThemeProvider } from 'shadcn-glass-ui';
57
30
  import 'shadcn-glass-ui/dist/styles.css';
58
31
 
59
- function App() {
32
+ export default function App() {
60
33
  return (
61
34
  <ThemeProvider defaultTheme="glass">
62
- <div className="p-8 space-y-4">
63
- <ButtonGlass variant="default" size="lg">
64
- Click me
65
- </ButtonGlass>
66
- <InputGlass placeholder="Enter text..." />
67
- </div>
35
+ <ButtonGlass variant="default">Click me</ButtonGlass>
68
36
  </ThemeProvider>
69
37
  );
70
38
  }
71
39
  ```
72
40
 
73
- **[Full Getting Started Guide โ†’](docs/GETTING_STARTED.md)**
74
-
75
- ---
76
-
77
- ## Installation Methods
78
-
79
- ### Option 1: shadcn CLI (Recommended)
80
-
81
- Listed on [registry.directory](https://registry.directory)!
82
-
83
- Add to `components.json`:
41
+ **Or via shadcn CLI** โ€” add to `components.json`:
84
42
 
85
43
  ```json
86
44
  {
@@ -92,332 +50,129 @@ Add to `components.json`:
92
50
  }
93
51
  ```
94
52
 
95
- Install components:
96
-
97
- ```bash
98
- npx shadcn@latest add @shadcn-glass-ui/button-glass @shadcn-glass-ui/input-glass
99
- ```
100
-
101
- **[Registry Documentation โ†’](docs/REGISTRY_USAGE.md)**
102
-
103
- ### Option 2: npm Package
104
-
105
53
  ```bash
106
- npm install shadcn-glass-ui
54
+ npx shadcn@latest add @shadcn-glass-ui/button-glass
107
55
  ```
108
56
 
109
- **[npm Installation Guide โ†’](docs/GETTING_STARTED.md)**
110
-
111
57
  ---
112
58
 
113
- ## Components
114
-
115
- | Category | Count | Examples |
116
- | --------------- | ----- | ------------------------------------------------------------- |
117
- | **Core UI** | 18 | ButtonGlass, InputGlass, ModalGlass, TabsGlass, CheckboxGlass |
118
- | **Atomic** | 7 | SearchBoxGlass, ThemeToggleGlass, IconButtonGlass |
119
- | **Composite** | 13 | MetricCardGlass, AICardGlass, YearCardGlass |
120
- | **Sections** | 7 | HeaderNavGlass, ProfileHeaderGlass, CareerStatsGlass |
121
- | **Specialized** | 10 | SparklineGlass, StepperGlass, RainbowProgressGlass |
122
- | **Primitives** | 3 | TouchTarget, FormFieldWrapper, InteractiveCard |
59
+ ## Choose Your Path
123
60
 
124
- <details>
125
- <summary><strong>Core UI (18)</strong> โ€” Essential building blocks</summary>
126
-
127
- ButtonGlass, InputGlass, CheckboxGlass, ToggleGlass, SliderGlass, ModalGlass, TabsGlass,
128
- DropdownGlass, TooltipGlass, AlertGlass, NotificationGlass, BadgeGlass, AvatarGlass, GlassCard,
129
- ProgressGlass, CircularProgressGlass, SkeletonGlass, ComboBoxGlass
130
-
131
- </details>
132
-
133
- <details>
134
- <summary><strong>Atomic (7)</strong> โ€” Single-purpose components</summary>
135
-
136
- IconButtonGlass, ThemeToggleGlass, SearchBoxGlass, SortDropdownGlass, StatItemGlass,
137
- ExpandableHeaderGlass, InsightCardGlass
138
-
139
- </details>
140
-
141
- <details>
142
- <summary><strong>Composite (13)</strong> โ€” Pre-built complex widgets</summary>
143
-
144
- MetricCardGlass, YearCardGlass, AICardGlass, RepositoryCardGlass, TrustScoreDisplayGlass,
145
- CircularMetricGlass, UserStatsLineGlass, UserInfoGlass, CareerStatsHeaderGlass,
146
- ContributionMetricsGlass, MetricsGridGlass, RepositoryHeaderGlass, RepositoryMetadataGlass
147
-
148
- </details>
149
-
150
- <details>
151
- <summary><strong>Sections (7)</strong> โ€” Full page sections</summary>
152
-
153
- HeaderNavGlass, ProfileHeaderGlass, CareerStatsGlass, FlagsSectionGlass, TrustScoreCardGlass,
154
- ProjectsListGlass, HeaderBrandingGlass
155
-
156
- </details>
157
-
158
- <details>
159
- <summary><strong>Specialized (10)</strong> โ€” Advanced components</summary>
160
-
161
- StatusIndicatorGlass, SegmentedControlGlass, RainbowProgressGlass, LanguageBarGlass,
162
- ProfileAvatarGlass, FlagAlertGlass, BaseProgressGlass, SparklineGlass, StepperGlass (compound API
163
- with 3 variants)
164
-
165
- </details>
166
-
167
- **[Full Component Catalog โ†’](docs/COMPONENTS_CATALOG.md)** |
168
- **[Try in Storybook โ†’](https://yhooi2.github.io/shadcn-glass-ui-library/)**
61
+ | Goal | Resource |
62
+ | ----------------------- | -------------------------------------------------------------- |
63
+ | **Get started** | [Getting Started Guide](docs/GETTING_STARTED.md) |
64
+ | **Browse components** | [Storybook](https://yhooi2.github.io/shadcn-glass-ui-library/) |
65
+ | **Use with AI** | [AI Usage Guide](docs/AI_USAGE.md) |
66
+ | **Create custom theme** | [Theme Guide](docs/THEME_CREATION_GUIDE.md) |
67
+ | **Migrate from v1.x** | [Breaking Changes](docs/BREAKING_CHANGES.md) |
169
68
 
170
69
  ---
171
70
 
172
- ## Themes
71
+ ## Why shadcn-glass-ui?
173
72
 
174
- Three built-in themes with seamless switching:
73
+ | | shadcn-glass-ui | shadcn/ui |
74
+ | ----------------- | ------------------------------- | ------------ |
75
+ | **Themes** | 3 built-in (Glass/Light/Aurora) | 1 base |
76
+ | **Glass effects** | Native blur, glow, transparency | Manual CSS |
77
+ | **Components** | 57 specialized | ~40 base |
78
+ | **Custom theme** | 15 lines CSS | Full rewrite |
79
+ | **AI docs** | Context7, Claude Code, Copilot | Basic |
175
80
 
176
- - **Glass (Dark)** โ€” Frosted glass effects with purple accents, blur + glow
177
- - **Light** โ€” Clean minimal design with subtle glass effects
178
- - **Aurora** โ€” Gradient glow with aurora borealis-inspired colors
81
+ **Works alongside shadcn/ui** โ€” same API, same CLI, no migration:
179
82
 
180
83
  ```tsx
181
- import { ThemeProvider, useTheme } from 'shadcn-glass-ui';
84
+ import { Button } from '@/components/ui/button'; // shadcn/ui
85
+ import { ButtonGlass } from '@/components/glass/ui/button-glass'; // Glass variant
182
86
 
183
- function ThemeSwitcher() {
184
- const { theme, cycleTheme } = useTheme();
185
- return <button onClick={cycleTheme}>Theme: {theme}</button>;
186
- }
87
+ <Button variant="outline">Standard</Button>
88
+ <ButtonGlass variant="default">Glassmorphism</ButtonGlass>
187
89
  ```
188
90
 
189
- **[Theme Creation Guide โ†’](docs/THEME_CREATION_GUIDE.md)**
190
-
191
91
  ---
192
92
 
193
- ## 3-Layer Token System
194
-
195
- Centralized color management with **zero hardcoded values**.
196
-
197
- ```
198
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
199
- โ”‚ Component Tokens --btn-primary-bg, --modal-surface โ”‚
200
- โ”‚ โ†“ โ”‚
201
- โ”‚ Semantic Tokens --semantic-primary, --semantic-surface โ”‚
202
- โ”‚ โ†“ โ”‚
203
- โ”‚ Primitive Tokens --oklch-purple-500 (225 OKLCH colors) โ”‚
204
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
205
- ```
206
-
207
- | Metric | Before (v1.x) | After (v2.0) |
208
- | ----------------------- | -------------- | -------------------- |
209
- | Hardcoded OKLCH values | ~280 per theme | **0** |
210
- | CSS variables per theme | ~85 | **296+ (inherited)** |
93
+ ## Components
211
94
 
212
- **How it works:**
95
+ | Category | Count | Examples |
96
+ | --------------- | ----- | -------------------------------------------------- |
97
+ | **Core UI** | 18 | ButtonGlass, InputGlass, ModalGlass, TabsGlass |
98
+ | **Composite** | 13 | MetricCardGlass, AICardGlass, RepositoryCardGlass |
99
+ | **Specialized** | 10 | StepperGlass, SparklineGlass, RainbowProgressGlass |
100
+ | **Sections** | 7 | HeaderNavGlass, ProfileHeaderGlass |
101
+ | **Atomic** | 7 | SearchBoxGlass, ThemeToggleGlass |
102
+ | **Primitives** | 3 | TouchTarget, FormFieldWrapper |
213
103
 
214
- 1. Define ~15 semantic tokens for your theme
215
- 2. 280+ component tokens are inherited automatically
216
- 3. All 57 components update instantly
217
-
218
- ```css
219
- /* Create a "neon" theme */
220
- [data-theme='neon'] {
221
- --semantic-primary: var(--oklch-cyan-400);
222
- --semantic-surface: var(--oklch-slate-950);
223
- --semantic-text: var(--oklch-white-95);
224
- /* ... ~12 more tokens */
225
- }
226
- ```
227
-
228
- **[Token Architecture Guide โ†’](docs/TOKEN_ARCHITECTURE.md)** |
229
- **[Theme Creation Guide โ†’](docs/THEME_CREATION_GUIDE.md)**
104
+ [**Browse all 57 components โ†’**](https://yhooi2.github.io/shadcn-glass-ui-library/)
230
105
 
231
106
  ---
232
107
 
233
- ## Full shadcn/ui Compatibility
234
-
235
- ### ๐ŸŽ‰ v2.0.0: 100% API Compatible
236
-
237
- **Install on top of existing shadcn/ui projects** โ€” no migration required!
238
-
239
- All components now follow **exact shadcn/ui API conventions**:
240
-
241
- | Component | shadcn/ui API | shadcn-glass-ui v2.0+ | Status |
242
- | ----------------- | ---------------------------------- | --------------------- | ------ |
243
- | **ButtonGlass** | `variant="default"` | โœ… Same | 100% |
244
- | **ToggleGlass** | `pressed`, `onPressedChange` | โœ… Same | 100% |
245
- | **SliderGlass** | `value: number[]`, `onValueChange` | โœ… Same | 100% |
246
- | **ComboBoxGlass** | `value`, `onValueChange` | โœ… Same | 100% |
247
-
248
- **Key improvements in v2.0:**
249
-
250
- - `onChange` โ†’ `onValueChange` (Select, ComboBox, Slider)
251
- - `checked` โ†’ `pressed` (Toggle components)
252
- - `variant="default"` โ†’ `variant="default"` (Button)
253
- - Array-based values for Slider (`number[]` instead of `number`)
108
+ ## Themes
254
109
 
255
- | Feature | shadcn-glass-ui | Standard shadcn/ui |
256
- | ----------------- | ----------------------------------------------- | ----------------------- |
257
- | CLI installation | `npx shadcn add @shadcn-glass-ui/button-glass` | `npx shadcn add button` |
258
- | Core props | `variant`, `size`, `className` | Same |
259
- | Callback names | `onValueChange`, `onPressedChange` | Same |
260
- | asChild pattern | Full support | Full support |
261
- | TypeScript | Strict mode | Same |
262
- | Extended features | `loading`, `icon`, compound APIs, glassmorphism | โ€” |
110
+ Three built-in themes with instant switching:
263
111
 
264
- **Mix and match freely:**
112
+ - **Glass** โ€” Dark glassmorphism with purple accents
113
+ - **Light** โ€” Clean minimal with subtle glass
114
+ - **Aurora** โ€” Gradient glow effects
265
115
 
266
116
  ```tsx
267
- import { Button } from '@/components/ui/button'; // Standard shadcn/ui
268
- import { ButtonGlass } from '@/components/glass/ui/button-glass'; // Glass variant
269
-
270
- function App() {
271
- return (
272
- <>
273
- <Button variant="outline">Standard</Button>
274
- <ButtonGlass variant="default">Glassmorphism</ButtonGlass>
275
- </>
276
- );
277
- }
117
+ const { theme, cycleTheme } = useTheme();
118
+ <button onClick={cycleTheme}>Theme: {theme}</button>;
278
119
  ```
279
120
 
280
- **Add to existing project:**
281
-
282
- ```bash
283
- # No migration needed - just add to components.json
284
- npx shadcn@latest add @shadcn-glass-ui/button-glass
285
- ```
286
-
287
- **[Registry Documentation โ†’](docs/REGISTRY_USAGE.md)**
121
+ **Create custom themes in ~15 lines** โ€” [Theme Guide](docs/THEME_CREATION_GUIDE.md)
288
122
 
289
123
  ---
290
124
 
291
- ## AI-First Documentation
125
+ ## AI-Optimized
292
126
 
293
- Built for AI coding assistants โ€” Claude, Copilot, GPT understand this library perfectly.
127
+ Built for AI coding assistants:
294
128
 
295
- | AI Tool | Integration | What it provides |
296
- | ------------------ | -------------------------------------------------------------- | ------------------------------------------ |
297
- | **Claude Code** | [CLAUDE.md](CLAUDE.md) | 365-line project context, all patterns |
298
- | **Context7 MCP** | [Indexed](https://context7.com/yhooi2/shadcn-glass-ui-library) | 41 rules, auto-fetched docs, version-aware |
299
- | **GitHub Copilot** | TypeScript strict + JSDoc | Accurate completions, type inference |
300
- | **ChatGPT/GPT-4** | [EXPORTS_MAP.json](docs/EXPORTS_MAP.json) | Machine-readable component registry |
129
+ | Tool | Integration |
130
+ | ---------------- | ------------------------------------------------------------------------------ |
131
+ | **Context7 MCP** | [Auto-indexed](https://context7.com/yhooi2/shadcn-glass-ui-library) โ€” 41 rules |
132
+ | **Claude Code** | [CLAUDE.md](CLAUDE.md) โ€” 365 lines of context |
133
+ | **Copilot** | TypeScript strict + JSDoc |
301
134
 
302
- **Context7 MCP enables:**
303
-
304
- ```
305
- AI: "Add a stepper component to my checkout flow"
306
-
307
- โ†’ Context7 fetches StepperGlass docs automatically
308
- โ†’ AI reads: "compound API, linear mode for wizards"
309
- โ†’ AI generates correct code with all props
310
- ```
311
-
312
- **[AI Usage Guide โ†’](docs/AI_USAGE.md)** โ€” Decision trees, migration scripts, component
313
- recommendations
135
+ [**AI Usage Guide โ†’**](docs/AI_USAGE.md)
314
136
 
315
137
  ---
316
138
 
317
- ## CLI
139
+ ## Documentation
318
140
 
319
- ```bash
320
- npx shadcn-glass-ui info button # Component info (fuzzy search)
321
- npx shadcn-glass-ui list # List all components
322
- npx shadcn-glass-ui list --category=core # Filter by category
323
- ```
141
+ | Resource | Description |
142
+ | ------------------------------------------------------------------ | --------------------- |
143
+ | [**Storybook**](https://yhooi2.github.io/shadcn-glass-ui-library/) | Interactive demos |
144
+ | [**Getting Started**](docs/GETTING_STARTED.md) | Installation & setup |
145
+ | [**Component Catalog**](docs/COMPONENTS_CATALOG.md) | All 57 components |
146
+ | [**Theme Guide**](docs/THEME_CREATION_GUIDE.md) | Custom themes |
147
+ | [**Token Architecture**](docs/TOKEN_ARCHITECTURE.md) | 3-layer CSS system |
148
+ | [**AI Usage**](docs/AI_USAGE.md) | Claude, Copilot, GPT |
149
+ | [**Breaking Changes**](docs/BREAKING_CHANGES.md) | v1.x โ†’ v2.0 migration |
324
150
 
325
151
  ---
326
152
 
327
- ## FAQ
328
-
329
- <details>
330
- <summary><strong>How do I migrate from v1.x to v2.0?</strong></summary>
153
+ ## Requirements
331
154
 
332
- v2.0 renames CSS variables to semantic names. Run automated migration:
333
-
334
- ```bash
335
- find src/ -type f \( -name "*.tsx" -o -name "*.css" \) -exec sed -i '' \
336
- -e 's/--metric-emerald-/--metric-success-/g' \
337
- -e 's/--metric-amber-/--metric-warning-/g' \
338
- -e 's/--metric-blue-/--metric-default-/g' \
339
- -e 's/--metric-red-/--metric-destructive-/g' {} +
340
- ```
341
-
342
- **[Full Migration Guide โ†’](docs/BREAKING_CHANGES.md)**
343
-
344
- </details>
345
-
346
- <details>
347
- <summary><strong>What are the requirements?</strong></summary>
348
-
349
- - React 18.0+ or 19.0+
350
- - React-DOM 18.0+ or 19.0+
155
+ - React 18+ or 19+
351
156
  - Tailwind CSS 4.1+
352
157
  - Node.js 20.16+
353
158
 
354
- </details>
355
-
356
- <details>
357
- <summary><strong>Where are breaking changes documented?</strong></summary>
358
-
359
- - **[BREAKING_CHANGES.md](docs/BREAKING_CHANGES.md)** โ€” v1.0 and v2.0 changes
360
- - **[CHANGELOG.md](CHANGELOG.md)** โ€” Complete version history
361
- - **[Migration Guides](docs/migration/)** โ€” Step-by-step migration
362
-
363
- </details>
364
-
365
- <details>
366
- <summary><strong>How do I use Compound Components (Modal, Tabs, Stepper)?</strong></summary>
367
-
368
- ```tsx
369
- <ModalGlass.Root open={open} onOpenChange={setOpen}>
370
- <ModalGlass.Overlay />
371
- <ModalGlass.Content>
372
- <ModalGlass.Header>
373
- <ModalGlass.Title>Title</ModalGlass.Title>
374
- <ModalGlass.Close />
375
- </ModalGlass.Header>
376
- <ModalGlass.Body>Content</ModalGlass.Body>
377
- </ModalGlass.Content>
378
- </ModalGlass.Root>
379
- ```
380
-
381
- **[Advanced Patterns โ†’](docs/ADVANCED_PATTERNS.md)**
382
-
383
- </details>
384
-
385
- ---
386
-
387
- ## Documentation
388
-
389
- | Resource | Description |
390
- | ------------------------------------------------------------------ | --------------------------- |
391
- | **[Storybook](https://yhooi2.github.io/shadcn-glass-ui-library/)** | Interactive component demos |
392
- | **[Getting Started](docs/GETTING_STARTED.md)** | Setup tutorial |
393
- | **[Component Catalog](docs/COMPONENTS_CATALOG.md)** | All 57 components |
394
- | **[AI Usage Guide](docs/AI_USAGE.md)** | For Claude, Copilot, GPT |
395
- | **[Theme Guide](docs/THEME_CREATION_GUIDE.md)** | Create custom themes |
396
- | **[Token Architecture](docs/TOKEN_ARCHITECTURE.md)** | 3-layer CSS token system |
397
- | **[Advanced Patterns](docs/ADVANCED_PATTERNS.md)** | asChild, Compound APIs |
398
- | **[Breaking Changes](docs/BREAKING_CHANGES.md)** | Migration guides |
399
-
400
159
  ---
401
160
 
402
161
  ## Contributing
403
162
 
404
- We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md).
163
+ Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
405
164
 
406
165
  ## License
407
166
 
408
- MIT โ€” See [LICENSE](LICENSE)
409
-
410
- ## Credits
411
-
412
- Built with [shadcn/ui](https://ui.shadcn.com/), [Radix UI](https://www.radix-ui.com/),
413
- [Tailwind CSS](https://tailwindcss.com/), [Vite](https://vitejs.dev/)
167
+ MIT โ€” [LICENSE](LICENSE)
414
168
 
415
169
  ---
416
170
 
417
171
  <div align="center">
418
-
419
- **[Star on GitHub](https://github.com/Yhooi2/shadcn-glass-ui-library)** if you find this useful!
420
-
421
- [![Star History Chart](https://api.star-history.com/svg?repos=Yhooi2/shadcn-glass-ui-library&type=Date)](https://star-history.com/#Yhooi2/shadcn-glass-ui-library)
422
-
172
+ <strong>Built with</strong>
173
+ <a href="https://ui.shadcn.com/">shadcn/ui</a> ยท
174
+ <a href="https://www.radix-ui.com/">Radix UI</a> ยท
175
+ <a href="https://tailwindcss.com/">Tailwind CSS</a>
176
+ <br /><br />
177
+ <a href="https://github.com/Yhooi2/shadcn-glass-ui-library">Star on GitHub</a> if you find this useful!
423
178
  </div>
@@ -1,8 +1,11 @@
1
1
  # Breaking Changes
2
2
 
3
- This document lists breaking changes in shadcn-glass-ui v2.0.0.
3
+ This document lists breaking changes in shadcn-glass-ui v2.0.0 and later.
4
4
 
5
- **Current Version:** 2.0.0 (2025-12-14)
5
+ **Current Version:** 2.1.0 (2025-12-14)
6
+
7
+ > **Note:** As of v2.1.0, all v2.0.0 migrations are complete across the entire codebase. All
8
+ > components, examples, and documentation now use the new API.
6
9
 
7
10
  ---
8
11
 
@@ -364,7 +364,7 @@ export function ThemeSwitcher() {
364
364
  return (
365
365
  <div className="flex gap-2">
366
366
  <ButtonGlass
367
- variant={theme === 'glass' ? 'primary' : 'ghost'}
367
+ variant={theme === 'glass' ? 'default' : 'ghost'}
368
368
  size="sm"
369
369
  onClick={() => setTheme('glass')}
370
370
  >
@@ -372,7 +372,7 @@ export function ThemeSwitcher() {
372
372
  </ButtonGlass>
373
373
 
374
374
  <ButtonGlass
375
- variant={theme === 'light' ? 'primary' : 'ghost'}
375
+ variant={theme === 'light' ? 'default' : 'ghost'}
376
376
  size="sm"
377
377
  onClick={() => setTheme('light')}
378
378
  >
@@ -380,7 +380,7 @@ export function ThemeSwitcher() {
380
380
  </ButtonGlass>
381
381
 
382
382
  <ButtonGlass
383
- variant={theme === 'aurora' ? 'primary' : 'ghost'}
383
+ variant={theme === 'aurora' ? 'default' : 'ghost'}
384
384
  size="sm"
385
385
  onClick={() => setTheme('aurora')}
386
386
  >
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shadcn-glass-ui",
3
3
  "private": false,
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "description": "Glassmorphism UI library for React - AI-friendly with 57 components, strict TypeScript, and comprehensive docs",
6
6
  "author": "Yhooi2",
7
7
  "license": "MIT",