Skip to content

Support background and foreground default color headersΒ #17

@markqvist

Description

@markqvist

A while back, nomadnet added support for specifying the default background and foreground color of pages as header tags:

Page Foreground and Background Colors

To specify a background color for the entire page, place the `!#!bg=X`! header on one of the first lines
of your page, where `!X`! is the color you want to use, for example `!444`!. If you're also using the cache
control header, the background specifier must come `*after`* the cache control header. Likewise, you
can specify the default text color by using the `!#!fg=X`! header.

I don't think micron-parser supports this yet, but it would be very nice if it did! Should be relatively simple to add, since it just needs to check if the !#bg=XXX or !#fg=XXX are present in the document, and then apply a default color style based on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions