Terminal Theme Showcase
Welcome to the Terminal Theme Showcase! This post demonstrates all the powerful features and capabilities of our Next.js terminal-themed blog system.
This showcase covers typography, code blocks, components, styling, and interactive elements that make this terminal theme unique.
Typography & Headings
The terminal theme uses Fira Code monospace font for that authentic terminal feel.
Level 3 Heading
Level 4 Heading
Level 5 Heading
Level 6 Heading
Text Formatting
Here's how different text formatting looks in our terminal theme:
- Bold text for emphasis
- Italic text for subtle emphasis
inline codewith terminal stylingStrikethrough textfor corrections- Links with terminal hover effects
Code Blocks & Syntax Highlighting
JavaScript/TypeScript
interface TerminalCommand {
command: string
output: string
timestamp: Date
}
class Terminal {
private history: TerminalCommand[] = []
execute(command: string): string {
const output = this.processCommand(command)
this.history.push({
command,
output,
timestamp: new Date()
})
return output
}
private processCommand(cmd: string): string {
switch (cmd.toLowerCase()) {
case 'help':
return 'Available commands: help, clear, ls, pwd'
case 'clear':
this.history = []
return 'Terminal cleared'
case 'ls':
return 'posts/ components/ lib/ public/'
case 'pwd':
return '/home/user/terminal-blog'
default:
return `Command not found: ${cmd}`
}
}
}
export default Terminal
Python
#!/usr/bin/env python3
class TerminalTheme:
def __init__(self):
self.colors = {
'green': '#00ff41',
'blue': '#66d9ef',
'yellow': '#e6db74',
'red': '#f92672',
'purple': '#ae81ff'
}
def render_prompt(self, user='user', path='~'):
return f"{user}@terminal:{path}$ "
def colorize(self, text, color):
if color in self.colors:
return f"\033[38;2;{self.hex_to_rgb(self.colors[color])}m{text}\033[0m"
return text
def hex_to_rgb(self, hex_color):
hex_color = hex_color.lstrip('#')
return ';'.join(str(int(hex_color[i:i+2], 16)) for i in (0, 2, 4))
# Usage
theme = TerminalTheme()
print(theme.render_prompt('dev', '/projects/blog'))
Bash/Shell Commands
#!/bin/bash
# Terminal Theme Setup Script
echo "Setting up Terminal Theme..."
# Install dependencies
npm install next-mdx-remote
npm install @types/mdx
# Create directory structure
mkdir -p content/posts
mkdir -p src/components
mkdir -p public/images
# Set permissions
chmod +x scripts/*.sh
echo "✅ Terminal theme setup complete!"
echo "Run 'npm run dev' to start the development server"
JSON Configuration
{
"theme": {
"name": "terminal",
"version": "1.0.0",
"colors": {
"primary": "#00ff41",
"secondary": "#ffa86a",
"background": "#1d1e20",
"foreground": "#c9c9c9"
},
"fonts": {
"primary": "Fira Code",
"fallback": ["SF Mono", "Monaco", "monospace"]
},
"features": {
"syntaxHighlighting": true,
"codeBlocks": true,
"terminalPrompt": true,
"blinkingCursor": true
}
}
}
Terminal Commands & Prompts
You can style text to look like terminal commands:
$ cd /projects/terminal-blog
$ npm run dev
> terminal-theme-nextjs@0.1.0 dev
> next dev --turbopack
▲ Next.js 15.5.4
- Local: http://localhost:3000
- Environments: .env.local
✓ Starting...
✓ Ready in 2.1s
Callout Components
This is an informational callout with terminal styling.
Great! Your terminal theme is working perfectly.
Be careful when modifying core terminal configurations.
Command not found. Check your syntax and try again.
Lists & Organization
Unordered Lists
- Terminal emulation features
- Syntax highlighting
- Responsive design
- SEO optimization
- Meta tags
- Open Graph
- Twitter Cards
- Performance optimized
- Static generation
- Image optimization
- Code splitting
Ordered Lists
- Setup - Install dependencies and configure
- Development - Write content and customize
- Build - Generate static site
- Deploy - Publish to your hosting platform
Task Lists
- Terminal theme implementation
- MDX content support
- Syntax highlighting
- Responsive design
- Dark/light mode toggle
- Search functionality
- Comment system
Blockquotes
"The terminal is not just a tool, it's a way of thinking about computing that emphasizes directness, efficiency, and power."
— Terminal Philosophy
Pro Tip: Use the terminal theme to create documentation, tutorials, and technical blogs that feel authentic to developers.
Tables
| Feature | Status | Description |
|---|---|---|
| MDX Support | ✅ | Full React component support |
| Syntax Highlighting | ✅ | Multiple language support |
| Terminal Styling | ✅ | Authentic terminal aesthetics |
| Responsive Design | ✅ | Mobile-first approach |
| SEO Optimized | ✅ | Meta tags and structured data |
| Performance | ✅ | Static generation + optimization |
Images & Media
Mathematical Expressions
The terminal theme supports mathematical expressions:
Inline math: E = mc²
Interactive Elements
Code with Copy Functionality
// This code block includes a copy button
function greetTerminal() {
console.log('Hello from the terminal! 🖥️')
console.log('Welcome to the future of blogging')
}
greetTerminal()
Advanced Features
Custom Components
The terminal theme supports custom React components within MDX content.
YouTube Embeds
Performance Metrics
interface PerformanceMetrics {
buildTime: string
bundleSize: string
lighthouse: {
performance: number
accessibility: number
bestPractices: number
seo: number
}
}
const metrics: PerformanceMetrics = {
buildTime: "< 30s",
bundleSize: "< 100KB",
lighthouse: {
performance: 100,
accessibility: 100,
bestPractices: 100,
seo: 100
}
}
Terminal Art
████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
████████╗██╗ ██╗███████╗███╗ ███╗███████╗ ╚══██╔══╝██║ ██║██╔════╝████╗ ████║██╔════╝ ██║ ███████║█████╗ ██╔████╔██║█████╗ ██║ ██╔══██║██╔══╝ ██║╚██╔╝██║██╔══╝ ██║ ██║ ██║███████╗██║ ╚═╝ ██║███████╗ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝
Conclusion
You've now seen all the powerful features of the Terminal Theme! From syntax highlighting to interactive components, this theme provides everything you need for a modern, developer-focused blog.
What's Next?
- Customize - Modify colors, fonts, and layouts
- Extend - Add new components and features
- Deploy - Share your terminal-themed blog with the world
- Contribute - Help improve the theme for everyone
$ git add .
$ git commit -m "feat: terminal theme showcase complete"
$ git push origin main
$ echo "Happy coding! 🚀"
This showcase demonstrates the full capabilities of the Terminal Theme. Feel free to use this as a reference for creating your own content!