axodotdev / axodotdev/axohtml

Support for Tailwinds CSS class names

Open
#42 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
119
Forks
10
PR merge metrics
No merged PRs in 30d

Description

[Tailwinds CSS](https://tailwindcss.com/) uses some class naming schemes that are not supported in the [FromStr implementation](https://github.com/axodotdev/axohtml/blob/main/typed-html/src/types/class.rs#L40). The examples I found when poking around are:
- [Negative values](https://tailwindcss.com/docs/top-right-bottom-left#using-negative-values) (`

`)
- [Arbitrary values](https://tailwindcss.com/docs/top-right-bottom-left#arbitrary-values) (`
`)
- [Breakpoints](https://tailwindcss.com/docs/top-right-bottom-left#breakpoints-and-media-queries) (`
`)

Looks like the FromStr implementation just needs to support leading-negatives then colons and square brackets in the middle.

Contributor guide

Open the contributing guide

Research direction

Start with the FromStr implementation in typed-html/src/types/class.rs at the linked lines. Check how it handles the Tailwind CSS examples in the issue, then make the implementation accept leading negatives, colons, and square brackets; done means those class names parse successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, tailwindcss
Domain
frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.