Canvas Design System
Main Site Tokens

Component Library

Production-ready PHP components for building consistent UI across Workshopr apps. Import the helpers file and use simple function calls.

Quick Start

Include the helpers file to get access to all component functions.

<?php
// In your page file
require_once 'includes/components/helpers.php';

// In header.php, add the CSS
<link rel="stylesheet" href="/includes/components/components.css">

All Components

Click a component to view full documentation, variants, and code examples.

web_stories Banner

Full-width announcements and promotions

label Badge

Labels, status, categories, counts

smart_button Button

Actions, links, form submissions

text_fields Input

Text, email, password, textarea fields

arrow_drop_down_circle Select

Dropdown select fields

crop_portrait Card

Content containers with variants

account_circle Avatar

User images with initials fallback

picture_in_picture Modal

Dialogs, drawers, bottom sheets

tab Tabs

Tab navigation for content panels

notifications Toast

Notification feedback messages

help_outline Tooltip

Contextual info on hover/focus

expand_more Accordion

Collapsible content panels

linear_scale Progress

Progress bars and loading states

warning Alert

Banners, warnings, status messages

hourglass_empty Skeleton

Loading placeholders

title Section Header

Page/section titles with subtitles

featured_play_list Feature Card

Icon + title + description cards

tag Stat

Metric displays and stat groups

checklist Checklist

Icon-prefixed feature lists

inbox Empty State

Placeholders for empty content

chevron_right Breadcrumb

Navigation trails

web Hero

Full-width hero with title, actions, stats

view_agenda Listing Card

Content library card for listings

input Form Row

Form field wrapper with label, helper, error

menu Navigation

App switcher and user menu patterns

sell Chip Input

Email/tag input with add/remove chips

grid_view Radio Card Group

Card-style radio selector grid

toggle_on Checkbox Card Group

Toggle switch list with icons

recommend Suggestion Card

Activity recommendation with add button

call_to_action Modal Footer

Standardized modal button layout

label_important Activity Badge

Type-colored badge (exercise/icebreaker/break)

check_circle Results Overlay

Animated results panel for operation outcomes

File Reference

All component library files in one place.

File Purpose
includes/components/helpers.php Helper functions (ws_badge, ws_button, ws_input, ws_avatar, ws_modal, etc.)
includes/components/components.css All component styles
includes/components/components.js Modal and interactive component JavaScript