facebook / facebook/lexical

Feature: Allow users to set CSS classes on nodes similar to `setStyle`

Open
#4,220 8 comments 7 reactions 0 assignees View on GitHub
core enhancement
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 16h
Merged PRs (30d)
61

Description

This would make it compatible with tailwind. Since spans are used anyway it should just be a matter of setting a different property on the element.

Contributor guide

Open the contributing guide

Research direction

Start by locating the node handling for setStyle and the span elements mentioned in the issue. Trace how styles are applied, then determine where a CSS class property would be exposed and rendered. Done means users can assign classes to nodes and Tailwind classes appear on the resulting elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.