MudBlazor / MudBlazor/ThemeManager

add new css root variable as mud attribute

Open
#17 3 comments 0 reactions 0 assignees View on GitHub

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:
Capture1
and then I used that in PresetThemes.cs class like this
Capture2
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.