Skip to content

colored admonitions ? #288

@lrnv

Description

@lrnv

Hey, is there a way I can get default colors for admonitions depending on their types ? In my docs I use :

!!! note "title"
    content 
    
    more content

with note, tip, todo, info, algorithm, definition, property, theorem, example, etc. and Documenter used to color some of them consistently. Their documentation on the topic is there : https://documenter.juliadocs.org/stable/showcase/#Admonitions

Is that something I can tweak through some CSS somewhere, or is there an already-settled way of coloring these ?

Remark: There seem to be a very strict restriction to possible categories there :

https://github.com/LuxDL/DocumenterVitepress.jl/blob/fed5b1364dabb2f0d10de92b5068c170c30b0e8f/src/writer.jl#L1050-L1066C4

which is coherent with what https://vitepress.dev/guide/markdown#custom-containers says.

But then the produced html does not even have the information i need to apply some css ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions