<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre" -->

---
title: Organize your CSS declarations alphabetically | daily.dev
description: CSS declaration ordering approaches like SMACSS and stylelint-semantic-groups exist, but alphabetical ordering is recommended as the most practical baseline...
canonical: https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Organize your CSS declarations alphabetically | daily.dev
og:description: CSS declaration ordering approaches like SMACSS and stylelint-semantic-groups exist, but alphabetical ordering is recommended as the most practical baseline...
og:url: https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre
og:image: https://api.daily.dev/og/posts/Y9bdVyKre.png
og:image:alt: Organize your CSS declarations alphabetically
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.

# Organize your CSS declarations alphabetically

**[Eric Bailey](https://daily.dev/sources/ericwbailey)** · 5 min read · 0 upvotes · 0 comments

## Summary

CSS declaration ordering approaches like SMACSS and stylelint-semantic-groups exist, but alphabetical ordering is recommended as the most practical baseline for teams. The reasoning centers on sustainability: alphabetical order is easy to adopt without requiring deep CSS theory training, and most codebases have no ordering convention at all. The piece argues CSS is undervalued as a real programming language and that better education around it, not just JavaScript, is needed industry-wide.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ericwbailey.website/published/organize-your-css-declarations-alphabetically>

## Questions this post answers

### What is the best way to order CSS declarations within a selector?

Alphabetical ordering is a practical baseline convention for organizing CSS declarations within a selector. It's easy for teams to adopt without deep CSS theory training, unlike approaches like Jonathan Snook's SMACSS or Anton Korzunov's stylelint-semantic-groups, which are more thoughtful but require more upskilling to maintain consistently across an organization.

_Weigh CSS declaration ordering conventions against real team habits with discussions curated on daily.dev._

## Similar posts on daily.dev

- [Life is too short for lowercase ASCII](https://daily.dev/posts/life-is-too-short-for-lowercase-ascii-yvq9exbpp) · dbushell · 42 upvotes · 1 comments
- [CSS sucks because we don't bother learning it.](https://daily.dev/posts/css-sucks-because-we-don-t-bother-learning-it--llozhb60n) · Hacker News · 239 upvotes · 43 comments
- [My CSS layout strategy](https://daily.dev/posts/my-css-layout-strategy-lfp48ynra) · Blogging and all that Malarkey · 49 upvotes · 2 comments
- [Wanna see a CSS magic trick?](https://daily.dev/posts/wanna-see-a-css-magic-trick--wta2tfzuo) · Stack Overflow Blog · 76 upvotes · 4 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre)

```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":"Organize your CSS declarations alphabetically","url":"https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre"},"datePublished":"2026-09-20T07:44:16.687Z","dateModified":"2026-09-20T07:49:39.778Z","description":"CSS declaration ordering approaches like SMACSS and stylelint-semantic-groups exist, but alphabetical ordering is recommended as the most practical baseline...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Eric Bailey","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":"Eric Bailey","logo":"https://media.daily.dev/image/upload/s--r1vwe6z1--/f_auto,q_auto/v1789890198/logos/ericwbailey?_a=BAMAMicg0","url":"https://daily.dev/sources/ericwbailey"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,css","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eric Bailey","item":"https://daily.dev/sources/ericwbailey"},{"@type":"ListItem","position":3,"name":"Organize your CSS declarations alphabetically"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/organize-your-css-declarations-alphabetically-y9bdvykre#faq","mainEntity":[{"@type":"Question","name":"What is the best way to order CSS declarations within a selector?","acceptedAnswer":{"@type":"Answer","text":"Alphabetical ordering is a practical baseline convention for organizing CSS declarations within a selector. It's easy for teams to adopt without deep CSS theory training, unlike approaches like Jonathan Snook's SMACSS or Anton Korzunov's stylelint-semantic-groups, which are more thoughtful but require more upskilling to maintain consistently across an organization. Weigh CSS declaration ordering conventions against real team habits with discussions curated on daily.dev."}}]}
```

