Skip to content

Commit

Permalink
style: introducing css vars with tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
manuartero committed Oct 20, 2023
1 parent 36b35a7 commit c267716
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/deck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function Deck({ className, playerDeck, player }: Props) {
className={c(
className,
"flex flex-col justify-around p-4 pb-32 h-full",
"border-gray-700",
"border-[var(--light-grey)]",
player === "Player 1" && "bg-gradient-to-r border-r-4",
player === "Player 2" && "bg-gradient-to-l border-l-4",
player !== "Player 1" &&
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function Toolbar({ onDeckSettings, onCollection }: Props) {
return (
<nav
id="Toolbar"
className="bg-gray-700 w-full flex items-end justify-end px-4"
className="bg-[var(--light-grey)] w-full flex items-end justify-end px-4"
>
<button
className="px-8 py-4 rounded-md text-xl"
Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ body {
--dark-blue: #090e0f;
--medium-dark-blue: #0f191f;
--white: #ffffff;
--light-grey: rgb(63, 72, 84); /* aprox. gray-600 */
}

.show-up-transition {
Expand Down

0 comments on commit c267716

Please sign in to comment.