Skip to content

Commit

Permalink
refactor: use css colors as custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Matiasnickolas committed Nov 8, 2024
1 parent 43d9a5d commit abf3377
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions plugin/css/tbk.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@
}

.tbk-box {
--tbk-red: #D5006C;
--tbk-red-2: #C00063;
background: #fff;
border-radius: 10px;
padding: 15px;
Expand Down Expand Up @@ -316,32 +318,32 @@
}

.button.tbk-button-primary {
background: #D5006C;
border-color: #D5006C;
background: var(--tbk-red);
border-color: var(--tbk-red);
color: white;
transition: background-color 0.3s ease;
}

.button.tbk-button-primary:hover,
.button.tbk-button-primary:focus {
background: #C00063;
border-color: #C00063;
background: var(--tbk-red-2);
border-color: var(--tbk-red-2);
color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button.tbk-button-secondary {
background: white;
border-color: #D5006C;
color: #D5006C;
border-color: var(--tbk-red);
color: var(--tbk-red);
transition: background-color 0.3s ease;
}

.button.tbk-button-secondary:hover,
.button.tbk-button-secondary:focus {
background: white;
border-color: #D5006C;
color: #D5006C;
border-color: var(--tbk-red-2);
color: var(--tbk-red-2);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

Expand Down

0 comments on commit abf3377

Please sign in to comment.