Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Mood Color

Python FastAPI HTMX Tailwind Jinja2 Render

Interactive mood color viewer with instant color updates

Displays mood-themed color cards asynchronously without full page reload.
Randomly selects colors from predefined palettes for each mood.


Endpoints

Path Method Description
/ GET Main page with mood buttons and initial placeholder card
/mood/{mood} GET Returns a new mood card (HTMX partial) with a random color

Features

  • Dynamic mood color cards updated instantly using HTMX
  • Random color selected from a predefined palette per mood
  • Smooth hover animations and responsive design with Tailwind CSS
  • FastAPI backend serving HTML templates with Jinja2
  • Fully asynchronous updates without page reload

Technology Stack

  • Python 3.12
  • FastAPI – lightweight high-performance web framework
  • Jinja2 – template engine for dynamic HTML
  • HTMX – partial updates and dynamic content loading
  • Tailwind CSS – utility-first responsive UI
  • Render.com – zero-config deployment

About

Interactive mood color viewer built with Python, FastAPI, HTMX, and Tailwind CSS

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages