Module aya.pretty

Interface Style

All Superinterfaces:
Serializable
All Known Subinterfaces:
MdStyle, Style.CustomStyle
All Known Implementing Classes:
MdStyle.GFM, MdStyle.Heading, Style.Attr, Style.ColorHex, Style.ColorName, Style.Preset, UnixTermStyle

public sealed interface Style extends Serializable permits Style.CustomStyle, Style.Attr, Style.ColorName, Style.ColorHex, Style.Preset
Text styles. Inspired by terminal-colors.d(5)
  • Method Details

    • and

      default Styles and()
    • italic

      @NotNull static @NotNull Style italic()
    • bold

      @NotNull static @NotNull Style bold()
    • strike

      @NotNull static @NotNull Style strike()
    • underline

      @NotNull static @NotNull Style underline()
    • color

      @NotNull static @NotNull Style color(@NotNull @NotNull String colorName)
    • colorBg

      @NotNull static @NotNull Style colorBg(@NotNull @NotNull String colorName)
    • color

      @NotNull static @NotNull Style color(int color)
    • color

      @NotNull static @NotNull Style color(float r, float g, float b)
    • colorBg

      @NotNull static @NotNull Style colorBg(int color)
    • preset

      @NotNull static @NotNull Style preset(@NotNull @NotNull String styleName)