We are in the process of incorporating Flatpickr as the date picker replacement in Moodle.
A problem was that we needed to include the CSS in the Head before it gets outputted. But often the form elements get generated after the Head is outputted. So we had to include the Flatpickr CSS code in the theme base styles.
Make sure you have Developer debugging enabled so that you see all the error messages that display.