Your teacher should not care whether you use default or Dark Mode, as long as you are finishing your work in class.