diff --git a/docs/src/components/homepage/AnimatedText.tsx b/docs/src/components/homepage/AnimatedText.tsx index 4c7c58e397a..ef4f68c4ba4 100644 --- a/docs/src/components/homepage/AnimatedText.tsx +++ b/docs/src/components/homepage/AnimatedText.tsx @@ -63,7 +63,7 @@ const AnimatedText: FC = () => { onAnimationComplete={() => setPopTextClass("text-[#696E70]")} > {processText( -

+

Provides a{" "} = ({ idx, src, description }) => {
-

How it works

+

How it works

{description}

{idx === 0 && (
@@ -56,7 +56,7 @@ const Controls: FC = ({ showing, handlePrev, handleNext }) => { @@ -65,7 +65,7 @@ const Controls: FC = ({ showing, handlePrev, handleNext }) => { key={`dot-${index}`} className={clsx( "self-center", - index === showing ? "text-teal" : "text-teal-lightest" + index === showing ? "text-primary" : "text-primary-lightest" )} /> ))} @@ -77,8 +77,8 @@ const Controls: FC = ({ showing, handlePrev, handleNext }) => { className={clsx( "rounded-full", showing > HowItWorksCarouselContent.length - 2 - ? "text-teal-lightest" - : "text-teal hover:bg-teal/15" + ? "text-primary-lightest" + : "text-primary hover:bg-primary/15" )} /> diff --git a/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx b/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx index dc7243ad1f2..be34ccf3639 100644 --- a/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx +++ b/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx @@ -60,7 +60,7 @@ const Controls: FC = ({ showing, onClickBullet, ...props }) => { @@ -101,7 +101,7 @@ const ResponsiveCarousel: FC = () => { return (
-

How it works

+

How it works

{ const isTabletOnly = useMediaQuery(forTabletOnly); const isLaptopUp = useMediaQuery(forLaptop); return ( -
+
{ hidden: { opacity: 0, y: 100 }, }} > -
/ CASE STUDIES
+
/ CASE STUDIES
-

Case studies

+

Case studies

{FeaturedCaseStudy.content}

{"View case studies "} - +
{
{
{ transition={{ ease: "easeInOut", duration: 0.75, delay: 1.2 }} > Learn more diff --git a/docs/src/components/homepage/Properties.tsx b/docs/src/components/homepage/Properties.tsx index 6d81439b9c1..f555f64d52b 100644 --- a/docs/src/components/homepage/Properties.tsx +++ b/docs/src/components/homepage/Properties.tsx @@ -36,7 +36,7 @@ const Properties: FC = () => { const isLaptopUp = useMediaQuery(forLaptop); return ( { >
-

+

{WhyHydraHeadContent.title}

{WhyHydraHeadContent.descriptionParagraphOne}

@@ -42,13 +42,13 @@ const WhyHydraHead: FC = () => {
diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 91906b665c6..1e4fe004ee3 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -53,8 +53,32 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: hsl(184, 75%, 30%); - --ifm-color-primary-dark: hsl(184, 75%, 20%); + /* The original violet accent we use */ + --ifm-color-primary: #6875e8; + /* Created using https://colordesigner.io/color-scheme-builder */ + /* 6 steps to white, first 4 after main */ + --ifm-color-primary-light: #9099e2; + --ifm-color-primary-lighter: #b4b8e2; + --ifm-color-primary-lightest: #d2d4e6; + --ifm-color-primary-extralight: #ebecf0; + /* 6 steps to black, first 3 after main */ + --ifm-color-primary-dark: #3847c4; + --ifm-color-primary-darker: #353b73; + --ifm-color-primary-darkest: #222432; + + /* Another blue color we like */ + --ifm-color-secondary: #3c9ec8; + /* Created using https://colordesigner.io/color-scheme-builder */ + /* 6 steps to white, first 4 after main */ + --ifm-color-secondary-light: #6eadc8; + --ifm-color-secondary-lighter: #9bbecd; + --ifm-color-secondary-lightest: #c2d1d8; + --ifm-color-secondary-extralight: #e3e7e9; + /* 6 steps to black, first 3 after main */ + --ifm-color-secondary-dark: #397b97; + --ifm-color-secondary-darker: #345868; + --ifm-color-secondary-darkest: #283940; + --ifm-code-font-size: 95%; --ifm-navbar-height: 56px; font-family: "Inter"; @@ -62,6 +86,11 @@ --doc-sidebar-hidden-width: 100px !important; } +/* For readability concerns, you should choose a lighter palette in dark mode. */ +[data-theme="dark"] { + --ifm-color-primary: var(--ifm-color-primary-light); +} + @media (min-width: 768px) { :root { --ifm-navbar-height: 96px; @@ -84,11 +113,6 @@ h4 { line-height: 30px !important; } -/* For readability concerns, you should choose a lighter palette in dark mode. */ -[data-theme="dark"] { - --ifm-color-primary: hsl(184, 35%, 60%); -} - html { @apply text-black; } @@ -417,7 +441,7 @@ svg.architecture { } .theme-doc-toc-mobile > button { - @apply font-semibold text-true-black rounded p-4 mt-12 bg-teal-extralight; + @apply font-semibold text-black rounded p-4 mt-12 bg-primary-extralight; } .theme-doc-toc-mobile > div > ul { @@ -463,8 +487,8 @@ svg.architecture { } .markdown a { - color: #128189; - text-decoration-color: #128189; + color: var(--ifm-color-primary); + text-decoration-color: var(--ifm-color-primary); } .markdown a.card { diff --git a/docs/src/theme/Footer/Copyright/index.js b/docs/src/theme/Footer/Copyright/index.js index 957b48d7587..034f92185e3 100644 --- a/docs/src/theme/Footer/Copyright/index.js +++ b/docs/src/theme/Footer/Copyright/index.js @@ -3,7 +3,7 @@ import HydraLogo from "../../../components/icons/HydraLogo"; export default function FooterCopyright({ copyright }) { return (
diff --git a/docs/src/theme/Footer/Layout/index.js b/docs/src/theme/Footer/Layout/index.js index f50b8db6eac..fbaa554352c 100644 --- a/docs/src/theme/Footer/Layout/index.js +++ b/docs/src/theme/Footer/Layout/index.js @@ -11,7 +11,7 @@ export default function FooterLayout({ style, links, logo, copyright }) { className={clsx( "laptop:footer", isLandingPage - ? "bg-teal-dark component laptop:component-xs" + ? "bg-primary-darker component laptop:component-xs" : "bg-white py-[56px]" )} > @@ -28,18 +28,18 @@ export default function FooterLayout({ style, links, logo, copyright }) { >
-
+
Join the family
Get involved diff --git a/docs/src/theme/Footer/LinkItem/index.js b/docs/src/theme/Footer/LinkItem/index.js index 5d7efaf715f..ada167013ea 100644 --- a/docs/src/theme/Footer/LinkItem/index.js +++ b/docs/src/theme/Footer/LinkItem/index.js @@ -11,7 +11,7 @@ export default function FooterLinkItem({ item }) { return ( @@ -81,7 +81,7 @@ export default function NavbarContent() { href="https://discord.com/invite/Qq5vNTg9PT" target="_blank" rel="noopener noreferrer" - className="hover:text-teal-light mx-3 py-1" + className="hover:text-primary-light mx-3 py-1" > diff --git a/docs/src/theme/Navbar/MobileSidebar/Layout/index.js b/docs/src/theme/Navbar/MobileSidebar/Layout/index.js index 67f85c4bc28..f671ca41d2d 100644 --- a/docs/src/theme/Navbar/MobileSidebar/Layout/index.js +++ b/docs/src/theme/Navbar/MobileSidebar/Layout/index.js @@ -9,7 +9,7 @@ export default function NavbarMobileSidebarLayout({ }) { const { shown: secondaryMenuShown } = useNavbarSecondaryMenu(); return ( -
+
{header}
Github @@ -44,7 +44,7 @@ export default function NavbarMobilePrimaryMenu() { href="https://github.com/cardano-scaling/hydra" target="_blank" rel="noopener noreferrer" - className="hover:text-teal-light mx-3 py-1 inline-flex gap-3" + className="hover:text-primary-light mx-3 py-1 inline-flex gap-3" > Discord diff --git a/docs/src/theme/NavbarItem/DefaultNavbarItem.js b/docs/src/theme/NavbarItem/DefaultNavbarItem.js index dc2d7b74f9f..ac9671e8472 100644 --- a/docs/src/theme/NavbarItem/DefaultNavbarItem.js +++ b/docs/src/theme/NavbarItem/DefaultNavbarItem.js @@ -9,7 +9,7 @@ function DefaultNavbarItemDesktop({ const element = (