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 +127 -0
- package/README.md +80 -325
- package/docs/BREAKING_CHANGES.md +5 -2
- package/docs/GETTING_STARTED.md +3 -3
- package/package.json +1 -1
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
|
[](https://www.npmjs.com/package/shadcn-glass-ui)
|
|
4
4
|
[](https://www.npmjs.com/package/shadcn-glass-ui)
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
|
+
[](https://bundlephobia.com/package/shadcn-glass-ui)
|
|
6
7
|
[](docs/AI_USAGE.md)
|
|
7
|
-
[](https://bundlephobia.com/package/shadcn-glass-ui)
|
|
8
8
|
|
|
9
|
-
**Glassmorphism
|
|
10
|
-
|
|
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
|
|
18
|
-
<
|
|
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,
|
|
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
|
-
<
|
|
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
|
-
**
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
##
|
|
71
|
+
## Why shadcn-glass-ui?
|
|
173
72
|
|
|
174
|
-
|
|
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
|
-
|
|
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 {
|
|
84
|
+
import { Button } from '@/components/ui/button'; // shadcn/ui
|
|
85
|
+
import { ButtonGlass } from '@/components/glass/ui/button-glass'; // Glass variant
|
|
182
86
|
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
**
|
|
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
|
-
|
|
268
|
-
|
|
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
|
-
**
|
|
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-
|
|
125
|
+
## AI-Optimized
|
|
292
126
|
|
|
293
|
-
Built for AI coding assistants
|
|
127
|
+
Built for AI coding assistants:
|
|
294
128
|
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
| **
|
|
298
|
-
| **
|
|
299
|
-
| **
|
|
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
|
-
**
|
|
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
|
-
##
|
|
139
|
+
## Documentation
|
|
318
140
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
##
|
|
328
|
-
|
|
329
|
-
<details>
|
|
330
|
-
<summary><strong>How do I migrate from v1.x to v2.0?</strong></summary>
|
|
153
|
+
## Requirements
|
|
331
154
|
|
|
332
|
-
|
|
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
|
-
|
|
163
|
+
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
405
164
|
|
|
406
165
|
## License
|
|
407
166
|
|
|
408
|
-
MIT โ
|
|
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
|
-
|
|
420
|
-
|
|
421
|
-
|
|
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>
|
package/docs/BREAKING_CHANGES.md
CHANGED
|
@@ -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.
|
|
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
|
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -364,7 +364,7 @@ export function ThemeSwitcher() {
|
|
|
364
364
|
return (
|
|
365
365
|
<div className="flex gap-2">
|
|
366
366
|
<ButtonGlass
|
|
367
|
-
variant={theme === 'glass' ? '
|
|
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' ? '
|
|
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' ? '
|
|
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.
|
|
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",
|