Skip to content

[FEATURE REQUEST] Readable Code #44

@hoffination

Description

@hoffination

Describe your feature request

I love how this theme is sized and the general feel. It makes a delightful and legible experience that resonates with me, however, I'd like to see code sizes shrink slightly.

Proposed Solution

I add this CSS manually to my machine and perhaps it might be helpful for others seeking to do the same:

/* Set code to a smaller size*/
.cm-s-obsidian .HyperMD-codeblock {
    font-size: var(--font-smaller);
}

/* Set PDF code print size smaller */
@media print {
    pre > code {
        font-size: 10pt !important;
    }
}

Additional Context

Here is a screenshot of it working in conjunction with the Code Styler plugin:

Screenshot 2024-04-30 at 3 42 53 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions