dgmxjj/moonbit-posterkit/theme does not have a README file

    Color

    pub(all) struct Color {
    css : String
    } derive(Eq,
    Debug
    )

    Color::as_css

    fn Color::as_css(color : Color) -> String

    Color::hex

    fn Color::hex(raw : String) -> Color

    ContrastRating

    pub(all) enum ContrastRating {
    Fail
    LargeText
    Pass
    } derive(Eq,
    Debug
    )

    ContrastReport

    pub(all) struct ContrastReport {
    foreground : String
    background : String
    ratio : Int
    rating : ContrastRating
    } derive(Eq,
    Debug
    )

    Theme

    pub(all) struct Theme {
    name : String
    background : Color
    foreground : Color
    accent : Color
    muted : Color
    padding :
    EdgeInsets

    title_size : Int
    body_size : Int
    caption_size : Int
    } derive(Eq,
    Debug
    )

    Theme::accent_contrast

    fn Theme::accent_contrast(self : Theme) -> ContrastReport

    Theme::body_contrast

    fn Theme::body_contrast(self : Theme) -> ContrastReport

    Theme::swiss_grid

    fn Theme::swiss_grid() -> Theme

    Theme::warm_editorial

    fn Theme::warm_editorial() -> Theme

    contrast_rating_text

    fn contrast_rating_text(rating : ContrastRating) -> String

    contrast_ratio

    fn contrast_ratio(foreground : Color, background : Color) -> Int

    contrast_report

    fn contrast_report(foreground : Color, background : Color) -> ContrastReport