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

Support dvipsnames colors #30

Open
creativecreatorormaybenot opened this issue Jan 18, 2021 · 3 comments
Open

Support dvipsnames colors #30

creativecreatorormaybenot opened this issue Jan 18, 2021 · 3 comments

Comments

@creativecreatorormaybenot
Copy link
Contributor

creativecreatorormaybenot commented Jan 18, 2021

I think it would be useful if all dvipsnames colors would be supported as colors via name:

Apricot       Aquamarine Bittersweet       Black Blue       BlueGreen BlueViolet       BrickRed Brown       BurntOrange CadetBlue       CarnationPink Cerulean       CornflowerBlue Cyan       Dandelion DarkOrchid       Emerald ForestGreen       Fuchsia Goldenrod       Gray Green       GreenYellow JungleGreen       Lavender LimeGreen       Magenta Mahogany       Maroon Melon       MidnightBlue Mulberry       NavyBlue OliveGreen       Orange OrangeRed       Orchid Peach       Periwinkle PineGreen       Plum ProcessBlue       Purple RawSienna       Red RedOrange       RedViolet Rhodamine       RoyalBlue RoyalPurple       RubineRed Salmon       SeaGreen Sepia       SkyBlue SpringGreen       Tan TealBlue       Thistle Turquoise       Violet VioletRed       White WildStrawberry       Yellow YellowGreen       YellowOrange

The hex codes can be found in the source:

Click to expand
<tbody>
<tr>
<td><b>Apricot</b></td>
<td bgcolor="#FBB982">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#00B5BE">&nbsp;
</td>
<td><b>Aquamarine</b>
</td></tr>
<tr>
<td><b>Bittersweet</b></td>
<td bgcolor="#C04F17">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#221E1F">&nbsp;
</td>
<td><b>Black</b>
</td></tr>
<tr>
<td><b>Blue</b></td>
<td bgcolor="#2D2F92">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#00B3B8">&nbsp;
</td>
<td><b>BlueGreen</b>
</td></tr>
<tr>
<td><b>BlueViolet</b></td>
<td bgcolor="#473992">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#B6321C">&nbsp;
</td>
<td><b>BrickRed</b>
</td></tr>
<tr>
<td><b>Brown</b></td>
<td bgcolor="#792500">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#F7921D">&nbsp;
</td>
<td><b>BurntOrange</b>
</td></tr>
<tr>
<td><b>CadetBlue</b></td>
<td bgcolor="#74729A">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#F282B4">&nbsp;
</td>
<td><b>CarnationPink</b>
</td></tr>
<tr>
<td><b>Cerulean</b></td>
<td bgcolor="#00A2E3">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#41B0E4">&nbsp;
</td>
<td><b>CornflowerBlue</b>
</td></tr>
<tr>
<td><b>Cyan</b></td>
<td bgcolor="#00AEEF">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#FDBC42">&nbsp;
</td>
<td><b>Dandelion</b>
</td></tr>
<tr>
<td><b>DarkOrchid</b></td>
<td bgcolor="#A4538A">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#00A99D">&nbsp;
</td>
<td><b>Emerald</b>
</td></tr>
<tr>
<td><b>ForestGreen</b></td>
<td bgcolor="#009B55">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#8C368C">&nbsp;
</td>
<td><b>Fuchsia</b>
</td></tr>
<tr>
<td><b>Goldenrod</b></td>
<td bgcolor="#FFDF42">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#949698">&nbsp;
</td>
<td><b>Gray</b>
</td></tr>
<tr>
<td><b>Green</b></td>
<td bgcolor="#00A64F">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#DFE674">&nbsp;
</td>
<td><b>GreenYellow</b>
</td></tr>
<tr>
<td><b>JungleGreen</b></td>
<td bgcolor="#00A99A">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#F49EC4">&nbsp;
</td>
<td><b>Lavender</b>
</td></tr>
<tr>
<td><b>LimeGreen</b></td>
<td bgcolor="#8DC73E">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#EC008C">&nbsp;
</td>
<td><b>Magenta</b>
</td></tr>
<tr>
<td><b>Mahogany</b></td>
<td bgcolor="#A9341F">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#AF3235">&nbsp;
</td>
<td><b>Maroon</b>
</td></tr>
<tr>
<td><b>Melon</b></td>
<td bgcolor="#F89E7B">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#006795">&nbsp;
</td>
<td><b>MidnightBlue</b>
</td></tr>
<tr>
<td><b>Mulberry</b></td>
<td bgcolor="A93C93">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#006EB8">&nbsp;
</td>
<td><b>NavyBlue</b>
</td></tr>
<tr>
<td><b>OliveGreen</b></td>
<td bgcolor="#3C8031">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#F58137">&nbsp;
</td>
<td><b>Orange</b>
</td></tr>
<tr>
<td><b>OrangeRed</b></td>
<td bgcolor="#ED135A">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#AF72B0">&nbsp;
</td>
<td><b>Orchid</b>
</td></tr>
<tr>
<td><b>Peach</b></td>
<td bgcolor="#F7965A">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#7977B8">&nbsp;
</td>
<td><b>Periwinkle</b>
</td></tr>
<tr>
<td><b>PineGreen</b></td>
<td bgcolor="#008B72">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#92268F">&nbsp;
</td>
<td><b>Plum</b>
</td></tr>
<tr>
<td><b>ProcessBlue</b></td>
<td bgcolor="#00B0F0">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#99479B">&nbsp;
</td>
<td><b>Purple</b>
</td></tr>
<tr>
<td><b>RawSienna</b></td>
<td bgcolor="#974006">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#ED1B23">&nbsp;
</td>
<td><b>Red</b>
</td></tr>
<tr>
<td><b>RedOrange</b></td>
<td bgcolor="#F26035">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#A1246B">&nbsp;
</td>
<td><b>RedViolet</b>
</td></tr>
<tr>
<td><b>Rhodamine</b></td>
<td bgcolor="#EF559F">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#0071BC">&nbsp;
</td>
<td><b>RoyalBlue</b>
</td></tr>
<tr>
<td><b>RoyalPurple</b></td>
<td bgcolor="#613F99">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#ED017D">&nbsp;
</td>
<td><b>RubineRed</b>
</td></tr>
<tr>
<td><b>Salmon</b></td>
<td bgcolor="#F69289">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#3FBC9D">&nbsp;
</td>
<td><b>SeaGreen</b>
</td></tr>
<tr>
<td><b>Sepia</b></td>
<td bgcolor="#671800">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#46C5DD">&nbsp;
</td>
<td><b>SkyBlue</b>
</td></tr>
<tr>
<td><b>SpringGreen</b></td>
<td bgcolor="#C6DC67">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#DA9D76">&nbsp;
</td>
<td><b>Tan</b>
</td></tr>
<tr>
<td><b>TealBlue</b></td>
<td bgcolor="#00AEB3">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#D883B7">&nbsp;
</td>
<td><b>Thistle</b>
</td></tr>
<tr>
<td><b>Turquoise</b></td>
<td bgcolor="#00B4CE">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#58429B">&nbsp;
</td>
<td><b>Violet</b>
</td></tr>
<tr>
<td><b>VioletRed</b></td>
<td bgcolor="#EF58A0">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="">&nbsp;
</td>
<td><b>White</b>
</td></tr>
<tr>
<td><b>WildStrawberry</b></td>
<td bgcolor="#EE2967">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#FFF200">&nbsp;
</td>
<td><b>Yellow</b>
</td></tr>
<tr>
<td><b>YellowGreen</b></td>
<td bgcolor="#98CC70">&nbsp;
</td>
<td>&nbsp;</td>
<td bgcolor="#FAA21A">&nbsp;
</td>
<td><b>YellowOrange</b>
</td></tr></tbody>
@creativecreatorormaybenot
Copy link
Contributor Author

@znjameswu Nevermind me 🙈 I just realized that you already did that, however, you seem to have messed up cyan and because cyan was not working for us, I assumed that the other ones were not working either.

I will open a PR 😄

@creativecreatorormaybenot
Copy link
Contributor Author

creativecreatorormaybenot commented Jan 18, 2021

I fixed cyan in #31 now - I wonder if the other ones are actually dvipsnames (given that there are taken from https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).

It might be worth to recreate the file with the colors from above. Let me know if you agree, I would want to make a PR :)

@creativecreatorormaybenot
Copy link
Contributor Author

I wonder @znjameswu - was it a coincidence that we both chose the Mozilla CSS colors? (see my code)

Back then, I did not really think about dvipsnames, however, I do think that dvips is the better approach :)

If you agree, I would quickly generate the corrected colors and update them in both repos (in preparation of CaTeX being maintained again.. at some point 😄).

@creativecreatorormaybenot creativecreatorormaybenot changed the title Support basic colors Support dvipsnames colors Jan 18, 2021
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 a pull request may close this issue.

1 participant