satyam
all saves

Updated Jul 26, 2025

This CSS snippet is used to enhance the rendering of fonts in web browser, making them appear smoother and more legible, especially on macOS and iOS devices.

view on github

CSS Font Smoothing for Better UI Typography

body {
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}



//another alternative 
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


// small fade
 <div className="absolute -top-8 left-0 right-0 h-8 bg-gradient-to-b from-transparent to-card pointer-events-none" />