Dark Theme Test Page
This page tests all the dark theme styling elements.
Typography Tests
Headings
The headings should be in serif font (Georgia, Times New Roman) and in bold.
Here’s an example: This paragraph uses sans-serif font for body text.
Bold text and italic text should both work properly with the dark theme.
Links Test
Here are some links to test the underline styling:
Links should have:
- Visible underlines
- Blue color (#63c0f5)
- Hover effects
Code Tests
Inline Code
Here’s some inline code: jenv_prompt_info should have a different background color and monospace font.
Other examples: const variable = "value", import React from 'react', pip install tensorflow
Code Blocks with Syntax Highlighting
Here’s a Python example:
1
2
3
4
5
6
7
8
9
10
11
# This is a comment in Python
def calculate_sum(a, b):
"""Calculate the sum of two numbers."""
result = a + b # Addition
return result
# Main execution
if __name__ == "__main__":
x = 10
y = 20
print(f"The sum is: {calculate_sum(x, y)}")
Here’s a JavaScript example:
1
2
3
4
5
6
7
8
9
// This is a comment
const greet = (name) => {
const message = `Hello, ${name}!`;
console.log(message);
return message;
};
// Call the function
greet("World");
Here’s a YAML configuration:
1
2
3
4
5
6
7
8
9
10
11
# Configuration file
Platform: GitHub Pages
Generator: Jekyll
Theme: Hacker (dark, terminal-style)
Editor: Draft (local markdown editor)
Workflow: Write locally → Push to GitHub → Auto-deploy
settings:
background: "#2d3338"
text_color: "#e8e6e3"
enable_line_numbers: true
Here’s a Ruby example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Ruby class example
class Calculator
attr_reader :result
def initialize
@result = 0
end
# Add two numbers
def add(a, b)
@result = a + b
puts "Result: #{@result}"
@result
end
end
# Create instance and use it
calc = Calculator.new
calc.add(15, 25)
Code Block Requirements
Code blocks should have:
- Line numbers on the left side (gray colored)
- Syntax highlighting with colors:
- Comments in blue
- Strings in yellow/green
- Keywords in purple/magenta
- Numbers in orange
- Monospace font
- Dark background (#1e2327)
List Tests
Unordered Lists
- First item
- Second item
- Nested item 1
- Nested item 2
- Third item
Ordered Lists
- First step
- Second step
- Third step
- Sub-step A
- Sub-step B
- Fourth step
Blockquote Test
This is a blockquote. It should have a border on the left side and slightly different text color.
Multiple paragraphs are supported.
Table Test
| Feature | Status | Color Code |
|---|---|---|
| Dark background | ✅ | #2d3338 |
| Light text | ✅ | #e8e6e3 |
| Link underlines | ✅ | Visible |
| Syntax highlighting | ✅ | Colored |
| Line numbers | ✅ | Enabled |
Horizontal Rule
Color Palette Reference
The dark theme uses these colors:
- Background:
#2d3338(very dark gray, almost black) - Text:
#e8e6e3(off-white/light gray) - Code background:
#1e2327(even darker) - Links:
#63c0f5(blue) - Comments:
#5c9ccc(light blue) - Strings:
#98c379(green) - Keywords:
#c678dd(purple) - Numbers:
#d19a66(orange) - Functions:
#61afef(bright blue)
Final Notes
This test page verifies:
- ✅ Very dark background (#2d3338)
- ✅ Off-white text (#e8e6e3)
- ✅ Visible link underlines
- ✅ Inline code styling
- ✅ Code blocks with line numbers
- ✅ Syntax highlighting
- ✅ Serif fonts for headings
- ✅ Sans-serif fonts for body text
- ✅ No sidebar (clean layout)
Happy coding! 🚀