Metadata-Version: 2.4
Name: hijri-tui
Version: 0.1.0
Summary: ☪ Terminal UI for the Islamic Hijri calendar with lunar phases, Sunnah fasting days, and holy days in Dracula theme.
Author: postsonde
License: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/postsonde/hijri-tui
Project-URL: Repository, https://github.com/postsonde/hijri-tui
Project-URL: Issues, https://github.com/postsonde/hijri-tui/issues
Keywords: hijri,islamic-calendar,tui,textual,dracula,terminal,aladhan
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: textual>=0.80.0
Dynamic: license-file

# ☪ hijri-tui

**Terminal UI for the Islamic Hijri calendar  🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘 with lunar phases, Sunnah fasting days, and holy days — styled in the Dracula dark theme.**

Powered by [Textual](https://textualize.io) and the [AlAdhan Islamic Calendar API](https://aladhan.com).

---

<p align="center">
  <img src="screenshot_hijri.gif" alt="Hijra Terminal Suite Demo" width="85%" />
</p>

---

## ✨ Features

- **Native Hijri Calendar Grid:** Months start on the 1st of the Hijri month and follow the Islamic week (`Al-Ahad` to `Al-Sabt`).
- **Daily Lunar Phases:** Displays the corresponding moon phase (`🌑` to `🌘`) for every day of the lunar cycle.
- **Color-Coded Highlights (Dracula Theme):**
  - 🟧 **Today:** Highlighted with a double orange border (`#FFB86C`).
  - 🟩 **Official Holy Days:** Highlighted in green (`#50FA7B`) with highest priority.
  - 🟨 **Ayyam al-Bid (13th, 14th & 15th):** Highlighted in soft yellow (`#F1FA8C`).
  - 🟦 **Sunnah Fasting Days (Al-Athnayn & Al-Khamees):** Highlighted in cyan (`#8BE9FD`).
  - 🟪 **Jumu'ah (Friday):** Highlighted in purple (`#BD93F9`).
- **Live Day Details Sidebar:** Shows Hijri date (English & Arabic), Gregorian date, lunar phase name, and fasting/holiday notes while navigating.
- **Gregorian Overlay Toggle:** Press `g` anytime to toggle Gregorian dates and weekday labels on the calendar tiles.

---

## 📦 Installation

### From Source (Editable / Local)

```bash
pipx install git+https://github.com/postsonde/hijri-tui.git
```

### Run

```bash
hijri
```

---

## ⌨️ Keybindings

| Key | Action |
| :--- | :--- |
| `←` `→` `↑` `↓` | Navigate across days in the calendar grid |
| `n` | Next Hijri month |
| `p` | Previous Hijri month |
| `t` | Jump back to today's Hijri date |
| `g` | Toggle Gregorian dates & weekday names |
| `Ctrl+P` | Open Textual command palette |
| `q` | Quit application |

---

## 🙏 Credits

- Calendar & Hijri conversion data provided by the [AlAdhan API](https://aladhan.com).
- Color palette based on the [Dracula Theme](https://draculatheme.com).

---

## 📄 License

This project is licensed under the **GNU General Public License v3.0 (GPLv3)** — see the [LICENSE](LICENSE) file for details.

---

## ☪ Islamic Terminal Suite (Dracula Theme)

A minimalist suite of Islamic terminal applications built with Python & [Textual](https://textualize.io), styled in the [Dracula](https://draculatheme.com) dark theme.

<p align="center">
  <img src="islamic-tui-suite.gif" alt="Islamic Terminal Suite Demo" width="85%" />
</p>

| App | Command | Description |
| :--- | :--- | :--- |
| **[salah-tui](https://github.com/postsonde/salah-tui.git)** | `salah` | Islamic prayer times mapping the sun path on the horizon, Hijri date & calculation methods |
| **[hijri-tui](https://github.com/postsonde/hijri-tui.git)** | `hijri` | Native Hijri calendar with lunar phases, Sunnah fasting & holy days |
| **[quran-tui](https://github.com/postsonde/quran-tui.git)** | `quran` | Study the Holy Quran with 100+ translations, side-by-side view & bookmarks |
| **[asma-tui](https://github.com/postsonde/asma-tui.git)** | `asma` | Learn the 99 Names of Allah with flashcards, streak quiz & directory |
