Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hkai
on Jan 30, 2021
|
parent
|
context
|
favorite
| on:
Uniwidth Typefaces for Interface Design
As a hack, if you can't use a uniwidth font, you can simulate bold font by having a `text-shadow` of the same color offset 1px to the right.
This is helpful for UI elements that need to become bold when selected.
john-doe
on Jan 30, 2021
[–]
But then it's a faux bold, and it's a no-no in typography. Her's a better technique:
https://css-tricks.com/bold-on-hover-without-the-layout-shif...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This is helpful for UI elements that need to become bold when selected.