Light It Up is a small, lightweight datapack that gives you Light Blocks that you can control the brightness of.
To craft the Light Blocks you have need 3 Glass Blocks, 1 Copper Ingot, and any full block that emits light. (See below for example.)
To change the light level of the block stand inside the Light Block and run this command:
/trigger lightLevelAP set # Replace # with whatever light level you would like the block to become. (Keep in mind light levels only go from 0-15)