lollms-webui/endpoints/docs/lollms_theme/doc.md
Saifeddine ALOUI 0108aef7bd enhanced
2024-09-19 00:26:45 +02:00

1.7 KiB

Lollms theme:

  1. Use Tailwind CSS for styling:
<script src="https://cdn.tailwindcss.com"></script>
  1. Implement a gradient background:
<body class="bg-gradient-to-r from-blue-100 to-purple-100 font-sans">
  1. Create a container with responsive padding:
<div class="container mx-auto px-4 py-8">
  1. Style headers with large, bold text in indigo:
<h1 class="text-4xl font-bold text-indigo-800">Chat with PDFs</h1>
  1. Use white backgrounds with shadow for content areas:
<div class="bg-white shadow-lg rounded-lg p-6 mb-8">
  1. Style buttons with indigo background and hover effects:
<button class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded transition duration-300">
  1. Implement a responsive layout using Flexbox:
<main class="flex flex-col md:flex-row gap-8">
  1. Style input fields with indigo borders and focus effects:
<input type="text" class="border border-indigo-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
  1. Use SVG icons for buttons:
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
    <!-- SVG path data -->
</svg>
  1. Implement a settings popup with a blurred overlay:
<div id="settingsOverlay" class="blurred-overlay"></div>
<div id="settingsPopup" class="settings-popup">
    <!-- Settings content -->
</div>

This style guide focuses on creating a clean, modern interface with a purple-blue color scheme, responsive design, and smooth transitions. It uses Tailwind CSS for rapid styling and incorporates SVG icons for a polished look.