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

Add image syntax for text color #159

Merged
merged 8 commits into from
May 5, 2019
Merged

Add image syntax for text color #159

merged 8 commits into from
May 5, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented May 5, 2019

This PR adds image syntax for text color ![](color) to provide consistent interfaces for setting color via shorthand by using image syntax.

# Hex color (White BG + Black text)

![bg](#fff)
![](#000)

---

# Named color (rebeccapurple BG + White text)

![bg](rebeccapurple)
![](white)

---

# RGB values (Orange BG + White text)

![bg](rgb(255,128,0))
![](rgb(255,255,255))

We've updated documentation of image syntax too. Resolves #154.

@yhatt yhatt merged commit 273fc51 into master May 5, 2019
@yhatt yhatt deleted the text-color-syntax branch May 5, 2019 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image syntax for text color
1 participant