Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Colors Tag Resolver #664

Open
wants to merge 18 commits into
base: main/4
Choose a base branch
from

Conversation

Majekdor
Copy link

@Majekdor Majekdor commented Jan 12, 2022

Related to #516, this PR adds a new non-standard tag, CSSColorTagResolver, that allows for all standard CSS colors to be parsed with MiniMessage. If both CSSColorTagResolver and ColorTagResolver are included and a color is specified that is included in both (ex. aqua), then the standard named text color is used. You can specify to use the CSS color like so: <css:aqua>.

@kezz
Copy link
Member

kezz commented Feb 13, 2022

Blocking on #672, will need to be rewritten to use the new tag system after merge.

@Majekdor Majekdor marked this pull request as draft February 14, 2022 16:04
@Majekdor Majekdor marked this pull request as ready for review February 14, 2022 16:11
@Majekdor
Copy link
Author

Majekdor commented Feb 14, 2022

Added the new CSSColorTagResolver in a new package I called "nonstandard". Happy to change that package name or move it somewhere else but I saw mention of the possibility of tags being added that wouldn't be "standard" so I stuck it there.

@Majekdor Majekdor changed the title CSS Colors and Color Alias Methods CSS Colors Tag Resolver Feb 14, 2022
@zml2008
Copy link
Member

zml2008 commented Feb 22, 2022

This tag will also want a companion pr to https://github.com/KyoriPowered/adventure-docs.

@zml2008 zml2008 added this to the 4.11.0 milestone Feb 24, 2022
@Majekdor
Copy link
Author

Majekdor commented Mar 2, 2022

The map of css colors should probably move. I'm just not sure where to.

@zml2008 zml2008 removed this from the 4.11.0 milestone May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants