Each chord name refers to a composition of different notes, which have always the same tone distance between each of them.
In the table below you will find the distance between the notes (including flats and sharps) for each chord name, starting from the basic chord letter.
An example will make life easier :
You like to compose Cm7 :
1st note = C (which is the basic chord letter)
For the remaining notes of your chord, you have to go to the table here below.
Look in the table for "m7". Numbers 0 - 3 - 4 - 3 are indicated. It means that the next notes are as many positions further as indicated with the numbers. For the positions you have to count white and black notes.
The 2nd note is 3 positions further. This corresponds with the note E.
The 3rd note is 4 positions further after the 2nd note : E + 4 notes (white and black) = note G.
The 4th note is 3 notes further, or G + 3 notes = Bb.
The complete chord becomes : C - E - G - Bb.
Nothing prohibits you to mix the chord notes. E.g. place the lower chord notes at the end. In fact it is easier if the note F is used as the lowest possible note for creating a chord.
In our example of Cm7 it would mean that the notes C and E are placed after the G and Bb. The chord Cm7 becomes than : G - Bb - C - E.
So that is the theory. Here under you will find the table. You can find the result of this table in the alphanumeric and numeric chord charts on this website also.