Low Gravitas Zen
A warm, low-blue-light color theme for editors and terminals. Dark and light variants with WCAG AA contrast.
Palette
black
red
green
yellow
blue
magenta
cyan
white
bright-black
bright-red
bright-green
bright-yellow
bright-blue
bright-magenta
bright-cyan
bright-white
bg-deep
bg-mid
bg-raised
selection
cursor
accent
Editor
fibonacci.py
utils.py
1def fibonacci(n: int) -> list[int]:
2 """Generate Fibonacci sequence up to n terms."""
3 if n <= 0:
4 return []
5 sequence = [0, 1]
6 for i in range(2, n):
7 sequence.append(sequence[-1] + sequence[-2])
8 return sequence[:n]
9
10# Print the first 10 Fibonacci numbers
11result = fibonacci(10)
12print(f"Fibonacci: {result}")
api.js
index.js
1// Fetch user data with retry and timeout
2async function fetchUser(userId) {
3 const maxRetries = 3;
4 for (let attempt = 1; attempt <= maxRetries; attempt++) {
5 try {
6 const response = await fetch(`/api/users/${userId}`);
7 if (!response.ok) {
8 throw new Error(`HTTP ${response.status}`);
9 }
10 const { name, email, role } = await response.json();
11 return { name, email, role, active: true };
12 } catch (error) {
13 if (attempt === maxRetries) throw error;
14 await new Promise(r => setTimeout(r, 500 * attempt));
15 }
16 }
17}
Terminal
user@host:~/project$ git status
On branch main
modified: src/fibonacci.py
deleted: old_config.yaml
new file: README.md
user@host:~/project$ echo "Hello, World!"
Hello, World!
On branch main
modified: src/fibonacci.py
deleted: old_config.yaml
new file: README.md
user@host:~/project$ echo "Hello, World!"
Hello, World!