Day 86/100 Font Weight

riocantre

Rio Cantre

Posted on December 10, 2021

Day 86/100 Font Weight

Finding the right balance on details needed to accomplish the ideal design must value the hierarchy of context and establish possible outcomes to solidify the final result.

banner

The font-weight property can take any one of these keyword values:

  • bold: Bold font weight.
  • normal: Normal font weight. This is the default value.
  • lighter: One font weight lighter than the element’s parent value.
  • bolder: One font weight bolder than the element’s parent value

Numerical values can range from 1 (lightest) to 1000 (boldest), but it
is common practice to use increments of 100. A font weight of 400 is equal to the keyword value normal, and a font weight of 700 is equal to bold.

Code Snippets

let season = 'summer';

if (season === 'spring') {
    console.log('It\'s spring! The trees are budding!');
} else if (season === 'winter') {
    console.log('It\'s winter! Everything is covered in snow.');
} else if(season === 'fall') {
    console.log('It\'s fall! Leaves are falling!');
} else  if(season === 'summer') {
    console.log('It\'s sunny and warm because it\'s summer!');
} else {
    console.log('Invalid season.');
}
Enter fullscreen mode Exit fullscreen mode

a11y myths

Web accessibility is just a developer's job

It's a team effort. Designers create accessible UIs, developers build it, QA engineers do the accessibility testing, PMs make sure that accessibility is included in the team processes, legal team checks if a product is risk free from an accessibility perspective, content managers adjust content to be compliant.

resource

💖 💪 🙅 🚩
riocantre
Rio Cantre

Posted on December 10, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Day 88/100 Truthy and Falsy
100daysofcode Day 88/100 Truthy and Falsy

December 12, 2021

Day 86/100 Font Weight
100daysofcode Day 86/100 Font Weight

December 10, 2021

Day 81/100 Variables
100daysofcode Day 81/100 Variables

December 5, 2021

Day 80/100 Semantics
100daysofcode Day 80/100 Semantics

December 4, 2021

Day 79/100 Tables
100daysofcode Day 79/100 Tables

December 3, 2021