DEV Community

Travis Fantina
Travis Fantina

Posted on

2 2

CSS Index Generator?

I've sometimes seen lengthy stylesheets that include an index at the top something like:

1: Headings: line 255
2: Cards: line 380

...

255: /*----------Headings-------*/

...

380: /*---------Cards----------*/
Enter fullscreen mode Exit fullscreen mode

This makes it super easy to navigate big stylesheets. Is this done by hand? I imagine it's super tedious to go in and update the index even if your just making a few line changes or the project is in active development.

Is there any sort of gulp tool that would do this for you based on some formatting in the css?

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay