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

fix(theme): light theme surface lightness is inverted #407

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

mmstick
Copy link
Member

@mmstick mmstick commented Apr 22, 2024

Requires update to cosmic-settings to use the new values when generating a theme.

Currently, light themes are getting darker surfaces when the background lightness is below 89. In Figma, themes with background lightness above 88 have their surfaces darkened; whereas below 88 have their surfaces lightened. This fixes custom light theme surfaces being unusually dark against a darker background. Some comparisons below using color schemes from Figma

Figma

screenshot-2024-04-22-18-47-39

Before

screenshot-2024-04-22-18-52-44

After

screenshot-2024-04-22-18-54-27

In Figma, themes with background lightness above 88 have their surfaces
darkened; whereas below 88 have their surfaces lightened. This fixes custom
light theme surfaces being unusually dark against a darker background.
@mmstick mmstick merged commit 68becf3 into master Apr 22, 2024
11 checks passed
@mmstick
Copy link
Member Author

mmstick commented Apr 22, 2024

I'll quick release a cosmic-settings update

@mmstick mmstick deleted the light-theme branch April 22, 2024 19:04
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.

None yet

2 participants