#
Custom Styling
While Tesserae components come with default styles, you can customize the appearance of your application using CSS.
#
Adding Classes
Most components support the .Class() method to add a custom CSS class.
var tb = TextBlock("Styled Text").Class("my-custom-style");
#
CSS Files
You can include custom CSS files in your project. These should be placed in the wwwroot or similar folder in your C# project and will be included in the final deployment.
#
Inline Styles
For quick adjustments, you can use the fluent API to set common styles:
tb.SemiBold()
.TextCenter()
.Background("red")
.Padding(10.px());
#
Themes
Curiosity provides a theme system. Use Theme.Primary.Background and other variables to ensure your custom components match the overall workspace aesthetic.
See also
Curiosity Workspaces allow you to create tailored user interfaces using C# and the h5 compiler.
Designing a clear navigation structure is essential for user-friendly custom interfaces in Curiosity Workspace.
Customize the look and feel of your Curiosity Workspace to align with your organization's brand identity.