Skip to content

Repository files navigation

BCSS

Revolutionary Runtime CSS Generator for Blazor

GitHub Repo starsGitHub last commitContributorsNuGet versionNuGet downloadsDiscord

BCSS.NET
1.0.0.NET 6 - .NET 7 - .NET 8
1.0.1.NET 8 - .NET 9

Installation

  1. Install CodeBeam.BCSS Nuget package
dotnet add package CodeBeam.BCSS
  1. Add the following to _Imports.razor
@usingBCSS
  1. Add the following to your HTML body section, it's either index.html or _Layout.cshtml/_Host.cshtml depending on whether you're running Server-Side or WASM.
<scriptsrc="_content/CodeBeam.BCSS/Bcss.min.js"></script>
  1. Add the following to the relevant sections of Program.cs
usingBcss.Services;builder.Services.AddBcss();
  1. Add the following toApp.razor
<BlazorCssProvider />
  1. Inject the service and place the component in the page that you want to use BCSS
@inject BcssServiceBc

Usage

Add the BCSS class into a class

<divclass="@Bc["w-200h-100r-20"]" />
//This line adds width: 200px height: 100px and border-radius: 20

Related Links

About

Revolutionary Runtime CSS Generator for Blazor

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages