DEV Community

Sayan Mandal
Sayan Mandal

Posted on


Day 3 of Responsive Web Design

PC Setup


In this section, I'm supposed to create a Set of Colored Markers.


Project Image

Today's lesson was mostly about the color theory and how differently we can insert color. I learnt a bit of color wheel functionality. We can use rgba to select colors. R is for Red, G is for Green and B is for Blue, we select a value from 0 to 255 to choose the color. A is alpha which works as opacity of the color.

RGB is used in electronic devices, but printing uses CMYK, which stands for Cyan, Magneta, Yellow, Key(Black).

For example,
rgb(255, 0, 0) is for RED
rgb(0, 255, 0) is for GREEN
rgb(0, 0, 255) is for BLUE
rgb(0, 0, 0) is for BLACK
rgb(255, 255, 255) is for WHITE

Like RGB there are other methods to specify a color. e.g HEX(hexadecimal code), HSL(Hue, Saturation, and Lightness), HWB (Hue, Whiteness, Blackness).

We can find color pickers on various websites. RGB, HEX, HSL, HWB, CMYK .

Color Gradient:
linear-gradient is for creating color gradient for webpages.


background-image: linear-gradient(direction, color-stop-1, color-stop-2,...);
Enter fullscreen mode Exit fullscreen mode

direction is for the gradient line's angle. 0deg is value is to top, increasing values rotate clockwise from 0deg.
color-stop is for the value of color and a stop from 0% to 100%(or length) along the gradient's axis.
CSS Gradient has a great tool for creating gradients and directly copy the css code.

Box Shadow:
box shadow is to add shadow to the content.


box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit
Enter fullscreen mode Exit fullscreen mode

h-offset is for the horizontal offset of the shadow, v-offset is for the vertical offset of the shadow, blur is for blur radius, spread is for the spread radius, color is for the color of the shadow, inset to change the shadow from out to inner.

Overall, most of today's work was focused on color, gradient and shadow styling.

I also have published notes on my Github.


Productivity Score: 8
Enjoyment Score: 7

I completed the module in less than the time I blocked for, although I liked the styling and color theory but I felt the module was really short. Also, I need to read more about color theory.

Outside Links:

Wallpaper on my PC: Marko
Productivity Score: Ruby Granger

Some Music while I took the lesson.

Top comments (0)