For example, use md:subpixel-antialiased to apply the subpixel-antialiased utility at only medium screen sizes and above. So as the title suggest what does the webkit-font-smoothing do I've used this in my CSS for multiple projects but what does it actually do I'm going to guess it has something to do with the font but what does it do exactly I've removed it from the CSS multiple but it doesn't seem to affect anything. This type of hack is mostly used for mobile browsers.
You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. There are two ways websites are achieving this: They are most likely using the -webkit-font-smoothing hack. Syntax auto - Let the browser decide (Uses subpixel anti-aliasing when available this is the default) none - Turn font smoothing off display text with. Such a style requires minimum visual effects. For example, use hover:subpixel-antialiased to only apply the subpixel-antialiased utility on hover.įor a complete list of all available state modifiers, check out the Hover, Focus, & Other States documentation. Videos in a minimalistic style will well work with a smooth font that you may apply in Pixiko video editor. Tailwind lets you conditionally apply utility classes in different states using variant modifiers. Use the subpixel-antialiased utility to render text using subpixel antialiasing and the antialiased utility to render text using grayscale antialiasing.Īpplying conditionally Hover, focus, and other states
auto Let the browser decide (Uses subpixel anti-aliasing when available this is the default) none Turn font smoothing off display text with jagged sharp edges. webkit-font-smoothing: auto -moz-osx-font-smoothing: auto Use the subpixel-antialiased utility to render text using subpixel antialiasing and the antialiased utility to render text using. webkit-font-smoothing: antialiased The text was updated successfully, but these errors were encountered: We are unable to convert the task to an issue at this time. WebKit implements a similar property, but with different values: -webkit-font-smoothing. webkit-font-smoothing: antialiased -moz-osx-font-smoothing: grayscale