public string GetStylesTag() { var sb = new StringBuilder(); sb.AppendLine($"<style type=\"text/css\" scoped>"); ThemeGenerator.GenerateStyles(sb, Theme); sb.AppendLine("</style>"); return(sb.ToString()); }
/// <summary> /// Gets the html tag that will be inserted into the DOM and that will contain the styles. /// </summary> /// <returns>HTML variables tag element content.</returns> public string GetStylesTag() { if (!theme?.Enabled == true) { return(null); } var sb = new StringBuilder(); sb.AppendLine("<style type=\"text/css\" scoped>"); sb.AppendLine(ThemeGenerator.GenerateStyles(Theme)); sb.AppendLine("</style>"); return(sb.ToString()); }