TricklAI Theme Guide

Reusable styling for all your micro apps

Quick Start Template

Copy this complete page template to get started with the TricklAI theme:

import React from "react";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import { Link } from "react-router-dom";
import { createPageUrl } from "@/utils";

export default function MyDashboardPage() {
  return (
    <>
      <style>{`
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
        * { font-family: 'Inter', sans-serif; }
      `}</style>

      <div className="min-h-screen bg-gradient-to-br from-slate-900 to-slate-800">
        {/* Header */}
        <div className="bg-slate-800/50 backdrop-blur-lg border-b border-slate-700">
          <div className="max-w-7xl mx-auto px-6 py-4">
            <div className="flex items-center justify-between">
              <h1 className="text-2xl font-bold text-white">My Dashboard</h1>
              <Button variant="outline" className="bg-slate-700 text-slate-300 border-slate-600">
                Action
              </Button>
            </div>
          </div>
        </div>

        {/* Main Content */}
        <div className="max-w-7xl mx-auto px-6 py-8">
          {/* Stats Grid */}
          <div className="grid md:grid-cols-3 gap-6 mb-8">
            <Card className="bg-slate-800/50 border-slate-700">
              <CardHeader>
                <CardTitle className="text-sm text-slate-400">Total Items</CardTitle>
              </CardHeader>
              <CardContent>
                <div className="text-3xl font-bold text-white">123</div>
              </CardContent>
            </Card>
          </div>

          {/* Main Card */}
          <Card className="bg-slate-800/50 border-slate-700">
            <CardHeader>
              <CardTitle className="text-white">Card Title</CardTitle>
            </CardHeader>
            <CardContent>
              <p className="text-slate-300 mb-4">Your content here</p>
              <Button className="bg-gradient-to-r from-purple-500 to-blue-500 hover:from-purple-600 hover:to-blue-600 text-white">
                Primary Action
              </Button>
            </CardContent>
          </Card>
        </div>
      </div>
    </>
  );
}
Color Palette

Background Gradient

bg-gradient-to-br from-slate-900 to-slate-800

Card Background

bg-slate-800/50 border-slate-700

Input Background

bg-slate-700/50 border-slate-600

Primary Gradient

bg-gradient-to-r from-purple-500 to-blue-500

Accent Gradient

bg-gradient-to-br from-purple-900/30 to-blue-900/30
Typography

Primary heading text

text-white font-bold

Secondary description text

text-slate-300

Muted helper text

text-slate-400 text-sm

Success message

text-green-400

Error message

text-red-400
Component Examples

Buttons

className="bg-gradient-to-r from-purple-500 to-blue-500"

Badges

Active
Inactive
Info
Warning

Form Inputs

className="bg-slate-700/50 text-white border-slate-600"
Font Import

Add this to the top of every page:

<style>{`
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
  * { font-family: 'Inter', sans-serif; }
`}</style>