This page demonstrates all the available themes in the blog. Use the theme switcher in the header to try different themes!
Here are some code examples to see how syntax highlighting looks with different themes:
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
const result = fibonacci(10);
console.log(`Fibonacci of 10 is: ${result}`);
Try switching to the Hacker theme to see the black background with green text and monospace font:
# This should have a black background with green text in hacker theme
echo "Hello, World!"
ls -la
cd /home/user
def quicksort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quicksort(left) + middle + quicksort(right)
# Example usage
numbers = [3, 6, 8, 10, 1, 2, 1]
sorted_numbers = quicksort(numbers)
print(f"Sorted: {sorted_numbers}")
.theme-switcher {
position: relative;
display: inline-block;
}
.theme-switcher button {
background: var(--background);
color: var(--foreground);
border: 1px solid var(--border);
padding: 0.5rem 1rem;
border-radius: 0.375rem;
cursor: pointer;
transition: all 0.2s ease;
}
.theme-switcher button:hover {
background: var(--muted);
}
The following themes are available:
Try switching between themes using the theme switcher in the header to see how the entire blog adapts to your chosen theme!