Comments (6)
I think everyone has different opinions about appropriate font sizes. One reason that smaller sizes are used is to make the text diminutive relative to the body. It's certainly all a bit subjective. Radix is an opinionated format (based on Distill, which has very strong opinions as well) and the choices made won't sit well for everyone all the time.
Since there are literally dozens of style elements to tweak providing YAML options for each of them is not realistic. The best way to handle this is CSS (which can pretty much allow you to do anything you want with the styling and then re-use the changes across documents). For example, you can add this inline css
chunk to your Rmd to change the fonts in the table of contents:
```{css}
.d-toc-header {
font-size: 0.9rem;
}
.d-toc {
font-size: 1.0rem
}
```
In terms of numbered sections, the problem here is that pandoc wants to number sections using level 1 headers and Distill/Radix documents styles are based on using level 2 headers for major document sections. I've played with trying to resolve this tension and it's frustratingly difficult to overcome.
from distill.
No there isn't a way to change the theme. Part of the idea of Radix is to enforce a uniform theme so that it's easy to aggregate lots of articles written in different places together (e.g. for a blog or journal). This is philosophically a bit like the https://medium.com blogging service.
from distill.
So those that don't want to deal with css are stuck with the default rendering of very tiny text?
from distill.
Could you show me an example of the tiny text? By web standards the default font size is larger on purpose for readability, e.g.
But perhaps there are certain browsers or parts of what is rendered where the text gets tiny. If you can just provide some context I can give a better answer.
from distill.
The text size in the TOC is way too small (also in the citation part). I had also seen the text in the body render as small as the TOC (even on a 20" screen). Ideally the font size in the TOC should be the same as in the body.
I also would like to see numbered headers as supported in the standard knitr and rmarkdown html formats.
It would also be nicer if the body text column was a bit wider - yest this would be fine on 13" laptops and mobile devices, but for anything bigger it looks very squished considering how much white space is on either side.
from distill.
@JulianSpagnuolo @znmeb we now have a theming system for distill and docs are here
https://rstudio.github.io/distill/website.html#theming
from distill.
Related Issues (20)
- Figure captions don't work for some text length with `(ref:...` HOT 3
- fix footer to the bottom HOT 5
- Whether there are ways to support shiny_prerendered runtime? HOT 1
- Distill article renders to empty page when an (unescaped) @ sign followed by characters is included in the text HOT 5
- How to break line (e.g. in the Rmarkdown title and affiliation)? HOT 2
- Release distill 1.5
- Line numbers for code blocks HOT 3
- Italics in menu HOT 2
- Add a helper to handle `layout` to `column` conversion from distill to Quarto
- New post does not appear on Distill blog, but is already in the github
- Embed webpage within Distill blog. HOT 4
- Alt-text for post image previews
- Subtitles HOT 4
- Removing requirement for description/abstract HOT 2
- Upkeep for distill
- Check and add alt-text to pictures, plots, ... in website
- invalid byte sequence when deploying to github HOT 3
- RSS category-based feeds HOT 1
- Creative Commons Markdown Table Not Rendering Properly
- Warning due to deprecation of 'format' argument to 'as.character.POSIXlt()' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distill.