Skip to content

Instantly share code, notes, and snippets.

@jhkueh
Created December 9, 2017 13:52
Show Gist options
  • Save jhkueh/72970bb6a23fff1db0e872ffa5585ecc to your computer and use it in GitHub Desktop.
Save jhkueh/72970bb6a23fff1db0e872ffa5585ecc to your computer and use it in GitHub Desktop.

Web CSS Tips


Crisp typography

body {
  font-family: Open Sans, Segoe UI, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

User Experience (UX)

button:hover {
  color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
}

Source: https://www.leejamesrobinson.com/blog/how-stripe-designs-beautiful-websites/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment