@Override
  public @Nullable Tag resolve(final @NotNull String name, final @NotNull ArgumentQueue args, final @NotNull Context ctx) throws ParsingException {
    if (!this.has(name)) {
      return null;
    }

    final String colorName;
    if (isColorOrAbbreviation(name)) {
      colorName = args.popOr("Expected to find a color parameter: <name>|#RRGGBB").lowerValue();
    } else {
      colorName = name;
    }

    final TextColor color = resolveColor(colorName, ctx);
    return Tag.styling(color);
  }
A transformation applying a single text color.

@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/standard/ColorTagResolver.java