Code Monkey home page Code Monkey logo

Comments (6)

jjallaire avatar jjallaire commented on July 19, 2024 4

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.

jjallaire avatar jjallaire commented on July 19, 2024 3

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.

JulianSpagnuolo avatar JulianSpagnuolo commented on July 19, 2024

So those that don't want to deal with css are stuck with the default rendering of very tiny text?

from distill.

jjallaire avatar jjallaire commented on July 19, 2024

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.

screen shot 2018-10-04 at 10 23 25 am

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.

JulianSpagnuolo avatar JulianSpagnuolo commented on July 19, 2024

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.

screen shot 2018-10-05 at 10 01 22

from distill.

apreshill avatar apreshill commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.