Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class Header extends React.Component<HeaderProps, any> {
return (
<>
{this.props.isHome && (
<div className="d-flex flex-lg-row flex-column align-items-center justify-content-center bg-purple text-white font-weight-bold p-2">
<div className="d-flex flex-lg-row flex-column align-items-center justify-content-center bg-vivid-violet text-white font-weight-bold p-2">
Track what really matters to you and your team.
<Link to="/code-insights" className="ml-2 rounded btn btn-sm btn-light">
🎉 <span className="mx-2">Show me Code Insights!</span>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/IconItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
export const IconItem: React.FunctionComponent<{
className?: string
icon: React.ComponentType<{ className?: string }>
color: 'blue' | 'brand-cyan' | 'brand-orange' | 'brand-purple' | 'green' | 'red' | 'white'
color: 'primary' | 'sky-blue' | 'vivid-violet' | 'green' | 'vermillion' | 'white'
children: React.ReactNode
}> = ({ className = '', icon: Icon, color, children }) => (
<div className={`icon-item media ${className}`}>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Install/install.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@keyframes flashBackground {
0% {
background: $light-yellow;
background: $yellow-mist;
}
100% {
background-color: none;
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Jumbotron.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
export const COLORS = {
white: '',
dark: 'bg-black text-light',
purple: 'bg-purple text-light',
purple: 'bg-vivid-violet text-light',
}

export const Jumbotron: React.FunctionComponent<{
Expand Down
16 changes: 12 additions & 4 deletions website/src/components/QuoteCarousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export const QuoteCarousel: FunctionComponent<QuoteCarouselProps> = ({ items, au
return (
<div className="d-flex flex-lg-row align-items-lg-center flex-column justify-content-center text-center h-xl-450 h-lg-450 h-md-450 h-sm-550 position-relative">
<div className="d-lg-flex d-none align-items-center btn">
<ArrowLeftIcon className="mr-4" onClick={() => carouselHook.moveCarousel('decrement')} />
<ArrowLeftIcon
className="mr-4"
color="#808080"
onClick={() => carouselHook.moveCarousel('decrement')}
/>
</div>
<div className="px-lg-7">
{carouselItems.map(item => (
Expand All @@ -54,16 +58,20 @@ export const QuoteCarousel: FunctionComponent<QuoteCarouselProps> = ({ items, au
))}
</div>
<div className="d-lg-flex d-none align-items-center btn">
<ArrowRightIcon className="ml-4" onClick={() => carouselHook.moveCarousel()} />
<ArrowRightIcon className="ml-4" color="#808080" onClick={() => carouselHook.moveCarousel()} />
</div>
<div
className={`d-lg-none d-flex justify-content-center mt-4 w-100 position-absolute ${styles.positionNav}`}
>
<div>
<ArrowLeftIcon className="mr-4" onClick={() => carouselHook.moveCarousel('decrement')} />
<ArrowLeftIcon
className="mr-4"
color="#808080"
onClick={() => carouselHook.moveCarousel('decrement')}
/>
</div>
<div>
<ArrowRightIcon className="ml-4" onClick={() => carouselHook.moveCarousel()} />
<ArrowRightIcon className="ml-4" color="#808080" onClick={() => carouselHook.moveCarousel()} />
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/TestimonialCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import slugify from 'slugify'

export enum CarouselColors {
dark = 'bg-black text-light',
purple = 'bg-purple text-light',
purple = 'bg-vivid-violet text-light',
}

interface Author {
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/blog/LinkPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const LinkPost: React.FunctionComponent<Props> = ({
{title}
<div className="link-post__html d-inline" dangerouslySetInnerHTML={{ __html: post.html }} />
</div>
<div className="card-footer bg-unset border-top-0 pt-0">
<div className="card-footer bg-transparent border-top-0 pt-0">
<Link to={url} className={`text-muted ${titleLinkClassName}`}>
{post.frontmatter.publishDate}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/content/ContentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const COLORS = {
white: 'bg-white text-dark',
black: 'bg-black text-light',
gray: 'bg-dark text-light',
purple: 'bg-purple text-light',
purple: 'bg-vivid-violet text-light',
primary: 'bg-primary text-light',
pink: 'bg-pink text-dark',
'light-orange': 'bg-light-orange text-dark',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react'
import { IconItem } from '../IconItem'

export const OpenSourcePrivacyFeatureItem: React.FunctionComponent<{}> = () => (
<IconItem className="position-relative" icon={LockIcon} color="blue">
<IconItem className="position-relative" icon={LockIcon} color="primary">
<h4>Open source, self-managed, &amp; privacy-respectful</h4>
<p>
Sourcegraph is{' '}
Expand Down
163 changes: 97 additions & 66 deletions website/src/css/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
/* Sourcegraph Brand Colors */
$sg-space-black: #000000;
$blue: #2c7ef6;
$red: #dc3545;
$purple: #5033e1;
$white: #ffffff;
$gray: #6c757d;
$brand-purple: #a112ff;
$brand-cyan: #00cbec;
$brand-orange: #ff5543;
$brand-primary-blue: #2a66e2;
$logo-purple: #b200f8;
/**
* Sourcegraph Brand Colors
* See: https://handbook.sourcegraph.com/departments/marketing/brand/brand_guidelines/color/
*/

// Sourcegraph Brand Secondary Colors
$brand-onahau: #c7ffff;
$brand-mint: #8fedcf;
$brand-fog: #e8d1ff;
// TODO: consolidate and name more brand colours
// Sourcegraph Primary Colors
$sky-blue: #00cbec;
$vivid-violet: #a112ff;
$vermillion: #ff5543;

$body-bg: #f9f9f9;
$body-color: #222233;
// Sourcegraph Secondary Colors
$yellow-mist: #fff2cf;
$red-mist: #ffc9c9;
$violet-mist: #e8d1ff;
$plum-mist: #bfbfff;
$blue-mist: #c7ffff;
$green-mist: #c4ffe8;
$mint: #8fedcf;
$blurple: #5033e1;
$pacific-blue: #00a1c7;

$nav-bg-color: #f9f9f9;
// Sourcegraph Colors for Website UI
$pale-sky: #6c757d;
$space-black: #000000;

$dark-13: #000000;
$dark-12: #07090d;
$dark-11: #0e121b;
$dark-10: #151c28;
// Colors not listed in our Brand Guidelines
$dark-9: #1d2535;
$dark-8: #242e42;
$dark-8: #222233;
$dark-5: #39496a;
$dark-3: #475c85;

Expand All @@ -37,52 +35,85 @@ $light-5: #a2b0cd;
$light-6: #afbcd4;
$light-8: #cad2e2;
$light-9: #d7ddea;
$light-gray-0: #ddd;
$light-gray-0: #dddddd;
$light-gray-1: #dee2e6;
$light-gray-2: #f9fafb;
$light-10: #e4e9f1;
$light-11: #f2f4f8;

$red-7: #f03e3e;
$light-gray-2: #e4e9f1;
$light-gray-3: #f2f4f8;
$light-gray-4: #f9fafb;
$light-gray-5: #f5f5f5;

$indigo-5: #5c7cfa;
$green-1: #d3f9d8;
$green-5: #51cf66;
$green-7: #37b24d;
$green-9: #2b8a3e;

$light-green: #bceee9;
$light-green2: #c4ffe8;
$alabaster: #f9f9f9;
$light-blue: #d5e6f7;
$light-blue2: #bfbfff;
$light-yellow: #fff2cf;
$light-red: #ffc9c9;
$blue-3: #72c3fc;
$blue-7: #1c7cd6;
$blue-mist: #c7ffff;
$wild-sand: #f5f5f5;
$light-green: #bceee9;
$turquoise: #66d9e8;
$malibu: #72c3fc;
$curious-blue: #1c7cd6;
$cornflower-blue: #5c7cfa;
$dodger-blue: #2c7ef6;

$cyan-2: #00a1c7;
$cyan-3: #66d9e8;
/**
* Bootstrap Theme Colors
* This allows us to use text-{colorName} and bg-{colorName} utility classes
*/
$theme-colors: (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glorious 🙌

// Bootstrap overrides
'primary': $blurple,

$teal-7: #0ca678;
// Sourcegraph Primary Colors
'sky-blue': $sky-blue,
'vivid-violet': $vivid-violet,
'vermillion': $vermillion,

$green-1: #d3f9d8;
$green-5: #51cf66;
$green-7: #37b24d;
$green-9: #2b8a3e;
// Sourcegraph Secondary Colors
'yellow-mist': $yellow-mist,
'red-mist': $red-mist,
'violet-mist': $violet-mist,
'plum-mist': $plum-mist,
'blue-mist': $blue-mist,
'green-mist': $green-mist,
'mint': $mint,
'blurple': $blurple,
'pacific-blue': $pacific-blue,

// Sourcegraph Colors for Website UI
'pale-sky': $pale-sky,
'black': $space-black,

// Colors not listed in our Brand Guidelines
'dark-9': $dark-9,
'dark-8': $dark-8,
'dark-5': $dark-5,
'dark-3': $dark-3,

'light-1': $light-1,
'light-2': $light-2,
'light-5': $light-5,
'light-6': $light-6,
'light-8': $light-8,
'light-9': $light-9,
'light-gray-0': $light-gray-0,
'light-gray-1': $light-gray-1,
'light-gray-2': $light-gray-2,
'light-gray-3': $light-gray-3,
'light-gray-4': $light-gray-4,
'light-gray-5': $light-gray-5,

'green-1': $green-1,
'green-5': $green-5,
'green-7': $green-7,
'green-9': $green-9,

.bg-light-gray {
background-color: $light-gray-2;
}
.bg-light-gray2 {
background-color: $light-11;
}
.bg-black {
background-color: $sg-space-black;
}
.bg-purple {
background-color: $logo-purple;
}
.bg-light-transparent {
background-color: transparentize($light-11, 0.3);
}
.bg-unset {
background-color: unset;
}
'alabaster': $alabaster,
'light-blue': $light-blue,
'light-green': $light-green,
'turquoise': $turquoise,
'malibu': $malibu,
'curious-blue': $curious-blue,
'cornflower-blue': $cornflower-blue,
'dodger-blue': $dodger-blue
);
Loading