1. Export the database to a file, say .config/dircolors:
$ dircolors -p > .config/dircolors
2. Customize it, eg. change directories to cyan:
... DIR 01;36 # directory ...
3. Include it into .bashrc. Add this somewhere at the top:
eval $(dircolors .config/dircolors)
4. ANSI color codes
Ansi Color codes can be foundĀ here