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 the remaining 8-bit colors to the css #93

Open
milandamen opened this issue Feb 14, 2022 · 0 comments
Open

Add the remaining 8-bit colors to the css #93

milandamen opened this issue Feb 14, 2022 · 0 comments

Comments

@milandamen
Copy link

In order to see proper colors for the first 16 colors in the 8-bit color range, I had to add the following to my css file (based on terminal.css):

.term-fgx0 { color: #000000; }
.term-fgx1 { color: #800000; }
.term-fgx2 { color: #008000; }
.term-fgx3 { color: #808000; }
.term-fgx4 { color: #000080; }
.term-fgx5 { color: #800080; }
.term-fgx6 { color: #008080; }
.term-fgx7 { color: #c0c0c0; }
.term-fgx8 { color: #808080; }
.term-fgx9 { color: #ff0000; }
.term-fgx10 { color: #00ff00; }
.term-fgx11 { color: #ffff00; }
.term-fgx12 { color: #0000ff; }
.term-fgx13 { color: #ff00ff; }
.term-fgx14 { color: #00ffff; }
.term-fgx15 { color: #ffffff; }

I got the color codes from the wikipedia page: https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

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

No branches or pull requests

1 participant