-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
base: main/4
Are you sure you want to change the base?
CSS Colors Tag Resolver #664
Conversation
…into feature/minimessage/css-colors
...java/net/kyori/adventure/text/minimessage/transformation/inbuild/CSSColorTransformation.java
Outdated
Show resolved
Hide resolved
...ge/src/main/java/net/kyori/adventure/text/minimessage/transformation/TransformationType.java
Outdated
Show resolved
Hide resolved
Blocking on #672, will need to be rewritten to use the new tag system after merge. |
Fetch upstream
…into feature/minimessage/css-colors
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. |
.../src/main/java/net/kyori/adventure/text/minimessage/tag/nonstandard/CSSColorTagResolver.java
Outdated
Show resolved
Hide resolved
.../src/main/java/net/kyori/adventure/text/minimessage/tag/nonstandard/CSSColorTagResolver.java
Outdated
Show resolved
Hide resolved
.../src/main/java/net/kyori/adventure/text/minimessage/tag/nonstandard/CSSColorTagResolver.java
Outdated
Show resolved
Hide resolved
This tag will also want a companion pr to https://github.com/KyoriPowered/adventure-docs. |
The map of css colors should probably move. I'm just not sure where to. |
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 bothCSSColorTagResolver
andColorTagResolver
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>
.