Product variant single item number

Dear All,
Product can be managed with variants, however theses variants does not allowed to be managed as single article.
Unfortunately this brings stocks and inventory unmanageable when products are identified.
To take example of shirt if I have 10 blue and 20 red, my stock is 30 unidentified shirts with the same item number and barcode.
Any idea except to create separated products ?
Regards