How to Easily Swap Logos Between Dark & Light Mode (Bricks Builder)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 45

  • @isaurasotoca
    @isaurasotoca 7 หลายเดือนก่อน +2

    It's amazing to start seeing 3.0 tutorials!!! 🥰 OMG, that SCSS panel will be really handy!!

  • @davidwalls2304
    @davidwalls2304 7 หลายเดือนก่อน +4

    Great short discussion showing how to make the logo change based on color scheme. I'm looking forward to the longer color scheme video(s). Love the comment, "Best of luck to you" -- priceless. I'm using ACSS so life is much easier for me, but still, best of luck to others not using ACSS.

  • @Jim.Hummel
    @Jim.Hummel 7 หลายเดือนก่อน

    Well, that was easy! And thanks to ACSS and Bricks together with the Geary magic, it was! Thanks, Kevin!

  • @BGdev305
    @BGdev305 7 หลายเดือนก่อน +1

    Viewers take notice.. it was explained how to accomplish this even IF you DON'T have ACSS. When it could have been explained ONLY using ACSS. This speaks volumes about the presenter.
    Hey @Gearyco Container Queries (Size) is at 91.11%.. you already know it's game changer time for Frames and ACSS!

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      I like 93ish to really feel good. But yes, they’re coming to frames soon!

  • @groundpets5101
    @groundpets5101 7 หลายเดือนก่อน

    Thanks for posting, step by step love it! I looking forward the acss course coming up...also look forward more videos on how do all the step by step how get the colours over on site, make a website very professional done. Great for people who are dyslexic

  • @chrisgreen5711
    @chrisgreen5711 7 หลายเดือนก่อน

    Another great tutorial Kevin and can't wait to try ACSS 3 😃. I found the video and sound in perfect sync if that helps at all

  • @AmandaLucaseu
    @AmandaLucaseu 7 หลายเดือนก่อน

    Great video Kevin 👌

  • @eucalyptech
    @eucalyptech 7 หลายเดือนก่อน

    Great video, thank you Kevin !

  • @davidnickson5043
    @davidnickson5043 7 หลายเดือนก่อน +1

    Incredible tutorial! Another thing I was wondering is:
    Let’s say you have a transparent sticky header with a black logo. Your sections below it alternate between light and dark. How would you make the logo change color based on the section it is over?

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      Hmm. Depends. Mix blend mode could be an option if it’s a simple SVG. JS would be required otherwise. Most clients aren’t paying enough to get that level of thought. These aren’t things that make businesses more money.

  • @MrMrTyree
    @MrMrTyree 7 หลายเดือนก่อน +2

    Super practical. ❤ are you able to show a tutorial for a switching the logo on a sticky header? Either way drop 3.0 😂

    • @dahunsi
      @dahunsi 7 หลายเดือนก่อน

      I would love to see that too.

    • @BGdev305
      @BGdev305 7 หลายเดือนก่อน

      That's an easy one, if you mean swapping it based on % of scroll, can even animate it like fade in/out. Easy with CSS.. easier with a bit of JS.

  • @dahunsi
    @dahunsi 7 หลายเดือนก่อน

    Nice and short. I was wondering what the other lines of CSS was for. Frames?

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      Controlling the icons in the toggle switch because they are custom icons and bricks really struggles to style certain kinds of SVGs

  • @jasongreenlees4478
    @jasongreenlees4478 7 หลายเดือนก่อน

    Nice and short Kevin thankyou, is there a way I can use the acss alternate colours in response to another variable being set, say a country cookie.

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      JS to check the cookie value and add .color-scheme-alt to body class.

    • @jasongreenlees4478
      @jasongreenlees4478 7 หลายเดือนก่อน

      @@Gearyco This has been amazing and easy to implement thank you so much. Always appreciated Kevin

  • @ps2-one
    @ps2-one 3 หลายเดือนก่อน

    12:56 Haha love it

  • @wingtracer
    @wingtracer 5 หลายเดือนก่อน

    Kevin - what do you think of just targeting path classes in your SVG the swap? I tried this, but it gets janky with the toggle not respecting system settings. When that's the case, the logo using svg CSS to target the path fill on color scheme preference, is not in sync with the "do not respect" system setting of the toggle.

    • @Gearyco
      @Gearyco  5 หลายเดือนก่อน

      Manual toggle should override operating system preferences. This is correct behavior.

    • @wingtracer
      @wingtracer 5 หลายเดือนก่อน

      @@Gearyco the issue is that other elements using var(--white) respond to the toggle, and based on acss setting, do not respect os pref. Except when I use this CSS on the logo svg. The logo paths I want to toggle are classed in the SVG using the below...but this logo swap by os pref, while other elements using var(--white) do not. That's the inconsistency here. Using one svg and toggling the fill is efficient, one image, and DRY right up your alley, so I thought you'd be interested in looking at this method. But until then, the CSS targeting the SVG and acss variables doesn't behave the same as other elements using those acss vars that are dark mode responsive.
      @media (prefers-color-scheme: light) {
      %root%-words {
      fill: var(--white) !important;
      }
      }
      @media (prefers-color-scheme: dark) {
      %root%-words {
      fill: var(--black) !important;
      }
      }

    • @wingtracer
      @wingtracer 5 หลายเดือนก่อน +1

      in case anyone is wondering, with reference to this great video (and hopefully helps with acss dev or tutorials)... you can add a class into the SVG itself (I called it .cls-1 below). Then you can target the fill on paths of that class with CSS like this, and it works to toggle the logo in dark mode toggle:
      html.color-scheme--alt %root% .cls-1 {
      fill: var(--white) !important;
      }
      Or, event better, you can just reference the toggle directly by not including any media query, and just targeting the already dark mode function acss color tokens (neutral, white, and black)...
      .your-logo-class .your-svg-color-class-you-want-to-swap {
      fill: var(--white) !important;
      }

  • @alfian_ridwan
    @alfian_ridwan 7 หลายเดือนก่อน +1

    I think the audio is not in sync with the video

  • @JordanStambaugh1
    @JordanStambaugh1 7 หลายเดือนก่อน

    When the user device is set to dark mode the frames toggle switch doesn't automatically change to "light mode" it still says "dark mode" in dark mode. You have to click it for it twice for it to switch to light mode. Thoughts?

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน

      When I use it, it switches itself

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      Have you cleared local storage?

    • @JordanStambaugh1
      @JordanStambaugh1 7 หลายเดือนก่อน

      @@Gearyco I think that was the issue. Cheers

  • @wingtracer
    @wingtracer 5 หลายเดือนก่อน

    Is there a way to sync two toggles? I want it in the header for desktop, but inside an offcanvas for mobile. Trying to add two toggles doesn't work (display:none on mobile breakpoint, a second toggle in off canvas menu on mobile). The function works, but the toggle state is not in sync...the one in off canvas toggle dark mode, but the toggle doesn't itself flip in appearance). When only one is used it works fine.

    • @Gearyco
      @Gearyco  5 หลายเดือนก่อน

      Sure just requires js

  • @johnysvitana5297
    @johnysvitana5297 7 หลายเดือนก่อน

    @Kevin Geary will this be a recipe in 3.0 ?? it whoul be really nice.

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน

      There will probably be a different or better way to manage it via the dashboard.

  • @gloriamasengo
    @gloriamasengo 3 หลายเดือนก่อน

    hi Kevin, so Ive been trying to change my image between the 2 modes in html, i havent found any video help may you help me?

    • @Gearyco
      @Gearyco  3 หลายเดือนก่อน

      Ask in the inner circle and we can help you there. Too hard in TH-cam comments

    • @gloriamasengo
      @gloriamasengo 3 หลายเดือนก่อน

      @@Gearyco so can I send you an Instagram text

  • @StuartLowPhotography
    @StuartLowPhotography 7 หลายเดือนก่อน

    My version of ACSS doesnt have the option to add global css/ scss. Am I missing something?

    • @groundpets5101
      @groundpets5101 7 หลายเดือนก่อน

      3.0 this is all for i think

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน

      3.0 - watch the livestream from yesterday.

    • @groundpets5101
      @groundpets5101 7 หลายเดือนก่อน

      th-cam.com/video/NmuVHq-qYbc/w-d-xo.html

  • @andredkvideo
    @andredkvideo 7 หลายเดือนก่อน

    Call me crazy, but I actually insert the ACSS color variables inside the SVG code. That way, I just upload it, and it changes automatically. If some color needs to be changed inside the logo, I do ".color-scheme--alt %root% { --base: #fff; }" 😄

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      That will work for a single color logo or a very simple logo. But for a tutorial, I needed to show a method that would work for complex logos, and people who need to use a JPEG or PNG file for whatever reason.

    • @andredkvideo
      @andredkvideo 7 หลายเดือนก่อน

      @@Gearyco Yes, I agree. This was just the method I found and went with; definitely not the best.

  • @Xenio2007
    @Xenio2007 7 หลายเดือนก่อน

    4k is nice but the voice is not in sync with video. 😮

    • @Gearyco
      @Gearyco  7 หลายเดือนก่อน +1

      Yeah it’s slightly off