Skip to content

Instantly share code, notes, and snippets.

@izaakwalz
Created February 25, 2026 10:30
Show Gist options
  • Select an option

  • Save izaakwalz/47ab6eb231cd986d0c35a44e3cd2221c to your computer and use it in GitHub Desktop.

Select an option

Save izaakwalz/47ab6eb231cd986d0c35a44e3cd2221c to your computer and use it in GitHub Desktop.
Custom prose styles Editot.
@plugin "@tailwindcss/typography";
/* Custom prose styles for blog posts */
.prose {
--tw-prose-body: #d1d5db;
--tw-prose-headings: #ffffff;
--tw-prose-lead: #9ca3af;
--tw-prose-links: #60a5fa;
--tw-prose-bold: #ffffff;
--tw-prose-counters: #6b7280;
--tw-prose-bullets: #4b5563;
--tw-prose-hr: #374151;
--tw-prose-quotes: #f3f4f6;
--tw-prose-quote-borders: #374151;
--tw-prose-captions: #9ca3af;
--tw-prose-code: #f3f4f6;
--tw-prose-pre-code: #e5e7eb;
--tw-prose-pre-bg: #1f2937;
--tw-prose-th-borders: #374151;
--tw-prose-td-borders: #374151;
}
.prose h1 {
font-size: 1.875rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1.5rem;
color: #ffffff;
}
@media (min-width: 640px) {
.prose h1 {
font-size: 2.25rem;
}
}
@media (min-width: 1024px) {
.prose h1 {
font-size: 2.5rem;
}
}
.prose h2 {
font-size: 1.5rem;
font-weight: 600;
line-height: 1.3;
margin-top: 2rem;
margin-bottom: 1rem;
color: #ffffff;
}
@media (min-width: 640px) {
.prose h2 {
font-size: 1.875rem;
}
}
@media (min-width: 1024px) {
.prose h2 {
font-size: 2rem;
}
}
.prose h3 {
font-size: 1.25rem;
font-weight: 600;
line-height: 1.4;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
color: #ffffff;
}
@media (min-width: 640px) {
.prose h3 {
font-size: 1.375rem;
}
}
@media (min-width: 1024px) {
.prose h3 {
font-size: 1.5rem;
}
}
.prose p {
font-size: 1rem;
line-height: 1.7;
margin-bottom: 1.25rem;
color: #d1d5db;
}
@media (min-width: 640px) {
.prose p {
font-size: 1.0625rem;
}
}
@media (min-width: 1024px) {
.prose p {
font-size: 1.125rem;
}
}
.prose strong {
font-weight: 600;
color: #ffffff;
}
.prose blockquote {
border-left: 4px solid #374151;
padding-left: 1.5rem;
margin: 2rem 0;
font-style: italic;
color: #9ca3af;
}
.prose blockquote p {
color: #9ca3af;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment