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 Pro</title>
    <style>
        :root {
            --primary: #2563eb;
            --danger: #ef4444;
            --bg: #0f172a;
            --panel: #1e293b;
            --text: #f8fafc;
            --accent: #facc15;
        }

        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: 10px;
            min-height: 100vh;
            /* Allow scrolling on body if content gets tall, but prevent it on canvas */
            overflow-x: hidden; 
            user-select: none;
        }

        .toolbar {
            background: var(--panel);
            padding: 12px;
            border-radius: 12px;
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 1000px;
            border: 1px solid #334155;
            box-sizing: border-box;
        }

        .control-group {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,0,0,0.3);
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #334155;
            flex-wrap: wrap;
            justify-content: center;
        }

        .counter-badge {
            font-size: 0.75rem;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
           ...