Style Guide

A collection of reusable UI components built with Tailwind CSS, Stimulus, and ViewComponents.

Buttons

Types

Sizes

Cards

Simple Card

This is a basic card component with just a title and body content.

Custom Header

Active
Cards can have custom headers and footers using slots.

Forms & Inputs

Input Component

Must be unique

Please enter a valid email address

Form Layout

Full form with sections, file upload, checkboxes, and radio buttons. Dark mode ready.

Profile

This information will be displayed publicly so be careful what you share.

workcation.com/

Write a few sentences about yourself.

or drag and drop

PNG, JPG, GIF up to 10MB

Personal Information

Use a permanent address where you can receive mail.

Notifications

We'll always let you know about important changes, but you pick what else you want to hear about.

By email

Get notified when someones posts a comment on a posting.

Get notified when a candidate applies for a job.

Get notified when a candidate accepts or rejects an offer.

Push notifications

These are delivered via SMS to your mobile phone.

Tables

ID Name Email Role Actions
1 Alice Johnson alice@example.com Admin
2 Bob Smith bob@example.com Editor
3 Charlie Brown charlie@example.com Viewer

Interactive Elements (Stimulus)

UI Blocks

Application Shell (Sidebar Layout)

A complete application layout with mobile-ready sidebar using @tailwindplus/elements. Supports dark mode, a profile slot for the desktop sidebar footer, and a user_menu slot for the mobile top bar.

Slots:

  • sidebar_content — navigation rendered inside both the mobile off-canvas and desktop sidebar
  • profile — user profile link pinned to the bottom of the desktop sidebar
  • user_menu — avatar/menu shown in the mobile top bar

Options: position: :fixed (default) or position: :absolute for embedded demos

Show Page

Description List

Use UI::DescriptionListComponent to display record details in a structured label/value layout with dark mode support.

Applicant Information

Personal details and application.

Full name
Margot Foster
Application for
Backend Developer
Email address
margotfoster@example.com
Salary expectation
$120,000
About
Fugiat ipsum ipsum deserunt culpa aute sint do nostrud anim incididunt cillum culpa consequat. Excepteur qui ipsum aliquip consequat sint. Sit id mollit nulla mollit nostrud in ea officia proident. Irure nostrud pariatur mollit ad adipisicing reprehenderit deserunt qui eu.
Attachments
  • resume_back_end_developer.pdf 2.4mb
  • coverletter_back_end_developer.pdf 4.5mb

Slots:

  • field(label:) — a label/value row; accepts any content block for complex values

Options: title: (required), subtitle: (optional)

Page Layouts

Top Nav Shell

Full-page layout with a horizontal top navigation bar instead of a sidebar. Includes desktop nav links, a user menu, and a collapsible mobile menu via el-disclosure.

Dashboard

Page content goes here

Slots:

  • nav_content — desktop horizontal nav links (border-b-2 active style)
  • mobile_nav_content — mobile disclosure menu content (border-l-4 active style); also shows hamburger button
  • user_menu — right-side actions (notifications, profile dropdown)

Options: title: (optional page heading), id: (default: "top-nav", used to scope the mobile menu toggle)

404

Oops! Page Missing

We couldn’t find the page you were looking for.

Return to Dashboard