I will connect mains power to the buck converter and then connect output of buck converter to the first digit JST. I will then use the red , white wires and connect to a electric connector blocks and connect the output of each to a digit
Each LED at maximum brightness (white color) consumes 60 mA, so your digits would consume up to 1.26A.
You can connect up to 7 digits without problems.
A better idea would be to use a 5v adapter and ditch the buck converter.
21 digits at 60mA Max = 21 x 0.06 = 1.26 A max x 4 = 5..04 A, so a 30W 5v Adapter should suffice.
If i would design what you want to achieve, (i have thought about something similar) i would actually use 12v WS2811 strip, with 3 LEDs per pixel, and have the actual 7 segments and use a 12v PSU (and maybe a small stepdown for the MCU)
The Clock will never have all LEDs on at the same time (unless it shows 88:88 in pure white)
A single switching PSU will behave in a predictable way, if it can not provide the current, the voltage will drop, which in turn will reduce the current draw of the WS2812b 's . Older coil based transformers will burn out.
What will happen with the PSU + Buck-converter combo is not as predictable. Will the PSU stay at the maximum wattage ? will the buck-converter overheat ? who knows.
If the PSU will brown out due to excess current draw, it will drop below the 12v minimal input voltage of the buck converter.
A single PSU solution is preferred even if it breaks, you break only 1 part.
For 21 pixels per digit you need 21 x 0.06A = 1.26A and for 5 digits, that’s 5 x 1.26A = 6.3A maximum, power is 5V x 6.3A = 31.5 Watts.
So the 12V supply needs to provide at least 31.5W / 12V = 2.63A.
That is assuming everything is 100% efficient. Assuming worse case efficiency of 80% then the power for the 5V buck is 31.5W / 0.8 = 39.4W and the power for the 12V supply 39.4W / 0.8 ~ 50W
So the 12V adapter current rating should be around 50W / 12V = 4.2A
You should also include a 100uF cap for each digit
I learnt a new formula. I just checked one of my laptop charger, it is 130W , output = 19.5V and so 6.7Amps
But this is not suitable for me, as I need 5V.
So I want to understand if I can use a 12V adapter connect it to buck converter to make it 5V and the amps as generated by the converter and use a 100 micro farads capacitors.