For any 3DS version before themes, any version below `9.0.0-20` is a must.
Themes and other modern 3DS menu things were added on that major system version, if you want to know.
The system update to take note for downgrading is 8.1.0-19.
Fair warning if you have a New 3DS system though:
New...