chanan / chanan/BlazorStyled

Feature Proposal: Theme Tag

Open
#78 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
193
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Themes need some TLC... Maybe the ability to define a theme inside a tag will help something along the lines:

```

colors.background: red;

```
or maybe json would be better?
```

{
colors: {
background: "red"
}
}

```
HOCON could allow both syntaxes: https://github.com/akkadotnet/HOCON

The API will be updated to allow a theme update in one string:

```
IStyled.AddTheme("MyTheme", themeJsonOrString);
```

Lastly, need to add a way to switch between themes. API:

```
IStyled.SetTheme("MyTheme");
```

Not sure about a Tag version for that. Maybe:

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.