3.0: Colors
GENERAL INTRO
CSS is a stylesheet language that describes the presentation of an HTML (or XML) document. CSS describes how elements must be rendered on screen, on paper, or in other media.
CSS(CSS3) — CSS stands for Cascading Style Sheet it is used for styling web pages, with the help of css, you can style web pages, websites, etc..
W3.css — w3.css is a CSS framework, built for responsive web design like bootstrap. That means you can create responsive websites with the help of w3.css. Hope it will help you…
Part 3.0: COLORS
A big part of a successful website is how it looks to the user. Styling goes beyond where you place items on your site. We will be exploring colors more in depth. When thinking about color, you need to keep in mind the target audience, accessabilty and psychology.
We will cover:
COLORS
We know that colors can be defined by name (Maroon), Hexadecimal and RGB values. Another value to expand color choices is HSL and Transparency.
Example: dark red
Opacity property applies to element AND all of its children. This can make the text inside a fully transparent element hard to read:
a(alpha) has no impact on other css properties or descendants. The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque).
Any text in halfopaque div will be 50% opaque while text in halfalpha div will be black/only background color of that single element will be slightly opaque (background-color is not inherited property(?))
Example:
HSL/HSLA
Hue, Lightness and Saturation (Alpha)
Color Theory
Color Wheels - showing the relationship between primary, secondary, and tertiary colors
Black on white is the default web color scheme. White on black is often preferred for smaller devices.
**White on black requires less energy (battery life) on most display technologies.
The importance of color in design is because of accessability, target audience, and human psychology.
Schemes
Color Scheme - logical combinations of colors/purpose to create anaesthetic feeling of style and appeal.
Resources:
Last updated