
Tips and tricks related to frontend-developer daily work. By @dark_mefody
Joined March 2021
- Tweets29
- Following1
- Followers404
- Likes11
Weekly Links:
- CSS line-clamp without prefixes;
- Embedded 3D models on the web;
- Starter for playing with scroll-driven effects;
- 2023 JS Rising Stars;
- Side Panel API;
- SVG icons as a mask.
mefody.dev/chunks/weekly-202…
295
A CSS editor written in CSS for your slide demos.
@scope, CSS Container Queries, contenteditable, CSS Grid, and color-scheme. Just 54 lines of CSS.
Inspired by Miriam Suzanne.
mefody.dev/chunks/css-editor…
Weekly Links:
- Interop 2024
- Safari 17.4 Beta
- Figma Dev Mode
- Outllok on macOS
- carouscroll Web Component
- git rerere
- Configurable switch component
- CSS Scroll-triggered Animations
- TypeScript 5.4 Beta
- Learn SVG
- Images with backdrop blur
mefody.dev/chunks/weekly-202…
How to make tabs in the browser always show which build you’re working on? You can have different favicons for different builds!
mefody.dev/chunks/favicon-de…
Weekly Links:
- Scroll-Driven Animation
- CSS one-liners
- Noise effect with CSS gradients
- Declarative Shadow DOM usage
- New in Chrome 121
- IE’s content rating system
- Key updates in WCAG 2.2
- Automated weekly links posts
mefody.dev/chunks/weekly-202…
CSS can help you to style text selections if the default selection styles are not compatible with the design of your website.
#CSS
mefody.dev/chunks/selection/
If you have a task to debug some element that is displayed on hover or focus only, DevTools have three ways to help you with that.
#devtools
mefody.dev/chunks/hover-debu…
Recently, my colleagues asked me to create a small checklist for making an accessible component from scratch. Here it is.
#a11y #html
mefody.dev/chunks/a11y-from-…
Sometimes you need to prevent text glyphs from turning into emojis. For example, when the heart glyph is a part of your page title. But OS renders it as emoji.
There are some ways to fix it.
#html #css
mefody.dev/chunks/emoji-to-t…
If you want to share info about all the website creators, but the site owner is not ok with a separate page, you can add humans.txt to the site root and support @humanstxt initiative.
#git #html
mefody.dev/chunks/humans-txt…
After you decided to use git hooks in a project, you have to share them with your team. By default, git hooks are not shareable. But there are few ways to solve the problem.
#git #npm #bash
mefody.dev/chunks/git-hooks-…
It's easier to have clean code in your repo when you have git hooks configured. Let's figure out how to write git hooks for your project.
#git #npm
mefody.dev/chunks/git-hooks/
Imagine if you could only change the color of checkboxes or radio buttons to match the theme color of your site... 🎨
I believe we'll have such possibility with `accent-color` CSS property in the near future 🌈
#css
mefody.dev/chunks/accent-col…
Sometimes I need to create a link to download the file. Sometimes user wants to save AVIF or WebP as JPEG. These situations have something in common.
#html #js
mefody.dev/chunks/download-l…
You can set the width of the tab character. You can even animate this width. I'm not sure why, but you can.
#css
mefody.dev/chunks/tab-size/
The classic way to work with `document.cookie` looks like trade-offs from the past. The Cookie Store API can solve a lot of problems in the future.
#js
mefody.dev/chunks/cookie-sto…
Have you ever wanted to select and copy a specific part of a long link text? Hold an `Alt` (`⌥ Option`) to do it.
#browser
mefody.dev/chunks/copy-part-…
You don’t need JavaScript to add social media buttons to your website. All popular social networks have "sharers" via links.
#html
mefody.dev/chunks/social-sha…
If you use GitHub as an open-source workspace, try the GitHub CLI to increase your productivity. `gh pr checkout`, `gh issue create` and other commands save my time every day.
#bash #git
mefody.dev/chunks/github-cli…

