MudBlazor / MudBlazor/ThemeManager
add new css root variable as mud attribute
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 288
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Hi i'm going to add some property attributes to mud palette so I created new class as you can see in the picture:
and then I used that in PresetThemes.cs class like this
Now as a result I can see my property in c# code but I can't use it as a CSS variable like this var(--mud-palette-ForegroundColor).
How can i solve this problem?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to a new palette class and PresetThemes.cs, with the expected output shown in the linked screenshots. Start by tracing how palette properties become CSS custom properties; done when ForegroundColor is emitted and usable as var(--mud-palette-ForegroundColor).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, css
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100