\tcbset{
    warningstyle/.style={
        colback=yellow!10!white,
        colframe=red!50!black,
        fonttitle=\bfseries,
    }
}

\newtcolorbox{warnbox}[1][]{
    warningstyle,
    title=\faWarning{} Warning,
    #1
}