shadcn-glass-ui 1.0.10 → 2.0.0
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 +259 -16
- package/README.md +248 -28
- package/context7.json +58 -0
- package/dist/cli/index.cjs +470 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.ts +18 -0
- package/dist/cli/index.js +469 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/components.cjs +4 -4
- package/dist/components.d.ts +153 -22
- package/dist/components.js +2 -2
- package/dist/hooks.cjs +2 -2
- package/dist/index.cjs +872 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -2390
- package/dist/index.js +844 -3
- package/dist/index.js.map +1 -1
- package/dist/r/ai-card-glass.json +5 -12
- package/dist/r/avatar-glass.json +5 -15
- package/dist/r/circular-metric-glass.json +5 -11
- package/dist/r/circular-progress-glass.json +5 -12
- package/dist/r/combobox-glass.json +5 -13
- package/dist/r/flag-alert-glass.json +5 -11
- package/dist/r/flags-section-glass.json +5 -12
- package/dist/r/insight-card-glass.json +17 -0
- package/dist/r/interactive-card.json +5 -12
- package/dist/r/language-bar-glass.json +5 -11
- package/dist/r/metric-card-glass.json +6 -13
- package/dist/r/metrics-grid-glass.json +5 -11
- package/dist/r/modal-glass.json +5 -15
- package/dist/r/popover-glass.json +1 -1
- package/dist/r/progress-glass.json +5 -13
- package/dist/r/registry.json +20 -2
- package/dist/r/segmented-control-glass.json +5 -11
- package/dist/r/sparkline-glass.json +17 -0
- package/dist/r/stepper-glass.json +33 -0
- package/dist/r/tabs-glass.json +4 -9
- package/dist/r/trust-score-card-glass.json +5 -12
- package/dist/r/year-card-glass.json +5 -13
- package/dist/shadcn-glass-ui.css +1 -1
- package/dist/{theme-context-XtasSxRT.cjs → theme-context-CVW50BKW.cjs} +2 -2
- package/dist/{theme-context-XtasSxRT.cjs.map → theme-context-CVW50BKW.cjs.map} +1 -1
- package/dist/themes.cjs +1 -1
- package/dist/trust-score-card-glass-BcZbul0P.js +26895 -0
- package/dist/trust-score-card-glass-BcZbul0P.js.map +1 -0
- package/dist/trust-score-card-glass-r3qM09Jp.cjs +27689 -0
- package/dist/trust-score-card-glass-r3qM09Jp.cjs.map +1 -0
- package/dist/{use-focus-BbpE2qGq.cjs → use-focus-ZE8ozmZE.cjs} +2 -2
- package/dist/{use-focus-BbpE2qGq.cjs.map → use-focus-ZE8ozmZE.cjs.map} +1 -1
- package/dist/{use-wallpaper-tint-CIqtoETa.cjs → use-wallpaper-tint-BuS80tbN.cjs} +2 -2
- package/dist/{use-wallpaper-tint-CIqtoETa.cjs.map → use-wallpaper-tint-BuS80tbN.cjs.map} +1 -1
- package/dist/{utils-CGCOTvxT.js → utils-CcyeqpKQ.js} +1 -1
- package/dist/{utils-CGCOTvxT.js.map → utils-CcyeqpKQ.js.map} +1 -1
- package/dist/{utils-CriE74ig.cjs → utils-DLXayspX.cjs} +2 -2
- package/dist/{utils-CriE74ig.cjs.map → utils-DLXayspX.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/docs/AI_IMPROVEMENTS_COMPLETE.md +574 -0
- package/docs/AI_USAGE.md +1328 -0
- package/docs/API_PATTERNS_COMPARISON.md +418 -0
- package/docs/BEST_PRACTICES.md +800 -0
- package/docs/COMPLIANCE_CHECKLIST.md +307 -0
- package/docs/COMPLIANCE_TESTING.md +436 -0
- package/docs/COMPONENTS_CATALOG.md +1076 -0
- package/docs/CSS_VARIABLES_AUDIT.md +306 -0
- package/docs/CSS_VARIABLES_REFACTORING_PLAN.md +330 -0
- package/docs/EXPORTS_MAP.json +875 -0
- package/docs/EXPORTS_STRUCTURE.md +729 -0
- package/docs/GETTING_STARTED.md +655 -0
- package/docs/METRIC_CARD_API_REDESIGN.md +354 -0
- package/docs/PRIMITIVE_MAPPING.md +404 -0
- package/docs/PUBLISHING.md +593 -0
- package/docs/REGISTRY_SUMMARY.md +96 -0
- package/docs/REGISTRY_USAGE.md +339 -0
- package/docs/SECURITY.md +117 -0
- package/docs/THEME_CREATION_GUIDE.md +455 -0
- package/docs/TOKEN_ARCHITECTURE.md +365 -0
- package/docs/announcements/v1.0.5-devto.md +363 -0
- package/docs/announcements/v1.0.5-reddit.md +115 -0
- package/docs/announcements/v1.0.5-twitter.md +70 -0
- package/docs/api/README.md +725 -0
- package/docs/api/functions/ThemeProvider.md +21 -0
- package/docs/api/functions/cn.md +27 -0
- package/docs/api/functions/getNextTheme.md +21 -0
- package/docs/api/functions/getThemeConfig.md +21 -0
- package/docs/api/functions/useFocus.md +53 -0
- package/docs/api/functions/useHover.md +47 -0
- package/docs/api/functions/useResponsive.md +31 -0
- package/docs/api/functions/useTheme.md +15 -0
- package/docs/api/functions/useWallpaperTint.md +36 -0
- package/docs/api/globals.md +139 -0
- package/docs/api/interfaces/AlertGlassProps.md +131 -0
- package/docs/api/interfaces/AvatarGlassProps.md +114 -0
- package/docs/api/interfaces/BadgeGlassProps.md +118 -0
- package/docs/api/interfaces/ButtonGlassProps.md +179 -0
- package/docs/api/interfaces/CheckboxGlassProps.md +125 -0
- package/docs/api/interfaces/DropdownGlassProps.md +123 -0
- package/docs/api/interfaces/DropdownItem.md +53 -0
- package/docs/api/interfaces/GlassCardProps.md +151 -0
- package/docs/api/interfaces/InputGlassProps.md +169 -0
- package/docs/api/interfaces/NotificationGlassProps.md +67 -0
- package/docs/api/interfaces/ProgressGlassProps.md +49 -0
- package/docs/api/interfaces/SkeletonGlassProps.md +41 -0
- package/docs/api/interfaces/SliderGlassProps.md +107 -0
- package/docs/api/interfaces/TabItem.md +25 -0
- package/docs/api/interfaces/ThemeConfig.md +25 -0
- package/docs/api/interfaces/ThemeContextValue.md +47 -0
- package/docs/api/interfaces/ToggleGlassProps.md +59 -0
- package/docs/api/interfaces/TooltipGlassProps.md +119 -0
- package/docs/api/type-aliases/AlertType.md +11 -0
- package/docs/api/type-aliases/AlertVariant.md +11 -0
- package/docs/api/type-aliases/AvatarSize.md +11 -0
- package/docs/api/type-aliases/AvatarStatus.md +13 -0
- package/docs/api/type-aliases/BadgeSize.md +11 -0
- package/docs/api/type-aliases/BadgeVariant.md +11 -0
- package/docs/api/type-aliases/ButtonGlassSize.md +11 -0
- package/docs/api/type-aliases/ButtonGlassVariant.md +11 -0
- package/docs/api/type-aliases/DropdownAlign.md +11 -0
- package/docs/api/type-aliases/GlowType.md +11 -0
- package/docs/api/type-aliases/InputGlassSize.md +11 -0
- package/docs/api/type-aliases/IntensityType.md +11 -0
- package/docs/api/type-aliases/ModalSize.md +11 -0
- package/docs/api/type-aliases/NotificationType.md +11 -0
- package/docs/api/type-aliases/PaddingType.md +11 -0
- package/docs/api/type-aliases/ProgressGradient.md +11 -0
- package/docs/api/type-aliases/ProgressSize.md +11 -0
- package/docs/api/type-aliases/SkeletonVariant.md +11 -0
- package/docs/api/type-aliases/Theme.md +11 -0
- package/docs/api/type-aliases/ToggleGlassSize.md +11 -0
- package/docs/api/type-aliases/TooltipPosition.md +11 -0
- package/docs/api/variables/AICardGlass.md +11 -0
- package/docs/api/variables/AlertGlass.md +11 -0
- package/docs/api/variables/AvatarGlass.md +11 -0
- package/docs/api/variables/BadgeGlass.md +11 -0
- package/docs/api/variables/BaseProgressGlass.md +11 -0
- package/docs/api/variables/ButtonGlass.md +11 -0
- package/docs/api/variables/CareerStatsGlass.md +11 -0
- package/docs/api/variables/CareerStatsHeaderGlass.md +11 -0
- package/docs/api/variables/CheckboxGlass.md +11 -0
- package/docs/api/variables/CircularMetricGlass.md +22 -0
- package/docs/api/variables/CircularProgressGlass.md +11 -0
- package/docs/api/variables/ComboBoxGlass.md +27 -0
- package/docs/api/variables/ContributionMetricsGlass.md +11 -0
- package/docs/api/variables/DropdownGlass.md +11 -0
- package/docs/api/variables/ExpandableHeaderGlass.md +11 -0
- package/docs/api/variables/FlagAlertGlass.md +11 -0
- package/docs/api/variables/FlagsSectionGlass.md +11 -0
- package/docs/api/variables/FormFieldWrapper.md +44 -0
- package/docs/api/variables/GlassCard.md +11 -0
- package/docs/api/variables/HeaderBrandingGlass.md +11 -0
- package/docs/api/variables/HeaderNavGlass.md +11 -0
- package/docs/api/variables/IconButtonGlass.md +11 -0
- package/docs/api/variables/InputGlass.md +11 -0
- package/docs/api/variables/InteractiveCard.md +45 -0
- package/docs/api/variables/LanguageBarGlass.md +11 -0
- package/docs/api/variables/MetricCardGlass.md +11 -0
- package/docs/api/variables/MetricsGridGlass.md +11 -0
- package/docs/api/variables/ModalGlass.md +72 -0
- package/docs/api/variables/NotificationGlass.md +11 -0
- package/docs/api/variables/PopoverGlass.md +11 -0
- package/docs/api/variables/ProfileAvatarGlass.md +11 -0
- package/docs/api/variables/ProfileHeaderGlass.md +11 -0
- package/docs/api/variables/ProgressGlass.md +11 -0
- package/docs/api/variables/ProjectsListGlass.md +11 -0
- package/docs/api/variables/RainbowProgressGlass.md +11 -0
- package/docs/api/variables/RepositoryCardGlass.md +11 -0
- package/docs/api/variables/RepositoryHeaderGlass.md +11 -0
- package/docs/api/variables/RepositoryMetadataGlass.md +11 -0
- package/docs/api/variables/SearchBoxGlass.md +11 -0
- package/docs/api/variables/SegmentedControlGlass.md +11 -0
- package/docs/api/variables/SkeletonGlass.md +11 -0
- package/docs/api/variables/SliderGlass.md +11 -0
- package/docs/api/variables/SortDropdownGlass.md +11 -0
- package/docs/api/variables/StatItemGlass.md +11 -0
- package/docs/api/variables/StatusIndicatorGlass.md +11 -0
- package/docs/api/variables/THEMES.md +11 -0
- package/docs/api/variables/THEME_CONFIG.md +11 -0
- package/docs/api/variables/TabsGlass.md +52 -0
- package/docs/api/variables/ThemeToggleGlass.md +11 -0
- package/docs/api/variables/ToggleGlass.md +11 -0
- package/docs/api/variables/TooltipGlass.md +11 -0
- package/docs/api/variables/TouchTarget.md +35 -0
- package/docs/api/variables/TrustScoreCardGlass.md +11 -0
- package/docs/api/variables/TrustScoreDisplayGlass.md +11 -0
- package/docs/api/variables/UserInfoGlass.md +11 -0
- package/docs/api/variables/UserStatsLineGlass.md +11 -0
- package/docs/api/variables/YearCardGlass.md +11 -0
- package/docs/api/variables/alertVariants.md +21 -0
- package/docs/api/variables/avatarSizes.md +21 -0
- package/docs/api/variables/badgeVariants.md +21 -0
- package/docs/api/variables/buttonGlassVariants.md +21 -0
- package/docs/api/variables/cardIntensity.md +21 -0
- package/docs/api/variables/dropdownAlign.md +21 -0
- package/docs/api/variables/inputVariants.md +21 -0
- package/docs/api/variables/modalSizes.md +21 -0
- package/docs/api/variables/notificationVariants.md +21 -0
- package/docs/api/variables/progressSizes.md +21 -0
- package/docs/api/variables/shadcnAlertVariants.md +21 -0
- package/docs/api/variables/shadcnBadgeVariants.md +21 -0
- package/docs/api/variables/shadcnButtonVariants.md +21 -0
- package/docs/api/variables/skeletonVariants.md +21 -0
- package/docs/api/variables/statusSizes.md +21 -0
- package/docs/api/variables/toggleSizes.md +21 -0
- package/docs/api/variables/tooltipPositions.md +21 -0
- package/docs/design-system/UI_DESIGN.md +628 -0
- package/docs/migration/CSS_VARIABLES_MIGRATION_2.0.md +325 -0
- package/docs/migration/modal-glass-compound-api.md +458 -0
- package/docs/migration/select-to-combobox.md +386 -0
- package/docs/migration/tabs-glass-compound-api.md +579 -0
- package/docs/technical/DEPENDENCIES.md +291 -0
- package/docs/visual-testing-guide.md +324 -0
- package/package.json +16 -3
- package/dist/trust-score-card-glass-CNcQveNY.cjs +0 -8231
- package/dist/trust-score-card-glass-CNcQveNY.cjs.map +0 -1
- package/dist/trust-score-card-glass-CowcDyxH.js +0 -7795
- package/dist/trust-score-card-glass-CowcDyxH.js.map +0 -1
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Introducing shadcn-glass-ui v1.0.5 - 72 Glass Variants for Modern React UIs
|
|
3
|
+
published: true
|
|
4
|
+
description: A comprehensive glassmorphism UI component library with 72 glass variants, dual registry publishing, and full shadcn/ui compatibility
|
|
5
|
+
tags: react, typescript, tailwindcss, opensource
|
|
6
|
+
cover_image: [Add screenshot of GlassVariantsDemo]
|
|
7
|
+
canonical_url: https://github.com/Yhooi2/shadcn-glass-ui-library
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Introducing shadcn-glass-ui v1.0.5 🎨
|
|
11
|
+
|
|
12
|
+
I'm excited to announce **v1.0.5** of shadcn-glass-ui, a modern glassmorphism UI component library built on top of shadcn/ui with full compatibility!
|
|
13
|
+
|
|
14
|
+
## TL;DR
|
|
15
|
+
|
|
16
|
+
- 🎨 **72 Glass Variants** (4 base × 6 tints × 3 intensities)
|
|
17
|
+
- 📦 **Dual Registry** (npm + GitHub Packages)
|
|
18
|
+
- 🧪 **27 New Visual Tests** across 3 themes
|
|
19
|
+
- ✨ **48 Components** with WCAG 2.1 AA compliance
|
|
20
|
+
- ⚡ **Modern Stack** (React 19, Tailwind v4, TypeScript 5.9)
|
|
21
|
+
|
|
22
|
+
[Try it live](https://yhooi2.github.io/shadcn-glass-ui-library/) | [GitHub](https://github.com/Yhooi2/shadcn-glass-ui-library) | [npm](https://www.npmjs.com/package/@yhooi2/shadcn-glass-ui)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## What's New in v1.0.5?
|
|
27
|
+
|
|
28
|
+
### 1. Comprehensive Glass Variants System
|
|
29
|
+
|
|
30
|
+
We've introduced a powerful glass effect system with **72 total combinations**:
|
|
31
|
+
|
|
32
|
+
#### Base Variants (4)
|
|
33
|
+
- `crystal` - Ultra-clear glass with minimal blur
|
|
34
|
+
- `frosted` - Classic frosted glass effect
|
|
35
|
+
- `fluted` - Textured glass with vertical ridges
|
|
36
|
+
- `glass` - Standard glassmorphism
|
|
37
|
+
|
|
38
|
+
#### Color Tints (6)
|
|
39
|
+
- `purple` - Violet tint for luxury feel
|
|
40
|
+
- `cyan` - Blue-green tint for tech vibes
|
|
41
|
+
- `amber` - Warm golden tint
|
|
42
|
+
- `emerald` - Green tint for natural look
|
|
43
|
+
- `rose` - Pink tint for soft elegance
|
|
44
|
+
- `neutral` (default) - No color tint
|
|
45
|
+
|
|
46
|
+
#### Intensity Modifiers (3)
|
|
47
|
+
- `subtle` - Lighter glass effect
|
|
48
|
+
- `medium` (default) - Balanced effect
|
|
49
|
+
- `strong` - More pronounced glass
|
|
50
|
+
|
|
51
|
+
### Usage Example
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import { GlassCard } from '@yhooi2/shadcn-glass-ui';
|
|
55
|
+
import '@yhooi2/shadcn-glass-ui/dist/styles.css';
|
|
56
|
+
|
|
57
|
+
function App() {
|
|
58
|
+
return (
|
|
59
|
+
<div className="p-8 grid grid-cols-3 gap-4">
|
|
60
|
+
{/* Crystal clear with purple tint */}
|
|
61
|
+
<GlassCard variant="crystal" tint="purple">
|
|
62
|
+
<h3>Crystal Purple</h3>
|
|
63
|
+
<p>Ultra-clear with violet tint</p>
|
|
64
|
+
</GlassCard>
|
|
65
|
+
|
|
66
|
+
{/* Frosted glass with cyan tint and subtle intensity */}
|
|
67
|
+
<GlassCard variant="frosted" tint="cyan" intensity="subtle">
|
|
68
|
+
<h3>Frosted Cyan</h3>
|
|
69
|
+
<p>Soft frosted effect</p>
|
|
70
|
+
</GlassCard>
|
|
71
|
+
|
|
72
|
+
{/* Fluted glass with amber tint and strong intensity */}
|
|
73
|
+
<GlassCard variant="fluted" tint="amber" intensity="strong">
|
|
74
|
+
<h3>Fluted Amber</h3>
|
|
75
|
+
<p>Textured with warm glow</p>
|
|
76
|
+
</GlassCard>
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 2. Dual Registry Publishing
|
|
83
|
+
|
|
84
|
+
shadcn-glass-ui is now available on both:
|
|
85
|
+
|
|
86
|
+
**npm Registry (Recommended)**
|
|
87
|
+
```bash
|
|
88
|
+
npm install @yhooi2/shadcn-glass-ui
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**GitHub Packages** (for enterprise environments)
|
|
92
|
+
```bash
|
|
93
|
+
# Add .npmrc
|
|
94
|
+
echo "@yhooi2:registry=https://npm.pkg.github.com" >> .npmrc
|
|
95
|
+
|
|
96
|
+
# Authenticate
|
|
97
|
+
npm login --scope=@yhooi2 --registry=https://npm.pkg.github.com
|
|
98
|
+
|
|
99
|
+
# Install
|
|
100
|
+
npm install @yhooi2/shadcn-glass-ui
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
This dual-registry approach provides:
|
|
104
|
+
- **Public access** via npm for easy installation
|
|
105
|
+
- **Enterprise security** via GitHub Packages with authentication
|
|
106
|
+
- **Automated publishing** on each release via GitHub Actions
|
|
107
|
+
|
|
108
|
+
### 3. Interactive GlassVariantsDemo
|
|
109
|
+
|
|
110
|
+
Try all 72 glass variant combinations in the new interactive demo:
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
import { GlassVariantsDemo } from '@yhooi2/shadcn-glass-ui';
|
|
114
|
+
|
|
115
|
+
<GlassVariantsDemo />
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Features:
|
|
119
|
+
- Real-time preview of all variants
|
|
120
|
+
- Theme switcher (Glass/Light/Aurora)
|
|
121
|
+
- Copy code snippets
|
|
122
|
+
- Test on different backgrounds
|
|
123
|
+
|
|
124
|
+
[Live Demo →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/story/components-glassvariants)
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Library Overview
|
|
129
|
+
|
|
130
|
+
### 48 Components Organized by Category
|
|
131
|
+
|
|
132
|
+
**Core UI (16)**
|
|
133
|
+
- ButtonGlass, InputGlass, GlassCard, ProgressGlass, BadgeGlass, AlertGlass
|
|
134
|
+
- ToggleGlass, CheckboxGlass, TabsGlass, TooltipGlass, SliderGlass
|
|
135
|
+
- SkeletonGlass, ModalGlass, DropdownGlass, AvatarGlass, NotificationGlass
|
|
136
|
+
|
|
137
|
+
**Atomic (4)**
|
|
138
|
+
- StatusIndicatorGlass - Status dots with glow
|
|
139
|
+
- SegmentedControlGlass - Button groups
|
|
140
|
+
- RainbowProgressGlass - Gradient progress
|
|
141
|
+
- LanguageBarGlass - Language proficiency
|
|
142
|
+
|
|
143
|
+
**Composites (5)**
|
|
144
|
+
- MetricCardGlass, ProfileAvatarGlass, FlagAlertGlass, YearCardGlass, AICardGlass
|
|
145
|
+
|
|
146
|
+
**Sections (6)**
|
|
147
|
+
- HeaderNavGlass, TrustScoreCardGlass, ProfileHeaderGlass
|
|
148
|
+
- CareerStatsGlass, FlagsSectionGlass, RepoCardGlass
|
|
149
|
+
|
|
150
|
+
**Blocks (6)**
|
|
151
|
+
- ButtonsBlock, FormElementsBlock, ProgressBlock
|
|
152
|
+
- AvatarGalleryBlock, BadgesBlock, NotificationsBlock
|
|
153
|
+
|
|
154
|
+
**New in v1.0+ (11)**
|
|
155
|
+
- ComboBoxGlass, PopoverGlass, SearchBoxGlass, SortDropdownGlass
|
|
156
|
+
- And 7 more specialized components
|
|
157
|
+
|
|
158
|
+
### 3 Built-in Themes
|
|
159
|
+
|
|
160
|
+
**Glass Theme (Dark Glassmorphism)**
|
|
161
|
+
```tsx
|
|
162
|
+
<ThemeProvider defaultTheme="glass">
|
|
163
|
+
<App />
|
|
164
|
+
</ThemeProvider>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**Light Theme (Clean Minimal)**
|
|
168
|
+
```tsx
|
|
169
|
+
<ThemeProvider defaultTheme="light">
|
|
170
|
+
<App />
|
|
171
|
+
</ThemeProvider>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Aurora Theme (Gradient Glow)**
|
|
175
|
+
```tsx
|
|
176
|
+
<ThemeProvider defaultTheme="aurora">
|
|
177
|
+
<App />
|
|
178
|
+
</ThemeProvider>
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Advanced Patterns
|
|
182
|
+
|
|
183
|
+
**asChild Polymorphic Rendering** (using Radix UI Slot)
|
|
184
|
+
```tsx
|
|
185
|
+
<ButtonGlass asChild>
|
|
186
|
+
<Link href="/">Home</Link>
|
|
187
|
+
</ButtonGlass>
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**Compound Components** (ModalGlass, TabsGlass)
|
|
191
|
+
```tsx
|
|
192
|
+
<ModalGlass.Root open={open} onOpenChange={setOpen}>
|
|
193
|
+
<ModalGlass.Overlay />
|
|
194
|
+
<ModalGlass.Content>
|
|
195
|
+
<ModalGlass.Header>
|
|
196
|
+
<ModalGlass.Title>Title</ModalGlass.Title>
|
|
197
|
+
<ModalGlass.Description>Description</ModalGlass.Description>
|
|
198
|
+
<ModalGlass.Close />
|
|
199
|
+
</ModalGlass.Header>
|
|
200
|
+
<ModalGlass.Body>
|
|
201
|
+
<p>Modal content</p>
|
|
202
|
+
</ModalGlass.Body>
|
|
203
|
+
<ModalGlass.Footer>
|
|
204
|
+
<ButtonGlass>Action</ButtonGlass>
|
|
205
|
+
</ModalGlass.Footer>
|
|
206
|
+
</ModalGlass.Content>
|
|
207
|
+
</ModalGlass.Root>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Modern Tech Stack
|
|
213
|
+
|
|
214
|
+
- **React 19.2** - Latest stable release with Server Components
|
|
215
|
+
- **TypeScript 5.9** - Strict type checking
|
|
216
|
+
- **Tailwind CSS 4.1** - 5x faster builds, CSS variables by default
|
|
217
|
+
- **Vite 7** (rolldown-vite) - 3-16x faster builds with Rust
|
|
218
|
+
- **Storybook 10.1** - ESM-only, 29% smaller install
|
|
219
|
+
- **Vitest 4.0** - Browser mode with visual regression
|
|
220
|
+
|
|
221
|
+
See [DEPENDENCIES.md](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/DEPENDENCIES.md) for details.
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Accessibility & Quality
|
|
226
|
+
|
|
227
|
+
✅ **WCAG 2.1 AA Compliant** - Full accessibility with automated testing
|
|
228
|
+
✅ **Touch-Optimized** - 44×44px minimum touch targets (Apple HIG)
|
|
229
|
+
✅ **609 Visual Tests** - 100% pass rate in CI (Linux ubuntu-latest)
|
|
230
|
+
✅ **TypeScript Strict** - No `any` types
|
|
231
|
+
✅ **ESLint + Prettier** - Consistent code style
|
|
232
|
+
✅ **90% Test Coverage** - Comprehensive unit + integration tests
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Installation & Usage
|
|
237
|
+
|
|
238
|
+
### 1. Install Package
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
npm install @yhooi2/shadcn-glass-ui
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### 2. Import Styles
|
|
245
|
+
|
|
246
|
+
```tsx
|
|
247
|
+
import '@yhooi2/shadcn-glass-ui/dist/styles.css';
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### 3. Wrap with Theme Provider
|
|
251
|
+
|
|
252
|
+
```tsx
|
|
253
|
+
import { ThemeProvider } from '@yhooi2/shadcn-glass-ui';
|
|
254
|
+
|
|
255
|
+
function App() {
|
|
256
|
+
return (
|
|
257
|
+
<ThemeProvider defaultTheme="glass">
|
|
258
|
+
<YourApp />
|
|
259
|
+
</ThemeProvider>
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### 4. Use Components
|
|
265
|
+
|
|
266
|
+
```tsx
|
|
267
|
+
import { ButtonGlass, InputGlass, GlassCard } from '@yhooi2/shadcn-glass-ui';
|
|
268
|
+
|
|
269
|
+
function Dashboard() {
|
|
270
|
+
return (
|
|
271
|
+
<GlassCard variant="frosted" tint="purple">
|
|
272
|
+
<h1>Dashboard</h1>
|
|
273
|
+
<InputGlass placeholder="Search..." />
|
|
274
|
+
<ButtonGlass variant="primary">Submit</ButtonGlass>
|
|
275
|
+
</GlassCard>
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Development Highlights
|
|
283
|
+
|
|
284
|
+
### Automated CI/CD
|
|
285
|
+
- **Dual-registry publishing** on GitHub Release
|
|
286
|
+
- **Version verification** before publish
|
|
287
|
+
- **Visual test generation** on Linux CI
|
|
288
|
+
- **Registry validation** for both npm + GitHub Packages
|
|
289
|
+
|
|
290
|
+
### Git Hooks
|
|
291
|
+
- Pre-commit hook prevents committing macOS screenshots
|
|
292
|
+
- Ensures visual tests are platform-consistent (Linux only)
|
|
293
|
+
- Automated via `./scripts/setup-git-hooks.sh`
|
|
294
|
+
|
|
295
|
+
### Performance
|
|
296
|
+
- **Bundle Size**: ~541 KB (minified), ~62 KB (gzipped)
|
|
297
|
+
- **Build Speed**: 3-16x faster with Rolldown vs Rollup
|
|
298
|
+
- **CSS Performance**: 5x faster full builds, 100x faster incremental
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Links & Resources
|
|
303
|
+
|
|
304
|
+
- 📚 **Live Storybook**: https://yhooi2.github.io/shadcn-glass-ui-library/
|
|
305
|
+
- 📦 **npm Package**: https://www.npmjs.com/package/@yhooi2/shadcn-glass-ui
|
|
306
|
+
- 🐙 **GitHub**: https://github.com/Yhooi2/shadcn-glass-ui-library
|
|
307
|
+
- 📖 **Documentation**: [Getting Started Guide](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/docs/GETTING_STARTED.md)
|
|
308
|
+
- 🔧 **Contributing**: [CONTRIBUTING.md](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/CONTRIBUTING.md)
|
|
309
|
+
- 📋 **Changelog**: [CHANGELOG.md](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/CHANGELOG.md)
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## What's Next?
|
|
314
|
+
|
|
315
|
+
We're constantly improving shadcn-glass-ui. Upcoming features:
|
|
316
|
+
- Additional glass variants (iridescent, holographic)
|
|
317
|
+
- More composite components (Dashboard blocks, Analytics cards)
|
|
318
|
+
- Enhanced Storybook integration with Chromatic
|
|
319
|
+
- Performance optimizations for bundle size
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
## Contributing
|
|
324
|
+
|
|
325
|
+
We welcome contributions! Here's how:
|
|
326
|
+
|
|
327
|
+
1. Fork the repo: https://github.com/Yhooi2/shadcn-glass-ui-library/fork
|
|
328
|
+
2. Create a feature branch: `git checkout -b feature/amazing-feature`
|
|
329
|
+
3. Run tests: `npm run test:compliance:run`
|
|
330
|
+
4. Commit with conventional commits: `feat(ui): add DatePickerGlass component`
|
|
331
|
+
5. Push and create a Pull Request
|
|
332
|
+
|
|
333
|
+
See [CONTRIBUTING.md](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/CONTRIBUTING.md) for details.
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## License
|
|
338
|
+
|
|
339
|
+
MIT License - free for personal and commercial use.
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Credits
|
|
344
|
+
|
|
345
|
+
Built with amazing open source projects:
|
|
346
|
+
- [shadcn/ui](https://ui.shadcn.com/) - Design system foundation
|
|
347
|
+
- [Radix UI](https://www.radix-ui.com/) - Unstyled, accessible components
|
|
348
|
+
- [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS
|
|
349
|
+
- [Vite](https://vitejs.dev/) - Next generation frontend tooling
|
|
350
|
+
- [Storybook](https://storybook.js.org/) - Component workshop
|
|
351
|
+
- [Vitest](https://vitest.dev/) - Blazing fast unit test framework
|
|
352
|
+
|
|
353
|
+
---
|
|
354
|
+
|
|
355
|
+
**⭐ Star the repo if you find it useful!**
|
|
356
|
+
https://github.com/Yhooi2/shadcn-glass-ui-library
|
|
357
|
+
|
|
358
|
+
**📢 Share your feedback!**
|
|
359
|
+
Open an issue or discussion on GitHub - we'd love to hear from you!
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
*Made with ❤️ and glassmorphism*
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Reddit Announcement - v1.0.5
|
|
2
|
+
|
|
3
|
+
## Post for r/reactjs
|
|
4
|
+
|
|
5
|
+
**Title:** [Release] shadcn-glass-ui v1.0.5 - Glassmorphism UI Library with 72 Variants
|
|
6
|
+
|
|
7
|
+
**Body:**
|
|
8
|
+
|
|
9
|
+
Hi r/reactjs! 👋
|
|
10
|
+
|
|
11
|
+
I'm excited to share **shadcn-glass-ui v1.0.5**, a modern glassmorphism UI component library built on top of shadcn/ui with full compatibility.
|
|
12
|
+
|
|
13
|
+
## 🎉 What's New in v1.0.5
|
|
14
|
+
|
|
15
|
+
### Glass Variants System
|
|
16
|
+
We've introduced a comprehensive glass effect system with **72 total combinations**:
|
|
17
|
+
- **4 base variants**: crystal, frosted, fluted, glass
|
|
18
|
+
- **6 color tints**: purple, cyan, amber, emerald, rose, neutral
|
|
19
|
+
- **3 intensity levels**: subtle, medium, strong
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { GlassCard } from '@yhooi2/shadcn-glass-ui';
|
|
23
|
+
|
|
24
|
+
<GlassCard variant="frosted" tint="purple" intensity="medium">
|
|
25
|
+
Mix and match to create the perfect glass effect!
|
|
26
|
+
</GlassCard>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Dual Registry Publishing
|
|
30
|
+
Now available on both:
|
|
31
|
+
- **npm Registry** (recommended): `npm install @yhooi2/shadcn-glass-ui`
|
|
32
|
+
- **GitHub Packages**: For enterprise environments with enhanced security
|
|
33
|
+
|
|
34
|
+
## 🌟 Library Highlights
|
|
35
|
+
|
|
36
|
+
- **48 Components**: Core UI (16) + Atomic (4) + Composites (5) + Sections (6) + Blocks (6) + New (11)
|
|
37
|
+
- **3 Built-in Themes**: Glass (dark glassmorphism), Light (clean minimal), Aurora (gradient glow)
|
|
38
|
+
- **Advanced Patterns**: asChild polymorphic rendering, Compound components (Modal, Tabs)
|
|
39
|
+
- **Accessibility**: WCAG 2.1 AA compliant with automated testing
|
|
40
|
+
- **Touch-Optimized**: 44×44px minimum touch targets (Apple HIG)
|
|
41
|
+
- **Modern Stack**: React 19, Tailwind v4, TypeScript 5.9, Vitest 4, Storybook 10, Vite 7
|
|
42
|
+
|
|
43
|
+
## 🚀 Quick Start
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm install @yhooi2/shadcn-glass-ui
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import { ButtonGlass, InputGlass, ThemeProvider } from '@yhooi2/shadcn-glass-ui';
|
|
51
|
+
import '@yhooi2/shadcn-glass-ui/dist/styles.css';
|
|
52
|
+
|
|
53
|
+
function App() {
|
|
54
|
+
return (
|
|
55
|
+
<ThemeProvider defaultTheme="glass">
|
|
56
|
+
<div className="p-8 space-y-4">
|
|
57
|
+
<ButtonGlass variant="primary" size="lg">
|
|
58
|
+
Click me
|
|
59
|
+
</ButtonGlass>
|
|
60
|
+
<InputGlass placeholder="Enter text..." />
|
|
61
|
+
</div>
|
|
62
|
+
</ThemeProvider>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 🔗 Links
|
|
68
|
+
|
|
69
|
+
- **Live Demo**: https://yhooi2.github.io/shadcn-glass-ui-library/
|
|
70
|
+
- **GitHub**: https://github.com/Yhooi2/shadcn-glass-ui-library
|
|
71
|
+
- **npm Package**: https://www.npmjs.com/package/@yhooi2/shadcn-glass-ui
|
|
72
|
+
- **Documentation**: Full API docs in Storybook
|
|
73
|
+
- **Changelog**: [CHANGELOG.md](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/CHANGELOG.md)
|
|
74
|
+
|
|
75
|
+
## 📊 Stats
|
|
76
|
+
|
|
77
|
+
- 609 visual regression tests (100% pass rate in CI)
|
|
78
|
+
- Bundle Size: ~62 KB (minified + gzipped)
|
|
79
|
+
- MIT License
|
|
80
|
+
- TypeScript strict mode
|
|
81
|
+
- ESM + CJS support
|
|
82
|
+
|
|
83
|
+
## 🎨 Interactive Demo
|
|
84
|
+
|
|
85
|
+
The new `GlassVariantsDemo` component showcases all 72 glass variant combinations in an interactive grid. You can:
|
|
86
|
+
- Switch between Glass/Light/Aurora themes
|
|
87
|
+
- See real-time preview of all variants
|
|
88
|
+
- Copy code snippets for each combination
|
|
89
|
+
- Test on different backgrounds
|
|
90
|
+
|
|
91
|
+
Try it live: https://yhooi2.github.io/shadcn-glass-ui-library/?path=/story/components-glassvariants
|
|
92
|
+
|
|
93
|
+
## 💬 Feedback Welcome!
|
|
94
|
+
|
|
95
|
+
This is an open-source project and we'd love to hear your thoughts:
|
|
96
|
+
- What features would you like to see?
|
|
97
|
+
- Any bugs or issues?
|
|
98
|
+
- Suggestions for improvements?
|
|
99
|
+
|
|
100
|
+
Feel free to open an issue or discussion on GitHub!
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
**Star the repo if you find it useful!** ⭐
|
|
105
|
+
https://github.com/Yhooi2/shadcn-glass-ui-library
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Additional Subreddits
|
|
110
|
+
|
|
111
|
+
### r/webdev
|
|
112
|
+
**Title:** Glassmorphism UI Library for React - 72 Glass Variants with Tailwind v4
|
|
113
|
+
|
|
114
|
+
### r/Frontend
|
|
115
|
+
**Title:** shadcn-glass-ui v1.0.5 - Modern Glassmorphism Components with Full shadcn/ui Compatibility
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Twitter Announcement - v1.0.5
|
|
2
|
+
|
|
3
|
+
## Thread Structure
|
|
4
|
+
|
|
5
|
+
### Tweet 1 (Main)
|
|
6
|
+
🚀 shadcn-glass-ui v1.0.5 is here!
|
|
7
|
+
|
|
8
|
+
✨ 72 Glass Variants (crystal, frosted, fluted, glass)
|
|
9
|
+
🎨 Color tints & intensity modifiers
|
|
10
|
+
📦 Dual registry: npm + GitHub Packages
|
|
11
|
+
🧪 27 new visual tests
|
|
12
|
+
|
|
13
|
+
Perfect for modern glassmorphism UIs!
|
|
14
|
+
|
|
15
|
+
👉 https://github.com/Yhooi2/shadcn-glass-ui-library
|
|
16
|
+
|
|
17
|
+
#React #shadcn #UI #TypeScript
|
|
18
|
+
|
|
19
|
+
### Tweet 2 (Code Example)
|
|
20
|
+
```tsx
|
|
21
|
+
import { GlassCard } from '@yhooi2/shadcn-glass-ui';
|
|
22
|
+
|
|
23
|
+
<GlassCard
|
|
24
|
+
variant="frosted"
|
|
25
|
+
tint="purple"
|
|
26
|
+
intensity="medium"
|
|
27
|
+
>
|
|
28
|
+
Beautiful glassmorphism 💎
|
|
29
|
+
</GlassCard>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
72 combinations = 4 variants × 6 tints × 3 intensities
|
|
33
|
+
|
|
34
|
+
### Tweet 3 (Features)
|
|
35
|
+
What's included:
|
|
36
|
+
|
|
37
|
+
🎯 48 Components (Core + Atomic + Composites + Sections + Blocks)
|
|
38
|
+
🌈 3 Themes (Glass, Light, Aurora)
|
|
39
|
+
♿ WCAG 2.1 AA compliant
|
|
40
|
+
📱 Touch-optimized (44×44px targets)
|
|
41
|
+
⚡ React 19 + Tailwind v4 + TypeScript 5.9
|
|
42
|
+
|
|
43
|
+
### Tweet 4 (Installation)
|
|
44
|
+
Get started in seconds:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install @yhooi2/shadcn-glass-ui
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
📚 Docs: https://yhooi2.github.io/shadcn-glass-ui-library/
|
|
51
|
+
📦 npm: https://www.npmjs.com/package/@yhooi2/shadcn-glass-ui
|
|
52
|
+
⭐ Give us a star!
|
|
53
|
+
|
|
54
|
+
### Tweet 5 (Visual)
|
|
55
|
+
Check out the interactive demo showcasing all 72 glass variant combinations! 🎨
|
|
56
|
+
|
|
57
|
+
[Attach screenshot of GlassVariantsDemo from Storybook]
|
|
58
|
+
|
|
59
|
+
Live demo: https://yhooi2.github.io/shadcn-glass-ui-library/
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Media Suggestions
|
|
64
|
+
- Screenshot of GlassVariantsDemo showing all variants
|
|
65
|
+
- GIF cycling through different glass effects
|
|
66
|
+
- Before/After comparison of variants
|
|
67
|
+
- Side-by-side theme comparison (Glass/Light/Aurora)
|
|
68
|
+
|
|
69
|
+
## Hashtags
|
|
70
|
+
#React #TypeScript #TailwindCSS #shadcn #UI #WebDev #Frontend #OpenSource #Glassmorphism #Design
|