Skip to content
Richard Fu edited this page Oct 7, 2026 · 1 revision

Blocky UI Wiki

๐Ÿ“– 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.

๐Ÿš€ Quick Navigation

Getting Started

Examples & Resources

๐ŸŽฏ Project Overview

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.

Key Features

  • ๐Ÿšซ 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

Design Philosophy

  • 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

๐Ÿ—๏ธ Architecture Highlights

Component Structure

Blocky Component
โ”œโ”€โ”€ Wrapper Element (positioning, transforms)
โ”œโ”€โ”€ Main Element (3D styling, gradients)
โ”œโ”€โ”€ Gradient Overlay (pseudo-element)
โ””โ”€โ”€ Content Layer (text, interactive elements)

3D Effect Layers

  1. Base Shadow - Ground shadow for depth (4px offset)
  2. Far Shadow - Extended depth shadow (8px blur)
  3. Inset Highlights - Top highlight and bottom shadow
  4. Hover Transform - Y-axis translate with enhanced shadows

Build Pipeline

  • Rollup - Modern bundling with tree-shaking
  • TypeScript - Full type safety and declarations
  • PostCSS - CSS processing and bundling
  • Multiple Formats - ESM, CJS, UMD outputs

๐Ÿ“ฆ Components Overview

Interactive Components

Display Components

  • 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

Utility Components

  • Error Notifications - Pre-configured error modals
  • Confirmation Dialogs - Yes/No confirmation modals
  • Notifications - Toast-style notifications

๐ŸŽจ Visual Design System

Color Palette

--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 */

3D Depth Effects

  • 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

Typography

  • Titles: Bold, uppercase for headers
  • Body: Clean, readable for content
  • Buttons: Medium weight for actions

๐Ÿš€ Getting Started Fast

  1. Install Package

    npm install blocky-ui-lite
  2. 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!')
    });
  3. Styles Included

    // CSS is automatically imported via 'blocky-ui-lite/styles'
    // No separate link tag needed

๐ŸŽฎ Perfect For Games

  • 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

๐Ÿ’ก Design Decisions

Why Pure CSS?

  • Performance: Hardware-accelerated rendering
  • No Runtime Cost: No JavaScript styling calculations
  • Simplicity: Easy to understand and modify
  • Compatibility: Works everywhere CSS works

Why Zero Dependencies?

  • Bundle Size: Keep your game lightweight
  • Compatibility: Works everywhere JavaScript works
  • Security: No third-party vulnerabilities
  • Simplicity: Less complexity, fewer bugs

Why TypeScript?

  • Developer Experience: IntelliSense and autocomplete
  • Type Safety: Catch errors at compile time
  • Documentation: Types serve as inline docs
  • Refactoring: Safe code changes

๐Ÿ”— Quick Links

๐Ÿ“š Next Steps

  1. New to the library? Start with Installation & Setup
  2. Want to see code? Check out Complete Examples
  3. Need API details? Read Component Reference
  4. Having issues? See Troubleshooting

Built for gaming. Designed with 3D depth. ๐ŸŽฎ

This wiki is maintained by the Blocky UI community. Contributions welcome!