A ready-to-use starter template for rapid prototyping of Appian SAIL-style interfaces using React and the Sailwind component library.
Perfect for designers and developers who want to quickly mock up Appian interfaces and iterate with AI assistance!
- π¨ Pre-configured Sailwind Components - All SAIL-style components ready to use
- π Instant Setup - Clone and run with a single command
- πΊοΈ Automatic Routing - Just add files to
/src/pages/and they're automatically routed - π Table of Contents - Built-in navigation for all your prototype pages
- π Example Pages - Three full example pages to learn from
- π Tailwind CSS v4 - Pre-configured and optimized
- π€ LLM-Friendly - Designed to work seamlessly with AI coding assistants
- Click "Use this template" button on GitHub to create a new repository
- Make it private for internal work!
- Download your new repository (or clone if using git)
- Open folder in VS Code (or preferred IDE)
In a terminal, run this command:
npm installThat's it! Everything is pre-configured and ready to go.
Run this command to start the development server:
npm run devOpen http://localhost:5173 to see your prototype!
Tip
Need some extra help getting set up? See the options below for having Kiro help with getting your dev environment working.
sailwind-starter/
βββ src/
β βββ pages/ # Your prototype pages go here!
β β βββ home.tsx
β β βββ task-dashboard.tsx
β β βββ application-status.tsx
β β βββ document-review.tsx
β β βββ not-found.tsx
β βββ App.tsx # Routing configuration
β βββ main.tsx
β βββ index.css
βββ public # Images go here
βββ package.json
βββ README.md
βββ AGENTS.md
Add a new file in src/pages/:
// src/pages/my-prototype.tsx
import { HeadingField, CardLayout, TextField, ButtonWidget } from '@pglevy/sailwind'
import { Link } from 'wouter'
export default function MyPrototype() {
return (
<div className="space-y-6">
<Link href="/" className="text-blue-600 hover:underline">β Back to Home</Link>
<HeadingField text="My Prototype" size="LARGE" />
<CardLayout>
<TextField label="Name" placeholder="Enter your name" />
<ButtonWidget label="Submit" style="PRIMARY" />
</CardLayout>
</div>
)
}Add your page to src/App.tsx:
// Import your page
import MyPrototype from './pages/my-prototype'
// Add to the pages array
const pages = [
{ path: '/', title: 'Home', component: Home },
{ path: '/my-prototype', title: 'My Prototype', component: MyPrototype },
// ... other pages
]That's it! Your page is now accessible at /my-prototype.
Sailwind provides all the SAIL components you need:
CardLayout- Container with card stylingTableOfContents- Automatic navigation
HeadingField- Various heading sizesRichTextDisplayField- Rich text with formattingImageField- Images with sizing optionsStampField- Status stampsMessageBanner- Info, success, warning, error messagesTagField- Tags and labelsProgressBar- Progress indicatorsMilestoneField- Step-by-step progress
TextField- Text input with labelsCheckboxField- CheckboxesRadioButtonField- Radio buttonsDropdownField- Dropdown selectMultipleDropdownField- Multi-select dropdownSwitchField- Toggle switchToggleField- Button toggleSliderField- Numeric slider
ButtonWidget- Buttons with various stylesButtonArrayLayout- Button groupsDialogField- Modal dialogsTabsField- Tabbed content
This starter is optimized for AI-assisted development. Here are some example prompts:
Create a new page called "vendor-registration" that includes:
- A form for vendor information (company name, contact, email)
- Address fields
- A checkbox for terms acceptance
- Submit and cancel buttons
Update the task-dashboard page to show tasks in a table format instead of cards,
with columns for task name, assignee, due date, and priority
Add a search bar to the home page that filters the page list in the
table of contents as you type
This starter includes special features for Kiro IDE and Kiro CLI users:
Pre-configured "sailor" Agent
- Custom agent optimized for Sailwind prototyping
- Includes browser automation tools (Chrome DevTools & Playwright MCP servers)
- Pre-loaded with project context (AGENTS.md, README.md, GIT.md)
- Auto-approved commands for common tasks (
npm run build,npm run dev, etc.) - Located at
.kiro/agents/sailor.json
To use the sailor agent:
kiro-cli --agent sailorDevelopment Environment Setup
- Steering file:
.kiro/steering/SETUP.md- Detailed setup guidance available on request - Kiro Power:
.kiro/powers/setup/POWER.md- Automated setup assistant (install from Powers panel)
Vercel Deployment
- Kiro Power:
.kiro/powers/vercel/POWER.md- Complete guide for deploying prototypes to Vercel - Covers account setup, GitHub/GitLab integration, CLI usage, and secure preview sharing
- Includes Deployment Protection and Shareable Links for controlled access
Git Workflow Guidance
- Designer-friendly git instructions in
.kiro/steering/GIT.md - Automatically included in context when working with git
- Helps with branching, commits, and pull requests
Component Library Reference
AGENTS.md- Comprehensive guide for AI assistants- Includes component usage patterns, common mistakes, and validation requirements
- Automatically loaded by the sailor agent
Steering Files (.kiro/steering/)
AGENTS.md- Component library reference and best practicesGIT.md- Git workflow guidance for designersSETUP.md- Development environment setup instructions
These files provide context to Kiro automatically, making it easier to work with the Sailwind component library and follow project conventions.
Place your images in the /public folder and reference them with relative paths:
public/
βββ images/
β βββ logo.png
β βββ photo.jpg
βββ vite.svg
Reference in your components:
<img src="images/logo.png" alt="Logo" />
<img src="images/photo.jpg" alt="Photo" />Why /public?
- Simple and fast for prototyping
- No imports needed - just drop images and reference them
- Easy to swap images without touching code
- Predictable URLs for dynamic image names
This template uses Tailwind CSS v4 and is already configured to scan Sailwind components for classes.
Add custom styles using Tailwind utility classes:
<div className="p-4 bg-blue-50 rounded-lg shadow">
<HeadingField text="Custom Styled Card" />
</div>See the full SAIL-to-Tailwind mapping in the source Sailwind repo.
- React 19 - Latest React with TypeScript
- Vite - Lightning-fast dev server
- Tailwind CSS v4 - Utility-first styling
- Wouter - Lightweight routing
- Sailwind - Complete SAIL component library
- Radix UI - Accessible component primitives
- Lucide React - Beautiful icons
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Lint code- Sailwind Components: GitHub
- Tailwind CSS: tailwindcss.com
- React: react.dev
- Vite: vite.dev
This is a starter template - feel free to customize it for your needs!
If you have suggestions for improvements, please open an issue or PR on the Sailwind Starter repository.
MIT License - feel free to use this for any project!
This template is designed to get you from idea to interactive prototype as quickly as possible. Just describe what you want to your AI assistant and start building!
Made with π©Έ,π , and π for rapid Appian prototyping