<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Good Vibes Only</title>
  <subtitle>I write about things I’ve experimented with and thoughts I like to share, focusing on creativity and CSS.</subtitle>
  <link href="/vibes/vibe.xml" rel="self"/>
  <link href=""/>
  <updated>2026-06-23T17:52:00Z</updated>
  <id>https://goodvibeson.ly/</id>
  <author>
    <name>Jessica Skårbratt</name>
  </author>
  <entry>
    <title>Coming Home Curious</title>
    <link href="https://goodvibeson.ly/vibes/2026-06-23-css-day-2026/"/>
    <updated>2026-06-23T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2026-06-23-css-day-2026/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I’ve been here before, and I’ve probably said it before too, but the lineup this year was incredible. So many talented people sharing exciting ideas, experiments and lessons from the real world.&lt;/p&gt;
&lt;p&gt;Now, I’ll be honest. I’m a fairly simple girl with both feet firmly on the ground—most of the time anyway. Building a CPU in CSS or creating a fully playable Doom game in the browser is incredibly impressive, but it’s also a little outside my league and probably not something I’ll be doing anytime soon. What inspired me the most were the things that can actually impact my everyday work. I love those little “aha!” moments.&lt;/p&gt;
&lt;p&gt;One of the talks that stuck with me was Lea Verou’s session on color. I realized I haven’t spent enough time exploring some of the newer ways we can work with color on the web. She also highlighted where we still have limitations when it comes to creating truly scalable color systems, which was equally interesting.&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-diamonds.avif&quot; alt=&quot;Jessica among colors&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css-day-tag-2026.avif&quot; alt=&quot;Conferens tag 2026&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;The best talks weren’t necessarily the most advanced ones. They were the ones that made me immediately want to open CodePen in my head and think, I need to try this when I get home!&lt;/p&gt;
&lt;p&gt;A few things I’m bringing home with me:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;View Transitions&lt;/strong&gt; are definitely here to stay. I can’t wait to experiment with them, both on my own website and hopefully within the products I work on. Used thoughtfully, they can add that extra sprinkle of delight that makes an experience feel more polished.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Scroll-driven animations&lt;/strong&gt; are becoming increasingly well supported. The challenge isn’t adding animations everywhere—it’s finding the moments where they genuinely add value without turning the entire experience into a roller coaster.&lt;/p&gt;
&lt;p&gt;Some of the things we saw are ready to use today. Others are just around the corner. I’m especially excited about &lt;strong&gt;Grid Lanes&lt;/strong&gt;, along with &lt;strong&gt;customizable selects&lt;/strong&gt; and &lt;strong&gt;anchor positioning&lt;/strong&gt;. Patience is an important skill when you’re waiting for new features to reach Baseline and become widely available. Unfortunately, patience has never been one of my superpowers.&lt;/p&gt;
&lt;p&gt;But beyond the individual features, there was a theme that kept showing up throughout the conference. One thing that struck me is how often the talks came back to details. As developers, we spend a lot of time discussing frameworks, architecture, performance and tooling. Those things matter.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;But the user never sees most of them, what the user sees is the feeling.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The smooth transition between pages. The way an animation guides the eye. The subtle feedback when interacting with a component. The color combinations that make content easier to understand. Those tiny details are often invisible when they are done well. Maybe that’s one of the reasons I enjoy frontend so much. It sits somewhere between engineering and design. We solve technical problems, but we also shape experiences. What I appreciate most about conferences like this isn’t that I come home ready to use every new feature. Most of the time I don’t. I come home curious.&lt;/p&gt;
&lt;p&gt;I have new ideas to explore, things to test, articles to read and conversations to have with colleagues. Sometimes a single idea from a talk ends up influencing my work for months. That’s a pretty good return on a few days away from the keyboard.&lt;/p&gt;
&lt;p&gt;What I keep coming back to is that these are the small things we build for our users. Understanding what’s possible and knowing when to use it, is part of our craft. The details might seem tiny, but they’re often what create that special feeling when using a product. Maybe users can’t even put their finger on exactly why something feels good. But they feel it and maybe that’s the magic of it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The more I learn, the more I realize how much there is still to learn. And honestly, I kind of love that.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/adam-argyle-css-slide.avif&quot; alt=&quot;Adam Argyle slide&quot; /&gt;
</content>
  </entry>
  <entry>
    <title></title>
    <link href="https://goodvibeson.ly/vibes/2026-04-27-women-in-tech/"/>
    <updated>2026-04-27T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2026-04-27-women-in-tech/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Today I’m feeling proud ✨ of the work my team and I have done with the design system in my current assignment at Ziklo Bank. Last week, my colleague Elin and I spoke at the Women in Tech Conference, where we shared our journey.&lt;/p&gt;
&lt;p&gt;If you’re curious, you can watch our talk here:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://womenintech.se/play/from-vision-to-business-impact-how-we-built-a-design-system-that-elevates-experiences/&quot;&gt;From Vision to Business Impact. How we built a Design System that Elevates Experiences&lt;/a&gt;&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/elin-jessica-scen-wit-2026.avif&quot; alt=&quot;Jessica and Elin on stage&quot; /&gt;
</content>
  </entry>
  <entry>
    <title>More Time or Better Moments?</title>
    <link href="https://goodvibeson.ly/vibes/2026-04-02-more-thing-better-moments/"/>
    <updated>2026-04-02T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2026-04-02-more-thing-better-moments/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Science tells us that time feels slower when we’re bored, depressed, lonely or rejected none of which I would choose to seek out. And we all know the expression about happy times:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The happier the time, the shorter it seems.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In my mind, there are so many things in life that are fun, interesting or simply necessary both in my career and in my personal life. But the fact is, there’s only one of me. I know about the 24 hours. I know everyone has the same amount of time. But still, I want more.&lt;/p&gt;
&lt;p&gt;More time to learn new things. More time to spend with friends. More time to dance, to swim in the ocean, to watch the sunrise. Yes, the sunrise. I’m a morning person and I love those early, crisp mornings when the world feels quiet and full of possibility. With that said, I wouldn’t say no to a beautiful sunset either.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-in-water.avif&quot; alt=&quot;Jessica bathing in ocean wintertime&quot; /&gt;
&lt;p&gt;This image is from a conference with my network of freelancers here on the west coast. We spent the days working on our own projects, learning new skills and having conversations about everything and nothing, from work to life in general. It was such a great experience, a perfect mix of time spent together and time for our own projects and thoughts. Time went by fast.&lt;/p&gt;
&lt;p&gt;So what choices do we have if we want “more” time? Be bored? That doesn’t sound right.&lt;/p&gt;
&lt;p&gt;We can try to optimize our lives like athletes track everything, squeeze out inefficiencies and cut away the “non-essential”. Sleep less. Stop lingering in the evenings. Always be productive.&lt;/p&gt;
&lt;p&gt;But is that really the way to go? Or is the real answer not about getting more time, but about choosing it more carefully?&lt;/p&gt;
&lt;p&gt;When I started writing this, I was on a train on my way home after a fantastic weekend with my mother. On the way there, I didn’t write a single thing. I didn’t code or work. I didn’t do anything “useful”. I read a book and not the kind where you learn something practical, but the kind where you drift into a fantasy world and let time disappear. If there’s one thing I’ve learned about myself, it’s this. I need that kind of time, it is quality of life.&lt;/p&gt;
&lt;p&gt;Maybe time doesn’t expand just because we squeeze more into it. Maybe it expands in hindsight through memories, presence and moments that felt real while we were in them.&lt;/p&gt;
&lt;p&gt;I say I want more time. But maybe what I really want is more depth in the time I already have. Because there’s only one of me, the same both at work and in my spare time and there are only 24 hours. Perhaps the art isn’t getting more, but choosing fully and consciously what is worth my hours.&lt;/p&gt;
&lt;p&gt;So instead of asking how I can get more time, maybe the better question is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;What do I want my time to feel like when I look back at it?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Time may be equal for all of us but the way we fill it and the way we remember it never is. What do you want your time to feel like?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title></title>
    <link href="https://goodvibeson.ly/vibes/2026-03-11-happy-birthday/"/>
    <updated>2026-03-11T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2026-03-11-happy-birthday/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Happy birthday to Good Vibes Only!&lt;/p&gt;
&lt;p&gt;Five years ago, I started my adventure as a freelance frontend developer choosing curiosity, drive and creativity over fear. Looking back, I’m incredibly proud of that choice.&lt;/p&gt;
&lt;p&gt;It’s been quite a ride so far full of learning, challenges and inspiring people along the way. And honestly? I feel like I’m just getting started.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/zest-forelasning.avif&quot; alt=&quot;Jessica outside conferens&quot; /&gt;
</content>
  </entry>
  <entry>
    <title></title>
    <link href="https://goodvibeson.ly/vibes/2026-02-19-has-not-has/"/>
    <updated>2026-02-19T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2026-02-19-has-not-has/</id>
    <content xml:lang="en" type="html">&lt;p&gt;We’ve gotten so many new CSS selectors lately that almost feel like magic, but with magic comes confusion. Sometimes it’s surprisingly hard to see the difference between two selectors that look almost identical. Do you know the difference between :has(:not(…)) and :not(:has(…))? A small hint: they are definitely not the same thing if you look at it more closely.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;section:has(:not(img))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;section:not(:has(img))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;At first glance, they look similar. But if we rewrite them slightly, the difference becomes clearer:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;section:has(*:not(img))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;section:not(section:has(img))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now the logic starts to unfold. &lt;code&gt;section:has(:not(img))&lt;/code&gt; selects a section that contains anything that is not an img. On the other hand, &lt;code&gt;section:not(:has(img))&lt;/code&gt; selects a section only if it doesn’t contain an img at all. Same words. Different order. Completely different meaning.&lt;/p&gt;
&lt;p&gt;For a CSS nerd like me, this was such a satisfying little aha! moment. I love when something that looks confusing at first suddenly clicks — and you realize CSS is just being very, very precise.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title></title>
    <link href="https://goodvibeson.ly/vibes/2025-12-23-frontend-forum-december-2025/"/>
    <updated>2025-12-23T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-12-23-frontend-forum-december-2025/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Once again, I had the honor of speaking at FrontendForum, this time with a beautiful view at Knightec Group. Big thanks for having me! Even though things didn’t go perfectly with the demo (you know that feeling), I had so much fun and truly enjoyed every moment.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/frontendforum-dec-2025.jpeg&quot; alt=&quot;Jessica attending FrontendForum&quot; /&gt;
</content>
  </entry>
  <entry>
    <title></title>
    <link href="https://goodvibeson.ly/vibes/2025-11-27-css-devtools/"/>
    <updated>2025-11-27T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-11-27-css-devtools/</id>
    <content xml:lang="en" type="html">&lt;p&gt;CSS is really, really great but it’s lacking things like, console.log(). And sometimes I truly miss it. CSS tends to give us the silent treatment when something goes wrong. So helpful, right?&lt;/p&gt;
&lt;p&gt;But we actually do have something incredibly useful, browser DevTools.&lt;/p&gt;
&lt;p&gt;When working with Grid, Subgrid or Flexbox DevTools is like a helping hand. You can hover over the layout badges to see the overlay, you probably already do that. But did you know that if you click the badge instead of hovering, the overlay becomes persistent?&lt;/p&gt;
&lt;p&gt;That means you can resize your window and watch the layout shift in real time as the viewport changes. It’s such a simple trick but honestly, a game changer.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/devtools.webp&quot; alt=&quot;Chrome devtools&quot; /&gt;
</content>
  </entry>
  <entry>
    <title></title>
    <link href="https://goodvibeson.ly/vibes/2025-11-11-sparks/"/>
    <updated>2025-11-11T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-11-11-sparks/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Today I’m publishing my first Spark. It’s my way of sharing small glimpses of the things that happen, the ideas that inspire me and the tiny thoughts that light something up inside.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-flower-bench.webp&quot; alt=&quot;Jessica among pillows&quot; /&gt;
</content>
  </entry>
  <entry>
    <title>Gridding implicit or explicit?</title>
    <link href="https://goodvibeson.ly/vibes/2025-11-10-all-columns-grid/"/>
    <updated>2025-11-10T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-11-10-all-columns-grid/</id>
    <content xml:lang="en" type="html">&lt;p&gt;We all love CSS Grid, right!? Okay… maybe not everyone, but I definitely do. I really like having Grid in my toolbox, but it also feels like there’s always more to learn about it. And just the other day, I learned a neat little trick I want to share. There are two ways to make a grid item span across all columns without explicitly knowing how many columns there are. These two approaches work best in different situations.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.grid-cell&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-column&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1 / -1&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.grid-cell&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-column&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1 / 9999&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The first one says, start at the first grid line (1) and go to the last grid line (-1). This works only when the grid has an explicit number of columns, like &lt;code&gt;grid-template-columns: repeat(3, 1fr)&lt;/code&gt;. But! If you, like me, are using &lt;code&gt;auto-fit&lt;/code&gt; or &lt;code&gt;auto-fill&lt;/code&gt; so the browser calculates the number of columns based on available space, then -1 doesn’t behave the way you’d expect.&lt;/p&gt;
&lt;p&gt;In that case, we use the second trick, which basically means span as many columns as you find, all the way up to 9999 grid lines. 9999 is just a very large number that will always exceed the number of actual columns, so the item ends up spanning the full width.&lt;/p&gt;
&lt;p&gt;Give it a go!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Is() this where() the magic happens?</title>
    <link href="https://goodvibeson.ly/vibes/2025-10-16-is-where/"/>
    <updated>2025-10-16T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-10-16-is-where/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Have you started using :is() and :where() yet? If not, let me try to convince you, because these two selectors can seriously make our lives easier. Ever written something like this?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;main h1,
main h2,
main h3,
main h4,
section h1,
section h2,
section h3,
section h4&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/* Now you can write it like this */&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;:where(main, section) :is(h1, h2, h3, h4)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here’s another cool thing. When you write a list of selectors and the browser doesn’t understand just one of them, the entire list becomes invalid, meaning your styles get ignored But with :is() (and :where()), you don’t have to worry!
If a selector inside it fails, the rest still works.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;/* This heading won’t be pretty pink */&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;h1:befoooore,
h1.heading&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/* But this will! */&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;h1:is(:befoooore, .heading)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Convinced yet?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Nordic.js Afterglow</title>
    <link href="https://goodvibeson.ly/vibes/2025-10-04-nordic-js-2025/"/>
    <updated>2025-10-04T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-10-04-nordic-js-2025/</id>
    <content xml:lang="en" type="html">&lt;p&gt;This week, I attended &lt;a href=&quot;https://nordicjs.com/2025&quot;&gt;Nordic.js&lt;/a&gt; for the second time and I’m going to spoil this whole Vibe right away by telling you that I’m really happy I did.&lt;/p&gt;
&lt;p&gt;Earlier this year, I also went to &lt;a href=&quot;https://goodvibesonly.se/vibes/2025-06-11-reflections-css-day-25/&quot;&gt;CSS day&lt;/a&gt; and these two conferences are different. CSS Day is super nerdy, two full days focused on one specific topic and I absolutely love it. I always leave feeling inspired and full of creative energy, ready to dive deep into new ideas.&lt;/p&gt;
&lt;p&gt;Nordic.js on the other hand, is a broader conference centered around JavaScript and the ecosystem around it. It benefits me in a completely different way one that helps me stay both a broader and more up-to-date developer. But before I tell you more about that I have to say, out of all the conferences I’ve been to Nordic.js is the one that has the best event experience around the talks themselves. It’s actually more of a creative and fun playground than anything else.&lt;/p&gt;
&lt;p&gt;When we entered we found a gift shop of wrapped art, soft serve, pick-and-mix candy, a wishing well, a ball pit, a fishing pond, a sauna, an obstacle course and even a stand where you could get glitter makeup… and I could go on. It made it such a fun and inspiring place to be.&lt;/p&gt;
&lt;div class=&quot;image-grid-3&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/nordic-js-logo.webp&quot; alt=&quot;Welcome to Nordic.js screen&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/laser-meditation.webp&quot; alt=&quot;Meditation with laser&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/balloons-and-gifts.webp&quot; alt=&quot;Ballons and gifts&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;Now that you have a picture of the place itself, let’s get back to the talks and my biggest takeaways.&lt;/p&gt;
&lt;p&gt;One thing I didn’t really expect was that some of the sessions I appreciated the most this year were the super nerdy tech ones like new features in ES2027, updates in Node.js (config improvements and ESM packaging) and learning more about Passkeys in detail. It was all really interesting.&lt;/p&gt;
&lt;p&gt;I can’t write this without mentioning Ulrike Rausch, who gave a talk on creating crazy fonts in 90s style. It made me so curious to learn more about making fonts, such a fun and inspiring session!&lt;/p&gt;
&lt;p&gt;Other thoughts that stayed with me were more about the softer sides of tech, how we prioritize what we build, how we follow up and celebrate our victories and what kind of experience we actually want to give the people using the applications we create.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“Quality is an emotion.” — &lt;strong&gt;Andreas Eldh&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Last but not least I got the question - What was the most inspiring thing you’re taking home?&lt;/p&gt;
&lt;p&gt;It almost feels like cheating, but I can’t think of a better answer than this. The best talk this year was by Una Kravets, on the topic back to the future. It was all about the new CSS features that can now replace JavaScript in many cases. She’s the perfect mix of inspiring and professional and also the kind of person who literally entered her talk by coming out of a huge birthday cake! Two things from her talk that I’d like to explore more are the Popover API and Scroll State.&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-among-balloons.webp&quot; alt=&quot;Jessica among balloons&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/welcome-card.webp&quot; alt=&quot;Entrance tickets&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;After conferences, people sometimes ask me something like. So, what did you learn?&lt;/p&gt;
&lt;p&gt;But for me, it’s so much more than that. It’s about the sparks, the ideas I want to explore, the old things I want to do in new ways and even the things I didn’t know I needed to know. It’s about staying inspired and staying sharp in my profession. Nordic.js really did that for me and for that, I can only say a big THANK YOU!&lt;/p&gt;
&lt;p&gt;Who knows, maybe someday I’m happy enough to give a lightning talk on that stage myself…&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Having Flex Dilemma?</title>
    <link href="https://goodvibeson.ly/vibes/2025-09-18-having-flex-dilemma/"/>
    <updated>2025-09-18T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-09-18-having-flex-dilemma/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know how when you’re working with flexbox in different directions it should be obvious when to use align-items and when to use justify-content? No? For me it’s always felt a bit like plugging in a USB cable, somehow I get it wrong the first time every time.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.parent&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; flex&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;flex-direction&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; row&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;/*Default value*/&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;justify-content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; center&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.parent&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; flex&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;flex-direction&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; column&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;align-items&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; center&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The thing is, when you use row direction the items flow left to right, so you center them with the help of the flex cell with justify-content. But when you flip to column direction, the flow is top to bottom, and then it’s align-items that takes care of the horizontal centering of the items them selfs.&lt;/p&gt;
&lt;p&gt;We’ll dive deeper into alignment soon, but for now just remember the little mantra of &lt;code&gt;justirows&lt;/code&gt; and &lt;code&gt;alicolumns&lt;/code&gt; (just made them up), it’ll keep you on track until then. Good luck!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Need to link it?</title>
    <link href="https://goodvibeson.ly/vibes/2025-09-04-anchor-element-href/"/>
    <updated>2025-09-04T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-09-04-anchor-element-href/</id>
    <content xml:lang="en" type="html">&lt;p&gt;While working on my website, I took a closer look at the anchor element and the href attribute. I ended up revisiting a few things I needed a refresher on, so I thought I’d share it with you.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;href=&amp;quot;&amp;quot;&lt;/code&gt; reloads the current page, keeps the search string, but drops the hash if you have one.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;href=&amp;quot;.&amp;quot;&lt;/code&gt; also reloads the page, but wipes out both the search string and the hash.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;href=&amp;quot;#&amp;quot;&lt;/code&gt; scrolls straight to the top of the page. &lt;code&gt;href=&amp;quot;#top&amp;quot;&lt;/code&gt; does the same—unless there’s actually an element with the id “top”. Bonus tip, you can even use something like &lt;code&gt;href=&amp;quot;#page=3&amp;quot;&lt;/code&gt; to jump to page three in a PDF.&lt;/p&gt;
&lt;p&gt;Hopefully this helps make the world of links a little less mysterious and saves you a few “wait, what just happened?” moments.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Happy New Year (in September) ✨</title>
    <link href="https://goodvibeson.ly/vibes/2025-09-01-happy-new-september/"/>
    <updated>2025-09-01T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-09-01-happy-new-september/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I love when summer slowly fades into autumn the colors turning golden, the darker evenings inviting candles and cozy evenings by the fireplace. This is the season for setting new goals, fresh visions and hopeful lists of wishes. A time of new beginnings and possibilities.&lt;/p&gt;
&lt;p&gt;Since I usually take a long (and late) summer vacation, I often return to work just as my colleagues are already full speed ahead with ideas and plans. Normally, that means I run to catch up. But not this year.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Nope! No rocket launch, no sprinting, no big kick-off, no fireworks.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This fall, I don’t want to launch myself into the season like a rocket. Instead, I want to glide. Gently. With the feeling of summer still lingering. An ice cream in one hand, sun in my eyes and a soft smile. I’ll meet work and everyday life with energy and joy, but not by pushing too hard.&lt;/p&gt;
&lt;p&gt;My plan is to carry some summer habits with me into fall like a slow cup of tea without multitasking, gentle morning yoga that doesn’t need to be long or intense or meals outdoors for as long as the weather allows.&lt;/p&gt;
&lt;div class=&quot;image-grid-3&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/sunset-clouds.webp&quot; alt=&quot;Chris Coyier on stage as CSS Day&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-with-palmtree.webp&quot; alt=&quot;Red wooden cloths&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/hammer-and-wood.webp&quot; alt=&quot;Jessicas attenting card from CSS Day&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;Somewhere between all the summer days with the kids, a thought started to take shape. When traveling with kids, there’s always the risk that their energy fades halfway through an activity. That’s when we as parents need something up our sleeve. A little game, a snack or even a silly prank. Just to give them that extra boost to make it all the way.&lt;/p&gt;
&lt;p&gt;This summer, I’ve gathered my own energy through sunshine, long nights of sleep, travel and time with loved ones. But once everyday life sets in, I know I’ll need those extra boosts too. And since I can’t count on my mom to swoop in with the fix anymore, I’ve prepared a few of my own power-ups to keep up my sleeve.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Books – I love reading, mostly belles-lettres that can transport me to a completely different world.&lt;/li&gt;
&lt;li&gt;The ocean – This “year” I’m bringing back an old habit, swimming in the sea at least once every month for a whole year.&lt;/li&gt;
&lt;li&gt;Movement – Making time for training and movement is a priority. It always gives so much back to me.&lt;/li&gt;
&lt;li&gt;Loved ones – I’m lucky to have so many amazing people in my life and spending time with them always fills me with energy.&lt;/li&gt;
&lt;li&gt;Enjoyment – Adding a little sparkle to each day, big or small. It could be a meditation or like today, sitting in the sun with a glass of bubbles while writing this vibe.&lt;/li&gt;
&lt;li&gt;Creativity – My never-ending source of energy. When I let my creativity flow, something inside wakes up. It doesn’t matter whether it’s building a table like I did this summer, teaching yoga, working with fabric or macramé, writing, creating websites or taking photos. But since everyday life can easily take over, I need to make sure I choose it deliberately.&lt;/li&gt;
&lt;/ul&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-flower-bench.webp&quot; alt=&quot;Jessica on a flower bench&quot; /&gt;
&lt;p&gt;As both a freelance developer and a freelance yoga teacher, it’s not always easy to draw clear lines between who I am as a person and the work I do. The two roles constantly influence each other shaping my time, energy, creativity and vision. And since I’m lucky enough to not only be challenged by my work but also truly love what I do, it becomes even more important to have a plan to keep everything in balance.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;At the end of the day, happiness is the measure that matters most. Everything else is just details.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Break the box nicely</title>
    <link href="https://goodvibeson.ly/vibes/2025-08-06-box-decoration-break/"/>
    <updated>2025-08-06T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-08-06-box-decoration-break/</id>
    <content xml:lang="en" type="html">&lt;p&gt;The background and border styling break across lines—and it doesn’t look great.&lt;/p&gt;
&lt;p&gt;Luckily, we have a neat little trick called box-decoration-break. It can be set to either slice (the default) or the magic value, clone. This makes the styling apply to each line individually.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;box-decoration-break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; clone&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;codepen&quot; data-height=&quot;300&quot; data-default-tab=&quot;result&quot; data-slug-hash=&quot;gbaROPG&quot; data-pen-title=&quot;Untitled&quot; data-editable=&quot;true&quot; data-user=&quot;jessicaskarbratt&quot; data-token=&quot;50db45b9e74f1886bad57c02448a9b8c&quot; style=&quot;height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;&quot;&gt;
  &lt;span&gt;See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/gbaROPG/50db45b9e74f1886bad57c02448a9b8c&quot;&gt;
  Untitled&lt;/a&gt; by Jessica Skårbratt (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;)
  on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.&lt;/span&gt;
&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://public.codepenassets.com/embed/index.js&quot;&gt;&lt;/script&gt;
&lt;p&gt;You’ll run into a similar issue if you’re designing with multi-column layouts and your content breaks across columns. A container with a background color might span multiple columns, which breaks the visual flow.&lt;/p&gt;
&lt;p&gt;One solution is to prevent breaks entirely using:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;break-inside&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; avoid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This forces the whole container into the next column. But another option is to allow the break and keep the styling on each column segment. In some cases this is the better choice.&lt;/p&gt;
&lt;p class=&quot;codepen&quot; data-height=&quot;300&quot; data-default-tab=&quot;result&quot; data-slug-hash=&quot;OPygVEp&quot; data-pen-title=&quot;Untitled&quot; data-editable=&quot;true&quot; data-user=&quot;jessicaskarbratt&quot; data-token=&quot;980ca6b2d361b290fe830999c8e46afc&quot; style=&quot;height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;&quot;&gt;
  &lt;span&gt;See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/OPygVEp/980ca6b2d361b290fe830999c8e46afc&quot;&gt;
  Untitled&lt;/a&gt; by Jessica Skårbratt (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;)
  on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.&lt;/span&gt;
&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://public.codepenassets.com/embed/index.js&quot;&gt;&lt;/script&gt;
&lt;p&gt;So next time your styling breaks when the layout shifts, play around to find the best fit for your use case!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Reflections after CSS DAY 2025</title>
    <link href="https://goodvibeson.ly/vibes/2025-06-11-reflections-css-day-25/"/>
    <updated>2025-06-11T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-06-11-reflections-css-day-25/</id>
    <content xml:lang="en" type="html">&lt;p&gt;So many people in the industry that I look up to, all in the same place sharing the same passion. There’s always something special about attending a conference with such a focused topic.&lt;/p&gt;
&lt;p&gt;Two days and a total of 14 talks left me super inspired, humbled by how much I still have to learn, and loaded with tips, tricks, and ahaaas.&lt;/p&gt;
&lt;p&gt;This year’s topics ranged from what does scope even mean in CSS, to how the IT industry impacts the environment and what we can do. Michelle Barker wrote about some of the impact &lt;a href=&quot;https://css-tricks.com/reduce-your-websites-environmental-impact-with-a-carbon-budget/&quot;&gt;in a blogg post on CSS-TRICKS&lt;/a&gt;. This year also covered what the future of input elements looks like and how to create smart layouts using modern CSS properties. There was even a talk on how to build a computer with pure CSS yes, really! That one was by a guy named Amit Sheen. Just look at the crazy cool stuff &lt;a href=&quot;https://codepen.io/amit_sheen&quot;&gt;Amit&lt;/a&gt; does!&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/in_between_breakpoints.webp&quot; alt=&quot;Amit Sheen on stage about breakpoints&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/amsterdam_wall.webp&quot; alt=&quot;A nice house wall in Amsterdam&quot; /&gt;
&lt;/div&gt;
&lt;h2&gt;Here’s what stuck with me&lt;/h2&gt;
&lt;p&gt;Well, I’m not about to start building computers in CSS (I’ll leave that to the geniuses). But I came home with a mountain of ideas and TODOs.&lt;/p&gt;
&lt;p&gt;Honestly, this was my most valuable CSS Day yet. The list of things I want to try is so long. No, really so, so long. Jokes aside, I’m coming back with tons of actionable insights. From talks on layout and scope to scroll behaviors and practical design examples, I’m genuinely excited to bring fresh ideas into my own projects.&lt;/p&gt;
&lt;p&gt;Expect some changes on my personal site soon, a little refactoring, new CSS experiments and definitely a few new CodePens. Don’t worry, I’ve also got some goodies lined up for future Beats and Vibes. I’ve also got some visual treats in the pipeline involving anchor-position and view-transitions. You might just see them on a website near you (hint: mine).&lt;/p&gt;
&lt;p&gt;And it’s not just personal. I’m bringing fresh ideas into my current assignment too. We’re deep into work on a design system and this conference sparked thoughts around how we can improve our connection between Figma and code and how we can offer smart, flexible layout components. The goal? Let users build beautiful, responsive interfaces without having to be CSS wizards.&lt;/p&gt;
&lt;div class=&quot;image-grid-3&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/writing_css.webp&quot; alt=&quot;Chris Coyier on stage as CSS Day&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/amsterdam_cloth.webp&quot; alt=&quot;Red wooden cloths&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css_day_card.webp&quot; alt=&quot;Jessicas attenting card from CSS Day&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;The future of CSS looks exciting. Some of what we saw is still experimental, in early specs or only partially supported. But what’s coming, especially around styling form controls like selects, checkboxes, and sliders, feels like a game changer. And the improvements to multi-column layouts? They’re bringing us closer to the creative flexibility of print design. Yummy!&lt;/p&gt;
&lt;p&gt;To be honest, I arrived in Amsterdam feeling a little worn out. The weather forecast wasn’t exactly promising either. But these two days turned out to be exactly what I needed, an energy boost, a spark, a reminder of why I love this field. I started the following week with a completely different mindset.&lt;/p&gt;
&lt;p&gt;Conferences like CSS Day help me nurture that creative spark. Like watering a plant, giving attention to that passion keeps me growing. And for that, I’m deeply grateful.&lt;/p&gt;
&lt;p&gt;Oh, and one last thing, inspired by &lt;a href=&quot;https://ohhelloana.blog/website&quot;&gt;Ana Rodrigues&lt;/a&gt;, I will ditch the boring old &lt;code&gt;/* TODO */&lt;/code&gt; and &lt;code&gt;/* FIXME */&lt;/code&gt; comments. From now on, when I leave a quick fix or a not-so-perfect hack in my code, I’ll be writing &lt;code&gt;/* SORRY – didn&#39;t nail it */&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I hope my colleagues will love it to! 😉&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>When one no isn&#39;t enough</title>
    <link href="https://goodvibeson.ly/vibes/2025-06-01-double-no/"/>
    <updated>2025-06-01T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-06-01-double-no/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Today’s treat, a cheat sheet. You know the &lt;code&gt;no&lt;/code&gt; (!) expression, you use it all the time to check for falsy values. But what about the &lt;code&gt;no-no&lt;/code&gt; (!!)? This is the one that turns value into a Boolean value.&lt;/p&gt;
&lt;p&gt;Last week, I had to look it up for a specific case and thought to myself, “This won’t be the last time I need this.” So here it is, served on a silver plate, the !! cheat sheet.&lt;/p&gt;
&lt;table class=&quot;vibe-table&quot;&gt;
  &lt;tr&gt;
    &lt;th&gt;Value&lt;/th&gt;
    &lt;th&gt;!!value&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;true&lt;/td&gt;
    &lt;td&gt;true&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;false&lt;/td&gt;
    &lt;td&gt;false&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;1&lt;/td&gt;
    &lt;td&gt;true&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;0&lt;/td&gt;
    &lt;td&gt;false&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;-1&lt;/td&gt;
    &lt;td&gt;true&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&quot;&quot;&lt;/td&gt;
    &lt;td&gt;false&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&quot;good vibes&quot;&lt;/td&gt;
    &lt;td&gt;true&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;null&lt;/td&gt;
    &lt;td&gt;false&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;undefined&lt;/td&gt;
    &lt;td&gt;false&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;NaN&lt;/td&gt;
    &lt;td&gt;false&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;{}&lt;/td&gt;
    &lt;td&gt;true&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;[]&lt;/td&gt;
    &lt;td&gt;true&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;This is really useful when you want a clean true or false, and not just something truthy or falsy.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A thing about width</title>
    <link href="https://goodvibeson.ly/vibes/2025-05-15-a-thing-about-width/"/>
    <updated>2025-05-15T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-05-15-a-thing-about-width/</id>
    <content xml:lang="en" type="html">&lt;p&gt;The unraveling question of the day: What’s the difference between &lt;code&gt;auto&lt;/code&gt; and &lt;code&gt;100%&lt;/code&gt; when it comes to width?
Let’s take a look at this example, a container with two children. At first glance, they look the same, right? But what happens when you add some inline margins to the children?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 500px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.first-child&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.second-child&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100%&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The first child will still fit within its parent and take up all the available inline space. But the second one… it will overflow its container because its width becomes 100% plus the margins.&lt;/p&gt;
&lt;p&gt;You might be thinking, “Why use margin and not padding?” And in some cases, I agree! But there will be times when you want to use margins, and when you do, this is a good one to remember, especially when something just doesn’t fit anymore.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Animations on top of each other</title>
    <link href="https://goodvibeson.ly/vibes/2025-04-25-animation-composition/"/>
    <updated>2025-04-25T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-04-25-animation-composition/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Okay, today I’ll give you a teaser with a promise that I’ll dive deeper into this topic later with a full Vibe post.&lt;/p&gt;
&lt;p&gt;I recently discovered a new (to me) friend in the animation family called animation-composition. This one’s nice because it lets you merge or layer animations together. Imagine you have a component with two or more animations happening at the same time. With animation-composition, you can control how those animations interact.&lt;/p&gt;
&lt;p&gt;There are three different properties, add, replace, and accumulate, that you can use separately or combine if you’re working with multiple animations. Replace overrides the underlying value, this is the default. Add builds on top of the existing value and accumulate combined animations together. You apply animation-composition to the same element that has the animation.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.item&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;transform&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;translateX&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;50px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;animation&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; slideRight 5s infinite&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;animation-composition&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; add&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@keyframes&lt;/span&gt; slideRight&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;70%,
  100%&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;transform&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;translateX&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;200px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this case, the animation will add to the existing transform, so it first slides 50px, then an additional 200px.&lt;/p&gt;
&lt;p&gt;Smart, right!?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How does content fit?</title>
    <link href="https://goodvibeson.ly/vibes/2025-03-27-fit-content/"/>
    <updated>2025-03-27T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-03-27-fit-content/</id>
    <content xml:lang="en" type="html">&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; fit-content&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;token comment&quot;&gt;/* is the same as */&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;min-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; min-content&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;max-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; max-content&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In simple terms, fit-content allows an element to resize between the minimum and maximum width of its content, depending on the available space. That’s fairly straightforward. Now, let’s move on to its more complex cousin, fit-content(), which gets a bit more humbling rather quickly.&lt;/p&gt;
&lt;p&gt;To better understand how it works, I created an example in CodePen.&lt;/p&gt;
&lt;p class=&quot;codepen&quot; data-height=&quot;300&quot; data-default-tab=&quot;css,result&quot; data-slug-hash=&quot;QwWBagX&quot; data-pen-title=&quot;fit-content() playground&quot; data-editable=&quot;true&quot; data-user=&quot;jessicaskarbratt&quot; data-token=&quot;653530e4689cbd3956a2e55e0fbca881&quot; style=&quot;height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;&quot;&gt;
  &lt;span&gt;See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/QwWBagX/653530e4689cbd3956a2e55e0fbca881&quot;&gt;
  fit-content() playground&lt;/a&gt; by Jessica Skårbratt (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;)
  on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.&lt;/span&gt;
&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://public.codepenassets.com/embed/index.js&quot;&gt;&lt;/script&gt;
&lt;p&gt;In the CodePen example, there are two columns with the value fit-content(20ch), yet they don’t have the same width. Why is that? I also added another example where we define columns using the minmax() function, but as you’ll see, the result is different.&lt;/p&gt;
&lt;p&gt;Looking at the code below might make things a bit clearer. But take it slow—it’s a bit tricky!&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1fr &lt;span class=&quot;token function&quot;&gt;fit-content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;50ch&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/** is the same as */&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  1fr &lt;span class=&quot;token function&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;max-content-size&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;min-content&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 50ch&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
  1fr&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The max() value becomes either min-content or 50ch, whichever is larger. Then, this is compared to the maximum content size, and the smaller value is &lt;a href=&quot;http://chosen.to/&quot;&gt;chosen.To&lt;/a&gt; make things more complex, the “maximum content size” is actually determined by the available space within the grid constraints, but it can never exceed max-content. So, the real formula looks more like this:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;/* is the same as */&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  1fr &lt;span class=&quot;token function&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;max-content&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; available-size&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;min-content&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 50ch&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
  1fr&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It took me a few tries to really grasp this one, but I think it’s quite nice!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Zero calculations to give</title>
    <link href="https://goodvibeson.ly/vibes/2025-03-20-calc-zero/"/>
    <updated>2025-03-20T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-03-20-calc-zero/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Last week, I learned something new about the calc() function in CSS. Just not sure if it’s a good thing, but a thing it is. Imagine this code and try to find what’s wrong:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;calc&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;12px + &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;24 - 12&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; * 0&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The issue lies in the zero. You can’t perform calculations with a unitless 0 inside calc(). This is because number tokens are always interpreted as numbers or integers, and a unitless 0 isn’t supported when interpreted as a length. That means &lt;strong&gt;width: calc(0 + 12px);&lt;/strong&gt; is invalid, even though both &lt;strong&gt;width: 0;&lt;/strong&gt; and &lt;strong&gt;width: 12px;&lt;/strong&gt; are valid.&lt;/p&gt;
&lt;p&gt;It makes even more sense if you think of it this way: since &lt;strong&gt;5 + 12px&lt;/strong&gt; has no meaning, we might assume that &lt;strong&gt;0 + 12px&lt;/strong&gt; simply evaluates to 12px, but for the browser, it doesn’t work that way.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>One more &amp;</title>
    <link href="https://goodvibeson.ly/vibes/2025-03-13-ampersand-text/"/>
    <updated>2025-03-13T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-03-13-ampersand-text/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Had to do one more round on &amp;amp; (ampersand), but bear with me! Ever styled a markdown document or a long chunk of text? Imagine wanting different spacing between different paragraphs. With the ampersand, you can do it in a heartbeat.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;article&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;margin&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;/* &amp;lt;p&gt; that&#39;s after/below an element 
      that&#39;s not &amp;lt;p&gt; like an image */&lt;/span&gt;
    &lt;span class=&quot;token selector&quot;&gt;*:not(&amp;amp;) + &amp;amp;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;margin-top&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 24px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;/* &amp;lt;p&gt; that&#39;s before/above an element that&#39;s not &amp;lt;p&gt; */&lt;/span&gt;
    &lt;span class=&quot;token selector&quot;&gt;&amp;amp;:not(:has(+ &amp;amp;))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;margin-bottom&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 24px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;/* &amp;lt;p&gt; that&#39;s after/below another &amp;lt;p&gt; */&lt;/span&gt;
    &lt;span class=&quot;token selector&quot;&gt;&amp;amp; + &amp;amp;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;margin-top&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 12px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Nice, right!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Happy 4 year anniversity to me</title>
    <link href="https://goodvibeson.ly/vibes/2025-03-11-happy-four-year/"/>
    <updated>2025-03-11T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-03-11-happy-four-year/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Just last week, it felt like I got my first birthday present when a domain I’d been eyeing for ages suddenly became available. Yay!&lt;/p&gt;
&lt;p&gt;After six months as a freelancer, I wrote this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I’m going to tell you a secret: I don’t have a 10-year plan. Not even a 5-year plan. And I don’t have a clear vision of the future. My goal for myself and my company is to always be curious, do things that make me happy, and if something scares me, I say yes! I know that I grow the most when I step out of my comfort zone.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And that still holds true! I still don’t have a big master plan for the next 10 years, but looking back, things &lt;em&gt;have&lt;/em&gt; happened. Both my company and I have evolved, and I want to share some pieces of that journey with you, while also telling you what I wish for the future.&lt;/p&gt;
&lt;h3&gt;Some highlights from these years&lt;/h3&gt;
&lt;p&gt;I’ve written 57 Beats/Vibes, most of them in the last two years. I wish I had written even more, and I hope to keep going!&lt;/p&gt;
&lt;p&gt;I really challenged myself by writing and delivering a big conference talk in Stockholm with a colleague. I’ve also spoken at several meetups on topics like CSS, test frameworks, and Figma integrations. (But let’s be honest… mostly CSS, of course!) On top of that, I think I’ve grown in my roles, both as a frontend developer and in the lead roles I’ve taken on. I’m proud of that, especially because I haven’t let impostor syndrome get the best of me when I dived deep.&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica_jfocus.webp&quot; alt=&quot;Jessica speaking at a conference&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-swiming.webp&quot; alt=&quot;Jessica taking a really cold bath&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;I’ve started focusing more on yoga, which was one of my original business goals—to blend IT with teaching yoga. I now teach weekly classes and co-run JUMyoga, where we organize full-day yoga retreats with spa experiences and great food. We actually celebrated our 10-year anniversary in 2024(!), and now we’re expanding even more this spring.&lt;/p&gt;
&lt;p&gt;I’ve prioritized going to conferences, which I absolutely love. Learning from brilliant people is amazing, but I’ve also created my own “personal conferences.” At least once a year, I take a few days off, go somewhere by myself, and deep-dive into all the work-related topics I don’t have time to explore daily. It’s like a personal kick-off that re-energizes me and keeps me on a path I love. I’m also so grateful for our small network of freelancers, we meet for lunches, conferences, and Christmas dinners. Love that community!&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/cakes.webp&quot; alt=&quot;Cakes from a conference&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/sunrise.webp&quot; alt=&quot;Sunrise from a morning walk&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;In yoga, we often talk about being in the present moment, but this time, it was actually fun to look back, seeing what has happened and remembering all the good times. At the same time, I want to take this opportunity to shine a light on the things that will or might come in the future.&lt;/p&gt;
&lt;h3&gt;Things I’m looking forward to&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Continuing to work with great colleagues, learning and growing in my role.&lt;/li&gt;
&lt;li&gt;Posting even more content to inspire others.&lt;/li&gt;
&lt;li&gt;Speaking at more meetups and another big conference. (Time to find my next “say yes” challenge!)&lt;/li&gt;
&lt;li&gt;Starting yoga days in Österlen and finally creating a website for JUMyoga (just need to get over my perfectionism).&lt;/li&gt;
&lt;li&gt;Getting rid of the pain in my left shoulder.&lt;/li&gt;
&lt;li&gt;Attending more conferences. CSS Days in Amsterdam, what a lineup this year! And then Nordic.js in Stockholm, also celebrating their 10-year anniversary, so it’s going to be extra fun.&lt;/li&gt;
&lt;li&gt;Feeling truly proud of the accessibility work we’ve done for my clients.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I don’t know if this is interesting to anyone but me, but my hope is to inspire someone out there to pause and look back once in a while. It’s a great feeling to take a moment and recognize that you’re evolving and accomplishing things in more ways than you might realize.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica_yoga.webp&quot; alt=&quot;Jessica doing yoga&quot; /&gt;
&lt;blockquote&gt;
&lt;p&gt;Four years in, and I’m still just as excited about what’s next. Here’s to more curiosity and good vibes only!&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Think you know &amp;?</title>
    <link href="https://goodvibeson.ly/vibes/2025-03-06-ampersand-parent/"/>
    <updated>2025-03-06T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-03-06-ampersand-parent/</id>
    <content xml:lang="en" type="html">&lt;p&gt;The &amp;amp; (ampersand) in CSS has some lesser-known uses, and this one is pretty neat. Now that we’ve got CSS nesting (love it!), the ampersand helps apply styles based on how nested selectors relate to each other. Check this out, these styles change the look of the ‘section’ when the checkbox inside it gets checked.&lt;/p&gt;
&lt;p&gt;With the :has() selector inside the nested .willDo:checked, the ampersand points right at the parent element and makes it nice and pink too.&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;section&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;input&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;willDo&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;checkbox&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;section&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;--color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.willDo:checked&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--color&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;border-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--color&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;token comment&quot;&gt;/* same as .section:has(.willDo:checked) */&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;section:has(&amp;amp;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;border-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--color&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Short and sweet if you ask me!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Color contrast, never a given</title>
    <link href="https://goodvibeson.ly/vibes/2025-02-20-who-can-use/"/>
    <updated>2025-02-20T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-02-20-who-can-use/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Top of mind in my daily work right now is accessibility, and one key aspect of that is colors and color contrast. I think &lt;a href=&quot;https://www.whocanuse.com/&quot;&gt;Who can use&lt;/a&gt; really gives you a good glance at the fact that not everyone sees the world the way you do.&lt;/p&gt;
&lt;p&gt;Try it out! Pick the color of your favorite clothing and see how other people perceive it. Was it how you imagined?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Break or not to break...</title>
    <link href="https://goodvibeson.ly/vibes/2025-01-30-break-inside/"/>
    <updated>2025-01-30T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-01-30-break-inside/</id>
    <content xml:lang="en" type="html">&lt;p&gt;If you want a masonry design today, I think CSS columns are the best option for most simple layouts. But the first challenge you’ll run into is that your blocks, if they contain multiple elements, will wrap smoothly. However, if you have an image with text underneath, you don’t want the image to flow into the first column while the text stays in the second column. Look at these two examples:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;figure&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;figcaption&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Image text&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;figcaption&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;figure&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;

&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;If the div has a hotpink background and I land in column one...&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;...and I in column two, the background will break...&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But we have a friend to the rescue!&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;figure&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;break-inside&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; avoid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With this one line of code, the image and the figcaption will always stay together. The same applies to the two paragraphs and the pretty hotpink background will remain intact.&lt;/p&gt;
&lt;p&gt;Easy!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>:has() you done your homework?</title>
    <link href="https://goodvibeson.ly/vibes/2025-01-16-has/"/>
    <updated>2025-01-16T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-01-16-has/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Okay, it’s time to test your knowledge about a super cool CSS feature called :has(). What’s the difference between these two examples below?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.section:not(:has(h3))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;border&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5px solid hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.section:has(:not(h3))&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;border&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5px solid hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Want the answer? Really? Okay then…&lt;/p&gt;
&lt;p&gt;The first one means that if the section doesn’t have any h3, give the section a hotpink border. And the second one? It means if the section has any element that isn’t an h3, give the section a hotpink border.&lt;/p&gt;
&lt;p&gt;Yep, read that once more…Did you get it right!?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Is where really a thing?</title>
    <link href="https://goodvibeson.ly/vibes/2025-01-09-where-is/"/>
    <updated>2025-01-09T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-01-09-where-is/</id>
    <content xml:lang="en" type="html">&lt;p&gt;A couple of weeks ago, I gave a talk at the FrontendForum meetup here in Gothenburg, and at the end, I was asked about the difference between :where() and :is() in CSS. At that point, I could only say that there was a difference in specificity, but now… drumroll, please… here’s the more detailed answer!&lt;/p&gt;
&lt;p&gt;Both :where() and :is() take a list of selectors as arguments, but the difference is that :where() always has zero specificity, while :is() takes the specificity from the element with the highest specificity in the list of selectors.&lt;/p&gt;
&lt;p&gt;Clear as water!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Assignments, logic or not?</title>
    <link href="https://goodvibeson.ly/vibes/2025-01-02-logical-assignment/"/>
    <updated>2025-01-02T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2025-01-02-logical-assignment/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Who doesn’t love shorthands? Well, at least the ones that are easy to understand. Logical assignment operators are quite nice, don’t you think? Do you use this one?&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;x &lt;span class=&quot;token operator&quot;&gt;??=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It’s actually equivalent to:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;x &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;||&lt;/span&gt; x &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;undefined&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  x &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Much shorter and sweeter, right!?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Same same grid, but different</title>
    <link href="https://goodvibeson.ly/vibes/2024-12-26-grid-inline-block/"/>
    <updated>2024-12-26T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-12-26-grid-inline-block/</id>
    <content xml:lang="en" type="html">&lt;p&gt;If I told you there are two types of grid container siblings, would you believe me? You should, because we have two similar ways to create a grid container.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.inline-grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; inline-grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The biggest difference between them is that ‘display: grid’ is a block container that expands to fill its parent, whereas ‘display: inline-grid’ flows inline with text and elements and shrinks or grows to fit the width of its contents.&lt;/p&gt;
&lt;p&gt;Happy gridding!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Minimize containers</title>
    <link href="https://goodvibeson.ly/vibes/2024-12-19-min-width-container/"/>
    <updated>2024-12-19T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-12-19-min-width-container/</id>
    <content xml:lang="en" type="html">&lt;p&gt;If, like me, you’re eager to use the latest CSS features, like container queries, you’re probably excited to dive in! But we also know it’s not in the Baseline yet… Thankfully, there are things we can do, such as using @supports to check for feature availability.&lt;/p&gt;
&lt;p&gt;For container queries, there’s an additional strategy. By using min-width container queries rather than max-width ones, we increase the likelihood that our fallback experience remains usable! It’s a classic responsive design approach to think mobile-first, and in this case, it really helps.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.main&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Mobile styles here, everyone will see this*/&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;min-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 600px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.main&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;/* Tablet styles here */&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;min-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 800px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.main&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;/* Desktop styles here */&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Currently, global support for container queries is at 93.7%. For the remaining users without support, this approach ensures they still get the mobile layout, even on larger screens. While it’s not perfect, it’s fully functional and ensures a better overall user experience. A neat trick!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Trick or treat, clip or hide?</title>
    <link href="https://goodvibeson.ly/vibes/2024-12-12-clip-or-hide/"/>
    <updated>2024-12-12T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-12-12-clip-or-hide/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Did you know that we can allow overflow in just one direction? With ‘overflow: hidden’, we always hide overflowing content along both the x and y axes, even if we use overflow-y. And ‘overflow: visible’ makes everything… visible. But now we have another friend in town. Meet clip!&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;overflow-x&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; clip&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;overflow-y&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; clip&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Perfect, for example, if you want to hide content along the sides but still allow it to grow upwards and downwards!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Let&#39;s cheat the combinators</title>
    <link href="https://goodvibeson.ly/vibes/2024-12-05-sheat-combinators/"/>
    <updated>2024-12-05T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-12-05-sheat-combinators/</id>
    <content xml:lang="en" type="html">&lt;p&gt;If you’re anything like me, you still have to look up some stuff from time to time, no matter how many times you’ve used it. One of those things for me is “combinators.”&lt;/p&gt;
&lt;p&gt;A “combinator” is a special character that denotes the type of relationship between parts of a selector. And now, we have a cheat sheet!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;space character: the &lt;strong&gt;descendent combinator&lt;/strong&gt; matches a direct or nested child&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;: the &lt;strong&gt;direct child combinator&lt;/strong&gt; matches only top-level, un-nested children&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;+&lt;/code&gt;: the &lt;strong&gt;adjacent sibling combinator&lt;/strong&gt; matches only the very next sibling&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;~&lt;/code&gt;: the &lt;strong&gt;general sibling combinator&lt;/strong&gt; matches one or more siblings following the base selector&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Reduced motion in life anyone?</title>
    <link href="https://goodvibeson.ly/vibes/2024-11-24-reduced-motion/"/>
    <updated>2024-11-24T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-11-24-reduced-motion/</id>
    <content xml:lang="en" type="html">&lt;p&gt;If, like me, you have some fancy scroll animations on your site, this tip is for you. Such animations can cause discomfort for people with vestibular motion disorders. Animations like scaling or panning large objects can be vestibular motion triggers, which is why users can turn them off in the browser. But we need to listen for that preference in our code as well, which is easy to do with media queries.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;prefers-reduced-motion&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; no-preference&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Turn on the animation */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;prefers-reduced-motion&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; reduce&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Turn off the animation */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For a few years now, operating systems have allowed users to opt out of animations, typically within Accessibility settings. ‘no-preference’ is the default value, while ‘reduce’ indicates that the user has enabled reduced motion on their device.&lt;/p&gt;
&lt;p&gt;Be kind to users and make the web more inclusive for everyone!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Want to save max() of time?</title>
    <link href="https://goodvibeson.ly/vibes/2024-11-16-save-max-of-time/"/>
    <updated>2024-11-16T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-11-16-save-max-of-time/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know those little things you can spend tons of time on? Last week, I had one of those moments with a colleague. We spent too much time on it and then just accepted, “Okay, we didn’t know this.” But if I tell you, it might save you some time. We tried to do something like this.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;120vh - 271px&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This doesn’t work at all. Can you spot the error?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;120vh - 271px&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 0px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It turns out that max() can’t calculate a value that has a unit alongside a unitless value. The browser then gets confused about the comparison. The same applies to the math functions calc(), min(), and clamp().&lt;/p&gt;
&lt;p&gt;To save time, use units, folks!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A link needs its space</title>
    <link href="https://goodvibeson.ly/vibes/2024-11-07-underline-offset/"/>
    <updated>2024-11-07T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-11-07-underline-offset/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Ever used borders or pseudo-elements to customize your underlines for links? Yes, me too… But there’s a better way! The ‘text-underline-offset’ property allows you to control the distance between the text baseline and the underline.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;text-underline-offset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0.25em&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can use this offset to clear descenders, especially when links are grouped closely, such as in a bulleted list. I’d highly recommend adding it to your CSS reset.&lt;/p&gt;
&lt;p&gt;Also, don’t miss that text-underline-offset has two nice friends, ‘text-decoration-color’ and ‘text-decoration-thickness’, if you get the urge to customize even more.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Words loves wrapping</title>
    <link href="https://goodvibeson.ly/vibes/2024-10-24-wrap-text/"/>
    <updated>2024-10-24T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-10-24-wrap-text/</id>
    <content xml:lang="en" type="html">&lt;p&gt;We all know that text spread across a large screen can be hard to read. We want to limit the space that the text occupies. There are several ways to handle this, but I’ll show you one that I like a lot.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;100%&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 60ch&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So, what does this actually do? It sets the width of the paragraph to take up 100% of the parent width until the width reaches 60 characters, at which point it stops growing. It will always pick the smaller value between 100% and 60ch. One advantage of this over using percentages, pixels (px), or viewport units (vw/vh) to represent width is that when you’re using relative units like em or rem for the font size, the width automatically adjusts as the font grows.&lt;/p&gt;
&lt;p&gt;Smart right!?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A smoother transition?</title>
    <link href="https://goodvibeson.ly/vibes/2024-10-17-view-transition/"/>
    <updated>2024-10-17T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-10-17-view-transition/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Okay, this is kind of like magic, but I like it! We are talking about view transitions. In its simplest form, it opts in the current and destination documents to undergo a smooth transition between pages. With this one-liner in the base of our CSS, we can get a nicer feel when navigating the web on multi-page applications (MPA). When a user clicks a link, the click triggers the view transition, and we can see a nice cross-fade.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@view-transition&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;navigation&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So easy! You can, of course, combine this with keyframes and animations if you want to customize it. But more on that another time. The browser support isn’t widespread yet, but it currently works in Chrome, Edge, and Safari Technology Preview, with more support to come.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>The ever growing comfort zone</title>
    <link href="https://goodvibeson.ly/vibes/2024-10-10-growing-comfort-zone/"/>
    <updated>2024-10-10T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-10-10-growing-comfort-zone/</id>
    <content xml:lang="en" type="html">&lt;p&gt;It’s a space where your abilities and determination aren’t constantly tested, where you can recharge in the middle of an ever-changing world.&lt;/p&gt;
&lt;p&gt;Everyone has a comfort zone. For some, it’s expansive, and for others, it’s more confined. But it’s always there. Some, like me, often find themselves in over their heads with new, challenging experiences. I’ll admit, there are times when I feel a twinge of envy toward those who seem perfectly content staying where they are, just comfortably settled. It looks so peaceful, but clearly, that’s not for me. No matter what I do, I find myself nudging the edges of my comfort zone in some part of my life. Not always with a big leap and not all areas at once, but there’s always movement.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An interesting question is, are people truly different in their nature? Do we have different urges when it comes to pushing the boundaries of our comfort zones?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Or is it that some, like me, happen to have the right people around them? People who encourage you to try more, to dare more? People you trust to catch you if you fall. I believe that expanding our comfort zone is a skill, one that improves the more we practice it. Each time you venture outside your safety zone and discover it brings more joy than fear, your courage grows. And with each new experience, your comfort zone expands.&lt;/p&gt;
&lt;p&gt;Let me give you an example. A few years ago, I avoided going off-piste while snowboarding. I was mostly afraid of the unknown. But some friends convinced me to try, taking me beyond the groomed slopes despite my fears. Now, I absolutely love it! I even pushed myself further and started snowboarding on mountains with no prepared slopes at all. And in the process, I believe I grew a little as a person, just like we do with every challenge, whether we succeed or not.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/offpist.webp&quot; alt=&quot;Snowy mountains&quot; /&gt;
&lt;p&gt;After each challenge, though, I find myself needing to retreat to my comfort zone for a while. Find a place where I can recharge, where I don’t have to figure everything out. And each time I return, that comfort zone is a bit larger. Expanding our comfort zone is about motivating and inspiring ourselves in a way that respects who we are. It’s not about being perfect at everything but about having the courage to try.&lt;/p&gt;
&lt;p&gt;Earlier this year, I spoke at a Java conference with a colleague and friend. It all started with a casual conversation about goals and dreams. I mentioned that one of my long-term goals was to speak at a conference. He said, “Okay, let’s apply together. We probably won’t get accepted anyway because of the competition.” That thought made it feel less intimidating. So you can imagine my surprise when, a few weeks later, I received the message that our proposal had been accepted. After a lot of preparation, we did it, and today, I’m incredibly grateful he encouraged me to take the leap. The thrill of conquering a challenge is truly worth it.&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica_jfocus.webp&quot; alt=&quot;Jessica, teaching at JFocus&quot; /&gt;
&lt;p&gt;Reflecting on it, maybe we don’t appreciate our comfort zones as much as we should. Without them, we’d probably feel stressed all the time!&lt;/p&gt;
&lt;p&gt;In my work as a developer, I’m almost always nudging the edges of my comfort zone. Nearly every day, I face challenges where I don’t know the answers right away. Depending on the team and the situation, this can feel empowering, like “we can do anything,” or it can feel more daunting.&lt;/p&gt;
&lt;p&gt;So, am I more curious or driven to explore the boundaries of what’s comfortable than others? Maybe it’s a combination of factors. But the common thread in all of my stories is the importance of having supportive people around. Even when I decided to move alone to Gothenburg years ago, I knew I had a network of people who would catch me if I stumbled. With the right team and support system, we can take on almost anything, growing both as a group and as individuals. So, seek out those who will support you, but more importantly, be that person for someone else.&lt;/p&gt;
&lt;p&gt;There’s something deeply rewarding about being able to encourage, push, teach or simply lend a bit of your courage and energy to others. And in the process, your own comfort zone expands because there’s always something new to learn along the way.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Be curious, be generous and dare to be a beginner.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Disabled all over or just a bit?</title>
    <link href="https://goodvibeson.ly/vibes/2024-10-04-everything-disabled/"/>
    <updated>2024-10-04T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-10-04-everything-disabled/</id>
    <content xml:lang="en" type="html">&lt;p&gt;When we disable buttons or other interactive elements, we usually rely on the disabled attribute in HTML, styling the element accordingly. But if we’re aiming for accessibility and inclusivity, there’s an issue, the disabled attribute makes the element non-focusable. That means users can’t reach it with the keyboard or assistive technologies. If it’s unreachable, how will they know it’s disabled?&lt;/p&gt;
&lt;p&gt;A better, more inclusive approach is to use aria-disabled instead, which allows the element to stay focusable while still conveying its disabled state to assistive technologies.&lt;/p&gt;
&lt;p&gt;Before:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;button:disabled&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grey&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;button[aria-disabled=&quot;true&quot;]&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grey&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With aria-disabled, the element remains focusable and is properly announced as disabled (or dimmed) by assistive technologies. Meanwhile, visually, it still looks disabled, just like before. Better for everyone!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Animate to auto anyone?</title>
    <link href="https://goodvibeson.ly/vibes/2024-09-26-interpolate-size/"/>
    <updated>2024-09-26T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-09-26-interpolate-size/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I often highlight features that are part of the Baseline and supported across major browsers, but I have to tell you about one that’s coming soon, it’s a game-changer! Get ready to meet ‘interpolate-size’. This feature makes it possible to animate from 0 to… drumroll… ‘auto’!&lt;/p&gt;
&lt;p&gt;Normally, to animate something like height, we have to use numeric values for both the starting and ending points. But with ‘interpolate-size’, and the allow-keywords value, we can now transition with intrinsic sizes like auto, min-content, and max-content.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;interpolate-size&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; allow-keywords&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.expandable&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;transition&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; all 0.7s ease-in-out&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;


&lt;span class=&quot;token selector&quot;&gt;.expandable[open]&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;auto&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This has been a long-standing challenge, and developers have been using JavaScript workarounds to achieve this. But now, from Chrome 129, it’s in the spec! Firefox and Safari are working on it too, so cross your fingers that it becomes part of the Baseline soon!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Who doesn&#39;t want a size adjust?</title>
    <link href="https://goodvibeson.ly/vibes/2024-09-19-adjust-size/"/>
    <updated>2024-09-19T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-09-19-adjust-size/</id>
    <content xml:lang="en" type="html">&lt;p&gt;When we set up our preferred font-family in stylesheets, we usually include some fallback fonts. But have you ever checked if your fallback fonts have the same perceived font size? Fonts have an aspect value, which is the height of lowercase letters (like “x”) relative to uppercase letters. This aspect ratio can vary between fonts. Luckily, browsers can use this value to automatically adjust the font size when switching to a fallback font. Pretty smart, right?&lt;/p&gt;
&lt;p&gt;To make this happen, we use the font-size-adjust property!&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.font&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-family&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Verdana Helvetica&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-size-adjust&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0.549&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And here’s even better news: As of Chrome version 127, font-size-adjust is now supported across all major browsers and is part of the new Baseline.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Do you know the stylish ARIA?</title>
    <link href="https://goodvibeson.ly/vibes/2024-09-10-stylish-aria/"/>
    <updated>2024-09-10T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-09-10-stylish-aria/</id>
    <content xml:lang="en" type="html">&lt;p&gt;When working to make the web more accessible and inclusive, we often add ARIA attributes to our components. But did you know that you can easily use those same attributes when styling your components?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;nav button[aria-expanded=&quot;true&quot;] svg&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;transform&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;rotate&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;180deg&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;button[aria-disabled=&quot;true&quot;]&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grey&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With this approach, we don’t need extra CSS classes to handle states like ‘expanded’ or ‘disabled’. The examples above show how useful it can be, and there are plenty more possibilities. Once you start experimenting, you’ll find even more ways to take advantage of it, so give it a go!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Making stylish lists accessible</title>
    <link href="https://goodvibeson.ly/vibes/2024-08-29-accessible-list/"/>
    <updated>2024-08-29T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-08-29-accessible-list/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know those HTML lists with the plain look and that little dot as a default bullet point? Sure, they’re not that bad, but we often use this CSS snippet to get a clean slate when we want to style our lists.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;ul&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;list-style&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; none&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But did you know that by doing this, you also remove the semantic meaning of the list in older versions of Safari? The list will no longer be detected as a list in the accessibility tree. But don’t worry, we have a solution, role to the rescue!&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;ul&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;role&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;list&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;li&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;li&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;li&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;li&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;ul&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With the help of ‘role’ we can style our lists however we want without losing support for assistive technologies. Simple!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>CSS goes typesafe?</title>
    <link href="https://goodvibeson.ly/vibes/2024-07-22-at-property/"/>
    <updated>2024-07-22T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-07-22-at-property/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Did you know that CSS can, in a way, be typesafe and that we can use it effectively with custom properties? Now you do! Here’s the standard way to initialize a custom property. Always hotpink…&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--highlightColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A custom property initialized with ‘@property’ also includes the syntax type and sets inheritance, going beyond just name and value.&lt;/p&gt;
&lt;p&gt;The benefit of this approach is that with the standard property, you expect that property to contain a color as a value. If someone updates that property to have a value other than a color, any use of the property would fail. With ‘@property’, we define a fallback color and a type. If a non-color value is used, the color will always fall back to the initial fallback value. Color is just one of many types supported.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@property&lt;/span&gt; --highlightColor&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;syntax&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&amp;lt;color&gt;&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;inherits&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; false&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;initial-value&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Using ‘@property’ also enables animations of properties that were previously impossible to transition, like gradients. Neat, right!? And it’s now in Baseline!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Fatigued or just tired?</title>
    <link href="https://goodvibeson.ly/vibes/2024-07-06-fatigued-or-just-tired/"/>
    <updated>2024-07-06T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-07-06-fatigued-or-just-tired/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Maybe this is my kind of bookish. But it’s worth thinking about, especially before a long break when we’re all craving rest. What kind of tired am I?&lt;/p&gt;
&lt;p&gt;And then naturally, what do I need to really recover? Lay down and look at the sky?&lt;/p&gt;
&lt;img src=&quot;https://goodvibeson.ly/assets/images/trees-and-sky.webp&quot; alt=&quot;Trees, sun and a sky&quot; /&gt;
&lt;p&gt;Let’s go back to the initial question: are there different kinds of tired? We chatted about a few at lunch, and I’ve come up with more since then. Here’s a mix of what we discussed and my own ideas. You might have your unique ones too.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Muscle fatigue:&lt;/b&gt; The kind you get from lifting heavy or pushing through a workout. Your muscles get sore and full of lactic acid.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Heart rate tired:&lt;/b&gt; From running fast, riding a bike, or walking in deep snow, making your heart work overtime.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Emotionally drained:&lt;/b&gt; When you’ve had a lot of emotions running through you, mostly negative ones like sadness, irritation, jealousy, or hopelessness. Or when your emotions have been like a roller coaster.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Sleepy:&lt;/b&gt; Just plain exhausted from too little sleep.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Socially exhausted:&lt;/b&gt; From too many interactions with people. Not necessarily bad ones, but just a lot.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Mentally overloaded:&lt;/b&gt; From the pressure of solving complex problems.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Mentally restless:&lt;/b&gt; When everyday life feels too monotonous, making your brain bored and sluggish.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Physically restless:&lt;/b&gt; From a sedentary lifestyle, leaving your body feeling lazy from not moving enough.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Stressed:&lt;/b&gt; A kind of tiredness that might not even feel like tiredness until you allow yourself to rest.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Sore muscles:&lt;/b&gt; Due to long-term tension from emotions, stress, or an overloaded schedule—not from heavy lifting, but from ongoing strain.&lt;/p&gt;
&lt;p&gt;We often say, “I’m tired,” but what kind of tired are we? Each type feels different and needs different remedies. Sometimes we experience multiple types at once, making it tricky to decide which one to address first. It’s easy to say you need more sleep, but what if you can’t sleep because you’re mentally overloaded? Maybe you need to handle the mental load first. Once you do, you might find it easier to fall asleep.&lt;/p&gt;
&lt;p&gt;Feeling tired from poor sleep is different from feeling tired after a marathon or too much social interaction. This means we can’t use the same solution for every type of tiredness.&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/sunset-in-the-city.webp&quot; alt=&quot;Sunset in the city&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/strawberries.webp&quot; alt=&quot;A hand full of strawberries&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;As I write this, almost one week of my summer holiday has already gone by, and it didn’t start as I hoped, even though the pictures don’t lie. But it has one upside, it has given me time to reflect on what’s important to me this summer.&lt;/p&gt;
&lt;p&gt;In my former career, when summer approached, I was often physically drained from a lot of physical work over a long period and, to be honest, quite stressed. This isn’t the case now. Trust me, programmers don’t have the problem of moving too much. Okay, so I don’t have the same needs now. I’m not physically tired or sleepy, but I’ve faced emotional and social challenges, and the pace has been high despite having a lot of fun. What will be my main focus?&lt;/p&gt;
&lt;p&gt;I don’t need to cut down on physical training or catch up on sleep. I need to wind down, have an open schedule, and spend time with my own thoughts (a challenge with kids!). I also need to be outside, get inspired, and create things with my hands. That’s my focus this summer. What’s yours?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;What do you really need?&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Vertically align block children?</title>
    <link href="https://goodvibeson.ly/vibes/2024-06-27-align-content/"/>
    <updated>2024-06-27T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-06-27-align-content/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I don’t know how many ways we’ve tried to center children in a parent element. But guess what? We now have another method that can help us vertically align all the good stuff inside. This one works without needing to use flexbox or grid. Just take a block element and use ‘align-content’.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;align-content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; center&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can also use keywords like ‘start’ and ‘end’ as well. What a one-liner, right?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Reflections after CSS DAY 2024</title>
    <link href="https://goodvibeson.ly/vibes/2024-06-09-reflections-css-day-24/"/>
    <updated>2024-06-09T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-06-09-reflections-css-day-24/</id>
    <content xml:lang="en" type="html">&lt;p&gt;There are always new features coming and being implemented in browsers, but what would the focus be this year?&lt;/p&gt;
&lt;p&gt;There’s something special about attending a conference where the topic is solely CSS. Not the entire web and everything about it, not JavaScript and every framework, build process and package. It’s just one narrow subject to dive into over 14 talks in two days, and CSS DAY does it so well! The talks cover a variety of perspectives and I always bring something valuable home with me.&lt;/p&gt;
&lt;div class=&quot;image-grid-3&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css-day-2024.jpeg&quot; alt=&quot;Green surroundings near the cabin&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css-day-stickers.jpeg&quot; alt=&quot;Jessica on a walk in sunny october days&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css-day-help-desk.jpeg&quot; alt=&quot;Found acorn on a walk&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;This year, the subjects ranged from how to architect with modern CSS, to masonry layout, new color functions and deeply deeply, did I say deeplyengineered optimal color calculations. We also revisited the basics of how different CSS layout models work from the ground up and got inspired by crazy 3D CSS animations. Just look the amazing things &lt;a href=&quot;https://www.youtube.com/c/JuliaMiocene&quot;&gt;Julia Miocene&lt;/a&gt; does.&lt;/p&gt;
&lt;h2&gt;So, what takeaways do I bring home this time?&lt;/h2&gt;
&lt;p&gt;Firstly, that we sometimes have more design tools in CSS than we do in tools like Figma. Two things that come to mind are inspiring animations and fluid typography with functions like clamp(), min(), and max(). This makes it more important than ever to work, designers and developers, together as a team to bring out the best in what we can offer pur users. Another takeaway is that I personally have a way to go in fully understanding all the small tweaks in CSS and how they affect accessibility in the applications I build. It’s a journey I look forward to.&lt;/p&gt;
&lt;p&gt;I also look forward to upcoming features we listened to like masonry layout, tab sort order to handle some accessibility challenges, and anchor positioning together with the popover API.&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css-as-design-tool.jpg&quot; alt=&quot;Green surroundings near the cabin&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/css-day-cup.jpg&quot; alt=&quot;Found acorn on a walk&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;Beyond this, I came home feeling really inspired and with an even longer to-do list of things I want to learn, design, and develop. For me, conferences and activities like this are so important for boosting my energy to keep learning. Inspiration comes fast and can fade just as quickly, but if that initial spark leads me to take the first step in learning something new, the next steps often happen naturally, fueled by the momentum from the first. This creates a positive cycle of continuous learning and growth.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Tag along and I’ll share what I learn along the way!&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Console friends and family</title>
    <link href="https://goodvibeson.ly/vibes/2024-06-06-console/"/>
    <updated>2024-06-06T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-06-06-console/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I know you always ship excellent code, but let’s use our imagination and think of a scenario where things go really bad and you find a tricky bug in your JavaScript code. What do you do? You start debugging. Typically, you set breakpoints or use our old friend ‘console.log()’. But did you know ‘console.log()’ has some quite smart siblings as well?&lt;/p&gt;
&lt;pre class=&quot;language-javascript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;console&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;CSS&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;HTML&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;typescript&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;javascript&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
console&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;dir&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;yourFancyObject&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
console&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;‘console.table()’ takes an array or object and logs the data as a table, with one element or property on each row. ‘console.dir()’ on the other hand displays a list of the properties and their values in the given object. The last one is ‘console.count()’, and can be placed in a function to keep track of how many times that particulary function has been called.&lt;/p&gt;
&lt;p&gt;Using these can make your debugging process much smoother, try it!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Wrap your word around it</title>
    <link href="https://goodvibeson.ly/vibes/2024-05-30-wrap-word/"/>
    <updated>2024-05-30T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-05-30-wrap-word/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know when you make a nice design, write some text, try it out and everything looks really neat? And then, in the real world, someone uses really long words and everything breaks? Wrapping to the rescue!&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;overflow-wrap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; break-word&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;word-break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; break-all&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do you know the difference between the two? They are similar in many ways, and you can use both of them for line-breaking controls, but using ‘overflow-wrap’ will wrap the entire overflowing word to its own line if it can fit in a single line without overflowing its container. The browser will break the word only if it cannot place it on a new line without overflowing. In my opinion, this one should be a part of your reset CSS.&lt;/p&gt;
&lt;p&gt;‘word-break’ will break the overflowing word between two characters even if placing it on a new line would negate the need for a word break. This one can be useful in other cases, for example if you have a long copied and pasted URL. Or if you want to play around with a word and have a narrow parent container, getting every letter stacked under each other.&lt;/p&gt;
&lt;p&gt;Same same but different!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Everything from the @starting-style</title>
    <link href="https://goodvibeson.ly/vibes/2024-05-23-starting-style/"/>
    <updated>2024-05-23T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-05-23-starting-style/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know when you want to make a smooth entry at a party, but it’s hard to get the right feeling and you stumble? We have the same issue in CSS when we want to transition an element from ‘display: none’ onto a page. It isn’t easy. But what if I told you that we soon have an exciting solution on all major browsers? It’s called @starting-style.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;transition&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; opacity 0.5s ease-in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@starting-style&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;opacity&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Using @starting-style, we can specify styles for the element before it’s drawn to the page. They transition on page load, when they’re injected into the page, or when the display is toggled between ‘none’ and something else. In this example, it targets every element with the * selector and sets the starting style to opacity: 0, while also specifying a transition on opacity to ease-in. The result is that all elements fade in.Normally, keyframes could be used for this, but with @starting-style, we can transition.&lt;/p&gt;
&lt;p&gt;I like it!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A few trix with modern CSS</title>
    <link href="https://goodvibeson.ly/vibes/2024-05-16-trix-modern-css/"/>
    <updated>2024-05-16T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-05-16-trix-modern-css/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I could write a really long article about this, and maybe I will. But for now, I just want to give you a few trix of how CSS nesting, CSS variables and media queries can lend us a hand in our daily work. Tag along!&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;gap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 16px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;repeat&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;4&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;max-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 700px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;repeat&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;2&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;max-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 375px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Check out this example of an old way of writing our code. We actually add the selector ‘grid-template-columns’ three times. And, I don’t know about you, but the min-width media query has always puzzled me. So the question is, is there a better way in terms of readability and reducing redundancy? I would say there is.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;repeat&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--n&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 4&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;gap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 16px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;width &amp;lt; 700px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;--n&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;width &amp;lt; 375px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;--n&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You see, with CSS nesting, we can use one selector instead of three. We’re also able to assign a value to just one property and then changing it according to different conditions. And when you look at the media query, you can figure it out in a second without even having to think about it.&lt;/p&gt;
&lt;p&gt;The code has the same purpose and will be handled by the browser in the same way. However it’s easier to maintain, has fewer steps and more readability.&lt;/p&gt;
&lt;p&gt;Pretty neat, don’t you think?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Meet our friends cqw and cqh</title>
    <link href="https://goodvibeson.ly/vibes/2024-05-10-cqw-cqh/"/>
    <updated>2024-05-10T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-05-10-cqw-cqh/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know those companies that have abbreviations for everything that you can hardly spell or pronounce? Well, guess what? We have the same in CSS! Allow me to introduce you to the siblings ‘cqw’ and ‘cqh’. ‘cqw’ stands for a percentage of the width of the container query and ‘cqh’ naturally represents a percentage of the container’s height. Take a look at this CSS.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;container-type&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; inline-size&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.child&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;padding&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 3cqw&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-size&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 3cqw&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;border-radius&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0.5rem&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This means that we have a container with a child in it, and both the padding and the font-size will be 3% of the container’s width. This opens up for a very versatile responsive layout where we can place the child in a wide main section where it stands out distinctly, or in a small sidebar where the font and padding will adjust themselves to align well with the surroundings.&lt;/p&gt;
&lt;p&gt;We have the possibilities to make stuff really responsive. We just have to learn the tools!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Have vmin and vmax up your sleeve?</title>
    <link href="https://goodvibeson.ly/vibes/2024-05-02-vmin-vmax/"/>
    <updated>2024-05-02T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-05-02-vmin-vmax/</id>
    <content xml:lang="en" type="html">&lt;p&gt;When we’re delving into units, I have to tell you about the pair ‘vmin’ and ‘vmax’. The ‘vmin’ represents the smallest in percentage between the viewport width and height, while ‘vmax’ represents the largest between the two. This can come in handy when transitioning between portrait and landscape orientations. Imagine you have a grid, and with ‘vmax’ you can automatically adjust gap sizes to fit narrow viewport widths.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.grid&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--grid-min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 40ch&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--grid-gap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2vmax&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;repeat&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
    auto-fit&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token function&quot;&gt;minmax&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--grid-min&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 100%&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;gap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--grid-gap&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Let’s throw in the unit ‘ch’ as well, which approximately equals 40 characters in width. It’s equal to the width of the character ‘0’.&lt;/p&gt;
&lt;p&gt;Play around with it, and I’m sure you find more use cases!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A new kind of cap?</title>
    <link href="https://goodvibeson.ly/vibes/2024-04-25-cap-size/"/>
    <updated>2024-04-25T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-04-25-cap-size/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Loads has changed in the world of CSS and one area that’s developed is CSS Units. One of the newcomers is a relative font unit called ‘cap’. Let’s dig deeper! It’s all about measuring the distance from the baseline to the top of capital or uppercase letters, typically the height of letters with flat tops. A neat use case for this one? Say you want to align an icon next to your text and make sure they’re both the same height and size.&lt;/p&gt;
&lt;p&gt;Look at this:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  Good Vibes Only
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;svg&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;SVG icon in here&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;svg&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-size&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2rem&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;svg&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1cap&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What height will the icon have? It’ll match the height of the font exactly, and the icon will always automatically align with the baseline of the font. No matter if the font grows or gets smaller due to new CSS or browser settings.&lt;/p&gt;
&lt;p&gt;Kind of nice!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Better &#39;safe&#39; than sorry</title>
    <link href="https://goodvibeson.ly/vibes/2024-03-21-better-safe-than-sorry/"/>
    <updated>2024-03-21T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-03-21-better-safe-than-sorry/</id>
    <content xml:lang="en" type="html">&lt;p&gt;CSS makes containers expand automatically to the right or the bottom depending on their content. They also become scrollable automatically when contents are overflowing. Unless you break the CSS default behavior with things like ‘overflow: hidden’, the user will always be able to access the content.&lt;/p&gt;
&lt;p&gt;But. You knew it would come a but, didn’t you? When you use Flexbox, there are some situations where this default behavior won’t work as expected.&lt;/p&gt;
&lt;p&gt;Consider this markup:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;span&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Good Vibes&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;span&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;span&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Only&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;span&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With this css:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; flex&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;flex-direction&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; column&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;align-items&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; center&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;How can this go wrong?&lt;/h2&gt;
&lt;p&gt;What will happen when the container shrinks and becomes really narrow? It will actually cut off words both on the left and the right side. So don’t we still have that possibility to scroll that we talked about earlier? Yes, we will but it will only scroll to the right, resulting in that the first letters of ‘Good Vibes’ being cut off and the visibility of the data to the user is lost.&lt;/p&gt;
&lt;p&gt;‘safe’ to the rescue! If you look att the exemple below you see that we have a new word before ‘center’ that does all the magic and will fix this right away.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; flex&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;flex-direction&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; column&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;align-items&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; safe center&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;How does ‘safe’ work?&lt;/h2&gt;
&lt;p&gt;If you use ‘safe’, the aligning elements will switch to ‘start’ alignment in case of an overflowing situation. In this case it means that all the flexbox children will align to the left side and then we can scroll to the right to see the rest. Nice right?&lt;/p&gt;
&lt;p&gt;As of right now this is supported by the chromium browsers and Firefox. But use it! Although Safari doesn’t support it yet, Safari will simply ignore the ‘safe’ keyword and get the default behaviour. The &lt;a href=&quot;https://caniuse.com/mdn-css_properties_align-items_flex_context_safe_unsafe&quot;&gt;browser support&lt;/a&gt; will expand soon. It is already in Safari Technology Preview.&lt;/p&gt;
&lt;p&gt;I really like this little tool!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Higher than high</title>
    <link href="https://goodvibeson.ly/vibes/2024-03-07-higher-than-high/"/>
    <updated>2024-03-07T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-03-07-higher-than-high/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Imagine you’ve designed your web and have gone through it all in your favorite browser. Everything looks really good and you’re done. Then someone tests the same things on a real mobile device and the browsers toolbox is covering some of your content. Doh!&lt;/p&gt;
&lt;p&gt;We all know we need to take into account the size of the screen and probably you’re using vh/vw for this. The problem with this is that the browser’s toolbar height is not taken into account on mobile devices. But luckily we have a nice solution with some other units.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;body&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/*Small viewport, 
  takes the address bar and the toolbar into consideration*/&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100svh&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;widht&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100svw&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;body&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/*Large viewport, 
  doesn’t take the address bar and the toolbar into consideration*/&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100lvh&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;widht&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100lvw&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;body&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/*Dynamic viewport, 
  adapts its value when the toolbars are visible or/and when they are not.*/&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100dvh&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;widht&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 100dvw&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;They are all supported by the major browers, but one thing to know is that these don’t take the scrollbar into account. So you might want to use one unit value over the other. Go for it!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>More attributes is fun!</title>
    <link href="https://goodvibeson.ly/vibes/2024-02-29-more-attibutes/"/>
    <updated>2024-02-29T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-02-29-more-attibutes/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Sometimes CSS is more competent than you might have thought about. One of those insight is that we have a lot of CSS functions and don’t always need to depend on javascript to do cool stuff. Just look at this one.&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;counter&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;data-value&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;1&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;big elefant&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.counter::before&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;attr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;data-value&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What does it really do? The ‘attr’ function gets the data value from the selected element and uses it in the stylesheet to show it and make it lovely pink. Works really well in both ‘::before’ and ‘::after’ pseudo elements for ‘content’. Support for other properties then ‘content’ is still experimental, but I bet you can come up with fun stuff with this one.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Avoid parent scrolling</title>
    <link href="https://goodvibeson.ly/vibes/2024-02-22-avoid-parent-scroll/"/>
    <updated>2024-02-22T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-02-22-avoid-parent-scroll/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Okay, time for a useful scrolling tool to have in the toolbox, especially if you have a smaller area on your page with elements that should be scrolled independently from the rest of the page. However, you might have encountered a frustrating issue where the scroll interaction passes to the parent element once it runs out of elements. But we have this one to the rescue:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;article&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;overscroll-behavior&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; contain&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With ‘overscroll-behavior: contain’ scrolling is isolated to the contained element, preventing it from traveling to the parent. This is a nice trick especially for scrollable sidebars on longer pages. But I bet you can come up with more cases where it can come in handy.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Ever copy-paste?</title>
    <link href="https://goodvibeson.ly/vibes/2024-02-15-copy-paste/"/>
    <updated>2024-02-15T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-02-15-copy-paste/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know how we often find ourselves double or triple clicking, and then clicking again because we didn’t get it right, just to highlight a piece of text for copy-pasting? Do you also know we can help our users to do this? This little trick can make it so much easier.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;user-select&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; all&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This single line of code makes all the text within the ‘p’ element highlight with just one click, allowing to copy right away. ‘user-select’ can be applied to different elements such as ‘p’ or ‘span’, or even to a parent if it makes sense to easily select a longer piece of information for copying.&lt;/p&gt;
&lt;p&gt;Neat, right!?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>The superpower every developer needs</title>
    <link href="https://goodvibeson.ly/vibes/2024-01-25-the-superpower/"/>
    <updated>2024-01-25T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-01-25-the-superpower/</id>
    <content xml:lang="en" type="html">&lt;p&gt;But we spend our days working with tech, you might think. No, not if you ask me.&lt;/p&gt;
&lt;p&gt;Okay, that’s not entirely true. But bear with me, I haven’t gone nuts. Of course our craft in tech is important, it’s the foundation of our entire profession. However, sometimes it feels like we put so much effort and focus into tech-related skills, challenges and solutions that we forget the most important part of our work, working together to make someone’s dream come true.&lt;/p&gt;
&lt;p&gt;Yes, we work with tech, but most importantly, we work with people. We work together with people, are dependent on people and work for people toward their dreams. So, what is the superpower everyone needs?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Communication skills!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The ability to talk to each other in a way that creates trust, inspiration and a feeling that someone has my back no matter what. That glue that keeps a high-performing team together and makes our days sunny.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://goodvibeson.ly/assets/images/winter-sun.jpg&quot; alt=&quot;A sunny winter day&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In almost every bad situation I come across where there’s a bad atmosphere in the team or it’s hard and takes to long to create a great product, it boils down to the same thing — collaboration issues. And there’s only one way to fix it.&lt;/p&gt;
&lt;p&gt;Talk to each other. Work with each other. And it’s not the same as just talking. You can talk others to death or just run them over with words. It’s a collaboration skill to communicate effectively, and we need to use it.&lt;/p&gt;
&lt;p&gt;Tooling is secondary. Automation is secondary. Process is secondary. Frameworks are secondary. Titles are secondary. Everything else is secondary.&lt;/p&gt;
&lt;p&gt;We often have a team with really competent members with different skills and professions. But still, way too often, there are situations where the different members work in silos. And there are just as many excuses why they are not talking to each other. And literally, none of those excuses hold water.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Find a way to talk to each other, work together. Make it a priority.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It has nothing to do with what method or framework you use to organize the work to be done. The benefit of frameworks is that they create a shared language, and a shared language helps to collaborate with each other. But a framework won’t fix a disfunctional team not really working together, but side by side.&lt;/p&gt;
&lt;p&gt;With silos we create handoffs. You know that magical moment when a team member is done with their work and another will take over. Most importantly, this is where the first one stops working and moves on to other work, mentally far away from the feature being shipped. We create these handoffs in every step of the lifecycle. Between designers and developers, in an API between backend and frontend and between development and testing.&lt;/p&gt;
&lt;p&gt;But if we want to move away from handoffs, how do we do it? We do it step by step. With regular valuable check-ins. Shared channels for communications. Visibility into the work done. And slowly, we create a language everyone knows. It’s not even that hard. We use the same words for the elements in design and in code. Use the same words in the API as we do when we speak of the function with our stakeholders and users. Together we create common habits and patterns in every aspect of building someone’s dream. This is when the real magic happens. Because success depends on one simple thing - how well the team works together. If not, chances are even higher that a handoff won’t make it even a tiny bit better. A change in the team culture needs to happen first.&lt;/p&gt;
&lt;p&gt;The design is the visual representation of someone’s dream, the thing the users see, and design is teamwork. It involves everybody who contributes to the application — from stakeholders and marketing to developers and designers. Any overlaps we can create will benefit the team, the productivity and ultimately the users.&lt;/p&gt;
&lt;p&gt;What if we could make someone’s dream come true and at the same time have a flow and a great vibe together as a team. Doesn’t it sound like something to strive for?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Develop that superpower, I promise it will pay off!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img src=&quot;https://goodvibeson.ly/assets/images/winter-heart.png&quot; alt=&quot;A winter heart with gloves&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Pretty words</title>
    <link href="https://goodvibeson.ly/vibes/2024-01-18-pretty-text/"/>
    <updated>2024-01-18T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-01-18-pretty-text/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Sometimes, the magic lies in the tiny details. In an earlier &lt;a href=&quot;https://goodvibesonly.se/vibes/2023-12-07-balance-text/&quot;&gt;beat&lt;/a&gt; , I showed ‘text-wrap: balance’ as a great way to manage headings. But have you heard about its ‘pretty’ counterpart?&lt;/p&gt;
&lt;p&gt;The ‘pretty’ option can be applied to entire blocks of text, although its effect is noticeable primarily on the last four lines. Its main purpose is to prevent orphans—a single word—appearing alone on a line at the end of the text.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;text-wrap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; pretty&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This subtle change provides a solution to avoid hacky ways to handle those words that looks visually out of place.&lt;/p&gt;
&lt;p&gt;Right now it only has support in Chomium but it won’t negatively affect the experience if someone is not in a supported browser. So use it! It will add some visual balance to the page for those in a browser where supported.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Combinding different media</title>
    <link href="https://goodvibeson.ly/vibes/2024-01-11-media-or-and-not/"/>
    <updated>2024-01-11T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-01-11-media-or-and-not/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Okay, we have taked about media queries before but here is another one. Media Queries Level 4 introduces ways to combine media queries with ‘and’, ‘not’ and ‘or’. The first exemples below can be read like device with no hover capability and the second one is device with no hover or on a device were the viewport is in landscape mode.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;not&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;hover&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;not&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;hover&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;or&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;orientation&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; landscape&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So fun with all the new stuff coming!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>New ways with math functions</title>
    <link href="https://goodvibeson.ly/vibes/2024-01-05-min-max-and-clamp/"/>
    <updated>2024-01-05T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2024-01-05-min-max-and-clamp/</id>
    <content xml:lang="en" type="html">&lt;p&gt;In the era of evolving responsive design, we have gone through different approaches to handle it in the best way we can, often with the help of media queries. Now, we have container queries as the next step in evolving the potential in responsive web design (more on this topic in a future article). Additionally, we have gained increased control with some powerful CSS functions that are supported in all modern browsers and that is what this vibe is about.&lt;/p&gt;
&lt;p&gt;Meet the friends min(), max(), and clamp(). With these functions at your disposal, you don’t always have to rely on fixed viewport breakpoints. It’s possible to create a more fluid experience, and min, max, and clamp can help along the way. I hope I can inspire you to come up with your own use cases that can be helpful. But first.&lt;/p&gt;
&lt;h2&gt;What are min(), max(), and clamp()?&lt;/h2&gt;
&lt;p&gt;They, along with calc(), are math functions that allow addition, subtraction, multiplication, and division to be used as values for a component.&lt;/p&gt;
&lt;h3&gt;min() and max()&lt;/h3&gt;
&lt;p&gt;For both min() and max(), you can provide a list of arguments, and the browser calculates which one is the best fit.&lt;/p&gt;
&lt;p&gt;The min() function sets the smallest value from a list of expressions as the value. It can be used in many different cases, such as length, angle, percentage, and frequency. You can use different units for each value if you like. So, what can this look like in the real world of code?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;1em&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 40vw&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 800px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this case, the width of the container will end up as whatever the browser determines is the smallest value. It’s like you had a value for width, min-width, minier-width, miniest-width, even-smaller-width. You get the point…&lt;/p&gt;
&lt;p&gt;As for max(), it works in the same way.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;padding&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;1.5rem&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 40vw - &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--contentWidth&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; / 2&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Above it will select the maximum value of the two. Because max() is a math function you can use calculation inside the max function as well. Pretty neat right?&lt;/p&gt;
&lt;h3&gt;clamp()&lt;/h3&gt;
&lt;p&gt;This function takes three values: a minimum allowed value, a preferred value, and a maximum value. In the example below, we are using clamp() for typography. This allows the font to adjust according to the viewport width but with thresholds for both how small the font can be and, at the same time, a maximum value for the highest threshold. This creates a responsive heading without the need for media queries. At the same time it’s great way to work with accessible headings when the user adjust the settings for font-size in the browser or on device.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;h2&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-size&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;clamp&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;2rem&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 6vw&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 4rem&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;To wrap it up&lt;/h2&gt;
&lt;p&gt;To give you an visual exemple of what it looks like I created a codepen, feel free to play with it!&lt;/p&gt;
&lt;p class=&quot;codepen&quot; data-height=&quot;600&quot; data-default-tab=&quot;result&quot; data-slug-hash=&quot;zYyexoM&quot; data-user=&quot;jessicaskarbratt&quot; style=&quot;height: 571px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;&quot;&gt;&lt;span&gt;&lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/zYyexoM&quot;&gt;See the pen&lt;/a&gt; (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;script async=&quot;&quot; src=&quot;https://cpwebassets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;
&lt;p&gt;The CSS math functions min(), max(), and clamp() are very powerful and &lt;a href=&quot;https://caniuse.com/css-math-functions&quot;&gt;well supported&lt;/a&gt;. They can be quite helpful when you’re building responsive web applications, as they can be used for width, height, font-size, line-height, padding, margin, and more.&lt;/p&gt;
&lt;p&gt;I hope this was helpful, and that you’re eager to get started.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Media syntax rage, oh sorry range</title>
    <link href="https://goodvibeson.ly/vibes/2023-12-21-syntax-media-range/"/>
    <updated>2023-12-21T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-12-21-syntax-media-range/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You know media queries? Same old, same old… or not? Media Queries Level 4 spec includes some new stuff including syntax improvements with a range type. This is suppose to make media queries less verbose when using it with propeties like width or height.&lt;/p&gt;
&lt;p&gt;It used to look like this.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;min-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 600px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;min-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 600px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;max-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1000px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now we have this, which is readable in a way we are more used to.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;width &gt;= 600px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;600px &amp;lt;= width &amp;lt;= 1000px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.element&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A new way of thinking about it. Stay tuned for more media query stuff!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Ever felt inert?</title>
    <link href="https://goodvibeson.ly/vibes/2023-12-14-ever-inert/"/>
    <updated>2023-12-14T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-12-14-ever-inert/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Lacking the ability or strength to move, is what ‘inert’ means according to a google search. Notably, in the frontend world, its meaning isn’t that far off. ‘inert’ is a boolean expression that can be used on a HTML element like this:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;dialog&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;inert&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;...&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;dialog&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When used it tells the browser to ignore it. It also makes the browser ignore input events like click or focus. Used on a section it will ignore all the children in the section and elements like links or buttons can’t be reached. One useful usecase is when added to elements that are visually hidden or offscreen, like when collapsed or paginated. When ‘inert’ is added it gets removed from both the tab order and the accessibility tree.&lt;/p&gt;
&lt;p&gt;This attribute is most effective when used on groups of elements. Otherwise, we also have the ‘disabled’ state in HTML and ‘:disabled’ in CSS to consider.&lt;/p&gt;
&lt;p&gt;Nice right!?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Balance those beautiful words</title>
    <link href="https://goodvibeson.ly/vibes/2023-12-07-balance-text/"/>
    <updated>2023-12-07T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-12-07-balance-text/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Have you ever received a design from your UX/UI-designer where every word ends and aligns perfectly with the elements around it? But when you put it into code, it looks nothing like the original design?&lt;/p&gt;
&lt;p&gt;As developers, we often lack information about the final size, font size, or language of a headline. All the necessary variables for effectively and aesthetically treating text wrapping are in the browser. However, now we have a solution to help balance text.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;h1,
h2,
h3,
h4,
h5,
blockquote&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;text-wrap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; balance&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;‘text-wrap’ is used to control how text wraps within its container, and ‘balance’ enables automatic balancing of text lines across multiple columns, resulting in a visually appealing and balanced layout. It’s a small detail with a nice visual impact.&lt;/p&gt;
&lt;p&gt;I absolutely love this feature!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>All those children</title>
    <link href="https://goodvibeson.ly/vibes/2023-11-30-all-those-children/"/>
    <updated>2023-11-30T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-11-30-all-those-children/</id>
    <content xml:lang="en" type="html">&lt;p&gt;You’re familiar with the nth-child selector, right? But did you also know about the more advanced nth-child selection with the keyword ‘of’?&lt;/p&gt;
&lt;p&gt;As you probably know, the regular nth-child works like this: If you use :nth-child(2) on the ‘.super’ class, the browser selects the element that has the class ‘.super’ applied to it and is also the second child. However, using ‘of’ works slightly differently. The :nth-child(2 of .super) first filters all elements with the class ‘.super’ and then selects the second one from that list.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.super:nth-child(2)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Select the element with the class .super that is also the 2nd child */&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hot-pink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;:nth-child(2 of .super)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Select the 2nd child element that has the class .super applied to it */&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; gold&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A pretty nice addition to our nth-child toolbox if you ask me!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Old but new margins</title>
    <link href="https://goodvibeson.ly/vibes/2023-11-23-old-but-new-margin/"/>
    <updated>2023-11-23T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-11-23-old-but-new-margin/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Margins are not new in CSS. We have been using them for a long time, often with ‘margin’ as a shorthand for ‘margin-top’, ‘margin-bottom’, ‘margin-left’, or ‘margin-right’. However, do you also use ‘margin-block’ and ‘margin-inline’? As you might imagine ‘margin-block’ is equivalent to ‘margin-top’ and ‘margin-bottom’ while ‘margin-inline’ is the same as ‘margin-left’ and &#39;margin-right.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;margin-block&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 10px 20px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;margin-inline&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2em&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 4em&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Okay, is it just another words for the same thing then? Not really, because both ‘margin-block’ and ‘margin-inline’ adjust to the element’s writing mode, directionality, and text orientation. Take a look at this.&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Good vibes only&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;vertically&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Good vibes only&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;margin-inline&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.vertically&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;writing-mode&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; vertical-rl&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the ‘div’ the text will be horizontally centered, and in the ‘vertically’ it will magically be centered vertically. This is just one example to give you an idea of the possibilities, can you see more?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Aspects of that ratio</title>
    <link href="https://goodvibeson.ly/vibes/2023-11-16-aspect-ratio/"/>
    <updated>2023-11-16T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-11-16-aspect-ratio/</id>
    <content xml:lang="en" type="html">&lt;p&gt;What if I tell you that there is a property that adjusts the dimension of an element even if the parent container or the viewport changes? It’s called ‘aspect-ratio’. You can explicitly set the width or height of an element, and ‘aspect-ratio’ will use the dimension set to auto to maintain the specified width-to-height ratio.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.aspect-ratio-box&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;aspect-ratio&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 3 / 2&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.aspect-ratio-box&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;aspect-ratio&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1.5&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you set both width and height to specific measurements, that will override the aspect ratio, which is both intentional and useful.&lt;/p&gt;
&lt;p&gt;Just a couple of tips: first, when used together with flexbox and grid, it works best without the default value, ‘align-items: stretch.’ And lastly, used with images together with ‘object-fit,’ it can work wonders.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A negative one</title>
    <link href="https://goodvibeson.ly/vibes/2023-11-02-negative-grid/"/>
    <updated>2023-11-02T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-11-02-negative-grid/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Did you know that you can use negative line numbers to position grid items with CSS Grid? It’s actually quite handy. As you probably know, you can place items along starting lines, counting from the left and spanning over a specified number of lines or columns. But what if you want to place items from the right? How can you do this in an easy way? You could count your items and place them according to the column in the grid, but that sounds like too much fuss. Instead, look at this.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.grid-container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-template-columns&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;repeat&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;12&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; 1fr&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-auto-rows&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;minmax&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;100px&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-gap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 20px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;.grid-item&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;grid-column&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; span 6 / -1&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This means that the child in the grid will always start at the last line of the grid, covering the last 6 columns.&lt;/p&gt;
&lt;p&gt;Pretty nice, isn’t it?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Inset this one</title>
    <link href="https://goodvibeson.ly/vibes/2023-10-26-inset-this/"/>
    <updated>2023-10-26T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-10-26-inset-this/</id>
    <content xml:lang="en" type="html">&lt;p&gt;If I say top, left, right, and bottom, I imagine that you’re thinking about absolutely positioned elements. But what if I say ‘inset’? This is what we usually do.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; absolute&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;top&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;right&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;bottom&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;left&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But we have a shorthand! ‘Inset’ is a shorthand for the four inset properties: top, right, bottom, and left all in one declaration. It works exactly the same way as margin and padding, and you can use it in the same way as well.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; absolute&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;inset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token property&quot;&gt;inset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2em 4em 8em 0&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;/* top right bottom left */&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;inset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 20% 10% 30%&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;/* top left/right bottom */&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;inset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 0 10px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;/* top/bottom left/right */&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;inset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 24px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;/* all edges = 20px */&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Easy and clean!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>The quickest centering?</title>
    <link href="https://goodvibeson.ly/vibes/2023-10-18-quickest-centering/"/>
    <updated>2023-10-18T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-10-18-quickest-centering/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Okay, how many times have you tried to find the easiest way to center a child element within its parent? We have multiple methods for achieving this, including margins, flexbox, text alignment, vertical align, tables, and so on. But have you ever tried CSS grid? It is a one-liner worth trying.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.parent&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;place-items&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; center&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You simply create a grid with one cell and center your child element(s) in it. Done!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A few days following the path of past ideas</title>
    <link href="https://goodvibeson.ly/vibes/2023-10-11-following-past-ideas/"/>
    <updated>2023-10-11T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-10-11-following-past-ideas/</id>
    <content xml:lang="en" type="html">&lt;p&gt;…reality kicks in. Maybe you share your dream with a friend or just daydream about it, thinking you’ll act when the perfect moment arrives. But life has a way of getting in the way, and time slips through your fingers.&lt;/p&gt;
&lt;p&gt;It started just before the summer. That feeling of always being one step behind. Behind what, you may ask, which is a really good question. If I were to ask my co-workers at the company I’m currently working for, my husband or even my bank account, they would probably say they don’t have a clue. ‘She is not behind anything.’ But I couldn’t shake off that feeling that my ideas were piling up, itching at me like an itch I just couldn’t scratch.&lt;/p&gt;
&lt;p&gt;The truth is, I had set intentions and goals for the year, which included writing more blog posts like this one, improving the design of this website, and completing two digital courses on CSS and accessibility. But time has slipped away, and I’ve struggled to gain momentum.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If we don’t claim time, it will be claimed for us.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In reality, I was juggling work, family, running errands, physical training, and social happenings. The list goes on, and I feel productive most of the days, but the ideas stay as just ideas. Nothing really happens.&lt;/p&gt;
&lt;p&gt;As you know, I’m a professional problem solver. Not kidding. The only thing I do all day, every day as a freelancing developer, is solving problems. And as a mother. And as a friend. A family schedule planner. But back to the professional problem-solving part of me, freelancing. This problem needs a fix.&lt;/p&gt;
&lt;p&gt;So, what did I do? I booked a conference for myself — a getaway. It’s common to go on a conference with your colleagues in a bigger company for planning, teamwork or learn something new. But my company is me, myself and I. And there are actually some rules around this. I can’t make anything too fancy because I don’t have my annoying co-workers with me (just kidding), it can count as a vacation. But that was not my plan. I wanted to get away to get stuff done.&lt;/p&gt;
&lt;p&gt;After some deep digging through the internet, I found a small cabin in the countryside outside Varberg. And now I’m here. It’s me, this cabin with a spa bath outside, a greenhouse with a fireplace, and beautiful surroundings. I booked two nights, and this is my last day here. I almost feel like an author hiding away in Österlen, Sweden, to wrap up a novel. But that is not my kind of dream, just liked the metaphor. This was a first try for me. Will it work? Will I get stuff done? Be inspired? Be able to keep my focus?&lt;/p&gt;
&lt;div class=&quot;image-grid-3&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/greens.png&quot; alt=&quot;Green surroundings near the cabin&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/jessica-in-the-open.png&quot; alt=&quot;Jessica on a walk in sunny october days&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/findings.png&quot; alt=&quot;Found acorn on a walk&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;Reflecting on these days, I can honestly say it’s been great. Time always flies when you’re having fun. But for two days, I planned my own schedule with a balance of education, writing, coding, time in the fresh air and on the yoga mat. With clear goals, I think I did pretty well. I’ve covered 33% of one course, done a lot of reflection, written two blog posts (Vibes), penned two short pieces (Beats), and collected tons of inspiration.&lt;/p&gt;
&lt;p&gt;So, what’s the takeaway?&lt;/p&gt;
&lt;div class=&quot;image-grid-2&quot;&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/work-computer.png&quot; alt=&quot;Open computer one evening in the cabin&quot; /&gt;
    &lt;img src=&quot;https://goodvibeson.ly/assets/images/reading.png&quot; alt=&quot;An opan book in the greenhouse late evening&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;We will always have things to do, to fill our days with. And the ones that take more effort are the easiest to procrastinate. And that is okay. If we accept that the only thing between us and our ideas is simply getting started, we’re more likely to make them happen. I read recently that 80% of projects we start, we finish. Now I have started and am on my way to the next challenge, keeping up the work.&lt;/p&gt;
&lt;p&gt;The feeling I take with me is that this was both really productive and fun, in a way that fits me perfectly. I can absolutely see myself returning in the future.&lt;/p&gt;
&lt;p&gt;My approach to ‘getting started’ was to take a few days away. What’s your trick?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Do you know  - all?</title>
    <link href="https://goodvibeson.ly/vibes/2023-09-02-do-you-know-all/"/>
    <updated>2023-09-02T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-09-02-do-you-know-all/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Imagine that you’re about to style a button or a checkbox. Yes, I know, they are not pretty in default. You have cover up a lot of styling with new css. But what if I told you there is a simpler way?&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; unset&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is the easiest way to, yes unset all properties of an element to it’s initial value. Or to it’s inherited values if they inherit by default. If you for example put it on a button it will look like plain text.&lt;/p&gt;
&lt;p&gt;A clean canvas to start working on!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>CSS Day 2023</title>
    <link href="https://goodvibeson.ly/vibes/2023-06-10-reflections-css-day/"/>
    <updated>2023-06-10T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2023-06-10-reflections-css-day/</id>
    <content xml:lang="en" type="html">&lt;p&gt;About a year ago I wrote an article and held a talk at a meet up in Gothenburg about what’s new in CSS. In that article I also wrote that CSS is what makes the web interesting. You might not agree with me, I’m not really objective in this matter, but fact is that CSS is moving really fast right now.&lt;/p&gt;
&lt;p&gt;That became very clear to me these last couple of days when I attended CSS day 2023 in Amsterdam. Two whole days with just talks about CSS by my role models in the industry. Like a dream, right!?&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://goodvibeson.ly/assets/images/CSSday2023.png&quot; alt=&quot;CSS day 2023 Amsterdam&quot; /&gt;&lt;/p&gt;
&lt;p&gt;During these days we have gone thru container queries, :has, :is, scopes, tooling, how to build and design components in new ways of working with CSS and so much more. We have also looked at some really crazy stuff you can do with CSS, just for the fun of it. I came home last night, really inspired to dig deep into the stuff we have talked about. But also with a feeling of humbleness (is that even a word?) of how much there is to learn.&lt;/p&gt;
&lt;p&gt;So what was the one most important takeaways from these two days? To me it was to create stuff out of curiosity and interest. It doesn’t have to be perfect before you can show it to the world. Make it for yourself and see where it will take you.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://goodvibeson.ly/assets/images/SophieKoonin.png&quot; alt=&quot;Get weird&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>What is new in CSS? (Part 2)</title>
    <link href="https://goodvibeson.ly/vibes/2022-04-27-whats-new-css-next/"/>
    <updated>2022-04-27T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2022-04-27-whats-new-css-next/</id>
    <content xml:lang="en" type="html">&lt;p&gt;It’s a fact. The modern web wouldn’t be what it is without CSS. It is there to make the web interesting, make sure every element stays where it supposed to and make nice understandable layouts. Modern CSS has so mush more than box-model, background-colors and borders. And just like Javascript, new features are shipped all the time.&lt;/p&gt;
&lt;p&gt;This is part two on the topic of highlighting some nice CSS features from 2021 and upcoming ones during 2022. &lt;a href=&quot;https://goodvibeson.ly/vibes/2022-04-21-whats-new-css&quot;&gt;The first part&lt;/a&gt; you will find in a previous vibe. Ok, let’s dive right into it!&lt;/p&gt;
&lt;h2&gt;:has()&lt;/h2&gt;
&lt;p&gt;Ever found yourself wanting to style a parent of an element? :has() makes that possible. Or one other case. What if we could style a label that follows by an invalid input? There are many possibilities with this one.&lt;/p&gt;
&lt;p&gt;It would look something like this is we would like to style an img if it’s parent section also contains an h3.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;section:has(h3) img&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;border&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5px solid lime&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://caniuse.com/css-has&quot;&gt;browser support&lt;/a&gt; isn’t good. None of the big once has this implemented yet. But you can play around with it in Safari Technology Preview.
I’m really longing for :has()!&lt;/p&gt;
&lt;h2&gt;@when/@else&lt;/h2&gt;
&lt;p&gt;It’s pretty much as you could guess an at-rule for CSS conditions, similar to if/else. It can really make your CSS more simple in terms of readability as well.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@when&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;media&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;min-width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 960px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;supports&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; grid&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* This style will apply for viewports over 960px, where the browser also supports grid */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@else&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* And this will style for browsers that do not */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;This one is still under discussion to be implemented. But it’s one to keep your eyes open for.&lt;/p&gt;
&lt;h2&gt;Container queries&lt;/h2&gt;
&lt;p&gt;I’m really excited about container queries. It will help us to build responsive web in an more dynamic way. Today we have media queries so that we kan adjust our design according to the viewport. But that isn’t always that spot on. With container queries we can tell the children to adjust when the parent is a certain size.&lt;/p&gt;
&lt;p&gt;Here is one example. when the parent is more then 500px we switch to a horizontal layout of the child component.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.some-container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;container&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; inline-size&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.child&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; flex&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;flex-direction&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; column&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;inline-size &gt; 500px&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;.child&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;flex-direction&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; row&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The container property is short hand for container-type and container-name. Container type can be four different types.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;container-type&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; width&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;container-type&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; height&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;container-type&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; inline-size&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;container-type&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; block-size&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is a really nice &lt;a href=&quot;https://piccalil.li/blog/container-queries-are-actually-coming/&quot;&gt;article&lt;/a&gt; if you want to read more on this topic.&lt;/p&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;When it comes to &lt;a href=&quot;https://caniuse.com/mdn-css_properties_gap_flex_context&quot;&gt;browser support&lt;/a&gt; we could hope for more. But it is coming. In Chrome, Edge and Opera you can can try it out behind flag. Or you could use Safari Technology Preview as of now.&lt;/p&gt;
&lt;h2&gt;accent-color&lt;/h2&gt;
&lt;p&gt;If you want an easy way to apply your brand colors to form fields like checkboxes, radio buttons and progress bars accent-color is your friend. Many time we as developers hide the actual input and work with pseudo-elements instead. Now we can keep the default input but get them in your brand color.&lt;/p&gt;
&lt;p&gt;Here are a few example how you can accomplish this in an easy way.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;accent-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; deeppink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;form&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;accent-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; aqua&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;input[type=&quot;radio&quot;]&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;accent-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; rebeccapurple&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Play around&lt;/h3&gt;
&lt;iframe height=&quot;300px&quot; style=&quot;width: 100%;&quot; scrolling=&quot;no&quot; title=&quot;Simple accent-color example&quot; src=&quot;https://codepen.io/jessicaskarbratt/embed/RwxBoQe?default-tab=result&quot; frameborder=&quot;no&quot; loading=&quot;lazy&quot; allowtransparency=&quot;true&quot; allowfullscreen=&quot;true&quot;&gt;
  See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/RwxBoQe&quot;&gt;
  Simple accent-color example&lt;/a&gt; by Jessica Skårbratt (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;)
  on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.
&lt;/iframe&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://caniuse.com/mdn-css_properties_accent-color&quot;&gt;browser support&lt;/a&gt; is fairly good. It is in Edge, Chrome, Firefox and Safari Technology Preview.&lt;/p&gt;
&lt;h2&gt;Cascade layers&lt;/h2&gt;
&lt;p&gt;There are more then one factor that determine which style will be applied to your elements. Two example is selector specificity and order of appearance. CSS within a layer lower down will still take precedence over code in a higher layer, even if the higher layer has more specificity. Cascade layers give us a way to manage the cascading of CSS in a more direct way.&lt;/p&gt;
&lt;p&gt;It works similar to z-index, but for cascading.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;/* Create the layers, in the order you want them */&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@layer&lt;/span&gt; base&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; theme&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; highlight&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/* Append the CSS to each of the layers */&lt;/span&gt;
&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@layer&lt;/span&gt; base&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Markup goes here */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@layer&lt;/span&gt; theme&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Markup to &#39;theme&#39; layer goes here */&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;h1.title&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; black&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@layer&lt;/span&gt; highlight&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* Markup to &#39;highlight&#39; layer goes here */&lt;/span&gt;
  &lt;span class=&quot;token selector&quot;&gt;h1&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hotpink&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The h1 on the page will have a hotpink color, despite that the specificity in the theme layer is higher, because the of the order of the layers.&lt;/p&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://caniuse.com/css-cascade-layers&quot;&gt;Browser support&lt;/a&gt; for this one is also fairly good. It is in Edge, Chrome, Firefox and Safari Technology Preview.&lt;/p&gt;
&lt;h2&gt;And now what?&lt;/h2&gt;
&lt;p&gt;Things are happening fast in the world of CSS right now, and many of the new stuff help us write better and cleaner code. In two vibes we have gone over 10 different CSS features that can help us in our daily work. Some of them we can dive right right into and some we have to long for a bit longer.&lt;/p&gt;
&lt;p&gt;I hope you have met new favorite once.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>What is new in CSS? (Part 1)</title>
    <link href="https://goodvibeson.ly/vibes/2022-04-21-whats-new-css/"/>
    <updated>2022-04-21T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2022-04-21-whats-new-css/</id>
    <content xml:lang="en" type="html">&lt;p&gt;It’s a fact. The modern web wouldn’t be what it is without CSS. It is there to make the web interesting, make sure every element stays where it supposed to and make nice understandable layouts. Modern CSS has so much more than box-model, background-colors and borders. And just like Javascript, new features are shipped all the time.&lt;/p&gt;
&lt;p&gt;This post intend to highlight five nice CSS features from 2021 and upcoming ones during 2022. Are you comfortable? Have your popcorn near? Ok, lets go!&lt;/p&gt;
&lt;h2&gt;Custom properties/Variables&lt;/h2&gt;
&lt;p&gt;Custom properties allow you to define a variable in a central place to use in your design. Keep in mind that we now are talking about pure CSS and can now do this without a preprocessor like SASS.&lt;/p&gt;
&lt;p&gt;Before we hade to do something like this.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.some-container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #be03fc&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #be03fc&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now this is possible.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--global-highlight-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #be03fc&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.some-container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--global-highlight-color&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;--global-highlight-color&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This was maybe not a big problem in a small project, but when the project evolves and get bigger the old trick with find-replace isn’t that nice any more. Especially not if we have used hex, RGBA and RGB in different places.&lt;/p&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://caniuse.com/css-variables&quot;&gt;browser support&lt;/a&gt; is pretty good. IE doesn’t support this but every other big ones do.&lt;/p&gt;
&lt;h2&gt;Gap&lt;/h2&gt;
&lt;p&gt;When CSS grid came we learned all about gap as a concept. But did you know you can use it for flexbox as well? You can use row-gap, column-gap or just simple gap if you want the same space for rows and columns.&lt;/p&gt;
&lt;p&gt;We used to solve this with margins, but it took way more markup and it was harder when the children wraps to row number two.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.some-container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; flex&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;flex-wrap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; wrap&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;gap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 16px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;some-container&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://caniuse.com/mdn-css_properties_gap_flex_context&quot;&gt;browser support&lt;/a&gt; is good. IE doesn’t support this but every other big ones do.&lt;/p&gt;
&lt;h2&gt;content-visibility&lt;/h2&gt;
&lt;p&gt;Okay, this one is cool. It helps to improve site performance and make the initial page load faster.&lt;/p&gt;
&lt;p&gt;Today many pages are long, and our users are used to scroll. No worries. But we are rendering very much content that the user can’t see in the viewport. Content visibility works something like lazy loading and enables the user agent to skip the rendering of an element, including layout and painting, until it’s needed, shown in the viewport.&lt;/p&gt;
&lt;p&gt;It looks something like this:&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.some-container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;content-visibility&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;contain-intrinsic-size&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 200px 500px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And takes three values.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;content-visibility&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; visible&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;content-visibility&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; hidden&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token property&quot;&gt;content-visibility&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; auto&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Visible has no effect and will render the element and it’s children as normal.
Hidden means that the element will not render it’s content. Similar to display: none, but it preserves rendering state, so when shown again it will render quicker.
Auto is where the real magic happens. If the element is not relevant to the user, the content will not be rendered. But unlike display:none it is still available for user-agent features. Which simply means that we don’t loose accessibility.&lt;/p&gt;
&lt;p&gt;As you can see in the example I throw in another property called contain-intrinsic-size. This lets us set a theoretical width and height to the hidden elements so that the browser can calculate from that when the elements is rendered. For example it is a way to avoid layout changes during scroll.&lt;/p&gt;
&lt;p&gt;Here is more if you want to deep dive into &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility&quot;&gt;the spec&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://caniuse.com/css-content-visibility&quot;&gt;browser support&lt;/a&gt; isn’t there yet. It’s in the chromium based browsers, Chrome and Edge, but not yey in Firefox and Safari. But we will get there. And when we do it will be a really nice tool to speed up rendering.&lt;/p&gt;
&lt;h2&gt;Scroll snap&lt;/h2&gt;
&lt;p&gt;Scroll snap enables us to lock the users viewport to certain elements of the site when the user scrolls the page. This helps the users to focus on the most important parts.&lt;/p&gt;
&lt;p&gt;Maybe your used to see this in apps, but now we can bring it the the web as well.&lt;/p&gt;
&lt;p&gt;It’s pretty easy to get started with, just a few lines of code.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.container&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;scroll-snap-type&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; y mandatory&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;.child&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;scroll-snap-align&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; start&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here is a simple demo.&lt;/p&gt;
&lt;iframe height=&quot;300&quot; style=&quot;width: 100%;&quot; scrolling=&quot;no&quot; title=&quot;Scroll snap&quot; src=&quot;https://codepen.io/jessicaskarbratt/embed/YzYvQGK?default-tab=result&quot; frameborder=&quot;no&quot; loading=&quot;lazy&quot; allowtransparency=&quot;true&quot; allowfullscreen=&quot;true&quot;&gt;
  See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/YzYvQGK&quot;&gt;
  Scroll snap&lt;/a&gt; by Jessica Skårbratt (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;)
  on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.
&lt;/iframe&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://caniuse.com/mdn-css_properties_gap_flex_context&quot;&gt;browser support&lt;/a&gt; is good. IE doesn’t support this but every other big ones do.&lt;/p&gt;
&lt;h2&gt;:is() and :where()&lt;/h2&gt;
&lt;p&gt;These are pseudo classes that helps us to avoid repetition in our CSS markup.&lt;/p&gt;
&lt;p&gt;Before we had to do something like this.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.main a:hover,
.sidebar a:hover,
.footer a:hover&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* markup goes here */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now this is possible.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;:is(.main, .sidebar, .footer) a:hover&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* markup goes here */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token selector&quot;&gt;:where(.main, .sidebar, .footer) a:hover&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/* markup goes here */&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;They look the same but there is differences in specificity. :is() counts the specificity of the overall selector, whereas :where() has specificity value set to 0. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/:where#examples&quot;&gt;Deep dive&lt;/a&gt; in to the differences to se som good examples.&lt;/p&gt;
&lt;h3&gt;Browser support&lt;/h3&gt;
&lt;p&gt;The browser support for both &lt;a href=&quot;https://caniuse.com/css-matches-pseudo&quot;&gt;:is()&lt;/a&gt; and &lt;a href=&quot;https://caniuse.com/mdn-css_selectors_where&quot;&gt;:where()&lt;/a&gt; is good. IE doesn’t support this but every other big ones do.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This was five CSS features. Have you met something new?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;And now what?&lt;/h2&gt;
&lt;p&gt;Things are happening fast in the world of CSS right now, and many of the new stuff help us write better and cleaner code. We have more to talk about so there will be one more post on this subject coming up soon.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A guide I wish I had</title>
    <link href="https://goodvibeson.ly/vibes/2022-04-19-guide-i-wish-i-had/"/>
    <updated>2022-04-09T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2022-04-19-guide-i-wish-i-had/</id>
    <content xml:lang="en" type="html">&lt;p&gt;I’m not that girl who grew up building user interfaces or graphical games. I’m not even that girl who read computer science in school. I’m that girl that after my first child, started to study to be a developer. And when I started, I had never written even one line of code.&lt;/p&gt;
&lt;p&gt;Even more so I had never opened the terminal on the computer I had. Why should I? I was littery fresh on everything.&lt;/p&gt;
&lt;p&gt;Since then I have written lots of code and can use the terminal as well, don’t worry. But I read this today and I start thinking of when I started.&lt;/p&gt;
&lt;p&gt;Josh Comeau has written an &lt;a href=&quot;https://www.joshwcomeau.com/javascript/terminal-for-js-devs/&quot;&gt;article about the terminal&lt;/a&gt; and some neat tips and tricks, that I really wish I had then. It would have made stuff easier.&lt;/p&gt;
&lt;p&gt;If you’re just getting started this can maybe help on the road forward.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This is me trying to spread a good vibe of helping some one else.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Dare to jump?</title>
    <link href="https://goodvibeson.ly/vibes/2021-09-26-dare-to-jump/"/>
    <updated>2021-09-26T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2021-09-26-dare-to-jump/</id>
    <content xml:lang="en" type="html">&lt;p&gt;In March this year a started a new journey. After several years as an employed consultant, I started my own business. I took that step into the unknown.&lt;/p&gt;
&lt;p&gt;This feels a little like a ”Dear Diary” post, but a get a whole lot of questions after I changed my linkedIn profile to freelance. So I thought, that I could share a little bit of my journey so far.&lt;/p&gt;
&lt;p&gt;Starting my own company wasn’t a new thought but before last summer I always thought that I couldn’t start one on my own. If I could do it, it would be with a couple of colleagues. But working from home during this time of pandemic, with some extra time to think it over, a new idea came to me. What if I could do it on my own and be able to combined my passion for frontend development and for yoga in the same company.&lt;/p&gt;
&lt;p&gt;I was still worried about a few things. For one thing I’m a frontend developer not a sales person. Second I didn’t know much about accounting.&lt;/p&gt;
&lt;p&gt;It also took some time to gather my self some courage to actually do it. I’m going to be honest, the hardest part was actually the talk with my leader att Squeed. We always have had a good relationship so it felt really strange to say goodbye.&lt;/p&gt;
&lt;p&gt;6 months has passed since I left Squeed to stand on my own two feet. And now I’m a little bit wiser. Just kidding. But I hope I’ve learned some along the way. And my oldest son was wearing a t-shirt today that said:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Spread the good vibe&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So this is me trying to share my story to spread some good vibes.Back to the things I have learned.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;First, just because you run your own business, you’re not alone or on your own. You have collages, friends, and in my case a fantastic sister to ask. So a started to ask them for advise. And just like I’m happy to answer questions about how I started, they were happy to help me.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You don’t have to know everything before you even started. It’s perfectly fine to learn as you go along. When it comes to accounting you could just buy the service, but you remember that fantastic sister? She is an accountant. So our deal is that I should do most of the work on my own. But until I’ve learned, she answers all of my noob questions. And I owe her big time!&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then the other thing about sales. I found out that there are people that actually has for a job just to find assignments for freelancers like me. Mind blown! And they are happy to help. Especially now when it’s is a developers market.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;And I’m going to tell you a secret as well. I don’t have a 10-year plan. Not even a 5-year plan. And I don’t have a clear vision of the future. But what I do know is what my next step will be and maybe the step after that. My goal for me in my company is to always be curious about new things, do stuff that makes me happy. And if something scares me, I say yes! I know that I will grow when I’m out of my comfort zone.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;It was a breathtaking and att the same time scary feeling to start, but it is with a feeling of freedom I continue. If you think about it, go with the good vibe!&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>Shape-outside - or a square?</title>
    <link href="https://goodvibeson.ly/vibes/2021-02-15-shape-outside/"/>
    <updated>2021-02-15T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2021-02-15-shape-outside/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Played around with some CSS to make stuff a little bit more fun. I found a CSS-property called &lt;code&gt;shape-outside&lt;/code&gt;. A good thing is that it’s actually supported by almost every major browser. Nope, not Internet Explorer. So if you uses that one, you get the squares. But I think that’s okey solution for most cases.&lt;/p&gt;
&lt;p&gt;Shape-outside can be used with different shapes like polygon and circle. And like this expriment with url(). Shape-outside also has a friend called &lt;code&gt;shape-margin&lt;/code&gt; that makes it easier to get some space between the image and text.&lt;/p&gt;
&lt;p&gt;##This is a codepen I made, go play with it.&lt;/p&gt;
&lt;iframe height=&quot;592&quot; style=&quot;width: 100%;&quot; scrolling=&quot;yes&quot; title=&quot;Shape-outside image&quot; src=&quot;https://codepen.io/jessicaskarbratt/embed/poEXZJM?height=592&amp;theme-id=dark&amp;default-tab=result&quot; frameborder=&quot;no&quot; loading=&quot;lazy&quot; allowtransparency=&quot;true&quot; allowfullscreen=&quot;true&quot;&gt;
  See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/poEXZJM&quot;&gt;Shape-outside image&lt;/a&gt; by Jessica Skårbratt
  (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.
&lt;/iframe&gt;
</content>
  </entry>
  <entry>
    <title>Bauhaus goes web</title>
    <link href="https://goodvibeson.ly/vibes/2020-12-19-bauhaus/"/>
    <updated>2020-12-19T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2020-12-19-bauhaus/</id>
    <content xml:lang="en" type="html">&lt;p&gt;The other day I came across an old bauhaus-poster and was so inspired, that I hade to make something out of it in code. The advantage is that on the web you can play more on how it should look like on smaller screens as well.&lt;/p&gt;
&lt;p&gt;For this one I used &lt;code&gt;display: grid&lt;/code&gt; to lay out the grouped arcs and the headline. A background property called &lt;code&gt;repeating-radial-gradient&lt;/code&gt; to make those arcs and &lt;code&gt;writing-mode: vertical-rl&lt;/code&gt; for the text on smaller screens.&lt;/p&gt;
&lt;p&gt;This is CSS-propertys that I don’t use at work in daily life, so it was fun playing with it.&lt;/p&gt;
&lt;h2&gt;This is a playground, press edit and play!&lt;/h2&gt;
&lt;iframe height=&quot;265&quot; style=&quot;width: 100%;&quot; scrolling=&quot;no&quot; title=&quot;Playing with grid&quot; src=&quot;https://codepen.io/jessicaskarbratt/embed/JjKwjJB?height=265&amp;theme-id=dark&amp;default-tab=result&quot; frameborder=&quot;no&quot; loading=&quot;lazy&quot; allowtransparency=&quot;true&quot; allowfullscreen=&quot;true&quot;&gt;
  See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/JjKwjJB&quot;&gt;Playing with grid&lt;/a&gt; by Jessica Skårbratt
  (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.
&lt;/iframe&gt;
</content>
  </entry>
  <entry>
    <title>Duger jag verkligen?</title>
    <link href="https://goodvibeson.ly/vibes/2020-12-04-duger-jag-verkligen/"/>
    <updated>2020-12-04T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2020-12-04-duger-jag-verkligen/</id>
    <content xml:lang="en" type="html">&lt;p&gt;Är du en av dem som delar en hemlighet med andra utan att veta om att du inte är ensam? Innerst inne känner du dig kanske som om du är en bluff. Som att någon snart kommer att komma på dig att inte vara riktigt lika duktig som du vill ge sken av.&lt;/p&gt;
&lt;p&gt;Som om du har uppnått dina egna mål genom flyt, tur eller tillfälligheter och inte alls genom kompetens och skicklighet.&lt;/p&gt;
&lt;p&gt;Fenomenet är inte något nytt. Psykologiforskare gav det ett namn redan under 1970-talet. De kallar det impostor syndrome.
Gång på gång märkte de att högpresterande personer i deras omgivning, speciellt kvinnor, men även män, tycktes avfärda sina framsteg som rena tillfälligheter – trots att det var uppenbart att de jobbat sig fram till framgången. Framgång avfärdas som tur, tajming eller att de har lurat andra att tro att de är mer kompetenta än de själva tror att de är.&lt;/p&gt;
&lt;p&gt;Det finns till och med siffror som säger att upp mot 70% av alla människor känner av detta då och då. 70%! Uppenbarligen ett viktigt ämne som påverkar mångas vardag där alla vill räcka till och leva upp till förväntningarna.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Vilka människor runt dig kan behöva hantera impostor syndrome vardagen? - Varje smart människa som verkar ha koll på läget.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Första gången jag hörde någon sätta ord på detta var på en frontendkonferens i Barcelona för ca 4 år sedan. Ni vet ett sånt där ställe där det samlas en massa duktiga, kompetenta utvecklare och designers på en och samma gång. En massa människor att se upp till och att lära sig av. Kanske även undra lite om de faktiskt gör något annat i livet än att sitta vid en dator hela dagarna. Inte för att de sagt något som bevisar att det är så, utan bara för att de verkar så kompetenta.&lt;/p&gt;
&lt;p&gt;Vi satt i en stor vacker sal och upp på en scen kliver en man och börjar prata om hur man får ett team att jobba bra ihop. Sedan byter han slide och där står det IMPOSTOR SYNDROME. Han frågade om vi visste vad det var och beskrev det sedan. Det fortsatte med att vi alla fick blunda och räcka upp handen om vi kände igen oss. Sen bad han oss öppna ögonen och se oss omkring. Det var många händer i luften. Alldeles för många. Och vi insåg nog allihopa där och då att ingen av oss var ensamma om känslan.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Känner även du igen dig?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Personligen har jag stött på känslan vid flera olika tillfällen, faktiskt oftast i yrket som utvecklare. Forskningen visar att impostor syndrome har en tendens att komma fram mer i situationer där det inte finns så många likasinnade att spegla sig i. Alltså när personen inte är en del av normen eller har brist på förebilder. Utifrån hur IT-branchen ser ut med ganska stor ojämlikhet mellan könen så kan det kanske vara en bidragande faktor, men jag tror det ligger i personligheten också. Vad som är ännu mer intressant är enligt mig vad det finns för möjligheter att hantera det. Mitt största och första tips skulle faktiskt vara att omge dig av personer som lyfter och tror på dig. Sådana som ger dig en välförtjänt knuff i rumpan när du behöver det. Ibland behöver vi våga hoppa för att lära oss flyga på vägen ner. Vi behöver övertyga oss själva om att vi kan. En uppmuntrande omgivning kan öppna dörrar både för dig som individ och i teamet på arbetet. Det behöver inte alltid vara de stora gesterna men det hjälper om vi ser och tar vara på varandra med snälla ord. 
Ta också ett allvarligt snack med dig själv om att du är grym precis som du är och fråga dig själv om du jobbar hårt. Är svaret nje jag latar mig mest, då är det latmask du har drabbats av vilket är ett helt annat inlägg. Men jag tror nog att svaret är ja och då är det din rätt att vara nöjd och stolt över det du kan och presterar.&lt;/p&gt;
&lt;p&gt;Det finns många sätt att hantera situationen när vi väl blivit medvetna om den. Lär dig att lyfta självförtroendet till dig själv med saker du har åstadkommit och bli bättre på att skryta om saker du gjort. Du kan börja i ett stängt rum med dig själv som enda publik. Prata om det med personer du litar på, peppa och hjälp varandra, för du är inte ensam. Låt det ta tid. Du lärde dig inte gå på första försöket heller.&lt;/p&gt;
&lt;p&gt;Vill du få fler perspektiv så gillar jag detta &lt;a href=&quot;https://www.youtube.com/watch?v=ZkwqZfvbdFw&amp;amp;feature=share&quot;&gt;TED-talk av Mike Cannon-Brookes&lt;/a&gt;, CEO på Atlassian.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Blend-mode typography</title>
    <link href="https://goodvibeson.ly/vibes/2020-11-05-color-typo/"/>
    <updated>2020-11-05T00:00:00Z</updated>
    <id>https://goodvibeson.ly/vibes/2020-11-05-color-typo/</id>
    <content xml:lang="en" type="html">&lt;p&gt;As a kid almost all of us mixed all kind of colors and discovered that red and blue together accually is purple.
You can do this with CSS as well with a little help of a property called &lt;code&gt;mix-blend-mode: multiply&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;I made a codepen to play around with it. Try it!&lt;/h2&gt;
&lt;iframe height=&quot;265&quot; style=&quot;width: 100%;&quot; scrolling=&quot;no&quot; title=&quot;Blend-mode typografi&quot; src=&quot;https://codepen.io/jessicaskarbratt/embed/mdEErMW?height=265&amp;theme-id=dark&amp;default-tab=result&quot; frameborder=&quot;no&quot; loading=&quot;lazy&quot; allowtransparency=&quot;true&quot; allowfullscreen=&quot;true&quot;&gt;
  See the Pen &lt;a href=&quot;https://codepen.io/jessicaskarbratt/pen/mdEErMW&quot;&gt;Blend-mode typografi&lt;/a&gt; by Jessica Skårbratt
  (&lt;a href=&quot;https://codepen.io/jessicaskarbratt&quot;&gt;@jessicaskarbratt&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io/&quot;&gt;CodePen&lt;/a&gt;.
&lt;/iframe&gt;
</content>
  </entry>
</feed>