348 private links
It's possible to register a custom font with a new name such as:
@font-face {
font-family: "NewFont Fallback";
src: local("system-ui");
}
Then size-adjust: xx%; to customize the font accordingly to the UI.
The random appearance of each tile comes from the border-shape: polygon().
The 12 column-layout can be extended with a more powerful grid layout, that matches the CSS grid standard.
This is another post that highlights this possibility.
There are several techniques. Each has tradeoffs.
display:noneorvisibility: hiddenhiddenattributewidth: 0px; height: 0px;text-indent: -9999rem- Absolutely positioning content off-screen
- CSS clips
To improve the user journey:
- provide instructional cues and indicators
- "skip" links
Highlighting the text hovered
That could also be a good approach: styling with CSS based on semantic.
A list of gradients to be used as background.
We can do better than the classic 12 columns layout.
Start with the content first:
- Which elements deserve the most attention?
- What belongs together?
- Is there a natural order to the information?
The author shows modular grids to better structure the information, or another with four columns and four rows gives 16 modules to work with.
Ok maybe a win of 4-5%, but the majority of the websites gain 1%. Maybe the effort should be put somewhere else.
Does this optimisation makes the page renders faster, if the browser has to make extra computation?
For fluid typography, container-type: inline-size makes the wrapper a container query, so its children can use cqi: a unit based on the container rather than the viewport.
text-box-trim: trim-both removes the line-height, while text-box-edge: cap alphabetic measures from capital-letter caps to the alphabetic baseline.
hanging-punctuation lets specified punctuation sit fractionally outside the text block's edge.
font-variant-emoji makes the choice between full-colour and monochrome emoji explicit.
Much of this CSS removes work that used to leak into other parts of a build.
Yes
Try CSS selectors as fast as possible
Pour les fonts, je viens d'apprendre qu'il est possible de forcer l'utilisation de la police en local via le src: local("Verdana")".
Le site doit fonctionner sans JS; utiliser le CSS au lieu du JS quand c'est possible; diminuer le poids des images en servant des images plus petite en taille pour le mobile;
A way to polyfill unsupported or custom css functions via JS
Chris Coyier ran the site from 2007 until 2022, then DigitalOcean bought it, then Geoff Graham takes ownership.
That's why we need to embrace fluid design and layouts. 2,300 unique viewport sizes is extreme.
Another classless CSS framework
Using icons as design tokens can be a great idea to switch icon names.