At the moment you simply can't unless you use colors that don't have opposite directions (like red and blue)
How can I make odd sized board

you spelt colours wrong
that depends on which part of the world you're in (even the word spelt/spelled can be different), as long as you can understand it and it's not egregiously incorrect then it's fine

That also depends on which part of the world you're in, lol
"Spelt" is GB English and "spelled" is US English. 🙂

Odd sized boards are possible but the starting home rank for both when you create one (as @C4mil011 mentioned earlier) won't be the same as of now. However, if I remember correctly, you might be able to request it in the gamerules forum

I want to try to make some games that has board sizes like 5x5, 7x7 or 9x9 but the pawns, whatever number I select to be pawns home rank, for example, I covered up 2 edges of a 10x10 with transparent bricks to make a 9x9, but when I set the pawn's home rank to 2, the white pawns can move forward 2 squares, but black pawns don't. And when I changed it to 3, now both side's pawns can move forward 2 squares, but when a white pawn advances 1 square on it's first move, on the second move it can ALSO move 2 squares! And for the promotion ranks, I set it to be 9, then the white pawns do promote at the end rank but black promotes 1 rank early! How can I make these odd sized boards?
To edit the board size, you can either use bricks, or edit the FEN4(see here)
I want to try to make some games that has board sizes like 5x5, 7x7 or 9x9 but the pawns, whatever number I select to be pawns home rank, for example, I covered up 2 edges of a 10x10 with transparent bricks to make a 9x9, but when I set the pawn's home rank to 2, the white pawns can move forward 2 squares, but black pawns don't. And when I changed it to 3, now both side's pawns can move forward 2 squares, but when a white pawn advances 1 square on it's first move, on the second move it can ALSO move 2 squares! And for the promotion ranks, I set it to be 9, then the white pawns do promote at the end rank but black promotes 1 rank early! How can I make these odd sized boards?