Skip to content

Commit

Permalink
chore: Rename color variables to match the brand guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
TibixDev committed Dec 4, 2024
1 parent b11632b commit 9d0589a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/landing/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Icon } from "astro-icon/components";
<div class="max-w-[800px] relative z-[2]">
<h1 class="text-[#fff] mb-4">
Welcome to <span
class="bg-clip-text text-transparent bg-gradient-to-r from-lb-sky to-lb-purple"
class="bg-clip-text text-transparent bg-gradient-to-r from-lb-slate-blue to-lb-violet"
style="-webkit-background-clip: text;">Ladybird</span
>,<br />a truly independent<br />web browser.
</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { frontmatter, title, description, author, image } = Astro.props;
<div class="hero__tf">
<p class="text-[#fff]">
<span
class="bg-clip-text text-transparent bg-gradient-to-r from-lb-sky to-lb-purple"
class="bg-clip-text text-transparent bg-gradient-to-r from-lb-slate-blue to-lb-violet"
>{frontmatter.author || "Announcement"}</span
> | {frontmatter.date.toUTCString().slice(0, 16)}
</p>
Expand Down
25 changes: 13 additions & 12 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
@tailwind utilities;

:root {
--lb-sky: #6d98cc;
--lb-purple: #8a64e5;
--lb-slate-blue: #6d98cc;
--lb-violet: #8a64e5;
--lb-violet-transparent: #8a64e533;
}

@media (prefers-color-scheme: dark) {
Expand Down Expand Up @@ -91,7 +92,7 @@ img {
padding-right: 18px;
min-width: 170px;
min-height: 60px;
background: linear-gradient(45deg, var(--lb-purple), var(--lb-sky));
background: linear-gradient(45deg, var(--lb-violet), var(--lb-slate-blue));
color: #fff;
border-radius: 100px;
transition: all 200ms;
Expand Down Expand Up @@ -140,7 +141,7 @@ h2 {

h1 span,
h2 span {
background-image: linear-gradient(var(--lb-sky), var(--lb-purple));
background-image: linear-gradient(var(--lb-slate-blue), var(--lb-violet));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
Expand Down Expand Up @@ -296,11 +297,11 @@ header a, footer a {
}

.why__slide-icon.lightgrey {
background-color: var(--lb-sky);
background-color: var(--lb-slate-blue);
}

.why__slide-icon.lightpurple {
background-color: var(--lb-purple);
background-color: var(--lb-violet);
}

.why__slide-icon.darkpurple {
Expand Down Expand Up @@ -388,7 +389,7 @@ header a, footer a {
}

.news__box:hover {
background-color: #8a64e533;
background-color: var(--lb-violet-transparent);
}

@media (min-width: 991px) {
Expand All @@ -409,7 +410,7 @@ header a, footer a {
}

.news__box-category span {
background: #8a64e5;
background: var(--lb-violet);
border: 3px solid #fff;
border-radius: 5px;
font-size: 16px;
Expand Down Expand Up @@ -568,10 +569,10 @@ header a, footer a {
}

.faq__wrapper .ac-header-number {
color: #8a64e5;
color: var(--lb-violet);
font-size: 36px;
font-weight: 500;
border: 3px solid #8a64e5;
border: 3px solid var(--lb-violet);
border-radius: 9999px;
margin-left: 24px;
margin-right: 24px;
Expand Down Expand Up @@ -717,9 +718,9 @@ blockquote {
display: inline-block;
width: 100%;
padding: 0 0 0 16px;
border-left: 3px solid var(--lb-sky);
border-left: 3px solid var(--lb-slate-blue);
margin: 0 0 25px;
background: var(--Linear, linear-gradient(90deg, var(--lb-sky) 0%, var(--lb-purple) 100%));
background: var(--Linear, linear-gradient(90deg, var(--lb-slate-blue) 0%, var(--lb-violet) 100%));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ module.exports = {
white: "#d8e7e7",
eagle: "#a4b3b3",
"pop-blue": "#2541ea",
'lb-sky': '#6d98cc',
'lb-purple': '#8a64e5',
'lb-slate-blue': '#6d98cc',
'lb-violet': '#8a64e5',
},
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
Expand Down

0 comments on commit 9d0589a

Please sign in to comment.