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

Tune new colors added for dark+ & light+ themes #1943

Closed
aeschli opened this issue Jan 12, 2016 · 10 comments
Closed

Tune new colors added for dark+ & light+ themes #1943

aeschli opened this issue Jan 12, 2016 · 10 comments
Assignees
Labels
themes Color theme issues
Milestone

Comments

@aeschli
Copy link
Contributor

aeschli commented Jan 12, 2016

For the light and dark theme we added for new colors. We'd need a pass from the UX team to tune them where necessary. Especially in the light themes, some of the colors don't differ very much from the existing colors.
To tune, make changes to extensions/theme-colorful-defaults/themes/dark_plus.tmTheme and light_plus.tmTheme

Theme Control flow keywords Type names Function names Variable & Parameter names
Light Pink AF00DB _WCAG AA pass_ Turquoise 2B91AF _Insufficient Contrast!!_ Light gray 404040 Dark blue 001080
Dark Pink C586C0 _WCAG AA pass_ Turquoise _4EC9B0_ Yellow-brown DCDCAA Light blue 9CDCFE

The base colors are (I wouldn't make any changes to these):

Theme Background Default foreground Comments Keywords Strings Numbers
Light White FFFFFF Black 000000 Green 008000 Blue 0000FF Red A31515 Green 09885A
Dark Black 000000 White D4D4D4 Green 608B4E _Insufficient Contrast!!_ Blue 569CD6 Red CE9178 Green B5CEA8

image
image

Snippet:

export module Conway {
    export class Cell {
        private row: number;
        private col: number;

        public countNeighbors(cell: Cell) : number {
            var neighbors = 0;
            for (var row = -1; row <= 1; row++) {
                for (var col = -1; col <= 1; col++) {
                    if (row == 0 && col == 0) continue;
                    if (this.isAlive(cell.row + row, cell.col + col)) {
                        neighbors++;
                    }
                }
            }
            return neighbors;
        }

        private isAlive(row: number, col: number) : boolean {
            return true;
        }
    }
}
@aeschli aeschli added the themes Color theme issues label Jan 12, 2016
@aeschli aeschli added this to the Jan 2016 milestone Jan 12, 2016
@bgashler1
Copy link
Contributor

Accessibility Analysis

I've checked all the colors against _Web Content Accessibility Guidelines WCAG 2.0_.

I've updated your comment above with annotations as to which colors could be improved (i.e. ones that only got a AA-rating, or minimum requirements) and which ones did not pass with sufficient contrast.

I will provide updated alternatives in a little bit that will fix the ones not passing minimum contrast.

Aesthetic Analysis

The colors look good on dark, but on light theme the function/method names are not clearly colored (especially for people that have trouble seeing faint colors). We could also improve contrast on type annotations on the light theme. I'll provide some updated colors momentarily.

@bgashler1
Copy link
Contributor

Suggested Replacement Colors for Dark+ and Light+

(Changed colors in bold)

Theme Control flow keywords Type names Function names Variable & Parameter names
Light Pink AF00DB WCAG AA pass Turquoise _267f99_ Dark brown _777759_ Dark blue 001080
Dark Pink C586C0 WCAG AA pass Turquoise C586C0 WCAG AA pass Yellow-brown DCDCAA Light blue 9CDCFE

@aeschli
Copy link
Contributor Author

aeschli commented Jan 13, 2016

Thanks @bgashler1.
I updated the light theme according to your suggestions.
I realized that I had a wrong RGB value in the table above. It's Turquoise 4EC9B0 (not C586C0).
4EC9B0 is also what you see in the screenshots.
Can you confirm that 4EC9B0 is fine?

@isidorn
Copy link
Contributor

isidorn commented Jan 14, 2016

I do not like the gray color for the ligth+ theme for method names.
It makes it look blury compared to the nice black text that the rest of the document has.
I would like a special color but something that looks sharp

Just my opinion as an every day light+ theme user

@bgashler1
Copy link
Contributor

@isidorn, what do you think of #795E26 (_Second Proposal_ below) instead? I think this is a good balance. It correlates with the dark theme's color, but it's much more crisp and has a much stronger contrast ratio.

color proposal 2

@isidorn
Copy link
Contributor

isidorn commented Jan 15, 2016

👍

@aeschli
Copy link
Contributor Author

aeschli commented Jan 15, 2016

795E26 looks good to me, I updated the code

@bgashler1
Copy link
Contributor

Awesome! Thanks guys.

@aeschli
Copy link
Contributor Author

aeschli commented Jan 28, 2016

image

@aeschli
Copy link
Contributor Author

aeschli commented Jan 28, 2016

image

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
themes Color theme issues
Projects
None yet
Development

No branches or pull requests

3 participants