Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use different colors on text selection/highlight dark/light mode #338

8 changes: 8 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ p + p {
.nuxt-scroll-indicator {
@apply bg-gradient-to-r to-secondary from-blue-700;
}

::selection {
@apply bg-secondaryWithOpacity;
}

.dark ::selection {
@apply bg-primaryWithOpacity;
}
2 changes: 2 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default <Partial<Config>>{
colors: {
primary: '#265DAD',
secondary: '#37C5F0',
primaryWithOpacity: 'rgba(38,93,173,0.5)',
secondaryWithOpacity: 'rgba(55,197,240,0.5)',
},
},
},
Expand Down