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

Dark mode: Cards #2318

Merged
merged 6 commits into from
Oct 27, 2023
Merged

Dark mode: Cards #2318

merged 6 commits into from
Oct 27, 2023

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Oct 17, 2023

Description

Cards in dark mode, by using existing Sass vars :

Sass var Previous value New value
$card-cap-bg $black var(--#{$prefix}highlight-bg)
$btn-close-active-border-color $white var(--#{$prefix}highlight-bg)
$btn-close-disabled-color $gray-700 var(--#{$prefix}placeholder-color)

Links

@louismaximepiton louismaximepiton added the color mode Temporary label to highlight color mode issues label Oct 17, 2023
@netlify
Copy link

netlify bot commented Oct 17, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit d3230d0
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/653ba8ba7a0cae000816a9a2
😎 Deploy Preview https://deploy-preview-2318--boosted.netlify.app/docs/5.3/utilities/object-fit
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@julien-deramond
Copy link
Contributor

julien-deramond commented Oct 27, 2023

IMO "Featured" area should stay black in dark mode. It seems off, especially in https://deploy-preview-2318--boosted.netlify.app/docs/5.3/components/card/#background-and-color and https://deploy-preview-2318--boosted.netlify.app/docs/5.3/components/card/#border. I'd say we aren't supposed to have white bg color in dark mode (too bright). Let's ask the designers.

Screenshot 2023-10-27 at 09 44 08

@julien-deramond
Copy link
Contributor

In the dark mode page cards look like this:
Screenshot 2023-10-27 at 09 47 17

However, in the cards page:
Screenshot 2023-10-27 at 09 48 05

Cards page should be updated to use the darker image

@julien-deramond
Copy link
Contributor

@julien-deramond
Copy link
Contributor

Cards example page should be updated too. Based on what we can see in the PR, maybe we can drop temporarily the second part of this page since folks should rather use contextual dark mode instead of these dark variants isn't it?

@julien-deramond julien-deramond mentioned this pull request Oct 27, 2023
@julien-deramond julien-deramond merged commit 54ac824 into main-jd-dark-mode Oct 27, 2023
11 checks passed
@julien-deramond julien-deramond deleted the main-lmp-card-dark branch October 27, 2023 12:12
julien-deramond added a commit that referenced this pull request Oct 31, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 3, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 3, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 3, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 6, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 7, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 8, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 10, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 13, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 15, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 29, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 30, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 1, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 4, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 8, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 15, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 18, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 21, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 26, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Jan 2, 2024
Co-authored-by: Julien Déramond <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color mode Temporary label to highlight color mode issues
Projects
Development

Successfully merging this pull request may close these issues.

2 participants