Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/chanan/BlazorStyled

CSS in Blazor Components
https://github.com/chanan/BlazorStyled

blazor css styled-components

Last synced: 2 days ago
JSON representation

CSS in Blazor Components

Lists

README

        

# BlazorStyled

_CSS in Blazor Components_

## Docs

View the detailed [docs](https://blazorstyled.io) at https://blazorstyled.io.

## Install

[![NuGet Pre Release](https://img.shields.io/nuget/vpre/BlazorStyled.svg)](https://www.nuget.org/packages/BlazorStyled/)

## Why BlazorStyled?

* Maintain your css inside your component instead of a seperate file
* Eliminate all collisions - no need to use !important
* No need to worry about depoying css files - great for libraries
* css are C# strings - use variables instead of solutions like sass

### Insperation

* [Emotion](https://emotion.sh/docs/introduction)
* [Glamorous](https://glamorous.rocks/)
* [Glamor](https://github.com/threepointone/glamor)

## Short Example

```

label: hover-example;
padding: 32px;
background-color: hotpink;
font-size: 24px;
border-radius: 4px;

color: @color;


Hover to change color.

@code {
private string hover;
private string color = "white";
}
```

See more in the [docs](https://chanan.github.io/BlazorStyled/) at https://chanan.github.io/BlazorStyled/.