helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

169
active users

#css

31 posts26 participants0 posts today

New Kitten update

🥳 Kitten HTML templates and kitten.Component component render functions can now be async.

kitten.small-web.org

This is quite a big one and it took me finally biting the bullet and getting my head around generators in JavaScript to implement properly.

So now you can mix synchronous and asynchronous components as you like and if there are any asynchronous components in your templates they will automatically be awaited (even if you forget to use await) ;)

I’ll write a proper post/tutorial/documentation for it soon but for the time being enjoy the screenshots where a layout template gets the latest three posts from my mock fediverse public timeline service and displays them on the page.

The kitten.Component version also has a refresh button that streams a different three to the page.

For those of you unfamiliar with Kitten, this is all the code in either example. No scaffolding, nothing. Pop either into a file called index.page.js and run kitten in that folder and visit https://localhost to see the example run.

Enjoy!

:kitten:💕

Especially useful for designers is when they realise that a lot of the fancy visual effects from Figma etc. can be recreated with CSS.

Even more, when realising that those can become reusable CSS styles for building things faster in the future. That way designers can build their own visual toolkit.

Looking for CMS advice

Hey Web devs!

Do you have any suggestions, tips, opinions, dos, don’ts about headless CMSes?

I have a growing list of small/mid non-profits and collectives asking for my help to (re)make their website. I totally want to help, but I don’t have much time, especially considering that they generally have little or no funding—I would most definitely point them to @VillageOneCoop, otherwise.

Therefore, I want a super simple and replicable solution where I can copy-paste most of the code, while providing them with a stable, fast, and modern solution. I had a look at the Headless CMS section in the Jamstack website, but I need opinions from people who actually used some of that software already.

Needs

  • I want to code and configure everything using @eleventy
  • Admin interface (#WebApp) for the client to add pages and write posts
  • Static website in the front-end
  • Simple and reliable CI/CD
  • No/minimal maintenance after the first setup
  • Self-hostable (I was taking this for granted so much that I forgot to write it)
  • #OpenSource

Nice to have

  • Possibly using #Deno, not #NodeJS
  • Allowing the client to customize a bit their website through the admin interface, with a GUI
  • CMS app packaged on @yunohost
  • No CMS vendor lock-in
  • I’d love to write as little JavaScript as possible
  • #FreeSoftware

Absolutely not

Please, boost this and ask around! Links to videos, tutorials, and resources are welcome.

People whose perspective I would really value: @zachleat @harryfk @deno_land @jaredwhite @vanillaweb @stefan @mxbck @WeirdWriter @deadsuperhero (Sorry if I am spamming you!)

Jamstack.orgHeadless CMS - Top Content Management Systems | JamstackCheck out this showcase of some of the best, open source headless CMSes. This is community-drive so be sure to submit your favorite CMS today!
#Eleventy#11ty#CMS

⚠️ Grammarly Is Quietly Breaking Websites—Here’s How

Web developer Daniel Bushell discovered that the Grammarly browser extension injects global CSS into every website—even if it’s not actively being used.

🔍 What’s happening?
・It overwrites --rem on :root, breaking layout calculations
・It bypasses Content Security Policy via stealth styles
・It injects a <grammarly-desktop-integration> tag on every page
・It even loads 20 unnecessary font variants

Bushell’s fix? Renaming his variables to --🤡.

This raises bigger questions about how browser extensions interact with the web—and the need for more respectful, sandboxed designs.

👉 dbushell.com/2025/03/29/et-tu-

dbushell.comEt tu, Grammarly?
More from David Bushell
Continued thread

Anyway, I’m noticing that “font size” is very ambiguous. Even the general wisdom of 16px being the smallest font-size to use — realistically in browsers that’s computed as something like 11-point-something-pixels (changes per font). These newer #CSS capabilities make me want more specific guidelines.

Continued thread

For example, the following will make the cap-height of the font and the text box equal to 16px exactly.

```css
font-size-adjust: cap-height 1;
text-box: trim-both cap alphabetic;
```

This means that a `line-height` of 1.5 will create 8px of line spacing. #CSS

Continued thread

I ask because I’ve been experimenting with the #CSS `text-box` and `font-size-adjust` properties. You can use them to make text work very nicely with a baseline grid — a designer’s dream for web typography.

What’s the definition of “font size” in WCAG’s SC 1.4.12? Is it the height of the text box, which includes space? Is it the cap height? How does that work for the horizontal requirements for letter/word spacing? Should that use a more relevant metric? #accessibility #CSS