0:00
hello everybody how's everyone doing
0:17
today um Joe I see you couldn't get the uh thing working with power grid um just
0:23
uh reply to your thread on uh on the Forum or on the community and uh we'll help you out okay uh I know you posted
0:30
over there so yeah feel free to uh respond over there and uh yeah we'll help you
0:36
out sweet Mr Cole Mr Powers hopefully by the
0:42
way hopefully I nailed the whole live stream debacle I worked with a
0:48
restreamed hopefully we figured it out funny thing is so you know I'm in the Bay Area and uh like they automatically
0:56
pick the closest server to me to stream to so I was streaming to San Jose and
1:02
apparent for some reason the connection to San Jose is absolute crap so um I
1:09
manually put in their Seattle server and boom speeds were great so not sure
1:15
what's going on with my connection to San Jose but uh whatever it's uh
1:20
hopefully today's going to be better let me know um early on um just give me a
1:25
thumbs up maybe audio and visuals good hopefully it is um
1:31
I I'm not seeing the what I was seeing on my live stream software um in previous weeks so it's all green right
1:38
now so hopefully we're going to be good to go Mr Williams Scotty's
1:45
here Mr workman's in the house ran David got all The Usual Suspects
1:53
Ryan hey Ryan I posted a link on the community uh an hour ago or so about
2:01
this new service called ship sorry completely different topic of today but whatever um and it's like a UPS thing um
2:11
made me think of you because I know you you use a lot of ups and shipping and whatnot so um check it out it's a
2:17
service from a company that I like called Sticker Mule um I like the products that they have um so yeah check
2:23
it out maybe it'll help you out maybe not but check it out I posted the link on the community so there you go
2:30
Gunter how are you doing bud okay so today um I think it was two
2:36
weeks ago when I was doing the swatches thing I think it was the swatches thing
2:42
I don't remember now um what I had for lunch breakfast this morning um but um
2:49
we talked about yeah I was talk I was talking about swatches and uh and I
2:54
didn't want to dive into dark mode and I asked hey guys who wants to learn about dark mode and so quite a few of you uh
3:00
replied and said I want to learn about dark mode well not me I know how dark mode works but you guys want to learn
3:06
how dark mode works so um yeah today we're going to look at uh converting a
3:12
site to look great in dark mode
3:17
okay Danny Grizzle man how you doing bud how's the Log Cabin business
3:27
sweet Danny stop joining I'm glad you haven't joined the Hangouts cuz like you know I I stopped buying cool video gear
3:33
like you know geez man I don't need that right now Danny stay away just playing
3:40
good to see you Danny um all right let's get cooking let me go ahead and uh let's start sharing
3:46
my screen and uh let me just go ahead and
3:52
I'm going to start from an existing site um I was just going to go to actually let's go to um the foundation product
3:59
page okay and let's just go to
4:04
downloads and let's start from an existing Foundation project where
4:11
was of project I think it was this one let's look at this um and if you
4:19
guys didn't know there's a ton of free downloads on a lot of products Foundation has a ton of them um bunch of
4:26
different project files so check those out if you want and I I hope this is the
4:31
project that I think it is let's
4:41
see oh man you lost me on that one Danny 50k on on red I I stay away from that
4:48
brand that Brand's way over me man um yeah all right let's see what is this
4:57
project boom this is the exact project I wanted score I mean it's it's a decent looking
5:03
web page you know and uh yeah that's a cool one let's uh we're going to tweak
5:09
this one we're going to add dark mode to this website or this this page I remember do I have multiple pages on
5:16
this I don't even know what I I only have one page sweet perfect man this is an old project it has some older older
5:23
stuff in here but that's all good should work out and I think I made this project it
5:29
looked like it was before the menu Swatch even existed wow check that
5:37
out yep I don't even yeah I don't think I had the menu Swatch cuz who I would
5:43
not have how did I do that look the uh link colors aren't white what kind of
5:49
crap is that Dam what kind of crap designer built this site okay um let's just quickly fix
5:57
that one cuz I do want to do a minu Swatch on here so let's go ahead I'm going to um let's fix that let's do menu
6:03
Styles I want um uh I want my text to be
6:10
white um we'll call this cool menu
6:19
okay and I I don't want to style background on hover or just going to call this one boom there we
6:26
go there we go that's looking better a hover color is kind of crap let's just change fix that really
6:33
quick uh hover text we don't want that let's do
6:38
um let's do like 60%
6:46
white yeah that's a cool trick by the way if you guys didn't know like you know a lot
6:52
of times you don't need to change have a completely different color on Hover you just change the opacity right so if you
6:59
you see this like um instead of white I want to you know have some sort of hover effect when you when you hover over the
7:04
link and I I made it the same color I just gave it an opacity so that the back
7:09
whatever is behind it the background kind of bleeds through a little bit right um so yeah cool little trick
7:17
okay um I think the rest of this page looks pretty cool actually I like it
7:27
okay so dark mode uh I know by the way I know some this project has some other you know if you
7:33
see this background is v632 um that's just because this
7:38
particular Swatch there's a newer version available I'm not going to go through and and update all these
7:45
swatches um I know for example like this particular one um there's a new button here for total CMS oh by the way let me
7:52
know in the chat um do you want me to like always use this little cursor tool
7:57
that I have sometimes I forget to turn it on but um does it make it useful to help you track where I'm at and whatnot
8:04
let me know in the chat um if you like that okay um so yeah just some swatches
8:10
if you if you ever have a Swatch on a project that has a little version number that just means um that that particular
8:16
Swatch is locked in at that particular version um and if you added a new let's
8:21
say background Swatch or overlay Swatch it would have new features um in it okay
8:27
um sometimes I have to do this because sometimes when I add a new feature I I don't want to break any existing
8:33
instances and so if you notice here position has Shadow a lot of swatches I'll tend to if I want to add a new
8:40
feature I don't want to break anything uh existing um I'll do this little trick where I'll lock in the current version
8:47
um and then the new features will go in any new instance of that swatch okay
8:55
so um yeah so we want to talk about dark
9:01
mode helps if I open my cup um we want to talk about dark mode
9:11
so when my my Mac currently is in dark mode okay if you notice my entire Mac is
9:17
in dark mode and the first thing we're going to be reviewing today is the ability
9:23
to if you go into your system settings and this the same if you're on a Mech or an iPhone um you can swap light mode and
9:30
dark mode so I swipe if I swap between light mode and dark mode you'll notice here the website stays the same there's
9:37
no logic that actually follows whether or not um I have chosen my Mac to be in
9:43
dark mode okay or my iPhone um and I assume Android and
9:49
Windows users have that same thing I really have no clue but we all have Macs and iPhones probably so we're the cool
9:56
kids and that's all that matters were're cool except for Chris he's not
10:03
cool um all right so how do we target uh when someone is in dark mode super easy
10:11
and it's baked into pretty practically every single uh Foundation Swatch now I
10:18
will have to say that let me just click out of here really quick one thing I should say is
10:24
that building a site that supports both light and dark
10:30
it's you're almost doubling your work to be honest with you I mean this this isn't something that
10:36
is you know it's not hard to do but it's a lot of work because you just can't
10:43
change the color of a background or change the color of text which we'll see here right some things will look okay so
10:49
maybe it's not exactly double right um because you can use your same layouts but
10:55
like picking all your colors you're going to have to like pick completely completely different color schemes at some point right if you want to have a
11:02
light theme and a dark theme so yeah just be weary that if you want to add
11:09
dark mode support to your website um it is going to be substantially more work
11:14
maybe not double maybe 50% more right um because you're going to have to it's
11:20
possible that we'll even see here today that maybe some images won't look good
11:26
in on on dark mode but they look great on light background right so there's a
11:31
lot of things we need to take into account here that are again your the layout of your site can stay the same
11:38
but you we're going to have to tweak a lot of colors here and it could potentially be a lot of work so um yeah
11:46
I just want to give you that little warning uh before we dive into this
11:54
so so in every Swatch and let's go ahead and I don't need that um let's just pick
12:01
one here um background is is an obvious one okay um this particular one this
12:07
particular uh Banner probably won't have any issue but you'll notice that there's this pseudo State uh oh no I'm sorry
12:14
media query um so if we click on media query we'll see that the actual very first uh
12:21
option here is dark mode okay so we can uh go ahead and Target a particular swap
12:28
watch only in dark mode now you can't Target light mode
12:34
okay so um that is one caveat you cannot Target light mode so that means anything that isn't set to dark mode is light
12:42
mode okay and if you don't have something that overrides the light mode with dark mode your light mode settings
12:49
will pass through into dark mode okay for example this particular
12:55
website right I don't have any swatches set for dark mode however my default
13:02
site is being displayed because that's what we need right um it it just passes
13:08
through into dark mode since I don't have anything we get then get to override um those settings um so for
13:14
example first thing we're going to do is um I think the easy thing is change out
13:19
the website background color okay so
13:25
now this is going to also drastically increase the number of swatches that you
13:30
have so um Swatch organization is going to be very important okay so um I'm
13:37
going to go ahead and just add in a pen here and I'm just going to set this to dark mode
13:45
okay okay so anything I add in here will be uh our dark mode okay so um I'm going
13:51
to go ahead and add a background Swatch now I want to change now the
13:58
website site background is the first thing we want to customize and in here in site Styles we
14:05
have our site background settings okay now the default is white I don't have
14:10
one explicitly set but the theme has a default okay which is white okay um but
14:15
there's no option here for dark mode okay and by default classes are used in
14:22
swatches well I can't have a class for my website background how am I going to do this so if you didn't know um we
14:29
showed this many times page element and then you can just choose body okay so
14:34
right now we're going to change the background color of our body and let's go ahead and pick a color
14:42
okay and um let's pick something
14:48
dark how about something not completely black there we go like a dark gray okay
14:55
now remember all I have to do is that set this media query to dark
15:00
mode okay and let's go ahead and preview this so now I'm going to change this is changing the website
15:07
background to um this very dark gray when we are in dark
15:14
mode okay and voila right now there's a couple things
15:19
you might notice a this section here isn't because that's not you that's a
15:24
container that has a special background right um but we have we have our
15:30
background color here now obviously a lot of stuff just doesn't look good anymore I think my personal opinion in
15:39
dark on a dark background obviously the text color needs to be we need to update that maybe this image right um we
15:47
probably need to tweak this background color so that it's not as light it needs
15:52
to be darker right and uh yeah so we we
15:57
have a lot of work to do in this form this form doesn't is maybe when we change this backround here it's not this
16:03
isn't going to look good right it's like H see this is it it's a lot of work okay
16:10
our menu down here doesn't look great I think up here probably looks okay um I'm
16:16
not in love with this color combination of this with that but it's something I could live with I think um now here
16:24
let's just tweak off let's twe tweak something here I'm going to go ahead and uh
16:29
I'm going to use this Color Picker let's pick for dark mode let's pick like a purple from in
16:37
here so it kind of matches how about like this this dark right
16:42
here let's do that right so I'm going to do that I'm actually going to change my
16:48
website background to be
16:53
that let's see all right so um instead of like a
17:01
dark gray or black I just picked a color from um from this image up here and
17:07
let's let's go with that okay so yeah um still not in love with
17:14
it but maybe he needs a little bit more
17:20
purple we got to make this look good let's let's go do a little more purple
17:25
let's try that color
17:39
he let's go with that okay let's do that so first things first so I'm I'm good
17:46
let's say we're good to go with this website background let's just start picking off the big things okay text
17:53
color text color has to change okay so um we need to go ahead and how we going
17:59
to modify that so let's go into here we are going to add in a
18:06
um text color swatch
18:15
okay um and then we're going to apply this to um the whole page um so we're
18:21
going to do element body okay and uh we're going to do uh dark mode and our
18:28
header color I'm just going to go boring I'm just going to go all just going to pick white for now right so when we're
18:35
in dark mode okay I want all my body colors to be white and funny enough uh
18:41
it actually changed all of these inside edit mode which is interesting okay um
18:47
let's preview that so there we go okay so that's actually looking a lot nicer right so we got our text is popping okay
18:55
now let's see let's go ahead and open up our system settings and just so we can see this I'm to go to
19:00
light mode voila okay and if I go to dark mode
19:07
voila very different right
19:20
okay can't see the settings oh I just noticed you guys said you can't see the oh shoot I'm sorry um one second guys
19:29
sorry about the settings totally missed that man what a rookie look at
19:37
this can't believe I did that that's weird how did that
19:47
change okay there we go sorry about that sorry
19:56
for a few minutes hopefully you guys kind of saw what what I did here I'll review so in body all I did is I picked
20:01
obviously picked the background color um I used media query dark mode here um and
20:07
then page element body sorry about that um okay good thing I I looked at chat so
20:16
there we go text colors are white okay there we go right if you notice it changed it all
20:23
here change it all up there someone asked what this Color Picker is this is a color this is one called color
20:29
slurp um I kind of like it um you can you can choose different you can save color palettes here okay so like I have
20:36
the color palette for foundation 6 which uh I guess I didn't add here's my Weaver
20:42
space colors all right you I have like one called gray scale that has various colors of gray okay um and then yeah one
20:49
thing I like about color slurp you've probably seen me use it um is you can just basically drag and drop the color
20:54
the active color here or from down here and just kind of drag and drop those things um into color Pickers so yeah
21:01
it's nice okay um where was I text colors
21:07
body color done still not visible
21:14
let's reset you guys have to be able to see the settings now
21:25
right you guys still can't see the set settings on my output it says that I'm
21:31
showing the settings looks like I am okay um
21:36
excellent looks like you guys can see it now cool sorry about that um okay let's keep
21:47
going I guess I had to refresh the the feed whatever okay
21:53
um I didn't do anything rocket science uh yet all I did is on on back text
21:58
colors and background we set the element to be body so we're applying it to the entire web page okay and we set the
22:06
media query to be dark mode that's it right can I do like there it is Boom
22:12
dark mode I can hold down control key I should make that
22:18
bigger any right and there's our color and then same thing for text colors um so now okay what are we going
22:25
to work on now uh I think let's work out work out the
22:32
uh this section here so we need to pick out a new background color here okay so first off let's find the Swatch that
22:39
controls this little container here okay um here let me just go ahead I'm going
22:45
to cheat a little bit let's go look at what class I applied here section color
22:50
okay so I have a section color class okay somewhere uh section color here we
22:57
go I'm using the Swatch light gray okay um which is actually interesting so um
23:04
it's using the light gray color um let's do something different there there's two different ways I can do this okay
23:11
um the first is uh we'll do add a background so I'm going to go ahead and
23:17
uh we're going to copy and paste body and we're going to do section color here
23:24
SE section Dash color okay um dark mode and then here we're
23:31
going to change the color okay and what I'm going to change it to is let's change it
23:36
to find a color needs to be lighter than this
23:44
but all let's pick a let's pick a color from here why not let's pick out
23:49
something like one of these kind of gray blue colors let see how that looks I
23:55
have a feeling that's not going to look good but whatever let's
24:01
see
24:08
boom h i don't hate it okay um we're going to keep it for now okay um I don't
24:15
hate it but there we go right and uh but next up is we need if you look at these
24:23
these are all white and we we don't want we don't want that right obviously we don't want that I think I'm okay with
24:29
the with the cards still being white we can keep the the card background white okay um but yeah we need to change the
24:37
white text here um so what we're going to do
24:45
is um I'm actually going to use um I'm going to create a new text color
24:51
swatch and what we're going to do is we're going to add this to um section
24:56
Dash color Okay in dark mode and uh we're
25:02
going to just set it to be I'm just going to be lazy and just pick cran colors
25:10
okay so there we go so uh what I did was okay um for Section color I to be honest
25:20
actually you probably don't want to do that because this white text would probably still look good in section color maybe we do something like um
25:28
we'd probably Target this card right so we we do um see if I have any classes
25:34
added to those cards have rad no you don't want to do
25:42
radius pretty sure these have a class of
25:48
card let me just look really quick yeah card okay um so do you guys understand
25:54
what I what what I'm trying to get out here is um
25:59
we if this text was on this background we don't want it to be black or yeah we
26:05
want it to be white because the white would still look good here but it wouldn't look good on this card so we
26:12
you know from a design perspective you have to decide do I still want this card white or do I want to change the color of that I'm saying let's keep it white
26:21
but we need to make sure that this text even in dark mode isn't white which is the default which we changed to be the
26:27
default color of the text so um what I'm going to do is I'm going to tweak
26:34
this all and what I'm going to do is I'm going to do something maybe a little Advanced here um there's a couple
26:41
different ways we can do this I can just do I can do a class of card okay and then I can do parent class
26:48
of um section color okay so what this is
26:53
doing is is it's finding the section color and any card that's inside of that
26:59
in dark mode set it to be this color right um let's go ahead and preview that
27:04
and that should that still looks good okay so it again it's targeting cards
27:10
that are inside section color class um and we're going to make that U the black
27:17
color okay and let's just go ahead and uh for fun where's my I close my system
27:26
settings so light oh wait got it preview right and let's bring that
27:34
that so we can kind of see what everything looks like over here if we change to dark
27:41
mode voila right pretty cool I like
27:50
it now we're we're getting we're getting actually pretty close I think there's some things we we can do now there was
27:56
actually another opt option that I wanted to show for Section colors okay U
28:01
almost forgot so I to change the background of
28:08
section color if we looked at the original way this was done it uses the light gray color now the light gray
28:15
color is inside of site Styles and it is under the site colors
28:22
we have here we have primary secondary alert success warning white light gray so it's this color okay and again
28:29
remember if I were to change this light gray color it would change any every everything that actually references
28:36
that so one thing I could do okay is instead of doing
28:42
this what I can do is I'm going to go ahead and add in a components component
28:49
colors okay and if you look at the component color swatch it has all of
28:55
those primary colors as well as light gray now what I can do is I can change light
29:00
gray to be uh oh did I close color slurp where's
29:07
my color slurp there it is right what I'm going to do is I'm going to change light gray to be this color
29:16
voila okay so now uh oh and I want to change it when we are in when we are in
29:23
dark mode dark mode and I need to make this
29:29
body so it changes it for everything okay so now now when I
29:35
preview this it should look exactly the same as it was before and voila but it's different okay
29:43
um it's different because now um anywhere I don't know if anything else on this page references the light gray
29:50
color but now the light gray color now references this um you know kind of
29:56
grayish blue technically it's no longer light gray right um but that's okay it's just
30:03
a name right it's just I just randomly when I chose these it was like let's
30:08
give you a white and a dark gray right and so you can change all these things
30:14
um so you can update and modify these colors based on dark mode and another
30:19
benefit of that is if we look further down I have this button here okay and if
30:25
you notice maybe I want to change the color of this button and this color um is
30:31
primary okay so um if we look inside site Styles okay I had set primary to be
30:38
this purpley color interesting it's not getting displayed up here not sure quite why oh it's
30:43
because this this Swatch is overwriting it interesting I never thought about that that's technically a bug I should
30:49
look into um because my Mac is in dark mode so dark Mode's overwriting the default
30:55
colors interest interesting uh if if you didn't understand what I mean so here
31:01
inside site Styles let's just go ahead and I'm going to turn that uh let's just
31:06
delete that really quick now if you look here primary is set to this purpley color right but if I go ahead and put
31:13
that swatch back and we go back up here it's primary so pretty interesting um or
31:19
the primary is this light color blue so if I go to system settings again and I
31:25
go ahead and toggle light mode right see oh interesting sta probably
31:30
cashes it or something oh wait no it's in dark mode
31:37
interesting wonder if I like exit out and go back in or something here let's go back go back
31:44
here interesting all right well I won't debug that for right now but it it'll
31:50
work on our published site um all right getting back to it so
31:56
component colors what I I want to do is dark mode I want to change what the primary color is in dark mode okay and
32:02
um let's just go ahead and set it to
32:08
be I'm going to set it to be actually a lighter color okay and then I'm going to set the primary text color to be um that
32:16
why not okay let's preview that so there we go so now this button here which is
32:23
on the page and if we go ahead and find that form button there uh there it is
32:29
okay we'll see that it's set to use the primary
32:34
color so what I did was I I now have a components Swatch that when we are in dark mode it
32:41
changes the primary color to be um a light gray with this purple
32:47
text there we go pretty cool and then also the light gray background right and so anywhere that references those colors
32:55
we're good to go right so um here uh couple other things before
33:02
I I start tackling forms okay let's go ah and tackle some stuff down here um so let's tackle these
33:09
menu items so over here we just go ahead and let's see what those menu items
33:15
are oh it's a partial uh just to make my life easier I'm just going to unpack
33:20
that okay um and these are
33:25
using okay menus and if I look up
33:32
here and if we scroll down oh here's our okay so it's using the default link color okay so what I'm going to do is
33:39
I'm just going to go ahead and um text colors so we're going to
33:46
update the link color here to be white cuz in dark mode white just looks better
33:53
okay so if we go ahead and preview that now that did not change
34:02
it did I change the right one dark
34:07
mode okay I didn't think that that's what it
34:15
was uh could be a Swatch here F oh I was using oh that's that's
34:23
font [Music] size Banner type title section card divider card mini wrapper it's
34:35
padding it's not using not using this one sub menus all
34:43
right here I'm just going to cheat I'm going going to inspect it let's see what's what's doing it here man
34:50
inspector is ginormous okay uh one second this is using
34:59
Bar menu link color
35:13
okay I must have a Swatch somewhere that does that
35:20
H there it
35:25
goes
35:31
I mean I created this project years ago so let's see is there any sort of
35:44
other well let's just go ahead and what I what I'm going to do is uh I'm going
35:50
to create a new menu Styles okay we're going to call this
35:55
uh uh footer menu or footer links let's call it footer links it's probably
36:01
better okay um and then we're going to do media
36:07
query dark mode and we're going to make the text same thing okay as we did before in in
36:14
this menu okay actually be honest I could probably just do cool menu or here
36:19
let's do yeah could be the same just use cool
36:25
menu and it's oh this is Media query
36:36
oh that oh yeah we don't want that this is all menus because this one doesn't
36:42
Target dark mode uh let's yeah okay sorry let me just go ahead and put that back we want
36:49
footer menu I did footer links but here footer
36:54
links and we're going to Target dark mode and then we're going to use those okay so what I'm going to do is here is
37:00
I'm going to go to footer links and then we're going to go to all of these menu Stacks down here this one this one and
37:09
this one oh shoot clicked on the wrong thing that one and that one we're going to
37:15
paste in that class right so now if we preview right so now my footer links are
37:22
all white and let's test that it looks good in dark mode or light mode I
37:29
mean preview in light mode everything goes back to the way it was there we go
37:35
I know what this was by default menu links use the primary
37:40
color um so there we go okay
37:48
um go back to dark mode voila now we have a few small odds and ends
37:56
that we need to um tweak if you notice this icon down here at the bottom is um
38:03
black looks fine on white background doesn't look fine
38:09
on um dark mode right so let's tweak that what can we do
38:18
here so there's a couple things we could do um if this now this is an SVG so that's kind of cool because we can now
38:24
Target svgs with swatches okay so um we're going to do um I'm just
38:31
going to give this a asro logo okay going give this a class
38:38
so that we can Target this particular SVG okay and um let's go ahead and do a
38:46
Swatch we're going to do an SVG Swatch which I believe is here okay we're going to drag that into
38:52
our dark mode swatches and I'm going to Target astro
38:58
logo and we're going to Target when it's in dark mode and I want the fill color
39:03
to be white I think that's all we
39:10
need voila he pretty
39:15
cool so now our entire site is looking much
39:22
nicer and it's all in dark mode now okay
39:27
let's target forms all admit this this is forms can
39:32
be be a challenge now I'll admit this actually doesn't look horrible having a
39:38
white form I think people are used to that but let's go ahead and tweak that
39:44
see what we can
39:50
do okay so let's go ahead and add in a background what color are we going to make it um
40:00
yeah the problem with forms is like there's like the little glow there's all these kind of little tiny styles that
40:05
you need to tweak when you do a form uh which is a little Annoying um I mean it looks great when you're on a particular
40:12
background but to style it all um there's a lot of intricacies if you notice there's this little glow it's
40:18
because there's that little um there's a little glow that happens that looks amazing on a lighter background but
40:24
sometimes on a dark background it doesn't so uh let's go ahead and add in but let's start with the background okay
40:31
and um we're just going to do we're going to
40:37
Target all form inputs so we're going to go
40:42
element uh form Fields okay and
40:47
then we're going to do media query dark mode and background
40:53
color um
40:59
I'm not 100% sure what's going to look great um here let's try let's try this
41:05
color no clue how that's going to work but let's have let's have a
41:11
gander right well our text input right is there and that that actually looks I
41:16
actually kind of like that that looks actually pretty smart I like it makes it look transparent okay these ones didn't
41:22
go though what's going on there might need a uh I just need a
41:28
little bang important on that there we go okay when in doubt use the hammer you know what actually I really
41:36
like that um now uh the text area if you noticed oh no it's there it's done now
41:43
boom minus my sometimes one password is annoying um so there we go actually I
41:49
really like that um now we could go ahead and tweak um this is the help text
41:55
okay if you wanted you know what it's it's not the best here um I think that
42:00
is yeah help text um let's go ahead and tweak and
42:06
we're going to add in a uh font
42:13
color and uh let's go and we're going to do let me see if it's in here form help
42:18
text yep form help text okay um and then we're going to do dark mode and let's
42:25
just do um a lighter color on
42:31
that voila completely redone site for dark
42:37
mode pretty slick right
42:42
um yeah I really like that actually I think that looks
42:49
fantastic okay a couple things I I want to note let's say
42:55
um I don't think this image looks horrible but let's say I wanted to TW Let's Pretend This image looks horrible um
43:04
in dark mode and we want to tweak that okay so um because there there will be
43:11
times where an image looks really really great on on a white background maybe it
43:17
has it actually the image itself has a white background right um and it kind of Blends into the background of the site
43:23
um it's great but then in dark mode the the obviously the background color is different that image now looks horrible
43:30
okay so what can we do so the foundation picture stack has
43:36
support for dark mode um now in this particular example um we're we just have one image that's
43:43
served across all devices okay but we're going to go ahead and we're going to add in a drag and drop Source okay and what
43:51
I'm going to do is I'm going to set the media query to be dark mode
43:57
so in dark mode this is going to be the media query that is going to be used so
44:04
let's just go ahead and uh let's pick an image here um I don't think I have any
44:10
astronaut images we
44:16
got oh here we got Foundation six boom that's kind of fitting okay so in dark
44:22
mode um this this astronaut picture should change to be the foundation 6 um
44:28
Banner okay let's uh have a look voila and let's test that that
44:35
actually is true we go to system settings toggle toight mode the image changes so again I I I
44:43
think this astronut image looked okay right um but there are times that you're going to want to modify the image and
44:51
there you go it's really simple to do with the foundation 6 picture stack
44:57
so you can change out all of these right any questions um I think we
45:05
did a pretty bang up job of uh of redoing this site for dark mode and uh
45:11
as you see it wasn't may maybe I was a little melodramatic at the beginning saying it was you know 50 now but this
45:18
is a very simple page right and there's a lot of little intricacies you know it depends on how much time you spent
45:23
styling this is a very simple page so you've styled a ton of stuff um you know
45:29
trying to get double that work for dark mode it's possible right um so there we
45:37
go not too me yeah I did it in one two three four one two three four five six
45:43
seven swatches seven swatches not too bad oh
45:48
wait this one oh eight here I forgot I got the menu Swatch so I had eight
45:54
swatches um to redo do everything and that's because a lot of my swatches here are like height and um you know this
46:01
particular um background this one here this background image I was fine with this background image being for light
46:07
mode and dark mode I was okay with that right so I didn't need to redo this one right um this padding swatch for for
46:14
menus I don't need to redo the padding I I'm I just want to tweak the colors right so I don't need to redo every
46:22
Swatch um and maybe like here the this there's a Shadow on those cards I was
46:27
okay with the same Shadow on dark mode I didn't need to redo it right so you know
46:32
you're going to have to pick and choose what styles you want to override for dark mode and as you see here for this
46:38
particular page again it is a simple page it only took eight
46:44
swatches not too shabby actually I admit I thought this form was going to be a lot more difficult just changing the
46:50
background color to match the background of the container huge difference and I'm actually fine with the the the
46:55
background the white border um I think it looks kind of cool right so there we
47:02
go all right next up um you know I should have duplicated
47:10
this um so the next bit here I have to admit I'm
47:17
I've never I haven't done this
47:22
okay um I think there might be a small amount development that needs to be done um for
47:29
like let's say you want a toggle okay and you want the user to be able to say hey I want dark mode now and just use
47:35
click a little toggle up at the corner and have that change out light mode and
47:40
dark mode okay um there is a stack out
47:46
there I don't even remember who makes it it is not me go to made for
47:52
stacks and uh I know let's search for dark oh look at that there's a stack
47:59
called Dark mode okay who makes this RW prodev Carl Carl are you here I don't
48:06
know Carl joins sometimes um so this stack um I don't even know
48:14
here let's just go look at the demo let's see how we can use this I know some users use this okay
48:22
um enable Okay he hey just let you know uh yeah it looks like he fixed his
48:29
privacy Center to work with a one blocker cuz I'm using one blocker and his privacy Center showed up so there we
48:34
go um where is the demo for this oh here light
48:40
dark very cool um so there's a switch
48:48
stack I wonder I'm not 100% sure how how he does
48:55
it like how can you customize like how do you know it does it for everything so
49:01
I don't know try you can try this stack out I wish I knew wish I had done some
49:09
research beforehand so I knew exactly what uh what we were doing here I'm
49:17
curious sorry I'm poking around your your your business Carl my
49:24
bad it adds prefers dark to the HTML but
49:29
does it
49:34
add can we I'm curious can we just use the the swatches as is like you know for
49:42
media query dark mode I don't think you can
49:54
um um H let's let's do some Googling here
50:00
all right cuz I'm going to need to Google anyway uh to be able to see if I can do this natively with just
50:06
Foundation um but if you want a solution today as of right now go check out this
50:12
stack um now I believe um what this stack does right
50:20
because this is how I would do it um we go in oh maybe
50:31
that's interesting so if you notice here there is on the HTML there's there's a
50:36
class on the whole web page called prefers dark okay um and here let's go
50:42
ahead and if we turn that on to light oh prefers dark is still there
50:48
oh H interesting that's because I'm
50:53
preferring my my system setting is set to prefers dark but his toggle oh oh
51:00
here he has dark mode set on this particular
51:09
div okay never mind I'm not sure how how you would set
51:16
this uh let me do a quick quick Google search um JS how to
51:24
detect um color
51:34
mode H I know how to do it with CSS how to do it with
51:45
JS window match media isn't oh really you have to do it that
51:52
way that is that is crap can't do that with JavaScript what kind of burst my
51:58
bubble
52:07
[Music] actually that sucks does anybody know does anyone own
52:15
this stack that's in the chat just curious and have you used it with
52:20
swatches right as um he says it sports with Foundation 6 and it I'm sure it does work but I I don't know if it just
52:29
goes ahead and and what exactly it does like how do can you control the level that we did today I don't know okay
52:38
um something that that I've thought about doing is and I thought we are kind of
52:46
running low on time today but a cool update that I could ship um is you know just using a
52:53
foundation 6 togg
53:03
uh where am I looking at here forms I want a toggle a switch right so I'm just
53:10
going to Chuck this right here for right now okay so we have a switch okay and so we have a switch here
53:18
like just giving you the ability to set that to be your light or dark
53:24
mode switch um I'm not going to take the time to go ahead and try to code this um but let me
53:32
tell you how I would potentially do this okay and how we would leverage this um
53:38
and there's a couple different solutions I was hoping that um I
53:44
could have that this toggle go so that whenever you use um dark mode if you
53:52
have this enabled like I can force that somehow okay but another way okay is
54:02
um and let's say there is a Swatch I don't think there are swatches that don't support media queries but it's
54:07
possible there could be okay um and if there is if you'll notice um inside um
54:16
Foundation I I do add this prefers dark class to the web page okay so there's
54:23
prefers dark and um if I go ahead and let's go ahead and change my system
54:31
settings I'm going to he okay and let we inspect this
54:39
now okay um if and I refreshed you you'll notice that it no longer says prefer dark on the HTML okay so that's a
54:46
parent class so um what do is instead of using
54:54
this Let's Pretend media query didn't exist you can actually Target via a parent class and you could Target
55:02
prefers Das dark okay and um so this one is the SVG
55:08
so if we look at this now um we'll notice that it still works even though that I'm not using the media query I'm
55:15
using the parent class instead um and that's because that's a feature of foundation and I was just going to
55:21
leverage that um that feature to um basically allow you to toggle a prefers
55:28
dark on or off of the entire web page um
55:33
if anyone is uh you know curious you might be able to do it with to the Toggler Swatch I'm guessing not though
55:40
I'll be honest um I think it needs to be something that that I add um I thought we'd have a little bit more time today
55:47
um and I could maybe attempt to develop that Live While We're going but um yeah
55:52
we kind of ran out of time today so we won't have time um so um I I'm going to play around with
55:58
this um maybe we'll get see something like that in a in a future uh update to foundation so we can actually you know
56:05
have a toggle um and when I do that maybe I can do another live stream um or a video on that so that you can learn
56:11
how to use that because I'm not not 100% sure if you need to use the parent class or if I can allow it so these media
56:17
query dark mode things actually work that that would be my preferable method um but anyway um let's go and field some
56:26
questions let me go ahead and look at chat see if there's any questions about dark mode stuff um and also check out I
56:32
mean again that RW Pro uh so Carl check out his uh dark mode SWAT or dark mode
56:37
Swatch dark mode stack and um that works today so you can get that now um not ex
56:44
exactly sure how it works with swatches um but uh if you would like to you know
56:50
post some comments on um this live stream's uh post on the community
56:55
let people know we can talk about it okay uh and maybe maybe that's a perfect solution okay
57:14
um oh so irn says that a few are Set uh a few are set sitewide others are blends
57:20
of RGB so maybe you're I'm assuming that that stack like alls you to set colors but you can't get like grainy or like we
57:27
did like you can like have a Swatch specific in dark mode for a particular thing you know I would I would suspect
57:34
that his wouldn't have that level of of detail um and he couldn't um you know
57:41
because obviously Foundation is huge okay so um yeah I think it's something
57:47
that I I'll investigate further to see if it's something that we can add directly um you know just you add a
57:52
switch to the not exactly sure on the implementation it'll probably be tied to a switch though I think that makes most
57:57
sense you know a little switch um so using a form switch Maybe by having either you know adding a special class
58:04
to it or um I'll probably have a checkbox on there it kind of turns into a magical switch or something like that
58:11
I don't know um but anyway cool
58:16
um yeah that's it that's all I had for today hope you guys enjoyed that um I think it's pretty simple um how to do
58:23
this using the media query dark mode but I know a lot of people had questions about that and maybe you've never done
58:29
that before so yeah hope you learn something a little bit today and uh sweet take care go out and check out
58:36
Bento and check out um Bill burden's did a cool stamp layout you probably saw I
58:43
sent it out in the Weaver space um or Weaver bites email yesterday so check
58:49
that out and uh cool so hope you guys will see you on Friday at the hangout it's at
58:56
1:30 p.m. 1 hour from right now but on Friday so check us out there and yeah
59:03
also hey subscribe to YouTube I've been watching our subscriber account it's not really going up so if you're not subscribed go ahead and click the
59:08
Subscribe button that'd be great not really sure why but I don't know make me
59:13
feel better that I have more subscribers cool everyone oh shoot
59:19
trivia we got to do the trivia oh man you guys okay um man another day dang it
59:26
I was hold on give give me one second let me go ahead and um I need man I need
59:31
to come up with like trivia ahead of time so that I have like a bank of trivia questions right
59:53
um
1:00:17
I'm using chat GPT to generate My Trivia Question here let's
1:00:22
see oh here's a good one
1:00:28
okay um it's probably it's probably really
1:00:34
simple maybe not I don't know okay um this the the answer actually isn't a
1:00:41
number this time okay so what does CSS stand
1:00:50
for first person let's go
1:00:59
in the chat first person $10 boom Irwin cascading style
1:01:07
sheets okay good job Irwin so Irwin wins
1:01:13
sweet that was something non like Stacks related I thought hey let's go like just general web development um kind of
1:01:20
something that maybe some beginners and whatnot would uh would know
1:01:29
oh chat gpg's got some good ones I I'm going to bank some trivia questions in the future using chat
1:01:37
GPT that was a typing speed [Laughter]
1:01:42
test sorry Danny fastest fingers in the west is
1:01:49
Irwin I guess huh nice okay uh Irwin I'll shoot your your your $ gift uh gift
1:01:56
certificate um or store credit um later today and uh sweet thanks everybody hope
1:02:02
you had a fun um fun time and you learned a little bit and we'll see you next week take care everyone bye