From 793b0f9128f859cd29e69054ab69902ec970904a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 23 Mar 2022 19:18:37 -0500 Subject: [PATCH 1/4] Start adding dark mode --- .stylelintrc.json | 4 ++-- .../components/autosuggest_textarea.js | Bin 8301 -> 8335 bytes app/soapbox/components/status_action_bar.js | Bin 25632 -> 25720 bytes app/soapbox/components/status_list.js | Bin 7302 -> 7344 bytes app/soapbox/components/ui/card/card.tsx | 2 +- .../components/ui/icon-button/icon-button.tsx | 4 ++-- app/soapbox/components/ui/text/text.tsx | 6 +++--- .../components/ui/textarea/textarea.tsx | 2 +- app/soapbox/containers/soapbox.js | Bin 8661 -> 8686 bytes .../components/placeholder_avatar.js | Bin 498 -> 516 bytes .../components/placeholder_display_name.js | Bin 643 -> 663 bytes .../components/placeholder_status.tsx | 4 ++-- .../components/placeholder_status_content.js | Bin 567 -> 587 bytes app/styles/application.scss | 6 ++++++ app/styles/components/status.scss | 18 +++++++++--------- 15 files changed, 26 insertions(+), 20 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 4033457508..c8a71a1648 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -10,7 +10,7 @@ "font-family-no-missing-generic-family-keyword": [true, { "ignoreFontFamilies": ["ForkAwesome", "Font Awesome 5 Free", "OpenDyslexic", "soapbox"] }], "no-descending-specificity": null, "no-duplicate-selectors": null, - "scss/at-rule-no-unknown": [true, { "ignoreAtRules": ["/tailwind/"]}], - "no-invalid-position-at-import-rule": [true, { "ignoreAtRules": ["/tailwind/"]}] + "scss/at-rule-no-unknown": [true, { "ignoreAtRules": ["/tailwind/", "layer"]}], + "no-invalid-position-at-import-rule": null } } diff --git a/app/soapbox/components/autosuggest_textarea.js b/app/soapbox/components/autosuggest_textarea.js index 6bd4c7d97319088fdae63116f516db8c6de2db2c..f64609b608314c255590e2a5dccc9fb15ce32d27 100644 GIT binary patch delta 74 zcmaFs(C@h6k+f|}Vo|nLQo3$&PGU)_u7!btLP3SDfkIM#QA%nNkWrFaQKFk(lvoLt T1FHrLm1ks@q;CEzUBChW`4k$^ delta 40 ucmeBoeCx2`k+gI{g|2}@QhrfNY7vl8l3G!sn_iSyscT_iuvuQFfCT_MHVyIs diff --git a/app/soapbox/components/status_action_bar.js b/app/soapbox/components/status_action_bar.js index 00937f00d8b25f9617cd5b6cd684f83622893837..b3bc4786c3c43d29a96ab6b96723bb2255018a28 100644 GIT binary patch delta 129 zcmZ2*g7L=*#tmYDQVJ=FMcGyv`DLj^RwbzwCA#GqnI);}Rtk!f?M=lu8wNgN7Q?P) WvvBBDMqF|)!q`}G$-Rp<;s5|K<}gnH delta 29 lcmexyf^oqK#tmYDn{@*JGH = React.forwardRef(({ children, variant, size = 'md' {...filteredProps} className={classNames({ 'space-y-4': true, - 'bg-white sm:shadow-lg overflow-hidden': variant === 'rounded', + 'bg-white dark:bg-slate-800 sm:shadow-lg dark:sm:shadow-inset overflow-hidden': variant === 'rounded', [sizes[size]]: true, [className]: typeof className !== 'undefined', })} diff --git a/app/soapbox/components/ui/icon-button/icon-button.tsx b/app/soapbox/components/ui/icon-button/icon-button.tsx index f52e2193bc..1583343466 100644 --- a/app/soapbox/components/ui/icon-button/icon-button.tsx +++ b/app/soapbox/components/ui/icon-button/icon-button.tsx @@ -23,8 +23,8 @@ const IconButton = React.forwardRef((props: IIconButton, ref: React.ForwardedRef