Giter Club home page Giter Club logo

viewsource2019-notes's Introduction

Melanie Richards - Honouring visual preferences

Slides: https://github.com/melanierichards/talks/tree/master/2019/color-contrast-view-source Users bring with them highly personalised color and contrast needs, and these can change per day or even per hour. How are we supposed to manage all these needs and preferences with just one color scheme, while also maintaining a design point of view?

  • Media queries: prefers-color-scheme(allows web developer to respond to hints from the user as to what color scheme they use), prefers-contrast,forced-colors (hint that the content is rendered in user’s system colours, can occur when Windows high contrast is active).
  • CSS Custom properties can be hugely helpful here, instead of static colours all over your stylesheets, we can set variables on the root node and then use these throughout our stylesheets.
  • Use of currentColorin fills and strokes of SVGs is recommended
  • CSS filter properties are great for adjusting brightness and contrast on photography without changing the actual images
  • We can pair this with color-scheme-meta, these are hints to the rendering engine how a document can be rendered, before any CSS loads. This can help prevent a flash of white.
  • Additional considerations: site-level user overrides.
  • We can also query for contrast by using prefers-contrast - this can be set to no preference, high and low. These are still under discussion and may change still.
  • How do browsers apply forced colors to web content? The rendering engine reverts some properties, mostly related to color, but also box-shadow and text-shadow. After the reverting, the rendering engine applies the user’s colors. SVGs are for the most part not modified. Only text and foreignObject are color shifted.
  • Web developers know their content best and can apply that knowledge to tailor the forced-colors experience.
  • Consider transparency instead of removing styling (e..g don’t remove a border, replace it with 1px solid transparent.
  • Resources:

Jory Burson - Standardizing JavaScript

TC39 operates in a proposal process through which they take ideas and then craft proposals around them. Anyone can comment on existing proposals or submit a new one. The processes can be quite opaque.

Resources: TC39 – Specifying JavaScript.

Hui Jing Chen - Demystify Modern CSS Layouts with DevTools

Content based sizing: how much space should content take up? New specification: CSS extrinsic and intrinsic, allowing us to assign automatic widths to the page. By default, browsers don’t break words. * max-content * min-content * fix-content() — still a work in progress

viewsource2019-notes's People

Watchers

James Cloos avatar Nienke Dekker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.