Skip to content

Commit

Permalink
chore: remove more colors (#22882)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Jun 12, 2024
1 parent 5ad9b93 commit c6ee85d
Show file tree
Hide file tree
Showing 88 changed files with 99 additions and 155 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-colors--color-palette--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-colors--color-palette--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-lemon-dialog--customised--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-lemon-dialog--form--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-lemon-dialog--minimal--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-lemon-dialog--template--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-lemon-modal--inline--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/lemon-ui-spinner--text-colored--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions frontend/src/layout/navigation-3000/Navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@
left: 0;
font-size: 1.25rem;
line-height: 0.5625rem;
color: var(--default);
color: var(--text-3000);
text-align: center;
content: '';
}

.LemonButton__icon {
color: var(--default);
color: var(--text-3000);
transform: translateY(-0.25rem);
}
}
Expand Down Expand Up @@ -183,7 +183,7 @@
margin: 0;
overflow: hidden;
line-height: inherit;
color: var(--default);
color: var(--text-3000);
text-overflow: ellipsis;
}

Expand Down Expand Up @@ -524,7 +524,7 @@
inset: 0 0 -1px;
pointer-events: none;
content: '';
border: 1px solid var(--default);
border: 1px solid var(--border-3000);
}
}

Expand All @@ -546,7 +546,7 @@
height: 100%;
padding: 0 calc(var(--sidebar-horizontal-padding) + 2.5rem) 0 var(--sidebar-list-item-inset);
font-size: 0.75rem;
color: var(--default);
color: var(--text-3000);
background: none;
outline: none;
}
Expand All @@ -556,7 +556,7 @@
inset: 0 0 -1px;
pointer-events: none;
content: '';
border: 1px solid var(--default);
border: 1px solid var(--border);

.SidebarListItem[aria-invalid='true'] & {
border-color: var(--danger);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
height: 1.25rem;
padding: 0.125rem 0.25rem;
font-size: 0.75rem;
color: var(--default);
color: var(--text-3000);
text-transform: capitalize;
user-select: none;
background: var(--accent-3000);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/layout/navigation-3000/components/TopBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
flex-shrink: 0;
align-items: center;
overflow: hidden;
color: var(--default);
color: var(--text-3000);
white-space: pre;
cursor: default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ export const SidePanelSupport = (): JSX.Element => {
>
<div className="flex items-center gap-1.5">
{product.icon}
<span className="text-default opacity-75 group-hover:opacity-100">
<span className="text-text-3000 opacity-75 group-hover:opacity-100">
{product.name}
</span>
</div>
<div>
<IconChevronDown className="text-default h-6 w-6 opacity-60 -rotate-90 group-hover:opacity-90" />
<IconChevronDown className="text-text-3000 h-6 w-6 opacity-60 -rotate-90 group-hover:opacity-90" />
</div>
</Link>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function AddToDashboardModal({
onChange={(newValue) => setSearchQuery(newValue)}
/>
<div className="text-muted-alt">
This insight is referenced on <strong className="text-default">{currentDashboards.length}</strong>{' '}
This insight is referenced on <strong className="text-text-3000">{currentDashboards.length}</strong>{' '}
{pluralize(currentDashboards.length, 'dashboard', 'dashboards', false)}
</div>
{/* eslint-disable-next-line react/forbid-dom-props */}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/lib/components/BridgePage/BridgePage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
padding: 2rem;
background-color: white;
border-radius: var(--radius);
box-shadow: var(--shadow-elevation);
box-shadow: var(--shadow-elevation-3000);

h2 {
font-weight: bold;
Expand Down Expand Up @@ -88,7 +88,7 @@
font-size: 0.8em;
font-weight: 600;
color: #fff;
background-color: var(--default);
background-color: var(--text-3000);
border-radius: 0.75rem;
opacity: 0;
transition-timing-function: cubic-bezier(0.455, 0.03, 0.31, 1.585);
Expand All @@ -100,7 +100,7 @@
margin-top: -10px;
content: ' ';
border: 10px solid transparent;
border-left-color: var(--default);
border-left-color: var(--text-3000);
}

&.BridgePage__left__message--enter {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Cards/CardMeta.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
&.CardMeta--details-shown {
.CardMeta__details {
margin-top: 0;
box-shadow: var(--shadow-elevation);
box-shadow: var(--shadow-elevation-3000);

.CardMeta__details__content {
pointer-events: all;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
font-size: 0.875rem;
font-weight: normal;
line-height: 1.375em;
color: var(--default);
color: var(--text-3000);
cursor: pointer;
transition: background 0.3s ease;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
max-width: 100%;
padding: 0;
font: inherit;
color: var(--default);
color: var(--text-3000);
background: transparent;
border: none;
outline: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function CloseAllTags({ elements }: { elements: ElementType[] }): JSX.Element {
}}
>
<pre
className="whitespace-pre-wrap break-all p-0 m-0 rounded-none text-default text-sm"
className="whitespace-pre-wrap break-all p-0 m-0 rounded-none text-text-3000 text-sm"
key={index}
>
{indent(elements.length - index - 2)}
Expand Down Expand Up @@ -161,7 +161,7 @@ export function HTMLElementsDisplay({
<>
{elementsToShowDepth ? (
<pre
className="p-1 m-0 opacity-50 text-default text-sm cursor-pointer"
className="p-1 m-0 opacity-50 text-text-3000 text-sm cursor-pointer"
data-attr="elements-display-show-more-of-chain"
onClick={showAdditionalElements}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export function SelectableElement({
return (
<pre
className={clsx(
'p-0 m-0 rounded whitespace-pre-wrap break-all text-default text-sm',
'p-0 m-0 rounded whitespace-pre-wrap break-all text-text-3000 text-sm',
isDeepestChild && highlight ? 'bg-brand-red' : 'bg-transparent'
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
height: 2rem;
padding: 0.25rem 0.625rem;
overflow: hidden;
color: var(--default);
color: var(--text-3000);
white-space: nowrap;
cursor: default;
background: var(--border);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function SceneDashboardChoiceModal({ scene }: SceneDashboardChoiceModalPr
<div className="flex flex-1 items-center justify-between overflow-hidden">
<div className="flex-1 flex flex-col justify-center overflow-hidden">
<strong>{dashboard.name}</strong>
<span className="text-default font-normal text-ellipsis">
<span className="text-text-3000 font-normal text-ellipsis">
{dashboard.description}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/SeriesGlyph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function SeriesLetter({ className, hasBreakdown, seriesIndex, seriesColor
: hexToRGBA(color, 0.2),
}
: {
color: 'var(--default)',
color: 'var(--text-3000)',
}
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function SocialLoginButton({ provider, extraQueryParams }: SocialLoginBut
return (
<SocialLoginLink provider={provider} extraQueryParams={extraQueryParams}>
<LemonButton size="medium" icon={<SocialLoginIcon provider={provider} />}>
<span className="text-default">{SSO_PROVIDER_NAMES[provider]}</span>
<span className="text-text-3000">{SSO_PROVIDER_NAMES[provider]}</span>
</LemonButton>
</SocialLoginLink>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function SubscriptionListItem({ subscription, onClick, onDelete }: Subscr
<div className="flex justify-between flex-auto items-center p-2">
<div>
<div className="text-link font-medium">{subscription.title}</div>
<div className="text-sm text-default">{capitalizeFirstLetter(subscription.summary)}</div>
<div className="text-sm text-text-3000">{capitalizeFirstLetter(subscription.summary)}</div>
</div>
{subscription.target_type === 'email' ? (
<ProfileBubbles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
align-items: center;
justify-content: space-between;
padding: 4px 12px;
color: var(--default);
color: var(--text-3000);
cursor: pointer;
border: none;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
height: 2rem;
padding: 0.25rem 0.625rem;
overflow: hidden;
color: var(--default);
color: var(--text-3000);
white-space: nowrap;
cursor: default;
background: var(--border);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/lemon-ui/LemonButton/LemonButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
--lemon-button-gap: 0.5rem;
--lemon-button-icon-opacity: 0.8;
--lemon-button-profile-picture-opacity: 0.9; // Profile pictures must be more prominent than icons
--lemon-button-color: var(--default);
--lemon-button-color: var(--text-3000);

// column-gap: 4px;
// flex-direction: row;
Expand Down Expand Up @@ -232,7 +232,7 @@

&.LemonButton--active,
&:hover:not([aria-disabled='true']) {
--lemon-button-color: var(--default);
--lemon-button-color: var(--text-3000);
}
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonCard/LemonCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

&.LemonCard--hoverEffect {
&:hover {
box-shadow: var(--shadow-elevation);
box-shadow: var(--shadow-elevation-3000);
transform: scale(1.01);
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonInput/LemonInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
line-height: 1.25rem;
color: var(--default);
color: var(--text-3000);
text-align: left;
cursor: text;
background: none;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonRow/LemonRow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

&.LemonRow--status-highlighted {
font-weight: 600;
color: var(--default);
color: var(--text-3000);
background: var(--primary-bg-hover);

.LemonRow__icon {
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/lib/lemon-ui/LemonTable/LemonTable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

a.Link {
color: var(--default);
color: var(--text-3000);

&:not(:disabled):hover {
color: var(--primary-3000-hover);
Expand Down Expand Up @@ -156,7 +156,7 @@

&.LemonTable__row--status-highlighted {
font-weight: 600;
color: var(--default);
color: var(--text-3000);

> td:not(.LemonTable__cell--sticky) {
background: var(--primary-bg-hover);
Expand All @@ -166,7 +166,7 @@
> td {
padding-top: 0.3125rem;
padding-bottom: 0.3125rem;
color: var(--text-secondary);
color: var(--text-secondary-3000);

// Make spacing of buttons tighter in tables by adding negative vertical margin
.LemonButton {
Expand Down Expand Up @@ -253,7 +253,7 @@
cursor: default;

.LemonTable__header-content {
color: var(--text-secondary);
color: var(--text-secondary-3000);
}

&.LemonTable__header--actionable {
Expand All @@ -262,14 +262,14 @@
&:hover {
&:not(:has(.LemonTable__header--no-hover:hover)) {
.LemonTable__header-content {
color: var(--default);
color: var(--text-3000);
}
}
}

&:active {
.LemonTable__header-content {
color: var(--default);
color: var(--text-3000);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonTable/LemonTableLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function LemonTableLink({
<div className="flex flex-row items-center font-semibold text-sm gap-1">{title}</div>

{description ? (
<div className="text-default text-xs text-text-secondary-3000 mt-1">
<div className="text-text-3000 text-xs text-text-secondary-3000 mt-1">
{typeof description === 'string' ? (
<LemonMarkdown className="max-w-[30rem]" lowKeyHeadings>
{description}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonTag/LemonTag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
font-size: 0.75rem;
font-weight: var(--font-medium);
line-height: 1rem;
color: var(--default);
color: var(--text-3000);
white-space: nowrap;
background: var(--border);
border-radius: var(--radius-sm);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonTextArea/LemonTextArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
padding: 0.5rem;
font-size: 0.875rem;
line-height: 1.25rem;
color: var(--default);
color: var(--text-3000);
text-align: left;
text-overflow: ellipsis;
cursor: text;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/Lettermark/Lettermark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

&.Lettermark--variant-gray {
color: var(--default);
color: var(--text-3000);
background: var(--border);
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/Link/Link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

&--subtle {
color: var(--default);
color: var(--text-3000);

&:not(:disabled):hover {
color: var(--primary-3000-hover);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/Popover/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
background: var(--bg-light);
border: 1px solid var(--secondary-3000-button-border);
border-radius: var(--radius);
box-shadow: var(--shadow-elevation);
box-shadow: var(--shadow-elevation-3000);
opacity: 0;
transition: opacity 50ms ease, transform 50ms ease;
transform-origin: top;
Expand Down
Loading

0 comments on commit c6ee85d

Please sign in to comment.