Categories
Applied Art For The Web

Colour, Typography with CSS & Images and Colour with CSS

Class 6: What I Learned This Week…

Colour

A range of different colours can have a variety of different meanings and interesting historical reasons. For example, whilst it is quite commonly known that purple is a colour used a lot by royals, I didn’t know that this was because back in the day purple was the most expensive colour to dye, and so the royal family used it a lot to show their wealth. Red can also be percieved as hatred, anger or a warning, as well as love.

Colour Combinations

  • Depending on the background colour, it can either illuminate the foreground or make it blend into the background and disappear.
  • Certain combinations are bad for colour blindless aspects such as red and blue. High brightness and saturation also hurts the eyes to look at.
  • For logo design it is best practice to start in black and white so that you can work with shape and from first, and then you can match colours to the density of the shade later on.
  • Monochromatic is the combination of tones and shades within the same colour/hue.
  • Analogues – The combination of adjacent colours
  • Complementary – The combination of two colours from opposite sides
  • Triadic – The combination of three colours evenly spaced around the colour wheel
  • Compound – Combination of colours that are often in two groups.

Methods To Choose Colour Scheme

  • Brand Based – We need to reserve an accent colour for buttons
  • Rooted in Content
  • Looking Sideways – Put together a moodboard of items such as tea leaves, tea cup, tea pots etc and draw colour schemes from that

Typography with CSS

  • The width should be 80% of the parent element. You need to include a max-width to stop the content from stretching too far on a larger screen. Similarly the min-width is needed so that text doesn’t become too narrow on a smaller screen size.
  • Margin: 0 auto; centres the elements within the parent element with equal margin on either side. This means 0 top and bottom, auto left and right.
  • <div id=…> allows you to have a shape underneath your content to act as a visual container and can make the background more interesting.
  • 960px is the comfortable measurable width for screen that is the most commonly used. Screen width is always measured in pixels.
  • It is good practice to use off-black and off-white so that the contrast isn’t as high and is easier to read, making your website more accessible.
  • Use margin-top or margin-bottom for typographic design. One or the other should be used, but never both as ideally you don’t want two margins coming together.

Images and Colour with CSS

  • JPEG – Joint photographic experts group. They are true colour, 24 bit, have variable compression and used for photographs
  • GIF – A gif has 256 colours, 8 bit, and used for frame animation or simple graphics
  • PNG-8 – Has 256 colours, 8 bit, smaller than equivalent GIF, good for logos and used for simple graphics
  • PNG-24 – True colour, 24 bit, alpha transparency – no other file format has this and is used for complex graphics
  • WebP – Developed by google. One file format for the web
  • Colour dithering – mosaic/pixelated effect on photos when not using the true colour formats
  • Make sure image is under 100KB for use on web
  • Vector file formats – SVG (scalable vector graphics) are flexible to edit, you can edit the colour in html file.

Leave a Reply

Your email address will not be published. Required fields are marked *