Created
January 7, 2026 11:24
-
-
Save simbo1905/6dcc2da58afcb7f0d1da355a43722c6e to your computer and use it in GitHub Desktop.
CSS styles for Markdown to PDF conversion using WeasyPrint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* CSS styles extracted from README.md.pdf */ | |
| body { | |
| font-family: "SFNS", "Menlo", "Monaco", monospace; | |
| background-color: #A0A0A0; | |
| color: #24292e; | |
| line-height: 1.5; | |
| } | |
| h1, h2, h3, h4, h5, h6 { | |
| color: #000000; | |
| font-family: "SFNS", sans-serif; | |
| } | |
| h1 { | |
| font-size: 29px; | |
| } | |
| h2 { | |
| font-size: 22px; | |
| } | |
| h3 { | |
| font-size: 18px; | |
| } | |
| p { | |
| font-size: 14px; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| pre, code { | |
| font-family: "Monaco", "Menlo", monospace; | |
| font-size: 12px; | |
| color: #555555; | |
| } | |
| /* Syntax highlighting for code blocks */ | |
| .syntax--keyword { | |
| color: #990055; | |
| } | |
| .syntax--string { | |
| color: #669900; | |
| } | |
| .syntax--comment { | |
| color: #999999; | |
| } | |
| .syntax--number { | |
| color: #9a6e3a; | |
| } | |
| .syntax--function { | |
| color: #0077aa; | |
| } | |
| .syntax--operator { | |
| color: #dd4a68; | |
| } | |
| .syntax--variable { | |
| color: #ee9900; | |
| } | |
| .syntax--type { | |
| color: #708090; | |
| } | |
| /* Link styles */ | |
| a { | |
| color: #0366d6; | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| text-decoration: underline; | |
| } | |
| /* Table styles */ | |
| table { | |
| border-collapse: collapse; | |
| width: 100%; | |
| margin: 10px 0; | |
| } | |
| table, th, td { | |
| border: 1px solid #ddd; | |
| } | |
| th, td { | |
| padding: 8px; | |
| text-align: left; | |
| } | |
| th { | |
| background-color: #f2f2f2; | |
| } | |
| /* List styles */ | |
| ul, ol { | |
| margin-left: 20px; | |
| } | |
| li { | |
| margin-bottom: 5px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment