Customize your changelog appearance with custom CSS. Learn how to style entries, colors, and layout.
Customize your changelog appearance with custom CSS. This guide will show you how to style your changelog entries, colors, and layout to match your brand.
To add custom CSS to your changelog:
Each changelog entry is wrapped in specific HTML elements that you can target with CSS:
.changelogblock - Container for each log item.headertext - Entry title/heading.markdown-body - Main content area.changelogblock .category - Category badgesHere are some example CSS styles you can use:
/* Container for each log item */
.changelogblock {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
margin-bottom: 1rem;
padding: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* Title */
.changelogblock .headertext {
color: #1f2937;
font-weight: 600;
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
/* Markdown content */
.changelogblock .markdown-body {
color: #374151;
line-height: 1.6;
}
/* Category badges */
.changelogblock .category {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-weight: 500;
}
Add dark mode styles using the @media (prefers-color-scheme: dark) query:
@media (prefers-color-scheme: dark) {
.changelogblock {
background: #1f2937;
border-color: #374151;
color: #f3f4f6;
}
.changelogblock .headertext {
color: #f3f4f6;
}
.changelogblock .markdown-body {
color: #d1d5db;
}
}
Match your brand colors:
/* Use your brand colors */
.changelogblock {
border-left: 4px solid #your-brand-color;
}
.changelogblock .headertext {
color: #your-brand-color;
}
/* Links */
.changelogblock .markdown-body a {
color: #your-brand-color;
text-decoration: underline;
}
.changelogblock .markdown-body a:hover {
color: #your-brand-color-darker;
}
/* Custom fonts */
.changelogblock {
font-family: 'Your Font', sans-serif;
}
.changelogblock .headertext {
font-family: 'Your Heading Font', serif;
letter-spacing: -0.025em;
}
/* Line height and spacing */
.changelogblock .markdown-body {
line-height: 1.75;
}
.changelogblock .markdown-body p {
margin-bottom: 1rem;
}
.changelogblock {
transition: transform 0.2s, box-shadow 0.2s;
}
.changelogblock:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Mobile adjustments */
@media (max-width: 640px) {
.changelogblock {
padding: 1rem;
margin-bottom: 0.75rem;
}
.changelogblock .headertext {
font-size: 1.125rem;
}
}
After adding your CSS:
.changelogblock {
border-radius: 1rem; /* More rounded */
}
.changelogblock {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.changelogblock {
margin-bottom: 2rem; /* More space between entries */
padding: 2rem; /* More internal padding */
}
If your CSS isn't working:
If styles are breaking the layout:
!important unless necessaryAfter customizing your CSS: