the office of president of slovenia, officially president of the republic of slovenia (), was created on 23 december 1991 when the national assembly passed a new constitution as a result of independence from the socialist federal republic of yugoslavia.