You could handle this with Filtering XSLT by having a single class important-warning
which gets transformed on component save into two classes. See this question for an example: Using XSLT within Schema to manipulate HTML output from ComponentUsing XSLT within Schema to manipulate HTML output from Component
Alternatively you could do the same in your templates.