Search

Nalezeno "css-tricks": 2963

Moving Rainbow Underlines


I absolutely love the design of the Sandwich site. Among many beautiful features are these headlines with rainbow underlines that move as you scroll. It's not scroll-jacking — it's just a minor design feature that uses scroll position to enact a little movement. To draw the rainbows...

A Whole Bunch of Places to Consider Contrast in a Single Paragraph


When we're thinking about choosing colors in design, we're always thinking about accessibility. Whenever colors touch, there is contrast and, if we're talking about the color contrast of text, it needs to be high enough to be readable. This benefits people with a variety of visual disabilities,...

Stream-Crossing Confusion


Should I use WordPress or React hooks? Should I use D3 or CSS? Should I use Markdown or JSON? Can I use flexbox in Gatsby? Can I use custom properties in Jekyll? Should I use HTML or the cloud? How do I add dark mode to my Vue site? These are tongue-in-cheek, but there is a point to be made here....

Highlights of the HTTP Archive Web Almanac


I recently looked at the CSS chapter of the Web Alamanc and had some thoughts. Here, Stefan Judis looks at the whole thing and rounds up the most interesting bits to him. Here are most of them: 20% of sites don't compress their JavaScript. React is on 5% of sites while jQuery is on 85% of sites....

Is Web Design Easier or Harder Than it was 10 Years Ago?


Is it harder or easier to build a website now than 10 years ago? Has the bar gone up or down? I don't have any data for you, but I can shell out some loosey-goosey opinions. HTML HTML5 was the only big HTML change in the last decade, and it wasn't particularly dramatic. It's cool it's the looser...

Clips from my DEV AMA


I recently did an AMA over on DEV. Just taking the opportunity to port over some answers here like a good indiewebber. If you were starting out as a front end dev in 2020, what would you say is the first thing you would learn and why? You need to put yourself in a position where it's your job...

How to the Get Current Page URL in Gatsby


This seemingly simple task had me scratching my head for a few hours while I was working on my website. As it turns out, getting the current page URL in Gatsby is not as straightforward as you may think, but also not so complicated to understand. Let’s look at a few methods of making it happen....

Raw GraphQL Querying


GraphQL has all kinds of awesome tooling built around it. But like everything on the web, it ultimately comes down to data shootin' across the ol' network and responses coming back. If you need to talk to a GraphQL API endpoint, you don't absolutely have to use some kind of framework or library...

Create a Static Site Using Angular & Scully


The team at HeroDevs has just released the alpha version of Scully, a static site generator for Angular. That's right, Angular didn't have an intuitive way to create JAMstack applications before, but now it's possible! Scully uses a node CLI application to run Angular schematics so you don’t have...

Make a smooth shadow, friend.


One box-shadow is cool and all, but check out Philipp Brumm's tool for building out comma-separated multiple box-shadows, which result in a much smoother and more natural look. This reminds me very much of the idea for easing linear-gradient. In a gradient, this smoothing effect is handled...

Zenserp


(This is a sponsored post.) There are plenty of rank tracking software tools out there that allow you to track the position of your website inside the search results pages (SERP) of search engines for certain key phrases. However, these tools are definitely not enough when you are trying...

Two Lessons I Learned From Making React Components


Here’s a couple of lessons I’ve learned about how not to build React components. These are things I've come across over the past couple of months and thought they might be of interest to you if you’re working on a design system, especially one with a bunch of legacy technical decisions and a lot...

Print-Inspired Layout on the Web


I always love seeing people get inspired by print design and trying to port it over to the web. There is a much deeper history of interesting print work to draw from, and still a ton of modern work happening that eclipses most digital design work today. The web is fully capable of bold, interesting...

The Making of a “Special Series” on a WordPress Site


We just ran a fancy article series here on CSS-Tricks with a bunch of different articles all answering the same question. By fancy, I mean two things: The articles had a specially-designed template just for them. (Example) The series has a specially-designed landing page. One of the reasons...

css.gg


I'm not sure what to call these icons from Astrit Malsija. The title is "500+ CSS Icons, Customizable, Retina Ready & API" and the URL is "css.gg" but they aren't really named anything. Anyway, their shtick is: The 🌎's first icon library designed by code. The idea is that they don't...

Design APIs: The Evolution of Design Systems


A clever idea from Matthew Ström: [...] design APIs don’t seem like a stretch of the imagination. An API-driven approach is the natural extension of the work currently being done on design systems, including tokens and standardization projects. If you buy into the idea of design tokens, that...

The Order of CSS Classes in HTML Doesn’t Matter


That’s right! And I can prove it, too. Let’s look at some CSS first: .a { color: red; } .b { color: blue; } And now let’s look at some markup: <div class="a b">Here’s some text</div> The text is going to be blue because .b is defined last in the CSS, right? But what if we...

The JAMstack Landscape


It's no big secret that Netlify invented the term JAMstack. While it's possible to embrace the JAMstack without using Netlify, it's notable that Netlify is at the very heart of the whole "JAMstack landscape." What does "JAMstack landscape" even mean? I like the term because it sets the stage that...

The Origin Story of Container Queries


Container queries don’t exist today but a lot of web developers have been arguing in their favor lately. At first, the idea sounds relatively simple: whereas media queries allow us to make style changes based on the width of the browser, container queries would allow us to make style updates when...

“Link In Bio” is a slow knife


Anil Dash: If Instagram users could post links willy-nilly, they might even be able to connect directly to their users, getting their email addresses or finding other ways to communicate with them. Links represent a threat to closed systems. On CodePen, we have a TextExpander snippet we use...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace