AQIT 0.1.0
Loading...
Searching...
No Matches
theme.py
Go to the documentation of this file.
1# Copyright (c) 2025-present Aquin Labs Private Limited. All Rights Reserved.
2"""Aquin Textual theme — calm dark canvas, one yellow accent."""
3
4from __future__ import annotations
5
6AQUIN_YELLOW = "#facc15"
7AQUIN_MUTED = "#9ca3af"
8AQUIN_SOFT = "#6b7280"
9AQUIN_SURFACE = "#141414"
10AQUIN_PANEL = "#1c1c1c"
11AQUIN_BORDER = "#2a2a2a"
12AQUIN_TEXT = "#e5e7eb"
13AQUIN_OK = "#34d399"
14AQUIN_WARN = "#fbbf24"
15AQUIN_ERR = "#f87171"
17AQUIN_CSS = f"""
18Screen {{
19 background: {AQUIN_SURFACE};
20 color: {AQUIN_TEXT};
21}}
22
23Header {{
24 background: {AQUIN_PANEL};
25 color: {AQUIN_YELLOW};
26 text-style: bold;
27}}
28
29Footer {{
30 background: {AQUIN_PANEL};
31 color: {AQUIN_SOFT};
32}}
33
34#body {{
35 padding: 1 2;
36 height: 1fr;
37}}
38
39.section {{
40 background: {AQUIN_PANEL};
41 border: tall {AQUIN_BORDER};
42 padding: 1 2;
43 margin-bottom: 1;
44 height: auto;
45}}
46
47.section-title {{
48 color: {AQUIN_YELLOW};
49 text-style: bold;
50 margin-bottom: 1;
51}}
52
53.kv {{
54 height: auto;
55 margin-bottom: 0;
56 width: 100%;
57}}
58
59.kv-label {{
60 color: {AQUIN_SOFT};
61 width: 12;
62 min-width: 12;
63}}
64
65.kv-value {{
66 color: {AQUIN_TEXT};
67 width: 1fr;
68}}
69
70.kv-value-ok {{
71 color: {AQUIN_OK};
72 width: 1fr;
73}}
74
75.kv-value-warn {{
76 color: {AQUIN_WARN};
77 width: 1fr;
78}}
79
80.kv-value-muted {{
81 color: {AQUIN_MUTED};
82 width: 1fr;
83}}
84
85.next-line {{
86 color: {AQUIN_MUTED};
87 margin-top: 1;
88 text-align: center;
89}}
90
91.brand {{
92 color: {AQUIN_YELLOW};
93 text-style: bold;
94}}
95"""