Probably changing the following line from
https://github.com/EdCharbeneau/CssBuilder/blob/0a491e3e7f2fc680e5b9c7167d2e54de572fcb84/BlazorComponentUtilities/CssBuilder.cs#L120
to
additionalAttributes.TryGetValue("class", out var c) && c != null ? AddClass(c.ToString()) : this;
would do the trick?