diff options
| author | Himanshu Sardana <himanshusardana2005@gmail.com> | 2026-03-16 20:19:40 +0000 |
|---|---|---|
| committer | Himanshu Sardana <himanshusardana2005@gmail.com> | 2026-03-16 20:19:40 +0000 |
| commit | 526dc3107f8440bdd0a0d6dd49aa3f32984ec794 (patch) | |
| tree | 2290f0aa3ebfd155f4e416cbf1527a5c39fb3ddb | |
| parent | cc36fef8f53eaa0f76be5016616efc5aa461a6da (diff) | |
feat: add tufte-style theme
| -rw-r--r-- | themes/tufte.css | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/themes/tufte.css b/themes/tufte.css new file mode 100644 index 0000000..2ee64c5 --- /dev/null +++ b/themes/tufte.css @@ -0,0 +1,128 @@ +@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap"); +body { + margin: 0; + padding: 3rem 2rem; + background: #fffff8; + color: #111; + + font-family: "Libre Baskerville", Georgia, serif; + line-height: 1.75; + font-size: 19px; +} + +body > * { + max-width: 720px; + margin-left: auto; + margin-right: auto; +} + +/* Headings */ + +h1, +h2, +h3 { + text-align: left; + font-weight: 700; + line-height: 1.25; +} + +h1 { + font-size: 2.4rem; + margin-bottom: 1rem; +} + +h2 { + font-size: 1.6rem; + margin-top: 3rem; +} + +h3 { + font-size: 1.3rem; + margin-top: 2rem; +} + +/* Paragraphs */ + +p { + margin: 1.3rem 0; +} + +/* Lists */ + +ul, +ol { + margin: 1.2rem 0 1.2rem 1.6rem; +} + +li { + margin: 0.4rem 0; +} + +/* Horizontal rule */ + +hr { + border: none; + border-top: 1px solid #ddd; + margin: 3rem auto; +} + +/* Tables */ + +table { + border-collapse: collapse; + margin: 1.5rem 0; + font-size: 0.95rem; +} + +th, +td { + padding: 0.5rem 0.8rem; + border-bottom: 1px solid #ddd; +} + +th { + text-align: left; +} + +/* Inline code */ + +code { + font-family: ui-monospace, SFMono-Regular, Consolas, monospace; + background: #f5f5f5; + padding: 0.15rem 0.3rem; + border-radius: 3px; + font-size: 0.9rem; +} + +/* Code blocks */ + +pre { + background: #f7f7f7; + padding: 1rem 1.2rem; + overflow-x: auto; + border-left: 3px solid #ccc; + margin: 1.5rem 0; +} + +pre code { + background: none; + padding: 0; +} + +/* Links */ + +a { + color: #222; + text-decoration: underline; +} + +a:hover { + color: black; +} + +@media (max-width: 700px) { + body { + padding: 2rem 1.2rem; + font-size: 17px; + } +} |
