shadcn-glass-ui 2.3.0 → 2.3.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 +26 -0
- package/dist/cli/index.cjs +1 -1
- package/dist/components.cjs +4 -4
- package/dist/components.mjs +1 -1
- package/dist/hooks.cjs +2 -2
- package/dist/index.cjs +12 -5
- package/dist/index.mjs +8 -1
- package/dist/r/avatar-glass.json +1 -1
- package/dist/r/checkbox-glass.json +4 -5
- package/dist/r/circular-progress-glass.json +1 -1
- package/dist/r/dropdown-glass.json +1 -1
- package/dist/r/dropdown-menu-glass.json +1 -1
- package/dist/r/flag-alert-glass.json +1 -1
- package/dist/r/glass-card.json +3 -2
- package/dist/r/notification-glass.json +1 -1
- package/dist/r/popover-glass.json +1 -1
- package/dist/r/progress-glass.json +1 -1
- package/dist/r/registry.json +2 -2
- package/dist/r/skeleton-glass.json +1 -1
- package/dist/r/slider-glass.json +1 -1
- package/dist/r/stepper-glass.json +1 -1
- package/dist/r/tabs-glass.json +5 -4
- package/dist/r/toggle-glass.json +1 -1
- package/dist/shadcn-glass-ui.css +1 -1
- package/dist/{theme-context-DmTETrFi.cjs → theme-context-7NcW0KZL.cjs} +2 -2
- package/dist/themes.cjs +1 -1
- package/dist/{trust-score-card-glass-EfMB5l5J.mjs → trust-score-card-glass-BGqBcdyJ.mjs} +120 -177
- package/dist/{trust-score-card-glass-3VBi9soW.cjs → trust-score-card-glass-DtgFygh5.cjs} +124 -179
- package/dist/{use-focus-CswOSq71.cjs → use-focus-BFBcpBh1.cjs} +2 -2
- package/dist/{use-wallpaper-tint-WtRWtupA.cjs → use-wallpaper-tint-DTTStm5f.cjs} +2 -2
- package/dist/{utils-DX6rdBol.cjs → utils-CiuCe_Aq.cjs} +2 -2
- package/dist/utils.cjs +1 -1
- package/package.json +25 -3
- package/dist/components/blocks/avatar-gallery/index.d.ts +0 -2
- package/dist/components/blocks/avatar-gallery/index.d.ts.map +0 -1
- package/dist/components/blocks/avatar-gallery/page.d.ts +0 -7
- package/dist/components/blocks/avatar-gallery/page.d.ts.map +0 -1
- package/dist/components/blocks/badges/index.d.ts +0 -2
- package/dist/components/blocks/badges/index.d.ts.map +0 -1
- package/dist/components/blocks/badges/page.d.ts +0 -7
- package/dist/components/blocks/badges/page.d.ts.map +0 -1
- package/dist/components/blocks/buttons/index.d.ts +0 -2
- package/dist/components/blocks/buttons/index.d.ts.map +0 -1
- package/dist/components/blocks/buttons/page.d.ts +0 -7
- package/dist/components/blocks/buttons/page.d.ts.map +0 -1
- package/dist/components/blocks/form-elements/index.d.ts +0 -2
- package/dist/components/blocks/form-elements/index.d.ts.map +0 -1
- package/dist/components/blocks/form-elements/page.d.ts +0 -7
- package/dist/components/blocks/form-elements/page.d.ts.map +0 -1
- package/dist/components/blocks/index.d.ts +0 -14
- package/dist/components/blocks/index.d.ts.map +0 -1
- package/dist/components/blocks/notifications/index.d.ts +0 -2
- package/dist/components/blocks/notifications/index.d.ts.map +0 -1
- package/dist/components/blocks/notifications/page.d.ts +0 -7
- package/dist/components/blocks/notifications/page.d.ts.map +0 -1
- package/dist/components/blocks/progress/index.d.ts +0 -2
- package/dist/components/blocks/progress/index.d.ts.map +0 -1
- package/dist/components/blocks/progress/page.d.ts +0 -7
- package/dist/components/blocks/progress/page.d.ts.map +0 -1
- package/dist/components/blocks/registry.d.ts +0 -16
- package/dist/components/blocks/registry.d.ts.map +0 -1
- package/dist/components/demos/AnimatedBackground.d.ts +0 -5
- package/dist/components/demos/AnimatedBackground.d.ts.map +0 -1
- package/dist/components/demos/ComponentShowcase.d.ts +0 -6
- package/dist/components/demos/ComponentShowcase.d.ts.map +0 -1
- package/dist/components/demos/DesktopShowcase.d.ts +0 -3
- package/dist/components/demos/DesktopShowcase.d.ts.map +0 -1
- package/dist/components/demos/GlassFixesDemo.d.ts +0 -6
- package/dist/components/demos/GlassFixesDemo.d.ts.map +0 -1
- package/dist/components/demos/MobileShowcase.d.ts +0 -3
- package/dist/components/demos/MobileShowcase.d.ts.map +0 -1
- package/dist/components/glass/atomic/expandable-header-glass.d.ts +0 -16
- package/dist/components/glass/atomic/expandable-header-glass.d.ts.map +0 -1
- package/dist/components/glass/atomic/icon-button-glass.d.ts +0 -18
- package/dist/components/glass/atomic/icon-button-glass.d.ts.map +0 -1
- package/dist/components/glass/atomic/index.d.ts +0 -14
- package/dist/components/glass/atomic/index.d.ts.map +0 -1
- package/dist/components/glass/atomic/insight-card-glass.d.ts +0 -22
- package/dist/components/glass/atomic/insight-card-glass.d.ts.map +0 -1
- package/dist/components/glass/atomic/search-box-glass.d.ts +0 -17
- package/dist/components/glass/atomic/search-box-glass.d.ts.map +0 -1
- package/dist/components/glass/atomic/sort-dropdown-glass.d.ts +0 -38
- package/dist/components/glass/atomic/sort-dropdown-glass.d.ts.map +0 -1
- package/dist/components/glass/atomic/stat-item-glass.d.ts +0 -22
- package/dist/components/glass/atomic/stat-item-glass.d.ts.map +0 -1
- package/dist/components/glass/atomic/theme-toggle-glass.d.ts +0 -11
- package/dist/components/glass/atomic/theme-toggle-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/ai-card-glass.d.ts +0 -7
- package/dist/components/glass/composite/ai-card-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/career-stats-header-glass.d.ts +0 -15
- package/dist/components/glass/composite/career-stats-header-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/circular-metric-glass.d.ts +0 -24
- package/dist/components/glass/composite/circular-metric-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/contribution-metrics-glass.d.ts +0 -15
- package/dist/components/glass/composite/contribution-metrics-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/index.d.ts +0 -22
- package/dist/components/glass/composite/index.d.ts.map +0 -1
- package/dist/components/glass/composite/metric-card-glass.d.ts +0 -96
- package/dist/components/glass/composite/metric-card-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/metrics-grid-glass.d.ts +0 -17
- package/dist/components/glass/composite/metrics-grid-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/repository-card-glass.d.ts +0 -16
- package/dist/components/glass/composite/repository-card-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/repository-header-glass.d.ts +0 -16
- package/dist/components/glass/composite/repository-header-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/repository-metadata-glass.d.ts +0 -13
- package/dist/components/glass/composite/repository-metadata-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/split-layout-glass/index.d.ts +0 -16
- package/dist/components/glass/composite/split-layout-glass/index.d.ts.map +0 -1
- package/dist/components/glass/composite/split-layout-glass/split-layout-accordion.d.ts +0 -66
- package/dist/components/glass/composite/split-layout-glass/split-layout-accordion.d.ts.map +0 -1
- package/dist/components/glass/composite/split-layout-glass/split-layout-context.d.ts +0 -122
- package/dist/components/glass/composite/split-layout-glass/split-layout-context.d.ts.map +0 -1
- package/dist/components/glass/composite/split-layout-glass/split-layout-glass.d.ts +0 -177
- package/dist/components/glass/composite/split-layout-glass/split-layout-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/trust-score-display-glass.d.ts +0 -15
- package/dist/components/glass/composite/trust-score-display-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/user-info-glass.d.ts +0 -15
- package/dist/components/glass/composite/user-info-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/user-stats-line-glass.d.ts +0 -15
- package/dist/components/glass/composite/user-stats-line-glass.d.ts.map +0 -1
- package/dist/components/glass/composite/year-card-glass.d.ts +0 -53
- package/dist/components/glass/composite/year-card-glass.d.ts.map +0 -1
- package/dist/components/glass/index.d.ts +0 -16
- package/dist/components/glass/index.d.ts.map +0 -1
- package/dist/components/glass/primitives/form-field-wrapper.d.ts +0 -69
- package/dist/components/glass/primitives/form-field-wrapper.d.ts.map +0 -1
- package/dist/components/glass/primitives/index.d.ts +0 -12
- package/dist/components/glass/primitives/index.d.ts.map +0 -1
- package/dist/components/glass/primitives/interactive-card.d.ts +0 -91
- package/dist/components/glass/primitives/interactive-card.d.ts.map +0 -1
- package/dist/components/glass/primitives/style-utils.d.ts +0 -147
- package/dist/components/glass/primitives/style-utils.d.ts.map +0 -1
- package/dist/components/glass/primitives/touch-target.d.ts +0 -46
- package/dist/components/glass/primitives/touch-target.d.ts.map +0 -1
- package/dist/components/glass/sections/career-stats-glass.d.ts +0 -17
- package/dist/components/glass/sections/career-stats-glass.d.ts.map +0 -1
- package/dist/components/glass/sections/flags-section-glass.d.ts +0 -13
- package/dist/components/glass/sections/flags-section-glass.d.ts.map +0 -1
- package/dist/components/glass/sections/header-branding-glass.d.ts +0 -16
- package/dist/components/glass/sections/header-branding-glass.d.ts.map +0 -1
- package/dist/components/glass/sections/header-nav-glass.d.ts +0 -7
- package/dist/components/glass/sections/header-nav-glass.d.ts.map +0 -1
- package/dist/components/glass/sections/index.d.ts +0 -13
- package/dist/components/glass/sections/index.d.ts.map +0 -1
- package/dist/components/glass/sections/profile-header-glass.d.ts +0 -16
- package/dist/components/glass/sections/profile-header-glass.d.ts.map +0 -1
- package/dist/components/glass/sections/projects-list-glass.d.ts +0 -42
- package/dist/components/glass/sections/projects-list-glass.d.ts.map +0 -1
- package/dist/components/glass/sections/trust-score-card-glass.d.ts +0 -12
- package/dist/components/glass/sections/trust-score-card-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/base-progress-glass.d.ts +0 -8
- package/dist/components/glass/specialized/base-progress-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/flag-alert-glass.d.ts +0 -8
- package/dist/components/glass/specialized/flag-alert-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/index.d.ts +0 -21
- package/dist/components/glass/specialized/index.d.ts.map +0 -1
- package/dist/components/glass/specialized/language-bar-glass.d.ts +0 -24
- package/dist/components/glass/specialized/language-bar-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/profile-avatar-glass.d.ts +0 -26
- package/dist/components/glass/specialized/profile-avatar-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/progress-glass.d.ts +0 -9
- package/dist/components/glass/specialized/progress-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/rainbow-progress-glass.d.ts +0 -8
- package/dist/components/glass/specialized/rainbow-progress-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/segmented-control-glass.d.ts +0 -11
- package/dist/components/glass/specialized/segmented-control-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/sparkline-glass.d.ts +0 -34
- package/dist/components/glass/specialized/sparkline-glass.d.ts.map +0 -1
- package/dist/components/glass/specialized/status-indicator-glass.d.ts +0 -8
- package/dist/components/glass/specialized/status-indicator-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/alert-glass.d.ts +0 -13
- package/dist/components/glass/ui/alert-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/avatar-glass.d.ts +0 -58
- package/dist/components/glass/ui/avatar-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/badge-glass.d.ts +0 -74
- package/dist/components/glass/ui/badge-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/button-glass.d.ts +0 -110
- package/dist/components/glass/ui/button-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/card-glass.d.ts +0 -115
- package/dist/components/glass/ui/card-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/checkbox-glass.d.ts +0 -113
- package/dist/components/glass/ui/checkbox-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/circular-progress-glass.d.ts +0 -36
- package/dist/components/glass/ui/circular-progress-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/combobox-glass.d.ts +0 -61
- package/dist/components/glass/ui/combobox-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/dropdown-glass.d.ts +0 -83
- package/dist/components/glass/ui/dropdown-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/dropdown-menu-glass.d.ts +0 -77
- package/dist/components/glass/ui/dropdown-menu-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/glass-card.d.ts +0 -78
- package/dist/components/glass/ui/glass-card.d.ts.map +0 -1
- package/dist/components/glass/ui/index.d.ts +0 -44
- package/dist/components/glass/ui/index.d.ts.map +0 -1
- package/dist/components/glass/ui/input-glass.d.ts +0 -98
- package/dist/components/glass/ui/input-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/modal-glass.d.ts +0 -180
- package/dist/components/glass/ui/modal-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/notification-glass.d.ts +0 -13
- package/dist/components/glass/ui/notification-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/popover-glass.d.ts +0 -71
- package/dist/components/glass/ui/popover-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/sidebar-glass/index.d.ts +0 -100
- package/dist/components/glass/ui/sidebar-glass/index.d.ts.map +0 -1
- package/dist/components/glass/ui/sidebar-glass/sidebar-context.d.ts +0 -96
- package/dist/components/glass/ui/sidebar-glass/sidebar-context.d.ts.map +0 -1
- package/dist/components/glass/ui/sidebar-glass/sidebar-glass.d.ts +0 -88
- package/dist/components/glass/ui/sidebar-glass/sidebar-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/sidebar-glass/sidebar-menu.d.ts +0 -121
- package/dist/components/glass/ui/sidebar-glass/sidebar-menu.d.ts.map +0 -1
- package/dist/components/glass/ui/skeleton-glass.d.ts +0 -8
- package/dist/components/glass/ui/skeleton-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/slider-glass.d.ts +0 -38
- package/dist/components/glass/ui/slider-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/stepper-glass.d.ts +0 -63
- package/dist/components/glass/ui/stepper-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/tabs-glass.d.ts +0 -199
- package/dist/components/glass/ui/tabs-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/toggle-glass.d.ts +0 -27
- package/dist/components/glass/ui/toggle-glass.d.ts.map +0 -1
- package/dist/components/glass/ui/tooltip-glass.d.ts +0 -65
- package/dist/components/glass/ui/tooltip-glass.d.ts.map +0 -1
- package/dist/components/ui/alert.d.ts +0 -8
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/avatar.d.ts +0 -7
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/badge.d.ts +0 -8
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -10
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -69
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/command.d.ts +0 -19
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -16
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +0 -26
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts +0 -8
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/progress.d.ts +0 -5
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -6
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts +0 -3
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/slider.d.ts +0 -5
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/sonner.d.ts +0 -4
- package/dist/components/ui/sonner.d.ts.map +0 -1
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components.d.ts.map +0 -1
- package/dist/demo-screenshot-aurora.png +0 -0
- package/dist/demo-screenshot.png +0 -0
- package/dist/demo-screenshot.png.zip +0 -0
- package/dist/hooks.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/lib/config.d.ts +0 -28
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/hooks/index.d.ts +0 -11
- package/dist/lib/hooks/index.d.ts.map +0 -1
- package/dist/lib/hooks/use-focus.d.ts +0 -61
- package/dist/lib/hooks/use-focus.d.ts.map +0 -1
- package/dist/lib/hooks/use-hover.d.ts +0 -54
- package/dist/lib/hooks/use-hover.d.ts.map +0 -1
- package/dist/lib/hooks/use-responsive.d.ts +0 -44
- package/dist/lib/hooks/use-responsive.d.ts.map +0 -1
- package/dist/lib/hooks/use-wallpaper-tint.d.ts +0 -57
- package/dist/lib/hooks/use-wallpaper-tint.d.ts.map +0 -1
- package/dist/lib/hooks.d.ts +0 -92
- package/dist/lib/hooks.d.ts.map +0 -1
- package/dist/lib/theme/tokens.d.ts +0 -441
- package/dist/lib/theme/tokens.d.ts.map +0 -1
- package/dist/lib/theme-context.d.ts +0 -115
- package/dist/lib/theme-context.d.ts.map +0 -1
- package/dist/lib/types.d.ts +0 -24
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -8
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/variants/alert-glass-variants.d.ts +0 -10
- package/dist/lib/variants/alert-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/alert-variants.d.ts +0 -8
- package/dist/lib/variants/alert-variants.d.ts.map +0 -1
- package/dist/lib/variants/avatar-glass-variants.d.ts +0 -12
- package/dist/lib/variants/avatar-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/badge-glass-variants.d.ts +0 -10
- package/dist/lib/variants/badge-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/badge-variants.d.ts +0 -8
- package/dist/lib/variants/badge-variants.d.ts.map +0 -1
- package/dist/lib/variants/button-glass-variants.d.ts +0 -29
- package/dist/lib/variants/button-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/button-variants.d.ts +0 -9
- package/dist/lib/variants/button-variants.d.ts.map +0 -1
- package/dist/lib/variants/dropdown-content-styles.d.ts +0 -102
- package/dist/lib/variants/dropdown-content-styles.d.ts.map +0 -1
- package/dist/lib/variants/dropdown-glass-variants.d.ts +0 -9
- package/dist/lib/variants/dropdown-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/glass-card-variants.d.ts +0 -13
- package/dist/lib/variants/glass-card-variants.d.ts.map +0 -1
- package/dist/lib/variants/index.d.ts +0 -26
- package/dist/lib/variants/index.d.ts.map +0 -1
- package/dist/lib/variants/input-glass-variants.d.ts +0 -9
- package/dist/lib/variants/input-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/insight-card-glass-variants.d.ts +0 -11
- package/dist/lib/variants/insight-card-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/modal-glass-variants.d.ts +0 -9
- package/dist/lib/variants/modal-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/notification-glass-variants.d.ts +0 -9
- package/dist/lib/variants/notification-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/progress-glass-variants.d.ts +0 -10
- package/dist/lib/variants/progress-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/skeleton-glass-variants.d.ts +0 -9
- package/dist/lib/variants/skeleton-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/sparkline-glass-variants.d.ts +0 -10
- package/dist/lib/variants/sparkline-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/stepper-glass-variants.d.ts +0 -40
- package/dist/lib/variants/stepper-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/toggle-glass-variants.d.ts +0 -26
- package/dist/lib/variants/toggle-glass-variants.d.ts.map +0 -1
- package/dist/lib/variants/tooltip-glass-variants.d.ts +0 -9
- package/dist/lib/variants/tooltip-glass-variants.d.ts.map +0 -1
- package/dist/theme-context-DLS2uAgJ.mjs.map +0 -1
- package/dist/theme-context-DmTETrFi.cjs.map +0 -1
- package/dist/themes.d.ts.map +0 -1
- package/dist/trust-score-card-glass-3VBi9soW.cjs.map +0 -1
- package/dist/trust-score-card-glass-EfMB5l5J.mjs.map +0 -1
- package/dist/use-focus-C5kPAKr_.mjs.map +0 -1
- package/dist/use-focus-CswOSq71.cjs.map +0 -1
- package/dist/use-wallpaper-tint-C0kYXNiN.mjs.map +0 -1
- package/dist/use-wallpaper-tint-WtRWtupA.cjs.map +0 -1
- package/dist/utils-B792GPM_.mjs.map +0 -1
- package/dist/utils-DX6rdBol.cjs.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/docs/AI_IMPROVEMENTS_COMPLETE.md +0 -574
- package/docs/API_PATTERNS_COMPARISON.md +0 -419
- package/docs/COMPLIANCE_CHECKLIST.md +0 -307
- package/docs/COMPLIANCE_TESTING.md +0 -436
- package/docs/CSS_VARIABLES_AUDIT.md +0 -306
- package/docs/CSS_VARIABLES_REFACTORING_PLAN.md +0 -330
- package/docs/DROPDOWN_ARCHITECTURE.md +0 -290
- package/docs/METRIC_CARD_API_REDESIGN.md +0 -354
- package/docs/PRIMITIVE_MAPPING.md +0 -404
- package/docs/PUBLISHING.md +0 -593
- package/docs/REGISTRY_SUMMARY.md +0 -96
- package/docs/SECURITY.md +0 -117
- package/docs/api/README.md +0 -723
- package/docs/api/functions/ThemeProvider.md +0 -21
- package/docs/api/functions/cn.md +0 -27
- package/docs/api/functions/getNextTheme.md +0 -21
- package/docs/api/functions/getThemeConfig.md +0 -21
- package/docs/api/functions/useFocus.md +0 -53
- package/docs/api/functions/useHover.md +0 -47
- package/docs/api/functions/useResponsive.md +0 -31
- package/docs/api/functions/useTheme.md +0 -15
- package/docs/api/functions/useWallpaperTint.md +0 -36
- package/docs/api/globals.md +0 -139
- package/docs/api/interfaces/AlertGlassProps.md +0 -131
- package/docs/api/interfaces/AvatarGlassProps.md +0 -114
- package/docs/api/interfaces/BadgeGlassProps.md +0 -125
- package/docs/api/interfaces/ButtonGlassProps.md +0 -186
- package/docs/api/interfaces/CheckboxGlassProps.md +0 -125
- package/docs/api/interfaces/DropdownGlassProps.md +0 -123
- package/docs/api/interfaces/DropdownItem.md +0 -53
- package/docs/api/interfaces/GlassCardProps.md +0 -151
- package/docs/api/interfaces/InputGlassProps.md +0 -169
- package/docs/api/interfaces/NotificationGlassProps.md +0 -67
- package/docs/api/interfaces/ProgressGlassProps.md +0 -49
- package/docs/api/interfaces/SkeletonGlassProps.md +0 -41
- package/docs/api/interfaces/SliderGlassProps.md +0 -107
- package/docs/api/interfaces/TabItem.md +0 -25
- package/docs/api/interfaces/ThemeConfig.md +0 -25
- package/docs/api/interfaces/ThemeContextValue.md +0 -47
- package/docs/api/interfaces/ToggleGlassProps.md +0 -59
- package/docs/api/interfaces/TooltipGlassProps.md +0 -119
- package/docs/api/type-aliases/AlertType.md +0 -11
- package/docs/api/type-aliases/AlertVariant.md +0 -11
- package/docs/api/type-aliases/AvatarSize.md +0 -11
- package/docs/api/type-aliases/AvatarStatus.md +0 -13
- package/docs/api/type-aliases/BadgeSize.md +0 -11
- package/docs/api/type-aliases/BadgeVariant.md +0 -11
- package/docs/api/type-aliases/ButtonGlassSize.md +0 -11
- package/docs/api/type-aliases/ButtonGlassVariant.md +0 -11
- package/docs/api/type-aliases/DropdownAlign.md +0 -11
- package/docs/api/type-aliases/GlowType.md +0 -11
- package/docs/api/type-aliases/InputGlassSize.md +0 -11
- package/docs/api/type-aliases/IntensityType.md +0 -11
- package/docs/api/type-aliases/ModalSize.md +0 -11
- package/docs/api/type-aliases/NotificationType.md +0 -11
- package/docs/api/type-aliases/PaddingType.md +0 -11
- package/docs/api/type-aliases/ProgressGradient.md +0 -11
- package/docs/api/type-aliases/ProgressSize.md +0 -11
- package/docs/api/type-aliases/SkeletonVariant.md +0 -11
- package/docs/api/type-aliases/Theme.md +0 -11
- package/docs/api/type-aliases/ToggleGlassSize.md +0 -11
- package/docs/api/type-aliases/TooltipPosition.md +0 -11
- package/docs/api/variables/AICardGlass.md +0 -11
- package/docs/api/variables/AlertGlass.md +0 -11
- package/docs/api/variables/AvatarGlass.md +0 -11
- package/docs/api/variables/BadgeGlass.md +0 -11
- package/docs/api/variables/BaseProgressGlass.md +0 -11
- package/docs/api/variables/ButtonGlass.md +0 -11
- package/docs/api/variables/CareerStatsGlass.md +0 -11
- package/docs/api/variables/CareerStatsHeaderGlass.md +0 -11
- package/docs/api/variables/CheckboxGlass.md +0 -11
- package/docs/api/variables/CircularMetricGlass.md +0 -22
- package/docs/api/variables/CircularProgressGlass.md +0 -11
- package/docs/api/variables/ComboBoxGlass.md +0 -27
- package/docs/api/variables/ContributionMetricsGlass.md +0 -11
- package/docs/api/variables/DropdownGlass.md +0 -11
- package/docs/api/variables/ExpandableHeaderGlass.md +0 -11
- package/docs/api/variables/FlagAlertGlass.md +0 -11
- package/docs/api/variables/FlagsSectionGlass.md +0 -11
- package/docs/api/variables/FormFieldWrapper.md +0 -44
- package/docs/api/variables/GlassCard.md +0 -11
- package/docs/api/variables/HeaderBrandingGlass.md +0 -11
- package/docs/api/variables/HeaderNavGlass.md +0 -11
- package/docs/api/variables/IconButtonGlass.md +0 -11
- package/docs/api/variables/InputGlass.md +0 -11
- package/docs/api/variables/InteractiveCard.md +0 -45
- package/docs/api/variables/LanguageBarGlass.md +0 -11
- package/docs/api/variables/MetricCardGlass.md +0 -11
- package/docs/api/variables/MetricsGridGlass.md +0 -11
- package/docs/api/variables/ModalGlass.md +0 -73
- package/docs/api/variables/NotificationGlass.md +0 -11
- package/docs/api/variables/PopoverGlass.md +0 -11
- package/docs/api/variables/ProfileAvatarGlass.md +0 -11
- package/docs/api/variables/ProfileHeaderGlass.md +0 -11
- package/docs/api/variables/ProgressGlass.md +0 -11
- package/docs/api/variables/ProjectsListGlass.md +0 -11
- package/docs/api/variables/RainbowProgressGlass.md +0 -11
- package/docs/api/variables/RepositoryCardGlass.md +0 -11
- package/docs/api/variables/RepositoryHeaderGlass.md +0 -11
- package/docs/api/variables/RepositoryMetadataGlass.md +0 -11
- package/docs/api/variables/SearchBoxGlass.md +0 -11
- package/docs/api/variables/SegmentedControlGlass.md +0 -11
- package/docs/api/variables/SkeletonGlass.md +0 -11
- package/docs/api/variables/SliderGlass.md +0 -11
- package/docs/api/variables/SortDropdownGlass.md +0 -11
- package/docs/api/variables/StatItemGlass.md +0 -11
- package/docs/api/variables/StatusIndicatorGlass.md +0 -11
- package/docs/api/variables/THEMES.md +0 -11
- package/docs/api/variables/THEME_CONFIG.md +0 -11
- package/docs/api/variables/TabsGlass.md +0 -52
- package/docs/api/variables/ThemeToggleGlass.md +0 -11
- package/docs/api/variables/ToggleGlass.md +0 -11
- package/docs/api/variables/TooltipGlass.md +0 -11
- package/docs/api/variables/TouchTarget.md +0 -35
- package/docs/api/variables/TrustScoreCardGlass.md +0 -11
- package/docs/api/variables/TrustScoreDisplayGlass.md +0 -11
- package/docs/api/variables/UserInfoGlass.md +0 -11
- package/docs/api/variables/UserStatsLineGlass.md +0 -11
- package/docs/api/variables/YearCardGlass.md +0 -11
- package/docs/api/variables/alertVariants.md +0 -21
- package/docs/api/variables/avatarSizes.md +0 -21
- package/docs/api/variables/badgeVariants.md +0 -21
- package/docs/api/variables/buttonGlassVariants.md +0 -21
- package/docs/api/variables/cardIntensity.md +0 -21
- package/docs/api/variables/dropdownAlign.md +0 -21
- package/docs/api/variables/inputVariants.md +0 -21
- package/docs/api/variables/modalSizes.md +0 -21
- package/docs/api/variables/notificationVariants.md +0 -21
- package/docs/api/variables/progressSizes.md +0 -21
- package/docs/api/variables/shadcnAlertVariants.md +0 -21
- package/docs/api/variables/shadcnBadgeVariants.md +0 -21
- package/docs/api/variables/shadcnButtonVariants.md +0 -21
- package/docs/api/variables/skeletonVariants.md +0 -21
- package/docs/api/variables/statusSizes.md +0 -21
- package/docs/api/variables/toggleSizes.md +0 -21
- package/docs/api/variables/tooltipPositions.md +0 -21
- package/docs/design-system/UI_DESIGN.md +0 -628
- package/docs/technical/DEPENDENCIES.md +0 -291
- package/docs/visual-testing-guide.md +0 -362
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
# CSS Variables Audit & Optimization Report
|
|
2
|
-
|
|
3
|
-
## 📊 Summary
|
|
4
|
-
|
|
5
|
-
**Total CSS Variables:**
|
|
6
|
-
|
|
7
|
-
- Glass theme: 296 variables
|
|
8
|
-
- Light theme: 288 variables
|
|
9
|
-
- Aurora theme: 288 variables
|
|
10
|
-
|
|
11
|
-
**Status:** ✅ All deprecated aliases (`metric-emerald-*`, `metric-amber-*`, `metric-blue-*`,
|
|
12
|
-
`metric-red-*`) are **only used in CSS definitions** for backward compatibility. **No usage in
|
|
13
|
-
components or tests.**
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 🔍 Findings
|
|
18
|
-
|
|
19
|
-
### 1. ✅ Deprecated Variables Usage: CLEAN
|
|
20
|
-
|
|
21
|
-
**Result:** No deprecated variable usage found in production code.
|
|
22
|
-
|
|
23
|
-
- ❌ `--metric-emerald-*` - Not used in components
|
|
24
|
-
- ❌ `--metric-amber-*` - Not used in components
|
|
25
|
-
- ❌ `--metric-blue-*` - Not used in components
|
|
26
|
-
- ❌ `--metric-red-*` - Not used in components
|
|
27
|
-
|
|
28
|
-
All components successfully migrated to:
|
|
29
|
-
|
|
30
|
-
- ✅ `--metric-success-*`
|
|
31
|
-
- ✅ `--metric-warning-*`
|
|
32
|
-
- ✅ `--metric-default-*`
|
|
33
|
-
- ✅ `--metric-destructive-*`
|
|
34
|
-
|
|
35
|
-
**Deprecated aliases remain only in CSS files** (glass.css, light.css, aurora.css) for backward
|
|
36
|
-
compatibility with external consumers.
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
### 2. 🎯 Duplicate Patterns Found
|
|
41
|
-
|
|
42
|
-
#### A. `transparent` Background Variables (19 occurrences in Glass)
|
|
43
|
-
|
|
44
|
-
**All these variables = `transparent` across all themes:**
|
|
45
|
-
|
|
46
|
-
```css
|
|
47
|
-
/* Buttons */
|
|
48
|
-
--btn-ghost-bg: transparent;
|
|
49
|
-
|
|
50
|
-
/* Badges */
|
|
51
|
-
--badge-default-border: transparent;
|
|
52
|
-
--badge-secondary-border: transparent;
|
|
53
|
-
--badge-destructive-border: transparent;
|
|
54
|
-
--badge-outline-bg: transparent;
|
|
55
|
-
--badge-success-border: transparent;
|
|
56
|
-
--badge-warning-border: transparent;
|
|
57
|
-
--badge-info-border: transparent;
|
|
58
|
-
|
|
59
|
-
/* Tabs */
|
|
60
|
-
--tab-bg: transparent;
|
|
61
|
-
|
|
62
|
-
/* Metrics */
|
|
63
|
-
--metric-default-bg: transparent;
|
|
64
|
-
--metric-default-border: transparent;
|
|
65
|
-
--metric-secondary-bg: transparent;
|
|
66
|
-
--metric-secondary-border: transparent;
|
|
67
|
-
--metric-success-bg: transparent;
|
|
68
|
-
--metric-success-border: transparent;
|
|
69
|
-
--metric-warning-bg: transparent;
|
|
70
|
-
--metric-warning-border: transparent;
|
|
71
|
-
--metric-destructive-bg: transparent;
|
|
72
|
-
--metric-destructive-border: transparent;
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
#### B. `none` Glow Variables (14 occurrences in Light theme)
|
|
76
|
-
|
|
77
|
-
**All glow effects in Light theme = `none`:**
|
|
78
|
-
|
|
79
|
-
```css
|
|
80
|
-
--metric-default-glow: none;
|
|
81
|
-
--metric-secondary-glow: none;
|
|
82
|
-
--metric-success-glow: none;
|
|
83
|
-
--metric-warning-glow: none;
|
|
84
|
-
--metric-destructive-glow: none;
|
|
85
|
-
/* ... and 9 more */
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
#### C. Glow Pattern Duplication
|
|
89
|
-
|
|
90
|
-
**Glass theme:** All glows use `0 0 12px <color> / 0.4` pattern
|
|
91
|
-
|
|
92
|
-
```css
|
|
93
|
-
--metric-default-glow: 0 0 12px oklch(70.7% 0.143 250 / 0.4);
|
|
94
|
-
--metric-success-glow: 0 0 12px oklch(76.5% 0.147 163 / 0.4);
|
|
95
|
-
--metric-warning-glow: 0 0 12px oklch(82.8% 0.157 84 / 0.4);
|
|
96
|
-
--metric-destructive-glow: 0 0 12px oklch(71.2% 0.161 12 / 0.4);
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Aurora theme:** All glows use `0 0 10px <color> / 0.35` pattern (except secondary:
|
|
100
|
-
`0 0 8px / 0.25`)
|
|
101
|
-
|
|
102
|
-
```css
|
|
103
|
-
--metric-default-glow: 0 0 10px oklch(70.7% 0.143 250 / 0.35);
|
|
104
|
-
--metric-success-glow: 0 0 10px oklch(76.5% 0.147 163 / 0.35);
|
|
105
|
-
--metric-warning-glow: 0 0 10px oklch(82.8% 0.157 84 / 0.35);
|
|
106
|
-
--metric-destructive-glow: 0 0 10px oklch(71.5% 0.179 27 / 0.35);
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## 💡 Optimization Recommendations
|
|
112
|
-
|
|
113
|
-
### Priority 1: Remove Unused Variables ⚠️
|
|
114
|
-
|
|
115
|
-
**Investigate if these `transparent` variables are actually used:**
|
|
116
|
-
|
|
117
|
-
If `--metric-*-bg` and `--metric-*-border` are never used (always transparent), they can be removed
|
|
118
|
-
entirely:
|
|
119
|
-
|
|
120
|
-
```css
|
|
121
|
-
/* Can be removed if unused: */
|
|
122
|
-
--metric-default-bg: transparent; /* Used anywhere? */
|
|
123
|
-
--metric-default-border: transparent; /* Used anywhere? */
|
|
124
|
-
--metric-success-bg: transparent; /* Used anywhere? */
|
|
125
|
-
--metric-success-border: transparent; /* Used anywhere? */
|
|
126
|
-
/* ... etc */
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
**Action:** Search codebase for usage of these variables. If unused, remove from all themes.
|
|
130
|
-
|
|
131
|
-
**Potential savings:** ~16 variables × 3 themes = 48 variable definitions
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
### Priority 2: Simplify Glow System 🎨
|
|
136
|
-
|
|
137
|
-
**Current:** Each metric variant has its own glow variable with repeated patterns.
|
|
138
|
-
|
|
139
|
-
**Proposal:** Use CSS functions or global glow intensity variables.
|
|
140
|
-
|
|
141
|
-
#### Option A: Glow Intensity Tokens
|
|
142
|
-
|
|
143
|
-
```css
|
|
144
|
-
/* Global tokens (add to root or theme) */
|
|
145
|
-
--glow-radius-sm: 8px;
|
|
146
|
-
--glow-radius-md: 10px;
|
|
147
|
-
--glow-radius-lg: 12px;
|
|
148
|
-
--glow-opacity-light: 0.25;
|
|
149
|
-
--glow-opacity-medium: 0.35;
|
|
150
|
-
--glow-opacity-strong: 0.4;
|
|
151
|
-
|
|
152
|
-
/* Then in themes: */
|
|
153
|
-
[data-theme='glass'] {
|
|
154
|
-
--glow-radius: var(--glow-radius-lg); /* 12px */
|
|
155
|
-
--glow-opacity: var(--glow-opacity-strong); /* 0.4 */
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
[data-theme='aurora'] {
|
|
159
|
-
--glow-radius: var(--glow-radius-md); /* 10px */
|
|
160
|
-
--glow-opacity: var(--glow-opacity-medium); /* 0.35 */
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
[data-theme='light'] {
|
|
164
|
-
--glow-radius: 0;
|
|
165
|
-
--glow-opacity: 0;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* Usage in metric variables: */
|
|
169
|
-
--metric-success-glow: 0 0 var(--glow-radius) oklch(76.5% 0.147 163 / var(--glow-opacity));
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
**Savings:** Reduces pattern duplication, easier to adjust glow intensity globally.
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
### Priority 3: Consider Color Semantic Tokens 🎭
|
|
177
|
-
|
|
178
|
-
**Current issue:** Text colors differ between Glass/Aurora and Light themes.
|
|
179
|
-
|
|
180
|
-
**Example:**
|
|
181
|
-
|
|
182
|
-
```css
|
|
183
|
-
/* Glass/Aurora */
|
|
184
|
-
--metric-success-text: oklch(76.5% 0.147 163); /* emerald-400 */
|
|
185
|
-
|
|
186
|
-
/* Light */
|
|
187
|
-
--metric-success-text: oklch(69.6% 0.155 163); /* emerald-500 */
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
**Proposal:** Use semantic lightness tokens:
|
|
191
|
-
|
|
192
|
-
```css
|
|
193
|
-
/* Root level */
|
|
194
|
-
--color-lightness-for-dark: 76.5%; /* 400-level colors */
|
|
195
|
-
--color-lightness-for-light: 69.6%; /* 500-level colors */
|
|
196
|
-
|
|
197
|
-
/* Then: */
|
|
198
|
-
[data-theme='glass'],
|
|
199
|
-
[data-theme='aurora'] {
|
|
200
|
-
--base-lightness: var(--color-lightness-for-dark);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
[data-theme='light'] {
|
|
204
|
-
--base-lightness: var(--color-lightness-for-light);
|
|
205
|
-
}
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
**Note:** This is more complex and may not be worth it unless you plan many more themes.
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
### Priority 4: Audit Deprecated Aliases Removal Timeline 📅
|
|
213
|
-
|
|
214
|
-
**Current status:** Deprecated aliases are defined but unused in codebase.
|
|
215
|
-
|
|
216
|
-
**Recommendation:**
|
|
217
|
-
|
|
218
|
-
1. **v1.x** - Keep deprecated aliases (current state) ✅
|
|
219
|
-
2. **v2.0** - Add deprecation warnings to CHANGELOG
|
|
220
|
-
3. **v2.1** - Add console warnings when deprecated variables are detected
|
|
221
|
-
4. **v3.0** - Remove deprecated aliases entirely
|
|
222
|
-
|
|
223
|
-
**Migration path for external consumers:**
|
|
224
|
-
|
|
225
|
-
```md
|
|
226
|
-
## Migration from v1.x to v2.x
|
|
227
|
-
|
|
228
|
-
Replace all deprecated metric color variables:
|
|
229
|
-
|
|
230
|
-
- `--metric-emerald-*` → `--metric-success-*`
|
|
231
|
-
- `--metric-amber-*` → `--metric-warning-*`
|
|
232
|
-
- `--metric-blue-*` → `--metric-default-*`
|
|
233
|
-
- `--metric-red-*` → `--metric-destructive-*`
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## 🚀 Implementation Priority
|
|
239
|
-
|
|
240
|
-
### High Priority (Do Now)
|
|
241
|
-
|
|
242
|
-
1. ✅ **Verify deprecated aliases are unused** - DONE
|
|
243
|
-
2. 🔍 **Search for unused `transparent` variables** - TODO
|
|
244
|
-
3. 📝 **Document removal timeline** - Add to CHANGELOG
|
|
245
|
-
|
|
246
|
-
### Medium Priority (Consider for v2.0)
|
|
247
|
-
|
|
248
|
-
4. 🎨 **Simplify glow system** with intensity tokens
|
|
249
|
-
5. 📦 **Remove unused transparent variables** (if found)
|
|
250
|
-
6. 🔧 **Add deprecation notices** to CHANGELOG
|
|
251
|
-
|
|
252
|
-
### Low Priority (Future)
|
|
253
|
-
|
|
254
|
-
7. 🎭 **Consider semantic color tokens** (if adding 5+ themes)
|
|
255
|
-
8. 🧹 **Remove deprecated aliases** in v3.0
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
## 📝 Action Items
|
|
260
|
-
|
|
261
|
-
### Immediate
|
|
262
|
-
|
|
263
|
-
- [ ] Search codebase for `--metric-*-bg` usage (bg variants)
|
|
264
|
-
- [ ] Search codebase for `--metric-*-border` usage (border variants)
|
|
265
|
-
- [ ] If unused, create PR to remove these variables from all themes
|
|
266
|
-
|
|
267
|
-
### v2.0 Planning
|
|
268
|
-
|
|
269
|
-
- [x] Add deprecation notice to CHANGELOG.md (see [CHANGELOG.md](../CHANGELOG.md#unreleased))
|
|
270
|
-
- [ ] Update migration documentation
|
|
271
|
-
- [ ] Consider glow system refactoring
|
|
272
|
-
|
|
273
|
-
### v3.0 Planning
|
|
274
|
-
|
|
275
|
-
- [ ] Remove all deprecated `--metric-emerald/amber/blue/red-*` aliases
|
|
276
|
-
- [ ] Update documentation
|
|
277
|
-
|
|
278
|
-
---
|
|
279
|
-
|
|
280
|
-
## 📊 Metrics
|
|
281
|
-
|
|
282
|
-
**Cleanup potential:**
|
|
283
|
-
|
|
284
|
-
- Unused transparent variables: Up to 48 definitions (16 vars × 3 themes)
|
|
285
|
-
- Deprecated aliases: 48 definitions (16 vars × 3 themes) - **keep for now**
|
|
286
|
-
|
|
287
|
-
**Total potential reduction:** ~96 variable definitions if all transparent vars are unused
|
|
288
|
-
|
|
289
|
-
**Actual impact:** Minimal - CSS variables are lightweight. Focus on:
|
|
290
|
-
|
|
291
|
-
1. ✅ **Consistency** - Already achieved!
|
|
292
|
-
2. 📚 **Maintainability** - Document removal timeline
|
|
293
|
-
3. 🧹 **Cleanup** - Remove truly unused vars
|
|
294
|
-
|
|
295
|
-
---
|
|
296
|
-
|
|
297
|
-
## ✅ Conclusion
|
|
298
|
-
|
|
299
|
-
**Current state: EXCELLENT**
|
|
300
|
-
|
|
301
|
-
1. ✅ No deprecated variable usage in components
|
|
302
|
-
2. ✅ Consistent naming convention (shadcn/ui compatible)
|
|
303
|
-
3. ✅ All tests passing with new variables
|
|
304
|
-
4. 📋 Some optimization opportunities (transparent vars, glow patterns)
|
|
305
|
-
|
|
306
|
-
**Next steps:** Focus on Priority 1 (unused variable audit) and Priority 4 (deprecation timeline).
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
# CSS Variables Refactoring Plan
|
|
2
|
-
|
|
3
|
-
## Problem Statement
|
|
4
|
-
|
|
5
|
-
Current state: **Massive color duplication** across 3 theme files (glass.css, light.css, aurora.css)
|
|
6
|
-
|
|
7
|
-
| Theme | Most Duplicated Color | Usage Count |
|
|
8
|
-
| ------ | --------------------------------- | ----------- |
|
|
9
|
-
| Glass | `oklch(66.6% 0.159 303)` (purple) | 33+ times |
|
|
10
|
-
| Light | `oklch(54.1% 0.175 293)` (violet) | 28 times |
|
|
11
|
-
| Aurora | `oklch(62.7% 0.159 291)` (violet) | 20+ times |
|
|
12
|
-
|
|
13
|
-
Additional duplication:
|
|
14
|
-
|
|
15
|
-
- White with various alphas: 40+ uses per theme
|
|
16
|
-
- Semantic colors (success/warning/error): 12-16 uses each
|
|
17
|
-
- Border colors: 15-24 uses per theme
|
|
18
|
-
- Surface colors: 8-11 uses per theme
|
|
19
|
-
|
|
20
|
-
**Total duplication**: ~70% of CSS variables are duplicated color values
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Proposed Architecture
|
|
25
|
-
|
|
26
|
-
### Three-Layer System
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
┌─────────────────────────────────────────────┐
|
|
30
|
-
│ Layer 3: Component Variables (unchanged) │
|
|
31
|
-
│ --btn-primary-bg, --input-border, etc. │
|
|
32
|
-
└─────────────────────────────────────────────┘
|
|
33
|
-
↓ references
|
|
34
|
-
┌─────────────────────────────────────────────┐
|
|
35
|
-
│ Layer 2: Semantic Tokens (NEW) │
|
|
36
|
-
│ --semantic-primary, --semantic-surface, etc. │
|
|
37
|
-
└─────────────────────────────────────────────┘
|
|
38
|
-
↓ references
|
|
39
|
-
┌─────────────────────────────────────────────┐
|
|
40
|
-
│ Layer 1: Primitive Tokens (NEW) │
|
|
41
|
-
│ --primitive-purple-500, --primitive-white-08 │
|
|
42
|
-
└─────────────────────────────────────────────┘
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Layer 1: Primitive Tokens (primitives.css)
|
|
48
|
-
|
|
49
|
-
**Purpose**: Define raw color values once, reused by all themes
|
|
50
|
-
|
|
51
|
-
```css
|
|
52
|
-
/* primitives.css - NEW FILE */
|
|
53
|
-
:root {
|
|
54
|
-
/* ============================================
|
|
55
|
-
PRIMITIVE COLOR TOKENS
|
|
56
|
-
Raw OKLCH values - DO NOT use directly
|
|
57
|
-
============================================ */
|
|
58
|
-
|
|
59
|
-
/* Purple scale (glass theme primary) */
|
|
60
|
-
--primitive-purple-300: oklch(79.5% 0.103 293);
|
|
61
|
-
--primitive-purple-500: oklch(66.6% 0.159 303);
|
|
62
|
-
--primitive-violet-500: oklch(62.7% 0.159 291);
|
|
63
|
-
--primitive-violet-400: oklch(71.4% 0.138 291);
|
|
64
|
-
|
|
65
|
-
/* Light theme primary */
|
|
66
|
-
--primitive-violet-light-500: oklch(54.1% 0.175 293);
|
|
67
|
-
|
|
68
|
-
/* Semantic colors (shared across themes) */
|
|
69
|
-
--primitive-emerald-400: oklch(76.5% 0.147 163);
|
|
70
|
-
--primitive-amber-400: oklch(82.8% 0.157 84);
|
|
71
|
-
--primitive-rose-400: oklch(71.2% 0.161 12);
|
|
72
|
-
--primitive-blue-400: oklch(70.7% 0.143 250);
|
|
73
|
-
|
|
74
|
-
/* Neutral scale */
|
|
75
|
-
--primitive-white: oklch(100% 0 0);
|
|
76
|
-
--primitive-black: oklch(0% 0 0);
|
|
77
|
-
--primitive-neutral-900: oklch(27.9% 0.041 260);
|
|
78
|
-
--primitive-neutral-800: oklch(37.2% 0.044 257);
|
|
79
|
-
--primitive-neutral-700: oklch(55.4% 0.046 257);
|
|
80
|
-
--primitive-neutral-200: oklch(92.9% 0.013 255);
|
|
81
|
-
--primitive-neutral-100: oklch(96.8% 0.007 247);
|
|
82
|
-
|
|
83
|
-
/* ============================================
|
|
84
|
-
ALPHA UTILITIES
|
|
85
|
-
For creating opacity variants
|
|
86
|
-
============================================ */
|
|
87
|
-
--alpha-05: 0.05;
|
|
88
|
-
--alpha-08: 0.08;
|
|
89
|
-
--alpha-10: 0.1;
|
|
90
|
-
--alpha-15: 0.15;
|
|
91
|
-
--alpha-20: 0.2;
|
|
92
|
-
--alpha-25: 0.25;
|
|
93
|
-
--alpha-30: 0.3;
|
|
94
|
-
--alpha-40: 0.4;
|
|
95
|
-
--alpha-50: 0.5;
|
|
96
|
-
--alpha-60: 0.6;
|
|
97
|
-
--alpha-80: 0.8;
|
|
98
|
-
--alpha-90: 0.9;
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## Layer 2: Semantic Tokens (in each theme file)
|
|
105
|
-
|
|
106
|
-
**Purpose**: Theme-specific semantic mappings
|
|
107
|
-
|
|
108
|
-
```css
|
|
109
|
-
/* glass.css */
|
|
110
|
-
[data-theme='glass'] {
|
|
111
|
-
/* ============================================
|
|
112
|
-
SEMANTIC COLOR TOKENS
|
|
113
|
-
Theme-agnostic names for component use
|
|
114
|
-
============================================ */
|
|
115
|
-
|
|
116
|
-
/* Primary accent */
|
|
117
|
-
--semantic-primary: var(--primitive-purple-500);
|
|
118
|
-
--semantic-primary-muted: oklch(from var(--primitive-purple-500) l c h / var(--alpha-30));
|
|
119
|
-
--semantic-primary-subtle: oklch(from var(--primitive-purple-500) l c h / var(--alpha-20));
|
|
120
|
-
--semantic-primary-text: var(--primitive-purple-300);
|
|
121
|
-
|
|
122
|
-
/* Secondary accent */
|
|
123
|
-
--semantic-secondary: var(--primitive-violet-500);
|
|
124
|
-
|
|
125
|
-
/* Surfaces */
|
|
126
|
-
--semantic-surface: oklch(from var(--primitive-white) l c h / var(--alpha-08));
|
|
127
|
-
--semantic-surface-subtle: oklch(from var(--primitive-white) l c h / var(--alpha-05));
|
|
128
|
-
--semantic-surface-medium: oklch(from var(--primitive-white) l c h / var(--alpha-15));
|
|
129
|
-
--semantic-surface-strong: oklch(from var(--primitive-white) l c h / var(--alpha-22));
|
|
130
|
-
|
|
131
|
-
/* Borders */
|
|
132
|
-
--semantic-border: oklch(from var(--primitive-white) l c h / var(--alpha-15));
|
|
133
|
-
--semantic-border-subtle: oklch(from var(--primitive-white) l c h / var(--alpha-10));
|
|
134
|
-
--semantic-border-strong: oklch(from var(--primitive-white) l c h / var(--alpha-25));
|
|
135
|
-
|
|
136
|
-
/* Text */
|
|
137
|
-
--semantic-text: oklch(from var(--primitive-white) l c h / var(--alpha-90));
|
|
138
|
-
--semantic-text-muted: oklch(from var(--primitive-white) l c h / var(--alpha-60));
|
|
139
|
-
--semantic-text-subtle: oklch(from var(--primitive-white) l c h / var(--alpha-50));
|
|
140
|
-
--semantic-text-disabled: oklch(from var(--primitive-white) l c h / var(--alpha-30));
|
|
141
|
-
|
|
142
|
-
/* Semantic states (shared across themes) */
|
|
143
|
-
--semantic-success: var(--primitive-emerald-400);
|
|
144
|
-
--semantic-warning: var(--primitive-amber-400);
|
|
145
|
-
--semantic-error: var(--primitive-rose-400);
|
|
146
|
-
--semantic-info: var(--primitive-blue-400);
|
|
147
|
-
}
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## Layer 3: Component Variables (existing)
|
|
153
|
-
|
|
154
|
-
**No changes needed** - component variables reference semantic tokens:
|
|
155
|
-
|
|
156
|
-
```css
|
|
157
|
-
/* BEFORE (current) */
|
|
158
|
-
--btn-primary-bg: linear-gradient(135deg, oklch(66.6% 0.159 303), oklch(62.7% 0.159 291));
|
|
159
|
-
--stepper-step-completed-bg: oklch(66.6% 0.159 303);
|
|
160
|
-
|
|
161
|
-
/* AFTER (refactored) */
|
|
162
|
-
--btn-primary-bg: linear-gradient(135deg, var(--semantic-primary), var(--semantic-secondary));
|
|
163
|
-
--stepper-step-completed-bg: var(--semantic-primary);
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## Modern CSS Features Used
|
|
169
|
-
|
|
170
|
-
### 1. `oklch(from ...)` Relative Color Syntax
|
|
171
|
-
|
|
172
|
-
```css
|
|
173
|
-
/* Create alpha variants from base color */
|
|
174
|
-
--semantic-primary-muted: oklch(from var(--primitive-purple-500) l c h / 0.3);
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
**Browser support**: Chrome 119+, Safari 16.4+, Firefox 128+ (2024)
|
|
178
|
-
|
|
179
|
-
**Fallback strategy**: Define explicit values for older browsers
|
|
180
|
-
|
|
181
|
-
### 2. CSS Custom Property Composition
|
|
182
|
-
|
|
183
|
-
```css
|
|
184
|
-
--semantic-surface: oklch(from var(--primitive-white) l c h / var(--alpha-08));
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## Migration Strategy
|
|
190
|
-
|
|
191
|
-
### Phase 1: Foundation (Week 1)
|
|
192
|
-
|
|
193
|
-
- ✅ Create `src/styles/primitives.css`
|
|
194
|
-
- ✅ Define all primitive tokens
|
|
195
|
-
- ✅ Import in main CSS entry point
|
|
196
|
-
- ✅ Add semantic tokens to glass.css
|
|
197
|
-
|
|
198
|
-
### Phase 2: Glass Theme Refactor (Week 2)
|
|
199
|
-
|
|
200
|
-
- Refactor all component variables in glass.css
|
|
201
|
-
- Replace hardcoded OKLCH with semantic token references
|
|
202
|
-
- Test visual appearance (no regressions)
|
|
203
|
-
- Run Storybook visual tests
|
|
204
|
-
|
|
205
|
-
### Phase 3: Light Theme Refactor (Week 3)
|
|
206
|
-
|
|
207
|
-
- Add semantic tokens to light.css
|
|
208
|
-
- Refactor component variables
|
|
209
|
-
- Test visual appearance
|
|
210
|
-
|
|
211
|
-
### Phase 4: Aurora Theme Refactor (Week 4)
|
|
212
|
-
|
|
213
|
-
- Add semantic tokens to aurora.css
|
|
214
|
-
- Refactor component variables
|
|
215
|
-
- Test visual appearance
|
|
216
|
-
|
|
217
|
-
### Phase 5: Cleanup & Documentation (Week 5)
|
|
218
|
-
|
|
219
|
-
- Remove old `--color-*` tokens (replaced by `--semantic-*`)
|
|
220
|
-
- Update documentation
|
|
221
|
-
- Add migration guide for consumers
|
|
222
|
-
- Performance testing
|
|
223
|
-
|
|
224
|
-
---
|
|
225
|
-
|
|
226
|
-
## Expected Benefits
|
|
227
|
-
|
|
228
|
-
| Metric | Before | After | Improvement |
|
|
229
|
-
| ------------------- | ---------- | ---------- | ----------------------- |
|
|
230
|
-
| Unique color values | ~120 | ~30 | **75% reduction** |
|
|
231
|
-
| Lines of CSS | ~1500 | ~800 | **47% reduction** |
|
|
232
|
-
| Theme file size | ~500 lines | ~250 lines | **50% reduction** |
|
|
233
|
-
| Maintenance burden | High | Low | Easier to change colors |
|
|
234
|
-
| New theme creation | 500 lines | 50 lines | **90% faster** |
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Risk Assessment
|
|
239
|
-
|
|
240
|
-
### Low Risk
|
|
241
|
-
|
|
242
|
-
- ✅ No breaking changes to public API
|
|
243
|
-
- ✅ Component variables stay the same
|
|
244
|
-
- ✅ Only internal implementation changes
|
|
245
|
-
|
|
246
|
-
### Medium Risk
|
|
247
|
-
|
|
248
|
-
- ⚠️ Browser compatibility (`oklch(from ...)` requires modern browsers)
|
|
249
|
-
- ⚠️ Visual testing needed to catch subtle color shifts
|
|
250
|
-
|
|
251
|
-
### Mitigation
|
|
252
|
-
|
|
253
|
-
- Provide fallback for older browsers using explicit OKLCH values
|
|
254
|
-
- Run full visual regression suite on all 3 themes
|
|
255
|
-
- Document browser requirements in README
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
## File Structure
|
|
260
|
-
|
|
261
|
-
```
|
|
262
|
-
src/styles/
|
|
263
|
-
├── primitives.css # NEW - Primitive color tokens
|
|
264
|
-
├── themes/
|
|
265
|
-
│ ├── glass.css # MODIFIED - Semantic tokens + component vars
|
|
266
|
-
│ ├── light.css # MODIFIED - Semantic tokens + component vars
|
|
267
|
-
│ └── aurora.css # MODIFIED - Semantic tokens + component vars
|
|
268
|
-
└── utilities/
|
|
269
|
-
└── glass-effects.css # Existing blur/backdrop utilities
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
---
|
|
273
|
-
|
|
274
|
-
## Example: Before & After
|
|
275
|
-
|
|
276
|
-
### BEFORE (glass.css - current)
|
|
277
|
-
|
|
278
|
-
```css
|
|
279
|
-
/* 33+ duplicates of this color */
|
|
280
|
-
--btn-primary-bg: linear-gradient(135deg, oklch(66.6% 0.159 303), oklch(62.7% 0.159 291));
|
|
281
|
-
--btn-primary-glow: 0 0 30px oklch(66.6% 0.159 303 / 0.6);
|
|
282
|
-
--checkbox-checked-bg: oklch(66.6% 0.159 303);
|
|
283
|
-
--tab-active-bg: oklch(66.6% 0.159 303 / 0.2);
|
|
284
|
-
--stepper-step-completed-bg: oklch(66.6% 0.159 303);
|
|
285
|
-
--modal-glow: 0 0 60px oklch(66.6% 0.159 303 / 0.35);
|
|
286
|
-
--slider-thumb-border: oklch(66.6% 0.159 303);
|
|
287
|
-
/* ... 26 more uses ... */
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
### AFTER (glass.css - refactored)
|
|
291
|
-
|
|
292
|
-
```css
|
|
293
|
-
/* Semantic tokens (once) */
|
|
294
|
-
--semantic-primary: var(--primitive-purple-500);
|
|
295
|
-
--semantic-primary-muted: oklch(from var(--semantic-primary) l c h / 0.3);
|
|
296
|
-
--semantic-primary-subtle: oklch(from var(--semantic-primary) l c h / 0.2);
|
|
297
|
-
|
|
298
|
-
/* Component variables (reference semantic tokens) */
|
|
299
|
-
--btn-primary-bg: linear-gradient(135deg, var(--semantic-primary), var(--semantic-secondary));
|
|
300
|
-
--btn-primary-glow: 0 0 30px var(--semantic-primary-glow);
|
|
301
|
-
--checkbox-checked-bg: var(--semantic-primary);
|
|
302
|
-
--tab-active-bg: var(--semantic-primary-subtle);
|
|
303
|
-
--stepper-step-completed-bg: var(--semantic-primary);
|
|
304
|
-
--modal-glow: 0 0 60px var(--semantic-primary-glow);
|
|
305
|
-
--slider-thumb-border: var(--semantic-primary);
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
**Result**: 33 duplicates → 1 definition, 32 references
|
|
309
|
-
|
|
310
|
-
---
|
|
311
|
-
|
|
312
|
-
## Next Steps
|
|
313
|
-
|
|
314
|
-
1. **Review & Approve** this plan
|
|
315
|
-
2. **Create primitives.css** with all base tokens
|
|
316
|
-
3. **Refactor glass.css** (most complex theme)
|
|
317
|
-
4. **Test thoroughly** (visual regression suite)
|
|
318
|
-
5. **Refactor light.css & aurora.css**
|
|
319
|
-
6. **Document** for contributors
|
|
320
|
-
|
|
321
|
-
---
|
|
322
|
-
|
|
323
|
-
## Open Questions
|
|
324
|
-
|
|
325
|
-
1. Should we use `oklch(from ...)` syntax or define explicit alpha variants?
|
|
326
|
-
- **Recommendation**: Use explicit variants for better browser support
|
|
327
|
-
2. Keep `--color-*` tokens or rename to `--semantic-*`?
|
|
328
|
-
- **Recommendation**: Rename to `--semantic-*` for clarity
|
|
329
|
-
3. Should primitives.css be imported automatically or manually?
|
|
330
|
-
- **Recommendation**: Import in main glass-theme.css for automatic inclusion
|