<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1" -->

---
title: 3 Features of Modern CSS You Should Know About | daily.dev
description: Discover three modern CSS features that can save you time and headaches: :has() pseudo-class, :focus-visible pseudo-class, and accent-color property.
canonical: https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 3 Features of Modern CSS You Should Know About | daily.dev
og:description: Discover three modern CSS features that can save you time and headaches: :has() pseudo-class, :focus-visible pseudo-class, and accent-color property.
og:url: https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1
og:image: https://api.daily.dev/og/posts/sjN4U90x1.png
og:image:alt: 3 Features of Modern CSS You Should Know About
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 3 Features of Modern CSS You Should Know About

**[Atomic Spin](https://daily.dev/sources/atomicobject)** · 2 min read · 32 upvotes · 1 comments

## Summary

Discover three modern CSS features that can save you time and headaches: :has() pseudo-class, :focus-visible pseudo-class, and accent-color property.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://spin.atomicobject.com/3-features-modern-css/>

## Community discussion

Top comments from developers on daily.dev.

**@qasimhafeez** · 0 upvotes

> I've been writing css from a long time but, couldn't find "Accent-color" :)
>
> appericiate your time and effort...!

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#frontend](https://daily.dev/tags/frontend)

[View this post on daily.dev](https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"3 Features of Modern CSS You Should Know About","url":"https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1"},"datePublished":"2024-03-27T12:05:06.812Z","dateModified":"2024-05-09T08:22:04.995Z","description":"Discover three modern CSS features that can save you time and headaches: :has() pseudo-class, :focus-visible pseudo-class, and accent-color property.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fe5b2cf1e7f430c0737a960e1df210a9?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fe5b2cf1e7f430c0737a960e1df210a9?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Atomic Spin","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Atomic Spin","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/e2af5ce3adaa403a8cf029268b62419f","url":"https://daily.dev/sources/atomicobject"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":32},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,css,frontend","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Atomic Spin","item":"https://daily.dev/sources/atomicobject"},{"@type":"ListItem","position":3,"name":"3 Features of Modern CSS You Should Know About"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/3-features-of-modern-css-you-should-know-about-sjn4u90x1","comment":[{"@type":"Comment","text":"I’ve been writing css from a long time but, couldn’t find “Accent-color” :)\nappericiate your time and effort…!","datePublished":"2024-04-22T08:38:23.843Z","url":"https://daily.dev/posts/sjN4U90x1#c-UIBMLIujk","author":{"@type":"Person","name":"Qasim Hafeez Mughal","url":"https://daily.dev/qasimhafeez","image":"https://media.daily.dev/image/upload/s--2iZMt6cL--/f_auto/v1705590192/avatars/avatar_umYpXbzJc"}}]}
```

