JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BJJ Belt Hierarchy Display - All Elements Complete</title>
    <style>
        /* Container Styling */
        .belt-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 30px;
            background-color: #1e1e1e;
            font-family: Arial, sans-serif;
            align-items: center;
        }

        /* Base Belt Layout */
        .bjj-belt {
            position: relative;
            display: flex;
            align-items: center;
            width: 450px;
            height: 45px;
            border-radius: 4px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.15);
            box-sizing: border-box;
            overflow: hidden;
            border-style: solid;
            border-width: 1px;
        }

        /* Realistic Belt Texture Stitching lines */
        .bjj-belt::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(rgba(0,0,0,0.05) 50%, rgba(255,255,255,0.05) 50%);
            background-size: 100% 6px;
            pointer-events: none;
            z-index: 3;
        }

        /* Label Styling - Positioned out to the left of the belt */
        .belt-label {
            position: absolute;
            left: -320px; 
            color: #fff;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 14px;
            letter-spacing: 1px;
            width: 300px;
            text-align: right; 
            top: 50%;
            transform: translateY(-50%);
        }

        /* Base Rank Colors & Matching Custom Colored Borders */
        .white-belt       ...

JavaScript

tailwind.config = {
  /* Tailwind CSS config */
}