I am still struggling to find a good naming convention for assets like images, js and css files used in my web projects.
So, my current would be:
CSS:
First, I divide into folders: css
, js
, img
.
Within css and js, I prefix files with the project name because your site may include js and css files which are components, this makes it clear where files are specific for your site, or relating to plugins.
css/mysite.main.css
css/mysite.main.js
Other files might be like
js/jquery-1.6.1.js
js/jquery.validate.js
Finally images are divided by their use.
img/btn/submit.png
a buttonimg/lgo/mysite-logo.png
a logoimg/bkg/header.gif
a backgroundimg/dcl/top-left-widget.jpg
a decal elementimg/con/portait-of-something.jpg
a content imageIt's important to keep images organized since there can be over 100 and can easily get totally mixed together and confusingly-named.