JSFiddle - React, Tailwind, and code Playground

by JoshGough

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Eagle Playbook Designer</title>
    <style>
        :root {
            --primary: #2563eb;
            --danger: #dc2626;
            --bg: #1e293b;
            --panel: #334155;
            --text: #f8fafc;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0;
            padding: 20px;
            height: 100vh;
            overflow: hidden;
            user-select: none;
        }

        .toolbar {
            background: var(--panel);
            padding: 10px;
            border-radius: 8px;
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            justify-content: center;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
            z-index: 10;
        }

        button, .file-btn {
            background-color: #475569;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        button:hover, .file-btn:hover { background-color: #64748b; }
        button:active { transform: translateY(1px); }
        
        button.primary { background-color: var(--primary); }
        button.primary:hover { background-color: #1d4ed8; }

        /* Hide the actual input, style the label */
       ...