Skip to content

Commit

Permalink
feat: create colors with opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Horetskyi committed May 29, 2024
1 parent b82d6b3 commit c9f8a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 4 additions & 9 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@ p + p {
@apply bg-gradient-to-r to-secondary from-blue-700;
}

/* We use this color just one time */
.light {
::selection {
background: #d4b5d4;
}
::selection {
@apply bg-secondaryWithOpacity;
}

.dark {
::selection {
@apply bg-primary;
}
.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

0 comments on commit c9f8a77

Please sign in to comment.