Using taliwind css to change the default font?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 201
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
Hello,
I know I can use the class name to change the editor style
.w-md-editor-text-pre > code,
.w-md-editor-text-input {
font-size: 23px !important;
line-height: 24px !important;
}
I want to use taliwind css to change the default editor font style,
However, the added font-family seems like does not work (replace by the default font-family)
.my-taliwind-css-family {
font-family: some style
}
replace by
.wmde-markdown {
-webkit-text-size-adjust: 100%;
font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
font-size: 16px;
line-height: 1.5;
word-wrap: break-word;
color: var(--color-fg-default);
background-color: var(--color-canvas-default);
}
Is there any good solution to deal with this?
Contributor guide
No contributing guide indexed for this repository
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
Start by inspecting the editor selectors .w-md-editor-text-pre > code, .w-md-editor-text-input, and .wmde-markdown shown in the report, then check which rule controls the rendered font family. Confirm the change by applying the requested font style and verifying that the editor text no longer uses the default family.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, react, tailwindcss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100