A coffee maker and a method of brewing coffee are disclosed. The coffee maker includes a first roaster fitted, a second roaster fitted, and a funnel detachably attached to the first roaster providing a passage for a first amount and a second amount of coffee beans. Further, a grinder including a discharge door and a blade is detachably attached to a bottom of the funnel, a brewing container detachably attached to the bottom of the grinder. A color panel is included with a plurality of buttons, each of the plurality of the buttons corresponds to a color of a coffee desired after brewing, and a coffee-color controller configured to control the first temperature and the second temperature of the first roaster and the second roaster, respectively, based on the color of the coffee selected from the color panel.