Coder Social home page Coder Social logo

codebeamorg / bcss Goto Github PK

View Code? Open in Web Editor NEW
11.0 0.0 0.0 333 KB

Revolutionary Runtime CSS Generator for Blazor

Home Page: https://bcss.codebeam.org

License: MIT License

HTML 46.94% C# 45.41% CSS 7.57% JavaScript 0.08%
blazor blazor-client blazor-server css style generator

bcss's Introduction

BCSS

Revolutionary Runtime CSS Generator for Blazor

GitHub Repo stars GitHub last commit Contributors NuGet version NuGet downloads

Installation

  1. Install CodeBeam.BCSS Nuget package
dotnet add package CodeBeam.BCSS
  1. Add the following to _Imports.razor
@using BCSS
  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.
<script src="_content/CodeBeam.BCSS/Bcss.min.js"></script>
  1. Add the following to the relevant sections of Program.cs
using Bcss.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 BcssService Bc

Usage

Add the BCSS class into a class

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

Related Links

bcss's People

Contributors

mckaragoz avatar

Stargazers

VoThuan avatar Felix Strauß avatar Ashish Sinha avatar Lasindu Weerasinghe avatar Jihad Khawaja avatar HuaFangYun avatar Maksim avatar  avatar Mladen Macanović avatar Jeff Carpenter avatar  avatar

bcss's Issues

add colors value

add color values like tailwind css
for example : bg-blue-600
and a file to config the colors like to config primary color and blue color like tailwind css one
for example:-
blue :{50:#EBF5FF,100:#E1EFFE,200:#C3DDFD, .... 900:#233876}, primary :{50:#EBF5FF,100:#E1EFFE,200:#C3DDFD, .... 900:#233876}

add gradient coloring

add gradient coloring like tailwind css
for example : bg-gradient-to-r from-blue-500 via-blue-600 to-blue-700

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.