Repository navigation
Home
Richard Fu edited this page Oct 7, 2026
·
1 revision
๐ The most up-to-date documentation lives at furic.github.io/blocky-ui/docs. This wiki covers v1.0.5.
Welcome to the Blocky UI comprehensive documentation wiki! This is your complete guide to understanding, implementing, and extending the lightweight, 3D blocky-themed UI component library.
- Installation & Setup - Get up and running quickly
- Component Reference - Complete API documentation for all components
- Architecture Overview - Understanding the system design
- Complete Examples - Real-world implementation examples
- Troubleshooting - Common issues and solutions
- Live Demo - Interactive component showcase
Blocky UI is a lightweight, zero-dependency TypeScript UI component library designed for 3D blocky-themed interfaces. Built specifically for games and interactive applications that need casino-game-style UI with distinctive 3D depth effects.
- ๐ซ Zero Dependencies: Pure TypeScript/JavaScript + CSS
- ๐จ Pure CSS Effects: Multi-layer box shadows for 3D depth
- โก Smooth Animations: 3D hover effects and transitions
- ๐ฑ Responsive: Mobile-first responsive design
- ๐ฎ Game-Ready: Optimized for interactive applications
- ๐ง TypeScript: Full type safety and IntelliSense
- Simplicity First: Easy to use, minimal API surface
- Performance Focused: Pure CSS for maximum performance
- Modular Architecture: Use only what you need
- Casino Game Aesthetic: Inspired by in-game multiplier tags
Blocky Component
โโโ Wrapper Element (positioning, transforms)
โโโ Main Element (3D styling, gradients)
โโโ Gradient Overlay (pseudo-element)
โโโ Content Layer (text, interactive elements)
- Base Shadow - Ground shadow for depth (4px offset)
- Far Shadow - Extended depth shadow (8px blur)
- Inset Highlights - Top highlight and bottom shadow
- Hover Transform - Y-axis translate with enhanced shadows
- Rollup - Modern bundling with tree-shaking
- TypeScript - Full type safety and declarations
- PostCSS - CSS processing and bundling
- Multiple Formats - ESM, CJS, UMD outputs
- BlockyButton - 4 variants with 3D hover effects
- BlockyDropdown - Theme-aware dropdowns with 4 variants
- BlockyModal - Full-featured modals with backdrop blur
- BlockyCard - Content containers with 3D styling
- BlockyInfo - Overlay popups with 5 color themes
- BlockyTag - Status tags with gradient styling
- BlockyPage - Full-screen pages with animated gradient borders
- Error Notifications - Pre-configured error modals
- Confirmation Dialogs - Yes/No confirmation modals
- Notifications - Toast-style notifications
--blocky-primary: #55dfff /* Cyan Blue */
--blocky-danger: #ff4444 /* Alert Red */
--blocky-gray: rgb(100, 100, 100) /* Default Gray */
--blocky-secondary: rgb(85, 223, 255) /* Bright Cyan */- Multi-layer Shadows: Creating realistic 3D depth
- Gradient Backgrounds: Multi-stop linear gradients with transparency
- Radial Overlays: Depth through pseudo-elements
- Backdrop Blur: Modern glassmorphism effects
- Titles: Bold, uppercase for headers
- Body: Clean, readable for content
- Buttons: Medium weight for actions
-
Install Package
npm install blocky-ui-lite
-
Import & Use
import { BlockyUI } from 'blocky-ui-lite'; import 'blocky-ui-lite/styles'; const button = BlockyUI.createButton({ text: 'Launch Sequence', variant: 'primary', onClick: () => console.log('Launched!') });
-
Styles Included
// CSS is automatically imported via 'blocky-ui-lite/styles' // No separate link tag needed
- No Framework Lock-in: Works with any engine
- Performance Optimized: Pure CSS for 60fps animations
- Memory Efficient: Minimal memory footprint
- Event-Driven: Clean event handling
- Responsive: Adapts to different screen sizes
- Performance: Hardware-accelerated rendering
- No Runtime Cost: No JavaScript styling calculations
- Simplicity: Easy to understand and modify
- Compatibility: Works everywhere CSS works
- Bundle Size: Keep your game lightweight
- Compatibility: Works everywhere JavaScript works
- Security: No third-party vulnerabilities
- Simplicity: Less complexity, fewer bugs
- Developer Experience: IntelliSense and autocomplete
- Type Safety: Catch errors at compile time
- Documentation: Types serve as inline docs
- Refactoring: Safe code changes
- New to the library? Start with Installation & Setup
- Want to see code? Check out Complete Examples
- Need API details? Read Component Reference
- Having issues? See Troubleshooting
Built for gaming. Designed with 3D depth. ๐ฎ
This wiki is maintained by the Blocky UI community. Contributions welcome!