# โก VIBE BRUTALISM 2.0




**A bold, unapologetic, fully accessible neo-brutalist component library**
Vibe Brutalism 2.0 is a complete CSS and JavaScript component library inspired by brutalist architecture and modern design trends. It features thick borders, bold colors, offset shadows, and an uncompromising aesthetic that makes your web projects stand out - while being fully compliant with WCAG 2.1 AA and Section 508 accessibility standards.
---
## ๐ฏ Features
- **๐จ Neo-Brutalist Design** - Bold borders, high contrast, and striking visuals
- **โฟ WCAG 2.1 AA Compliant** - Full accessibility with ARIA labels, keyboard navigation, and screen reader support
- **โ Section 508 Compliant** - Meets federal accessibility requirements
- **๐ฆ Complete Component Library** - 20+ ready-to-use accessible components
- **โก Zero Dependencies** - Just CSS and vanilla JavaScript
- **๐ฑ Fully Responsive** - Works on all devices with hamburger menu
- **โจ๏ธ Keyboard Navigation** - All components support full keyboard control
- **๐ Screen Reader Optimized** - ARIA live regions and proper semantic HTML
- **๐ง Utility-First** - Extensive utility classes like Tailwind
- **๐ Lightweight** - Small file size, fast performance
- **๐ Well Documented** - Comprehensive examples and accessibility guides
---
## โฟ Accessibility Features
Vibe Brutalism 2.0 is built from the ground up with accessibility in mind:
### WCAG 2.1 AA Compliance
- **Color Contrast:** All text meets 4.5:1 contrast ratio for normal text, 3:1 for large text
- **Keyboard Navigation:** Every interactive component is fully accessible via keyboard
- **Focus Management:** Visible focus indicators and proper focus trapping in modals
- **ARIA Attributes:** Proper roles, states, and properties throughout
- **Screen Reader Support:** ARIA live regions for dynamic content
- **Semantic HTML:** Proper use of headings, landmarks, and form labels
### Section 508 Compliance
- Meets all technical standards (ยง 1194.22)
- Fully keyboard accessible
- Text alternatives for non-text content
- Programmatically determinable information
### Keyboard Shortcuts
All components support standard keyboard navigation:
- **Tab/Shift+Tab:** Navigate between interactive elements
- **Enter/Space:** Activate buttons and toggle controls
- **Arrow Keys:** Navigate dropdowns, tabs, accordions, and carousels
- **Escape:** Close modals, dropdowns, and menus
- **Home/End:** Jump to first/last items in lists
---
## ๐ฆ Installation
### Option 1: Download Files
1. Download `vibe-brutalism.css` and `vibe-brutalism.js`
2. Include them in your HTML:
```html
My Accessible Brutalist AppSkip to main content
```
### Option 2: CDN (Coming Soon)
```html
```
---
## ๐ Quick Start
Here's a simple accessible example to get you started:
```html
Vibe Brutalism DemoSkip to main content
Hello, Accessible Brutalism!
My First Card
This is a fully accessible neo-brutalist card component.
```
---
## ๐ Components
### ๐ Responsive Hamburger Navigation
Responsive navbar that automatically converts to a hamburger menu on mobile devices.
```html
```
**Accessibility Features:**
- ARIA labels (aria-expanded, aria-controls)
- ESC key closes menu
- Screen reader announcements
- Focus management
### ๐ Carousel
Accessible carousel for images and cards with keyboard navigation and autoplay control.
```html
Slide Title
Slide description
```
**Accessibility Features:**
- Left/Right arrow keys navigate slides
- Autoplay pauses on hover and focus
- Screen reader announces slide changes
- Proper ARIA labels on all controls
**JavaScript API:**
```javascript
// Access carousel instance
VB.carousels.myCarousel.next();
VB.carousels.myCarousel.prev();
VB.carousels.myCarousel.goTo(2);
VB.carousels.myCarousel.pauseAutoplay();
VB.carousels.myCarousel.startAutoplay();
```
### ๐ Toast Notifications
Accessible toast notifications with automatic dismissal and screen reader support.
```javascript
// Show toast notification
VB.Toast('Operation successful!', 'success', 5000, 'top-right');
// Parameters:
// message: string
// type: 'success' | 'warning' | 'danger' | 'info'
// duration: number (milliseconds, 0 for no auto-dismiss)
// position: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left'
```
**Accessibility Features:**
- ARIA live regions for screen reader announcements
- Keyboard dismissible
- Respects prefers-reduced-motion
- Proper color contrast
### ๐ฎ Snackbar
Brief messages with optional action buttons.
```javascript
// Simple snackbar
VB.Snackbar('Message sent successfully!');
// With action button
VB.Snackbar('Item deleted', 'UNDO', () => {
// Undo action here
console.log('Undo clicked');
}, 5000);
// Parameters:
// message: string
// actionText: string | null
// actionCallback: function | null
// duration: number (milliseconds)
```
**Accessibility Features:**
- ARIA live regions
- Keyboard accessible action buttons
- Focus management
### ๐ Buttons
Buttons come in multiple variants, sizes, and states.
```html
```
### ๐ Cards
Cards are versatile containers with headers, bodies, and footers.
```html
Card Title
Card content goes here.
...
...
...
```
### ๐ Forms
Complete form components with proper labeling and ARIA attributes.
```html
```
### ๐ Tabs
Organize content with keyboard-accessible tabs.
```html
Content for Tab 1
Content for Tab 2
Content for Tab 3
```
**Keyboard Navigation:**
- Arrow Right/Down: Next tab
- Arrow Left/Up: Previous tab
- Home: First tab
- End: Last tab
### ๐ Accordion
Collapsible content panels with full keyboard support.
```html
Content for section 1
Content for section 2
```
**Keyboard Navigation:**
- Arrow Up/Down: Navigate between headers
- Enter/Space: Toggle section
- Home/End: Jump to first/last section
### ๐ช Modals
Accessible modal dialogs with focus trapping.
```html