Style Test - Typography & Components Showcase
A comprehensive test page showcasing all blog content styles, typography, and components with light/dark mode support.
This page demonstrates all available typography styles and components for blog content. Each element is styled using our Tailwind prose configuration with full dark mode support.
Heading Styles
H1: The Largest Heading Style
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
H2: Secondary Heading Style
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
H3: Tertiary Heading Style
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
H4: Quaternary Heading Style
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Text Formatting
This is a regular paragraph with bold text and italic text. You can also use bold italic text for extra emphasis. Here’s some inline code
within a sentence.
Lorem ipsum dolor sit amet, strikethrough text consectetur adipiscing elit. This sentence contains a link to an external site and this is an internal link.
Lists
Unordered List
- First level item one
- First level item two
- Second level item one
- Second level item two
- Third level item one
- Third level item two
- First level item three
Ordered List
- First ordered item
- Second ordered item
- Nested ordered item one
- Nested ordered item two
- Third ordered item
- Fourth ordered item
Mixed Nested List
- First ordered item
- Unordered sub-item
- Another unordered sub-item
- Second ordered item
- Ordered sub-item
- Another ordered sub-item
- Deep nested unordered
- Another deep nested
Task List / Checklist
- Completed task item
- Another completed task
- Uncompleted task item
- Another uncompleted task
- Nested completed task
- Nested uncompleted task
Callouts & Alerts
💡 Tip: This is a tip callout box. Use it to share helpful hints and best practices with your readers. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
⚠️ Warning: This is a warning callout. Use it to alert readers about potential issues or important considerations. Sed do eiusmod tempor incididunt ut labore.
ℹ️ Info: This is an informational callout. Perfect for providing additional context or supplementary information. Ut enim ad minim veniam, quis nostrud.
📝 Note: This is a note callout. Use it for important observations or side notes that complement the main content. Duis aute irure dolor in reprehenderit.
🚨 Critical: This is a critical alert. Use it for urgent security issues or breaking changes. Excepteur sint occaecat cupidatat non proident.
✅ Success: This is a success message. Perfect for confirming completed actions or positive outcomes. Lorem ipsum dolor sit amet.
Custom Alert Boxes
Information
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam.
Success
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Warning
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
Error
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.
Blockquotes
This is a standard blockquote. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
“This is a pull quote with attribution. It stands out from the regular text and draws attention to key insights or memorable statements from the content.”
— Steve Butler, CEO of Late Checkout
Code Blocks
Bash/Shell
# Install dependencies
npm install tailwindcss @tailwindcss/typography
# Build the project
npm run build
# Start development server
npm run dev -- --host 0.0.0.0 --port 3000
TypeScript
interface BlogPost {
id: string;
title: string;
excerpt: string;
publishDate: Date;
tags: string[];
author: Author;
}
export const getLatestPosts = async (limit: number = 10): Promise<BlogPost[]> => {
const posts = await fetchPosts();
return posts
.sort((a, b) => b.publishDate.getTime() - a.publishDate.getTime())
.slice(0, limit);
};
Diff
- const oldFunction = () => {
- console.log('This is the old code');
- };
+ const newFunction = () => {
+ console.log('This is the new improved code');
+ return true;
+ };
JSON
{
"name": "style-test",
"version": "1.0.0",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview"
},
"dependencies": {
"astro": "^4.0.0",
"tailwindcss": "^3.4.0"
}
}
Keyboard Shortcuts
Use keyboard shortcuts like Cmd + K to open the command palette, or Ctrl + Shift + P on Windows.
Common shortcuts:
- Save: Cmd + S
- Copy: Cmd + C
- Paste: Cmd + V
- Undo: Cmd + Z
Tables
Feature | Basic | Pro | Enterprise |
---|---|---|---|
Users | 1 | 5 | Unlimited |
Storage | 10 GB | 100 GB | 500 GB |
Support | Priority | Dedicated | |
API Access | ❌ | ✅ | ✅ |
Custom Domain | ❌ | ✅ | ✅ |
Price | Free | $19/mo | $99/mo |
Complex Table
Method | Time Complexity | Space Complexity | Use Case |
---|---|---|---|
Bubble Sort | O(n²) | O(1) | Small datasets, teaching |
Quick Sort | O(n log n) | O(log n) | General purpose, in-place |
Merge Sort | O(n log n) | O(n) | Stable sorting, linked lists |
Heap Sort | O(n log n) | O(1) | Memory constrained |
Images
Caption: A stunning mountain landscape showcasing the beauty of nature. Photo by Unsplash.
Video Embed
YouTube Video
Video: Example YouTube embed with responsive 16:9 aspect ratio
Definition List
- API
- Application Programming Interface - A set of rules and protocols for building software applications.
- REST
- Representational State Transfer - An architectural style for designing networked applications.
- GraphQL
- A query language for APIs and runtime for executing those queries with your existing data.
FAQ Section
What is this style test page for?
This page demonstrates all available typography styles and components that can be used in blog posts. It serves as a reference for content creators and developers.
How do I use these components in my blog posts?
Simply use standard Markdown syntax for most elements. For special components like callouts and keyboard shortcuts, use the appropriate HTML or MDX syntax as shown in the examples above.
Does everything work in dark mode?
Yes! All components and typography styles are fully optimized for both light and dark modes. Toggle your system theme to see the difference.
Breadcrumbs
Code Examples with Multiple Languages
Python
import asyncio
from typing import List, Optional
class DataProcessor:
"""Process data with async support."""
def __init__(self, batch_size: int = 100):
self.batch_size = batch_size
self.processed_count = 0
async def process_batch(self, items: List[str]) -> List[dict]:
"""Process a batch of items asynchronously."""
results = []
for item in items:
result = await self._process_item(item)
results.append(result)
self.processed_count += 1
return results
async def _process_item(self, item: str) -> dict:
# Simulate async processing
await asyncio.sleep(0.1)
return {"item": item, "status": "processed"}
# Usage example
async def main():
processor = DataProcessor(batch_size=50)
items = ["item1", "item2", "item3"]
results = await processor.process_batch(items)
print(f"Processed {processor.processed_count} items")
if __name__ == "__main__":
asyncio.run(main())
React Component
import React, { useState, useEffect } from 'react';
import { motion } from 'framer-motion';
const AnimatedCard = ({ title, description, imageUrl }) => {
const [isHovered, setIsHovered] = useState(false);
const [data, setData] = useState(null);
useEffect(() => {
// Fetch additional data when component mounts
fetchCardData(title).then(setData);
}, [title]);
return (
<motion.div
className="card"
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
onHoverStart={() => setIsHovered(true)}
onHoverEnd={() => setIsHovered(false)}
>
<img src={imageUrl} alt={title} className="card-image" />
<div className="card-content">
<h3>{title}</h3>
<p>{description}</p>
{isHovered && data && (
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
className="additional-info"
>
{data.details}
</motion.div>
)}
</div>
</motion.div>
);
};
export default AnimatedCard;
CSS/SCSS
// Modern card component styles
.card {
--card-padding: 1.5rem;
--card-radius: 12px;
--card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
position: relative;
padding: var(--card-padding);
border-radius: var(--card-radius);
background: white;
box-shadow: var(--card-shadow);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
@media (prefers-color-scheme: dark) {
background: #1a1a1a;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}
&:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
.card-image {
transform: scale(1.05);
}
}
&-image {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: calc(var(--card-radius) - 4px);
transition: transform 0.3s ease;
}
&-content {
margin-top: 1rem;
h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
p {
color: var(--text-muted);
line-height: 1.6;
}
}
}
Citations & References
Lorem ipsum dolor sit amet[1], consectetur adipiscing elit. According to Smith et al.[2], the implementation shows significant improvements. The research by Johnson[3] demonstrates that modern approaches yield better results.
References:
- [1] Doe, J. (2024). “Understanding Modern Web Development”. Tech Journal, 15(3), 45-62.
- [2] Smith, A., Brown, B., & Davis, C. (2023). “Performance Optimization Techniques”. Computer Science Review, 8(2), 112-128.
- [3] Johnson, M. (2024). “Future of Frontend Frameworks”. Web Development Quarterly, 22(1), 15-30.
Footnotes
Lorem ipsum dolor sit amet1, consectetur adipiscing elit. Sed do eiusmod tempor incididunt2 ut labore et dolore magna aliqua. Ut enim ad minim veniam3, quis nostrud exercitation ullamco laboris.
Testimonials & Social Proof
John Doe
CEO at TechCorp
“Lorem ipsum dolor sit amet, consectetur adipiscing elit. This product has completely transformed our workflow and increased productivity by 40%.”
Alice Smith
Product Manager at StartupCo
“Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The best investment we’ve made this year!”
File Downloads & Attachments
project-documentation.pdf
2.4 MB • PDF Document
quarterly-report.xlsx
845 KB • Excel Spreadsheet
source-code.zip
15.7 MB • ZIP Archive
Horizontal Rules
The horizontal rules above and below are created with three hyphens (---
).
Abbreviations & Acronyms
Lorem ipsum dolor sit amet, consectetur adipiscing elit. The HTML specification is maintained by the W3C. Modern web development uses APIs extensively for data exchange. Lorem ipsum dolor sit amet, REST and GraphQL are popular choices.
Mermaid Diagrams
Flow Chart
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> E[Fix the issue]
E --> B
C --> F[Deploy]
F --> G[End]
Sequence Diagram
sequenceDiagram
participant U as User
participant C as Client
participant S as Server
participant D as Database
U->>C: Click button
C->>S: HTTP Request
S->>D: Query data
D-->>S: Return results
S-->>C: JSON Response
C-->>U: Update UI
Timeline
Q1 2024 - Project Kickoff
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Initial planning and team formation completed.
Q2 2024 - Development Phase
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Core features implemented.
Q3 2024 - Beta Launch
Ut enim ad minim veniam, quis nostrud exercitation. Public beta testing begins.
Q4 2024 - General Availability
Duis aute irure dolor in reprehenderit. Full product launch planned.
Cards Grid
Feature One
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt.
Feature Two
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
Feature Three
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat.
Tabs Component
Tab 1 Content
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
Progress Bars
Badges & Pills
Comparison Table
Framework | Performance | Learning Curve | Community | Ecosystem |
---|---|---|---|---|
React | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
Vue | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
Angular | ⭐⭐⭐⭐ | ⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
Svelte | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐ |
Statistics Cards
Math Expressions (if supported)
Inline math: E = mc²
Block math example:
n factorial
----------- = C(n,k)
k factorial × (n-k) factorial
Conclusion
This style test page covers all the essential typography and component styles available in our blog system. Each element is carefully styled to work seamlessly in both light and dark modes, ensuring a consistent and beautiful reading experience for all users.
Footnotes
This is the first footnote with additional information. ↩
This is the second footnote providing more context about the topic. ↩
This is the third footnote with a link to more information. ↩
Thanks for reading!
Steve Butler
P.S. Want to see how I build internet businesses? I'm giving away my "7-Figure Framework" that shows exactly how I've launched multiple successful companies. It's completely free — grab your copy here .