Skip to content

Commit

Permalink
style: more variables to support font and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfidable committed Sep 29, 2023
1 parent fe2240b commit 46ff8b6
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
--color-accent: theme(colors.sky.500);
--color-accent-light: theme(colors.sky.400);
--color-accent-lighter: theme(colors.sky.300);

--font-heading: "Sacramento", sans-serif;
}

[data-theme="halloween"] {
Expand Down Expand Up @@ -65,13 +67,38 @@ body {
height: 100%;
}

.swup-transition-fade {
transition: all 150ms ease-in-out;
transform: scale(1);
opacity: 1;

.debug {
outline: 2px solid lime;
}

.text-effect {
/* ... */

/* set the color of the text to transparent */
color: transparent;
font-weight: 900;
/* we need to clip the gradient background so that
so only the text bit will have the gradient background
(otherwise the entire rectangle the text is in would have it) */
-webkit-background-clip: text;
background-clip: text;
background-color: #0093E9;
background-size: 300%;
background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
animation: animate 5s infinite;
}

html.is-animating .swup-transition-fade {
opacity: 0;
transform: scale(0.9);
@keyframes animate {
0% {
background-position: left;
}

50% {
background-position: right;
}

100% {
background-position: left;
}
}

0 comments on commit 46ff8b6

Please sign in to comment.