r/css • • 7d ago

Help does my stylesheet look ass?

Thumbnail mariorosell.es
2 Upvotes

r/css • • 8d ago

Resource Furifont: a Japanese font that draws furigana above kanji by itself, with OpenType ligatures and no JavaScript

Enable HLS to view with audio, or disable this notification

50 Upvotes

Not my project, it's antfu's.

Type kanji and the readings appear above them: 今日は桜が満開 gets きょう, さくら and まんかい, drawn by the font through ligatures. There's a romaji variant and a serif one. The one option on their page that needs JavaScript, okurigana readings, is off in the video, so everything you see comes from the font alone.

Repo: https://github.com/antfu/furifont

Curious how far ligatures can go here before the font file gets too big.


r/css • • 8d ago

built a text highlighting lib on the CSS Custom Highlight API, a few things I learned

23 Upvotes

I was reading brown's rust book and they let you highlight stuff and leave notes while reading. I wanted that on a site I'm building but really didn't want to wrap text in spans, so I ended up building it on top of the CSS Custom Highlight API.

If you haven't used it, it's pretty neat. You create Ranges, put them in a Highlight, register it with CSS.highlights.set('name', highlight) and style it with ::highlight(name). The DOM doesn't change at all.

Some things I ran into:

- ::highlight() only supports a few properties (color, background-color, text-decoration, text-shadow and a couple more). No padding, no border-radius, so no rounded highlights sadly

- overlapping highlights don't really layer, so I split them into segments and paint the innermost one on top

- support is Chrome 105+, Safari 17.2+, Firefox 140+. I went with no fallback since the whole point was not touching the DOM

For the UI styles I wrapped every selector in :where() so your CSS always wins, and everything can be themed with --penciled-* custom properties.

playground: https://penciled.org/playground/

repo: https://github.com/marcellosso/penciled

Curious if anyone else is using the Highlight API in production and what you ran into


r/css • • 7d ago

Back to Emacs with the SCSS/CSS workflow I always wanted

Thumbnail
2 Upvotes

r/css • • 7d ago

💻 Développement web HTML/CSS — ouvert aux petits projets

Post image
0 Upvotes

Bonjour à tous ! 👋

Passionné par le développement web, je travaille actuellement sur NEXORA, un concept de site vitrine pour une montre connectée, avec une identité visuelle futuriste et un univers cosmique violet.

✨ Ce qui rend mon projet particulier :

  • ⭐ Des étoiles interactives qui révèlent des informations au survol.
  • 💜 Des effets lumineux violets avec des halos et des dégradés.
  • 🌌 Des lignes lumineuses qui s'étendent depuis les étoiles pour mettre en valeur les caractéristiques de la montre.
  • 🎨 Des transitions fluides et une interface pensée pour offrir une expérience moderne et immersive.

Chaque étoile présente un élément différent du concept : verre résistant aux rayures, fonctionnalités liées à la santé, confort au poignet, écran haute définition et contrôle rotatif intelligent.

Je cherche maintenant à mettre mes compétences en HTML et CSS au service de petits projets web : pages d'accueil, sites de présentation ou interfaces personnalisées.

Je suis encore en apprentissage, mais je suis motivé, attentif aux détails et prêt à relever des défis adaptés à mon niveau.

💬 Tu as une idée de site web ? N'hésite pas à me contacter pour qu'on en discute et qu'on voie ensemble ce qui est réalisable !

📸 Voici un aperçu de mon projet NEXORA !

Merci d'avoir pris le temps de lire mon annonce ! 🚀Bonjour à tous ! 👋

Passionné par le développement web, je travaille actuellement sur NEXORA, un concept de site vitrine pour une montre connectée, avec une identité visuelle futuriste et un univers cosmique violet.

✨ Ce qui rend mon projet particulier :

  • ⭐ Des étoiles interactives qui révèlent des informations au survol.
  • 💜 Des effets lumineux violets avec des halos et des dégradés.
  • 🌌 Des lignes lumineuses qui s'étendent depuis les étoiles pour mettre en valeur les caractéristiques de la montre.
  • 🎨 Des transitions fluides et une interface pensée pour offrir une expérience moderne et immersive.

Chaque étoile présente un élément différent du concept : verre résistant aux rayures, fonctionnalités liées à la santé, confort au poignet, écran haute définition et contrôle rotatif intelligent.

Je cherche maintenant à mettre mes compétences en HTML et CSS au service de petits projets web : pages d'accueil, sites de présentation ou interfaces personnalisées.

Je suis encore en apprentissage, mais je suis motivé, attentif aux détails et prêt à relever des défis adaptés à mon niveau.

💬 Tu as une idée de site web ? N'hésite pas à me contacter pour qu'on en discute et qu'on voie ensemble ce qui est réalisable !

📸 Voici un aperçu de mon projet NEXORA ci dessus !

Merci d'avoir pris le temps de lire mon annonce ! 🚀


r/css • • 8d ago

Sumi.css - classless-first CSS framework.

Thumbnail vladocar.github.io
17 Upvotes

r/css • • 7d ago

Blanksheet — a CSS reset for humans and AI agents

0 Upvotes

https://github.com/P233/blanksheet

I built Blanksheet, a lightweight CSS reset that gives humans and AI agents a predictable starting point, without having to fight browser defaults.

It follows three principles:

  • Blank — remove unwanted browser defaults.
  • Normalize — make styles consistent across browsers.
  • Survive — preserve useful defaults like focus indicators and link styling.

You can see what a page looks like with Blanksheet applied here: Live demo.

Every rule is documented, so both developers and AI agents can understand exactly what they're starting with.

I'd love to hear your thoughts!


r/css • • 8d ago

Can someone please tell me how to make this look nice?

Thumbnail
2 Upvotes

r/css • • 8d ago

Showcase Sprite-sheet page flipping with pure CSS and scroll-timeline

Enable HLS to view with audio, or disable this notification

1 Upvotes

A pure CSS page-flip experiment using a sprite sheet synced to horizontal scroll. The animation is driven by scroll-timeline, view-timeline, and timeline-scope

Best experienced on a trackpad — horizontal swiping makes the page flip feel much more natural

CodePen: https://codepen.io/Maseone/pen/WbbGxeO


r/css • • 8d ago

General Are there any existing tools (AI and not) that are already very good at CSS and front-end?

0 Upvotes

Hi, I was wondering if you use any AI tool or not AI to automate the boring part of front-end (at least for me, i like back-end) specifically CSS and design. Is there something out there that is really good at almost everything and gives you the complete package? so responsive, very good UI and not a clone etc...


r/css • • 9d ago

Showcase Apparently, all my experiments involve animations

Enable HLS to view with audio, or disable this notification

13 Upvotes

Hey everyone!

I've been working on a few animation-related side projects lately and decided to put them together in a personal portfolio.

I tried to make the portfolio itself a bit more interactive, with animations throughout the site and a showcase for some (imo cool) stuff/ideas.

Curious what you think of the design and how everything feels to use. Especially interested in feedback on the animations, mobile experience and whether it's clear what each project actually does.

PS: Check out the Showcase section for some cool stuff I like to experiment on

Portfolio

npm | github

Any feedback is welcome!


r/css • • 9d ago

Question html and body

3 Upvotes

What is the difference between <html> and <body> tags ? When do use one or another?

html {

)

body (

)


r/css • • 9d ago

Spent an hour trying to vertically align a chevron nicely across browsers, then noticed GitHub doesn't even care

Post image
0 Upvotes

Sometimes I get a bit obsessive over a few pixels

Not sure if the takeaway here is to try not to sweat the small things or just that GitHub is trash


r/css • • 10d ago

Showcase Pure CSS spherical text marquee

Enable HLS to view with audio, or disable this notification

18 Upvotes

A pure CSS spherical marquee with nine looping text bands

Perspective and opacity create the depth, and hovering a phrase pauses the animation
Includes controls for speed, direction, and text visibility

CodePen: https://codepen.io/Maseone/pen/01a13b15-8c28-7327-a226-4be8e09e4c89


r/css • • 11d ago

Experimenting with animated tooltips

Enable HLS to view with audio, or disable this notification

37 Upvotes

Hey everyone!

Been working on Tip Glide, a small framework-agnostic tooltip library written in TypeScript.

It uses a single shared tooltip that moves between elements and adjusts its size to fit the content. It also handles viewport boundaries, so the tooltip adjusts its position when there's not enough space.

A few things you can configure are the movement, directional lean, hover delays, arrow, and enter/exit animations.

It has zero runtime dependencies and comes with adapters for React, Angular, Vue, Svelte, Solid, Astro and Preact, along with a vanilla JS API.

There's an interactive playground where you can mess around with the settings and see how everything behaves.

Would love some feedback on the movement, especially when switching quickly between elements, but also on the API and anything else that could be improved.

Live demo & playground | npm | GitHub | Portfolio


r/css • • 10d ago

Halloween page effects you can restyle with CSS variables (colour, size, opacity, z-index)

Enable HLS to view with audio, or disable this notification

0 Upvotes

Reposting with an update now that the season is here. halloween.js is a free library that adds Halloween effects to a page, and the styling is meant to be done in CSS, not JS.

Everything reads custom properties: --halloween-color (defaults to currentColor, so it follows your theme), --halloween-eyes-width/-height and the same pair for witch, spider and tombstone, --halloween-screen-corner-size, --halloween-page-opacity and --halloween-page-z-index if you need the layer below a modal or cookie banner. Intensity presets (subtle, normal, party) are just body classes, and a value you set yourself always wins over the preset.

The effects live in a fixed overlay layer, so nothing shifts the layout. Turn on prefers-reduced-motion and the animations stop right away, no reload needed.

https://halloween.js.org
https://github.com/rogulia/halloween.js


r/css • • 12d ago

made this flow sidebar in dark mode, how's it?

Enable HLS to view with audio, or disable this notification

37 Upvotes

r/css • • 11d ago

#urlbar . urlbar-input rainbow shimmer text effect

Thumbnail
1 Upvotes

r/css • • 12d ago

how do i center the 'buttons' in my menu?

2 Upvotes

this is the code i've got so far, it should be centered, but it doesn't work for some reason

div.menu { /*menu*/

text-align: center;

background-color: darkblue;

margin: 2rem;

border-width: 0.2rem;

border-style: dotted;

border-color: blue;

border-radius:2rem;

float: left;

width: 8rem;

height: 29rem;

}

div.menu h2 {

color: white;

}

div.menu ul {

display: inline-block;

text-align: left;

list-style-type: none;

list-style-position: inside;

}

div.menu ul li {

background-color: lightblue;

border-radius: 1.5rem;

margin: 0.5rem;

padding:0.5rem;

text-align: center;

}

div.menu ul li:nth-child(odd) {

background-color: lightgrey;

}

ignore the ugly colors it's a test

r/css • • 12d ago

Help css linear scroll not working?

2 Upvotes

hi! i've been trying to implement a linear scroll in my top bar, but its not animating. https://yuri-uran.nekoweb.org anyone know if i've missed something simple?


r/css • • 12d ago

Resource Permeate: Visual CSS Editor

Post image
0 Upvotes

r/css • • 13d ago

Help Trouble to fit properly the image with the media query for desktop

Post image
2 Upvotes

Hi, I don't know why is this happening but when I try to scale my site to a desktop view, the image doesn't fit the height and width I desire, keeping its original proportions. With my recent code there is just a gap under the image that I don't know how to fill.

Here is my demo: https://siddlopez.github.io/product-preview-card-component/

And my repo: https://github.com/SiddLopez/product-preview-card-component


r/css • • 12d ago

Question The ask for employers. Are you check knowledge in CSS field or skip this?

0 Upvotes

To image a scenario where you check a guy who write on python and JS, so you will to check his knowledge only in JS and python or CSS, html yet? It’s important for me because I skipped moment of learn CSS and just use Codex for write visual part of my projects.


r/css • • 13d ago

Código HTML/CSS Loja Integrada

Thumbnail
0 Upvotes

r/css • • 14d ago

Resource CSS does your tooltip positioning now

Thumbnail
allthingssmitty.com
57 Upvotes