Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Migrate CSS classes for lighter text (#17728)

Ivan Vasilov282b08ba6090
diff --git a/studio/.storybook/preview.css b/studio/.storybook/preview.css
index 59866e2b972..473d67f4950 100644
--- a/studio/.storybook/preview.css
+++ b/studio/.storybook/preview.css
@@ -50,7 +50,7 @@
}
.react-datepicker__day-names {
- @apply flex -space-x-px text-scale-900 font-normal text-center text-xs;
+ @apply flex -space-x-px text-foreground-lighter font-normal text-center text-xs;
}
.react-datepicker__day-name {
diff --git a/studio/components/grid/components/common/DropdownControl.tsx b/studio/components/grid/components/common/DropdownControl.tsx
index 087a627b45f..08704710440 100644
--- a/studio/components/grid/components/common/DropdownControl.tsx
+++ b/studio/components/grid/components/common/DropdownControl.tsx
@@ -35,9 +35,13 @@ export const DropdownControl = ({
return (
<DropdownMenuItem_Shadcn_ key={x.value} onClick={() => onSelect(x.value)}>
<div className="flex items-center gap-2">
- {x.preLabel && <span className="grow text-xs text-scale-900">{x.preLabel}</span>}
+ {x.preLabel && (
+ <span className="grow text-xs text-foreground-lighter">{x.preLabel}</span>
+ )}
<span>{x.label}</span>
- {x.postLabel && <span className="text-xs text-scale-900">{x.postLabel}</span>}
+ {x.postLabel && (
+ <span className="text-xs text-foreground-lighter">{x.postLabel}</span>
+ )}
</div>
</DropdownMenuItem_Shadcn_>
)
diff --git a/studio/components/grid/components/header/filter/FilterPopover.tsx b/studio/components/grid/components/header/filter/FilterPopover.tsx
index 57fd8f85e4e..1a438911474 100644
--- a/studio/components/grid/components/header/filter/FilterPopover.tsx
+++ b/studio/components/grid/components/header/filter/FilterPopover.tsx
@@ -125,7 +125,7 @@ const FilterOverlay = ({ table, filters: filtersFromUrl, setParams }: FilterOver
{filters.length == 0 && (
<div className="space-y-1 px-3">
<h5 className="text-sm text-foreground-light">No filters applied to this view</h5>
- <p className="text-xs text-scale-900">Add a column below to filter the view</p>
+ <p className="text-xs text-foreground-lighter">Add a column below to filter the view</p>
</div>
)}
</div>
diff --git a/studio/components/grid/components/header/filter/FilterRow.tsx b/studio/components/grid/components/header/filter/FilterRow.tsx
index 69ecd1f8a59..3be749c3164 100644
--- a/studio/components/grid/components/header/filter/FilterRow.tsx
+++ b/studio/components/grid/components/header/filter/FilterRow.tsx
@@ -1,8 +1,8 @@
-import { memo, KeyboardEvent } from 'react'
-import { Button, Input, IconChevronDown, IconX } from 'ui'
+import { KeyboardEvent, memo } from 'react'
+import { Button, IconChevronDown, IconX, Input } from 'ui'
-import { Filter, FilterOperator, SupaTable } from 'components/grid/types'
import { DropdownControl } from 'components/grid/components/common'
+import { Filter, FilterOperator, SupaTable } from 'components/grid/types'
import { FilterOperatorOptions } from './Filter.constants'
export interface FilterRowProps {
@@ -39,7 +39,7 @@ const FilterRow = ({ table, filter, filterIdx, onChange, onDelete, onKeyDown }:
asChild
type="outline"
icon={
- <div className="text-scale-900">
+ <div className="text-foreground-lighter">
<IconChevronDown strokeWidth={1.5} size={14} />
</div>
}
@@ -62,7 +62,7 @@ const FilterRow = ({ table, filter, filterIdx, onChange, onDelete, onKeyDown }:
asChild
type="outline"
icon={
- <div className="text-scale-900">
+ <div className="text-foreground-lighter">
<IconChevronDown strokeWidth={1.5} size={14} />
</div>
}
diff --git a/studio/components/grid/components/header/sort/SortPopover.tsx b/studio/components/grid/components/header/sort/SortPopover.tsx
index e947206a270..bbbed488808 100644
--- a/studio/components/grid/components/header/sort/SortPopover.tsx
+++ b/studio/components/grid/components/header/sort/SortPopover.tsx
@@ -121,7 +121,7 @@ const SortOverlay = ({ table, sorts: sortsFromUrl, setParams }: SortOverlayProps
{sorts.length === 0 && (
<div className="space-y-1 px-3">
<h5 className="text-sm text-foreground-light">No sorts applied to this view</h5>
- <p className="text-xs text-scale-900">Add a column below to sort the view</p>
+ <p className="text-xs text-foreground-lighter">Add a column below to sort the view</p>
</div>
)}
diff --git a/studio/components/grid/components/header/sort/SortRow.tsx b/studio/components/grid/components/header/sort/SortRow.tsx
index 6696bf97832..95182e2bb29 100644
--- a/studio/components/grid/components/header/sort/SortRow.tsx
+++ b/studio/components/grid/components/header/sort/SortRow.tsx
@@ -103,17 +103,19 @@ const SortRow = ({ table, index, columnName, sort, onDelete, onToggle, onDrag }:
style={{ opacity }}
data-handler-id={handlerId}
>
- <span className="transition-color text-scale-900 hover:text-foreground-light">
+ <span className="transition-color text-foreground-lighter hover:text-foreground-light">
<IconMenu strokeWidth={2} size={16} />
</span>
<div className="grow">
<span className="flex grow items-center gap-1 truncate text-sm text-foreground">
- <span className="text-xs text-scale-900">{index > 0 ? 'then by' : 'sort by'}</span>
+ <span className="text-xs text-foreground-lighter">
+ {index > 0 ? 'then by' : 'sort by'}
+ </span>
{column.name}
</span>
</div>
<div className="flex items-center gap-1">
- <label className="text-xs text-scale-900">ascending:</label>
+ <label className="text-xs text-foreground-lighter">ascending:</label>
<Toggle
size="tiny"
layout="flex"
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
index 96f6a8dfb47..348736edd22 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
@@ -1,8 +1,8 @@
-import { useState, useEffect } from 'react'
-import ReactMarkdown from 'react-markdown'
+import { DatePicker } from 'components/ui/DatePicker'
import dayjs from 'dayjs'
+import { useEffect, useState } from 'react'
+import ReactMarkdown from 'react-markdown'
import { Button, IconEye, IconEyeOff, Input, InputNumber, Listbox, Toggle } from 'ui'
-import { DatePicker } from 'components/ui/DatePicker'
import { BASE_PATH } from 'lib/constants'
import { Enum } from './AuthProvidersForm.types'
@@ -121,7 +121,7 @@ const FormField = ({ name, properties, formValues, disabled = false }: FormField
onClick={() => setHidden(!hidden)}
/>
) : (
- <span className="mr-3 text-scale-900">
+ <span className="mr-3 text-foreground-lighter">
{properties.units ? (
<ReactMarkdown unwrapDisallowed disallowedElements={['p']}>
{properties.units}
@@ -156,7 +156,7 @@ const FormField = ({ name, properties, formValues, disabled = false }: FormField
) : null
}
actions={
- <span className="mr-3 text-scale-900">
+ <span className="mr-3 text-foreground-lighter">
{properties.units ? (
<ReactMarkdown unwrapDisallowed disallowedElements={['p']}>
{properties.units}
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index f16a7e6376e..4a3ae20adbf 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -120,7 +120,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {
<span className="px-1">Enabled</span>
</div>
) : (
- <div className="rounded-md border border-scale-500 bg-scale-100 py-1 px-3 text-xs text-scale-900 dark:border-scale-700 dark:bg-scale-300">
+ <div className="rounded-md border border-scale-500 bg-scale-100 py-1 px-3 text-xs text-foreground-lighter dark:border-scale-700 dark:bg-scale-300">
Disabled
</div>
)}
diff --git a/studio/components/interfaces/Auth/AutoSchemaForm.tsx b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
index 2313deb8ecd..5dc575eab84 100644
--- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx
+++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
@@ -175,7 +175,7 @@ const AutoSchemaForm = observer(() => {
size="small"
label="JWT expiry limit"
descriptionText="How long access tokens are valid for. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week). Refresh tokens are one-time use and never expire."
- actions={<span className="mr-3 text-scale-900">seconds</span>}
+ actions={<span className="mr-3 text-foreground-lighter">seconds</span>}
disabled={!canUpdateConfig}
/>
</FormSectionContent>
@@ -239,7 +239,7 @@ const AutoSchemaForm = observer(() => {
min={0}
label="Reuse interval"
descriptionText="Time interval where the same refresh token can be used to request for an access token."
- actions={<span className="mr-3 text-scale-900">seconds</span>}
+ actions={<span className="mr-3 text-foreground-lighter">seconds</span>}
disabled={!canUpdateConfig}
/>
)}
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx
index 30ba9e94971..fd20df50d21 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx
@@ -16,7 +16,7 @@ const PolicyAllowedOperation = ({
<label className="text-base text-foreground-light" htmlFor="allowed-operation">
Allowed operation
</label>
- <p className="text-sm text-scale-900">Select an operation for this policy</p>
+ <p className="text-sm text-foreground-lighter">Select an operation for this policy</p>
</div>
<div className="w-2/3">
<div className="flex items-center space-x-8">
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx
index 11f7f455f94..cb504ed7476 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx
@@ -71,7 +71,7 @@ const PolicyDefinition = ({
</Tooltip.Portal>
</Tooltip.Root>
</div>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Provide a SQL conditional expression that returns a boolean.
</p>
</div>
@@ -118,7 +118,7 @@ const PolicyDefinition = ({
</Tooltip.Portal>
</Tooltip.Root>
</div>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Provide a SQL conditional expression that returns a boolean.
</p>
</div>
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx
index c58fff9c8da..3f1a521e1ff 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx
@@ -13,7 +13,7 @@ const PolicyName = ({ name = '', limit = 100, onUpdatePolicyName }: PolicyNamePr
<label className="text-base text-foreground-light" htmlFor="policy-name">
Policy name
</label>
- <p className="text-sm text-scale-900">A descriptive name for your policy</p>
+ <p className="text-sm text-foreground-lighter">A descriptive name for your policy</p>
</div>
<div className="relative w-2/3">
<Input
@@ -21,7 +21,7 @@ const PolicyName = ({ name = '', limit = 100, onUpdatePolicyName }: PolicyNamePr
value={name}
onChange={(e) => onUpdatePolicyName(e.target.value)}
actions={
- <span className="mr-3 text-sm text-scale-900">
+ <span className="mr-3 text-sm text-foreground-lighter">
{name.length}/{limit}
</span>
}
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx
index 3de12bc173f..80922bf7d59 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx
@@ -25,7 +25,7 @@ const PolicyRoles = ({ roles, selectedRoles, onUpdateSelectedRoles }: PolicyRole
<label className="text-foreground-light text-base" htmlFor="policy-name">
Target roles
</label>
- <p className="text-scale-900 text-sm">Apply policy to the selected roles</p>
+ <p className="text-foreground-lighter text-sm">Apply policy to the selected roles</p>
</div>
<div className="relative w-2/3">
<MultiSelect
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx
index e321577dd5e..53a408f5218 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx
@@ -32,7 +32,7 @@ const PolicyEditorModalTitle = ({
<div className="flex items-center space-x-3">
<span
onClick={onSelectBackFromTemplates}
- className="cursor-pointer text-scale-900 transition-colors hover:text-foreground"
+ className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"
>
<IconChevronLeft strokeWidth={2} size={14} />
</span>
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
index eb4ad5594b1..7d6a7f8252d 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
@@ -36,7 +36,7 @@ const PolicyTableRowHeader = ({
</Link>
{isLocked ? (
<Badge color="scale">
- <span className="flex gap-2 items-center text-xs uppercase text-scale-900">
+ <span className="flex gap-2 items-center text-xs uppercase text-foreground-lighter">
<IconLock width={12} /> Locked
</span>
</Badge>
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx
index 7b595e819b8..66b56a36544 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx
@@ -46,7 +46,7 @@ const TemplatesList = ({
</div>
{templatesNote && (
<div className="px-4 py-2">
- <p className="text-xs text-scale-900">{templatesNote}</p>
+ <p className="text-xs text-foreground-lighter">{templatesNote}</p>
</div>
)}
</div>
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx
index f1d8aab1539..c496b74aa5d 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx
@@ -30,7 +30,7 @@ const PolicyTemplates = ({
<TemplatePreview selectedTemplate={selectedTemplate} />
</div>
<div className="flex w-full items-center justify-end gap-3 border-t px-6 py-4 dark:border-dark">
- <span className="text-sm text-scale-900">
+ <span className="text-sm text-foreground-lighter">
This will override any existing code you've written
</span>
<Button
diff --git a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
index 945d7a1e014..08f3785d9fe 100644
--- a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
+++ b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
@@ -22,7 +22,7 @@ const RedirectUrlList = ({
return (
<ValueContainer key={url}>
<div className="flex items-center gap-4 font-mono">
- <span className="text-scale-900">
+ <span className="text-foreground-lighter">
<IconGlobe strokeWidth={2} size={14} />
</span>
<span className="text-sm">{url}</span>
diff --git a/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx b/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
index df49f20dd82..e8c22dec3b3 100644
--- a/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
+++ b/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
@@ -30,10 +30,10 @@ import {
import { useAuthConfigQuery } from 'data/auth/auth-config-query'
import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'
import { useCheckPermissions, useStore } from 'hooks'
+import EmailRateLimitsAlert from '../EmailRateLimitsAlert'
import { urlRegex } from './../Auth.constants'
import { defaultDisabledSmtpFormValues } from './SmtpForm.constants'
import { generateFormValues, isSmtpEnabled } from './SmtpForm.utils'
-import EmailRateLimitsAlert from '../EmailRateLimitsAlert'
const SmtpForm = () => {
const { ui } = useStore()
@@ -267,7 +267,7 @@ const SmtpForm = () => {
header={
<FormSectionLabel>
<span>SMTP Provider Settings</span>
- <p className="my-4 text-scale-900">
+ <p className="my-4 text-foreground-lighter">
Your SMTP Credentials will always be encrypted in our database.
</p>
</FormSectionLabel>
@@ -306,7 +306,7 @@ const SmtpForm = () => {
name="SMTP_MAX_FREQUENCY"
label="Minimum interval between emails being sent"
descriptionText="How long between each email can a new email be sent via your SMTP server."
- actions={<span className="mr-3 text-scale-900">seconds</span>}
+ actions={<span className="mr-3 text-foreground-lighter">seconds</span>}
disabled={!canUpdateConfig}
/>
<InputNumber
@@ -315,7 +315,7 @@ const SmtpForm = () => {
min={0}
label="Rate limit for sending emails"
descriptionText="How many emails can be sent per hour."
- actions={<span className="mr-3 text-scale-900">emails per hour</span>}
+ actions={<span className="mr-3 text-foreground-lighter">emails per hour</span>}
disabled={!canUpdateConfig}
/>
<Input
diff --git a/studio/components/interfaces/Auth/Users/UsersPagination.tsx b/studio/components/interfaces/Auth/Users/UsersPagination.tsx
index 91578a9f8d1..9f7f8246fbb 100644
--- a/studio/components/interfaces/Auth/Users/UsersPagination.tsx
+++ b/studio/components/interfaces/Auth/Users/UsersPagination.tsx
@@ -21,7 +21,7 @@ const UsersPagination = ({ total, page, setPage }: UsersPaginationProps) => {
return (
<nav className="flex items-center justify-between overflow-hidden" aria-label="Pagination">
<div className="hidden sm:block">
- <p className="text-xs text-scale-900">
+ <p className="text-xs text-foreground-lighter">
Showing
<span className="px-1 font-medium text-foreground-light">{fromRow}</span>
to
diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx
index 09f9f3fab9b..047e9973a20 100644
--- a/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx
@@ -199,7 +199,7 @@ const ExitSurveyModal = ({ visible, onClose }: ExitSurveyModalProps) => {
</Modal.Content>
<div className="flex items-center justify-between border-t px-4 py-4">
- <p className="text-xs text-scale-900">
+ <p className="text-xs text-foreground-lighter">
The unused amount for the remaining of your billing cycle will be refunded as credits
</p>
<div className="flex items-center space-x-2">
diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
index e7ffcd13b8f..743c92bf447 100644
--- a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
@@ -348,11 +348,13 @@ const PITRSelection = () => {
</div>
<div className="py-2 flex flex-col gap-3">
<div>
- <p className="text-sm font-mono text-scale-900">{selectedTimezone?.text}</p>
+ <p className="text-sm font-mono text-foreground-lighter">
+ {selectedTimezone?.text}
+ </p>
<p className="text-2xl">{recoveryTimeString}</p>
</div>
<div>
- <p className="text-sm font-mono text-scale-900">(UTC+00:00)</p>
+ <p className="text-sm font-mono text-foreground-lighter">(UTC+00:00)</p>
<p className="text-2xl">{recoveryTimeStringUtc}</p>
</div>
</div>
diff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsx
index 4e7c1bf925b..1be65903a17 100644
--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx
+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx
@@ -487,7 +487,7 @@ const InputMultiArguments = observer(({ readonly }: InputMultiArgumentsProps) =>
</div>
<div className="space-y-2 pt-4">
{readonly && isEmpty(_localState!.formState.args.value) && (
- <span className="text-scale-900">No argument for this function</span>
+ <span className="text-foreground-lighter">No argument for this function</span>
)}
{_localState!.formState.args.value.map(
(x: { name: string; type: string; error?: string }, idx: number) => (
diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
index 2386edcdfec..5381d4d28ea 100644
--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
@@ -104,7 +104,7 @@ const FunctionsList = ({
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
@@ -122,7 +122,7 @@ const FunctionsList = ({
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
diff --git a/studio/components/interfaces/Database/Indexes/Indexes.tsx b/studio/components/interfaces/Database/Indexes/Indexes.tsx
index bf29c318c3b..0b10e00ceec 100644
--- a/studio/components/interfaces/Database/Indexes/Indexes.tsx
+++ b/studio/components/interfaces/Database/Indexes/Indexes.tsx
@@ -18,17 +18,16 @@ import {
} from 'ui'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
-import ShimmeringLoader, { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
-import AlertError from 'components/ui/AlertError'
-import { DatabaseIndex, useIndexesQuery } from 'data/database/indexes-query'
-import { useSchemasQuery } from 'data/database/schemas-query'
import Table from 'components/to-be-cleaned/Table'
+import AlertError from 'components/ui/AlertError'
import CodeEditor from 'components/ui/CodeEditor'
-import CreateIndexSidePanel from './CreateIndexSidePanel'
import ConfirmationModal from 'components/ui/ConfirmationModal'
+import ShimmeringLoader, { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
+import { DatabaseIndex, useIndexesQuery } from 'data/database/indexes-query'
+import { useSchemasQuery } from 'data/database/schemas-query'
import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation'
import { useStore } from 'hooks'
-import MonacoEditor from 'components/interfaces/SQLEditor/MonacoEditor'
+import CreateIndexSidePanel from './CreateIndexSidePanel'
const Indexes = () => {
const { ui } = useStore()
@@ -99,7 +98,7 @@ const Indexes = () => {
<div className="flex items-center justify-between mb-6">
<div>
<h3 className="mb-1 text-xl text-foreground">Database Indexes</h3>
- <div className="text-sm text-scale-900">
+ <div className="text-sm text-foreground-lighter">
Improve query performance against your database
</div>
</div>
@@ -142,7 +141,7 @@ const Indexes = () => {
key={schema.name}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
{schema.name}
</Listbox.Option>
diff --git a/studio/components/interfaces/Database/Migrations/Migrations.tsx b/studio/components/interfaces/Database/Migrations/Migrations.tsx
index 22f2cdd039a..324aad1362d 100644
--- a/studio/components/interfaces/Database/Migrations/Migrations.tsx
+++ b/studio/components/interfaces/Database/Migrations/Migrations.tsx
@@ -33,7 +33,7 @@ const Migrations = () => {
<div className="flex items-center justify-between mb-6">
<div>
<h3 className="mb-1 text-xl text-foreground">Database Migrations</h3>
- <div className="text-sm text-scale-900">
+ <div className="text-sm text-foreground-lighter">
History of migrations that have been run on your database
</div>
</div>
@@ -119,7 +119,9 @@ const Migrations = () => {
<Table.td>{migration.version}</Table.td>
<Table.td
className={
- (migration?.name ?? '').length === 0 ? '!text-scale-900' : ''
+ (migration?.name ?? '').length === 0
+ ? '!text-foreground-lighter'
+ : ''
}
>
{migration?.name ?? 'Name not available'}
diff --git a/studio/components/interfaces/Database/Tables/TableList.tsx b/studio/components/interfaces/Database/Tables/TableList.tsx
index f32fda19684..3de74dded2f 100644
--- a/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -7,6 +7,7 @@ import { useState } from 'react'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import NoSearchResults from 'components/to-be-cleaned/NoSearchResults'
import Table from 'components/to-be-cleaned/Table'
+import AlertError from 'components/ui/AlertError'
import ShimmeringLoader, { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useSchemasQuery } from 'data/database/schemas-query'
import { useTablesQuery } from 'data/tables/tables-query'
@@ -25,7 +26,6 @@ import {
Input,
Listbox,
} from 'ui'
-import AlertError from 'components/ui/AlertError'
interface TableListProps {
onAddTable: () => void
@@ -118,7 +118,7 @@ const TableList = ({
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
@@ -136,7 +136,7 @@ const TableList = ({
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
diff --git a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
index 177ad2f98c2..930caa82de7 100644
--- a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
+++ b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
@@ -470,7 +470,7 @@ const SelectEnabledMode = observer(({}) => {
label="Origin"
>
Origin
- <span className="block text-scale-900">This is a default behaviour</span>
+ <span className="block text-foreground-lighter">This is a default behaviour</span>
</Listbox.Option>
<Listbox.Option
addOnBefore={({ active, selected }: any) => {
@@ -482,7 +482,7 @@ const SelectEnabledMode = observer(({}) => {
label="Replica"
>
Replica
- <span className="block text-scale-900">
+ <span className="block text-foreground-lighter">
Will only fire if the session is in “replica” mode
</span>
</Listbox.Option>
@@ -496,7 +496,7 @@ const SelectEnabledMode = observer(({}) => {
label="Always"
>
Always
- <span className="block text-scale-900">
+ <span className="block text-foreground-lighter">
Will fire regardless of the current replication role
</span>
</Listbox.Option>
@@ -510,7 +510,7 @@ const SelectEnabledMode = observer(({}) => {
label="Disabled"
>
Disabled
- <span className="block text-scale-900">Will not fire</span>
+ <span className="block text-foreground-lighter">Will not fire</span>
</Listbox.Option>
</Listbox>
)
@@ -535,11 +535,11 @@ const SelectOrientation = observer(({}) => {
>
<Listbox.Option value="ROW" label="Row">
Row
- <span className="block text-scale-900">fires once for each processed row</span>
+ <span className="block text-foreground-lighter">fires once for each processed row</span>
</Listbox.Option>
<Listbox.Option value="STATEMENT" label="Statement">
Statement
- <span className="block text-scale-900">fires once for each statement</span>
+ <span className="block text-foreground-lighter">fires once for each statement</span>
</Listbox.Option>
</Listbox>
)
@@ -681,7 +681,7 @@ const ListboxActivation = observer(({}) => {
>
<div className="flex flex-col">
<span>{'before'}</span>
- <span className="block text-scale-900">
+ <span className="block text-foreground-lighter">
Trigger fires before the operation is attempted
</span>
</div>
@@ -698,7 +698,7 @@ const ListboxActivation = observer(({}) => {
>
<div className="flex flex-col">
<span>{'after'}</span>
- <span className="block text-scale-900">
+ <span className="block text-foreground-lighter">
Trigger fires after the operation has completed
</span>
</div>
diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
index 62c0f244d8b..2f4ce037494 100644
--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
@@ -98,7 +98,7 @@ const TriggersList = ({
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
@@ -116,7 +116,7 @@ const TriggersList = ({
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
index 2db821b5986..4df6da43ad1 100644
--- a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
@@ -44,7 +44,7 @@ const Wrappers = () => {
<div className="flex items-center justify-between mb-6">
<div>
<h3 className="mb-1 text-xl text-foreground">Foreign Data Wrappers</h3>
- <div className="text-sm text-scale-900">
+ <div className="text-sm text-foreground-lighter">
Query your data warehouse directly from your database, or third-party APIs using SQL.
</div>
</div>
diff --git a/studio/components/interfaces/Docs/LangSelector.tsx b/studio/components/interfaces/Docs/LangSelector.tsx
index cfd1589f501..e37b2714a53 100644
--- a/studio/components/interfaces/Docs/LangSelector.tsx
+++ b/studio/components/interfaces/Docs/LangSelector.tsx
@@ -44,7 +44,7 @@ const LangSelector = ({
className={`${
selectedLang == 'js'
? 'bg-scale-300 font-medium text-foreground dark:bg-scale-200'
- : 'bg-scale-100 text-scale-900 dark:bg-scale-100'
+ : 'bg-scale-100 text-foreground-lighter dark:bg-scale-100'
} relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}
>
JavaScript
@@ -55,14 +55,14 @@ const LangSelector = ({
className={`${
selectedLang == 'bash'
? 'bg-scale-300 font-medium text-foreground dark:bg-scale-200'
- : 'bg-scale-100 text-scale-900 dark:bg-scale-100'
+ : 'bg-scale-100 text-foreground-lighter dark:bg-scale-100'
} relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}
>
Bash
</button>
{selectedLang == 'bash' && (
<div className="flex">
- <div className="flex items-center gap-2 p-1 pl-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 p-1 pl-2 text-xs text-foreground-lighter">
<IconKey size={12} strokeWidth={1.5} />
<span>Project API key :</span>
</div>
diff --git a/studio/components/interfaces/Docs/Param.tsx b/studio/components/interfaces/Docs/Param.tsx
index 6e047522960..4a97f170848 100644
--- a/studio/components/interfaces/Docs/Param.tsx
+++ b/studio/components/interfaces/Docs/Param.tsx
@@ -46,7 +46,7 @@ const Param = ({
<div className="mb-4 flex items-center justify-between ">
<div className="flex gap-2 items-center">
<div className="flex items-center gap-2">
- <label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">
+ <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">
Column
</label>
@@ -61,7 +61,9 @@ const Param = ({
{format && (
<div className="grid gap-2 mt-6">
<div className="mb-4 flex items-center gap-2">
- <label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">Type</label>
+ <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">
+ Type
+ </label>
<div>
<span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-foreground-light">
<span className="flex items-center gap-2 text-sm">
@@ -72,7 +74,7 @@ const Param = ({
</div>
</div>
<div className="mb-4 flex items-center gap-2">
- <label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">
+ <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">
Format
</label>
<div>
@@ -88,7 +90,7 @@ const Param = ({
)}
{description !== false && (
<div className="grid gap-2 mt-2">
- <label className="font-mono text-xs uppercase text-scale-900">Description</label>
+ <label className="font-mono text-xs uppercase text-foreground-lighter">Description</label>
<Description
content={description?.toString()}
metadata={metadata}
diff --git a/studio/components/interfaces/Docs/ResourceContent.tsx b/studio/components/interfaces/Docs/ResourceContent.tsx
index 9b8cca2f57b..9078375a44d 100644
--- a/studio/components/interfaces/Docs/ResourceContent.tsx
+++ b/studio/components/interfaces/Docs/ResourceContent.tsx
@@ -49,7 +49,7 @@ const ResourceContent = ({
<div className="doc-section">
<article className="text">
- <label className="font-mono text-xs uppercase text-scale-900 inline-block mb-2">
+ <label className="font-mono text-xs uppercase text-foreground-lighter inline-block mb-2">
Description
</label>
<Description
diff --git a/studio/components/interfaces/Docs/RpcContent.tsx b/studio/components/interfaces/Docs/RpcContent.tsx
index e76462ab884..d9b972a328f 100644
--- a/studio/components/interfaces/Docs/RpcContent.tsx
+++ b/studio/components/interfaces/Docs/RpcContent.tsx
@@ -1,7 +1,7 @@
-import Snippets from 'components/interfaces/Docs/Snippets'
import CodeSnippet from 'components/interfaces/Docs/CodeSnippet'
-import Param from 'components/interfaces/Docs/Param'
import Description from 'components/interfaces/Docs/Description'
+import Param from 'components/interfaces/Docs/Param'
+import Snippets from 'components/interfaces/Docs/Snippets'
/**
* TODO: need to support rpc with the same name and different params type
@@ -42,7 +42,7 @@ const RpcContent = ({
<div className="doc-section">
<article className="text ">
- <label className="font-mono text-xs uppercase text-scale-900">Description</label>
+ <label className="font-mono text-xs uppercase text-foreground-lighter">Description</label>
<Description content={summary} metadata={{ rpc: rpcId }} onChange={refreshDocs} />
</article>
<article className="code">
diff --git a/studio/components/interfaces/Functions/CommandRender.tsx b/studio/components/interfaces/Functions/CommandRender.tsx
index 221360b67ef..fede05f8ecf 100644
--- a/studio/components/interfaces/Functions/CommandRender.tsx
+++ b/studio/components/interfaces/Functions/CommandRender.tsx
@@ -1,5 +1,5 @@
-import { IconCheck, IconClipboard } from 'ui'
import { useState } from 'react'
+import { IconCheck, IconClipboard } from 'ui'
const CommandRender = ({ commands }: any) => {
return (
@@ -17,15 +17,15 @@ const Command = ({ item }: any) => {
const [isCopied, setIsCopied] = useState(false)
return (
<div className="space-y-1">
- <span className="font-mono text-sm text-scale-900">{`> ${item.comment}`}</span>
+ <span className="font-mono text-sm text-foreground-lighter">{`> ${item.comment}`}</span>
<div className="flex items-center gap-2">
<div className="flex gap-2 font-mono text-sm font-normal text-foreground">
- <span className="text-scale-900">$</span>
+ <span className="text-foreground-lighter">$</span>
<span>
<span className="">{item.jsx ? item.jsx() : null} </span>
<button
type="button"
- className="text-scale-900 hover:text-foreground"
+ className="text-foreground-lighter hover:text-foreground"
onClick={() => {
function onCopy(value: any) {
setIsCopied(true)
diff --git a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
index fc577d0efac..1db79118c12 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
@@ -44,7 +44,7 @@ const EdgeFunctionSecrets = () => {
<>
<div>
<h3 className="mb-2 text-xl text-foreground">Edge Function Secrets Management</h3>
- <div className="text-sm text-scale-900">
+ <div className="text-sm text-foreground-lighter">
Manage the secrets for your project's edge functions
</div>
</div>
diff --git a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
index 1069ed7c477..feea28fb20f 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
@@ -50,7 +50,7 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =
<p className="font-mono truncate hidden md:inline">{endpoint}</p>
<button
type="button"
- className="text-scale-900 hover:text-foreground transition"
+ className="text-foreground-lighter hover:text-foreground transition"
onClick={(event: any) => {
function onCopy(value: any) {
setIsCopied(true)
diff --git a/studio/components/interfaces/Home/ExampleProject.tsx b/studio/components/interfaces/Home/ExampleProject.tsx
index cd5a98296b6..a741aee4bca 100644
--- a/studio/components/interfaces/Home/ExampleProject.tsx
+++ b/studio/components/interfaces/Home/ExampleProject.tsx
@@ -1,7 +1,7 @@
+import { BASE_PATH } from 'lib/constants'
+import { useTheme } from 'next-themes'
import Link from 'next/link'
import { IconChevronRight } from 'ui'
-import { useTheme } from 'next-themes'
-import { BASE_PATH } from 'lib/constants'
interface ExampleProjectProps {
framework: string
@@ -49,7 +49,7 @@ const ExampleProject = ({ framework, title, description, url }: ExampleProjectPr
absolute
right-4
top-3
- text-scale-900
+ text-foreground-lighter
transition-all
duration-200
group-hover:right-3
diff --git a/studio/components/interfaces/Integrations/IntegrationPanels.tsx b/studio/components/interfaces/Integrations/IntegrationPanels.tsx
index df3117397fc..1f990a9b93c 100644
--- a/studio/components/interfaces/Integrations/IntegrationPanels.tsx
+++ b/studio/components/interfaces/Integrations/IntegrationPanels.tsx
@@ -6,10 +6,9 @@ import { Markdown } from 'components/interfaces/Markdown'
import { Integration, IntegrationProjectConnection } from 'data/integrations/integrations.types'
import { useProjectsQuery } from 'data/projects/projects-query'
import { BASE_PATH } from 'lib/constants'
-import { Badge, Button, IconArrowRight, IconExternalLink, IconGitHub, IconSquare, cn } from 'ui'
import { getIntegrationConfigurationUrl } from 'lib/integration-utils'
import Link from 'next/link'
-import { BooleanFormatter } from 'components/grid/components/formatter'
+import { Badge, Button, cn, IconArrowRight, IconExternalLink, IconGitHub } from 'ui'
const ICON_STROKE_WIDTH = 2
const ICON_SIZE = 14
@@ -173,7 +172,7 @@ const IntegrationConnection = React.forwardRef<HTMLLIElement, IntegrationConnect
<div className="flex gap-2 items-center">
<HandleIcon type={'Supabase'} />
<span className="text-sm">{project?.name}</span>
- <IconArrowRight size={14} className="text-scale-900" strokeWidth={1.5} />
+ <IconArrowRight size={14} className="text-foreground-lighter" strokeWidth={1.5} />
{!connection?.metadata?.framework ? (
<div className="bg-black text-white w-4 h-4 rounded flex items-center justify-center">
<HandleIcon type={type} className={'!w-2.5'} />
@@ -190,10 +189,10 @@ const IntegrationConnection = React.forwardRef<HTMLLIElement, IntegrationConnect
</div>
<div className="flex flex-col gap-0">
- <span className="text-scale-900 text-xs">
+ <span className="text-foreground-lighter text-xs">
Connected {dayjs(connection?.inserted_at).fromNow()}
</span>
- <span className="text-scale-900 text-xs">
+ <span className="text-foreground-lighter text-xs">
Added by {connection?.added_by?.primary_email}
</span>
</div>
@@ -224,7 +223,7 @@ const IntegrationConnectionOption = React.forwardRef<HTMLLIElement, IntegrationC
<div className="flex gap-2 items-center">
<HandleIcon type={'Supabase'} />
<span className="text-sm">{project?.name}</span>
- <IconArrowRight size={14} className="text-scale-900" strokeWidth={1.5} />
+ <IconArrowRight size={14} className="text-foreground-lighter" strokeWidth={1.5} />
<HandleIcon type={type} />
<span className="text-sm">{connection.metadata.name}</span>
</div>
diff --git a/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx
index 972f3a5b88f..9b9be26b446 100644
--- a/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx
@@ -231,7 +231,9 @@ const TaxID = () => {
</div>
) : (
<div>
- <p className="flex items-center space-x-2 text-sm text-scale-900">No tax IDs</p>
+ <p className="flex items-center space-x-2 text-sm text-foreground-lighter">
+ No tax IDs
+ </p>
</div>
)}
{canUpdateTaxIds && (
diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx
index b714fe9b0e4..04d265b4ad5 100644
--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx
+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx
@@ -200,7 +200,7 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp
</Modal.Content>
<div className="flex items-center justify-between border-t px-4 py-4">
- <p className="text-xs text-scale-900">
+ <p className="text-xs text-foreground-lighter">
The unused amount for the remaining of your billing cycle will be refunded as credits
</p>
<div className="flex items-center space-x-2">
diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx
index f72a8f333c6..cf1ca436d83 100644
--- a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx
+++ b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx
@@ -232,7 +232,7 @@ const TaxID = () => {
</div>
) : (
<div>
- <p className="flex items-center space-x-2 text-sm text-scale-900">
+ <p className="flex items-center space-x-2 text-sm text-foreground-lighter">
No tax IDs
</p>
</div>
diff --git a/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx b/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx
index 18e6d7b308d..4df0fb11ea4 100644
--- a/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx
+++ b/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx
@@ -66,7 +66,7 @@ const DeleteOrganizationButton = () => {
header={
<div className="flex items-baseline gap-2">
<h5 className="text-sm text-foreground">Delete organization</h5>
- <span className="text-xs text-scale-900">Are you sure?</span>
+ <span className="text-xs text-foreground-lighter">Are you sure?</span>
</div>
}
>
@@ -79,7 +79,7 @@ const DeleteOrganizationButton = () => {
{() => (
<div className="space-y-4 py-3">
<Modal.Content>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
This action <span className="text-foreground">cannot</span> be undone. This will
permanently delete the <span className="text-foreground">{orgName}</span>{' '}
organization and remove all of its projects.
diff --git a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx
index fd695697de0..fca792ca46f 100644
--- a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx
+++ b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx
@@ -31,7 +31,7 @@ Check the details below before proceeding
/>
</SidePanel.Content>
<SidePanel.Content className="flex flex-col gap-2">
- <label className="text-sm text-scale-900">GitHub scope / organization</label>
+ <label className="text-sm text-foreground-lighter">GitHub scope / organization</label>
<div className="flex gap-3 w-full">
<Select icon={<IconGitHub />} className="w-full">
<Select.Option value="mildtomato">MildTomato</Select.Option>
diff --git a/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx b/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
index 76e2629967a..3ed13fc6e20 100644
--- a/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
+++ b/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
@@ -183,7 +183,9 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => {
Cancel
</Button>
<div className="flex items-center space-x-3">
- <p className="text-xs text-scale-900">You can rename your organization later</p>
+ <p className="text-xs text-foreground-lighter">
+ You can rename your organization later
+ </p>
<Button
htmlType="submit"
type="primary"
diff --git a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
index b83552359e9..c41b258a3b6 100644
--- a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
@@ -173,7 +173,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {
<IconUser size={20} strokeWidth={2} />
</span>
) : isEmailUser ? (
- <div className="w-[40px] h-[40px] bg-scale-300 border border-scale-400 rounded-full text-scale-900 flex items-center justify-center">
+ <div className="w-[40px] h-[40px] bg-scale-300 border border-scale-400 rounded-full text-foreground-lighter flex items-center justify-center">
<IconUser strokeWidth={1.5} />
</div>
) : (
diff --git a/studio/components/interfaces/Reports/Reports.tsx b/studio/components/interfaces/Reports/Reports.tsx
index 38f667dd05d..06b5c4e2dd6 100644
--- a/studio/components/interfaces/Reports/Reports.tsx
+++ b/studio/components/interfaces/Reports/Reports.tsx
@@ -320,7 +320,7 @@ const Reports = () => {
<span className="text-sm text-foreground-light">
{dayjs(startDate).format('MMM D, YYYY')}
</span>
- <span className="text-scale-900">
+ <span className="text-foreground-lighter">
<IconArrowRight size={12} />
</span>
<span className="text-sm text-foreground-light">
diff --git a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
index a0e61126038..3451350ac98 100644
--- a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
+++ b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
@@ -247,7 +247,7 @@ const RouteTdContent = (datum: RouteTdContentProps) => (
<div className=" truncate max-w-sm lg:max-w-lg">
<TextFormatter className="text-foreground-light" value={datum.path} />
<TextFormatter
- className="max-w-sm text-scale-900 truncate "
+ className="max-w-sm text-foreground-lighter truncate "
value={decodeURIComponent(datum.search || '')}
/>
</div>
@@ -264,7 +264,7 @@ const RouteTdContent = (datum: RouteTdContentProps) => (
/>
</pre>
) : (
- <p className="text-xs text-scale-900">No query parameters in this request</p>
+ <p className="text-xs text-foreground-lighter">No query parameters in this request</p>
)}
</Collapsible.Content>
</Collapsible>
diff --git a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
index 76c7d599390..112341de0f5 100644
--- a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
+++ b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
@@ -67,7 +67,7 @@ export const TopCacheMissesRenderer = (
<div className=" truncate max-w-sm lg:max-w-lg">
<TextFormatter className="text-foreground-light" value={datum.path} />
<TextFormatter
- className="max-w-sm text-scale-900 truncate "
+ className="max-w-sm text-foreground-lighter truncate "
value={decodeURIComponent(datum.search || '')}
/>
</div>
diff --git a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx
index a1a60f82d31..3a0b9490581 100644
--- a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx
+++ b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx
@@ -223,7 +223,7 @@ export const PgbouncerConfig = ({ projectRef, bouncerInfo, connectionInfo }: Con
errorMessage="You must select one of the two options"
/>
<div className="!mt-1 flex" style={{ marginLeft: 'calc(33% + 0.5rem)' }}>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Specify when a connection can be returned to the pool. To find out the most
suitable mode for your use case,{' '}
<a
diff --git a/studio/components/interfaces/Settings/Logs/LogSelection.tsx b/studio/components/interfaces/Settings/Logs/LogSelection.tsx
index 1dee36000f9..9b2d0e49faf 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelection.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelection.tsx
@@ -3,12 +3,14 @@ import { Button, IconX } from 'ui'
import CopyButton from 'components/ui/CopyButton'
import Connecting from 'components/ui/Loading/Loading'
import useSingleLog from 'hooks/analytics/useSingleLog'
+import { useMemo } from 'react'
import {
- LogsEndpointParams,
isDefaultLogPreviewFormat,
isUnixMicro,
+ LogsEndpointParams,
unixMicroToIsoTimestamp,
} from '.'
+import { LogData, QueryType } from './Logs.types'
import AuthSelectionRenderer from './LogSelectionRenderers/AuthSelectionRenderer'
import DatabaseApiSelectionRender from './LogSelectionRenderers/DatabaseApiSelectionRender'
import DatabasePostgresSelectionRender from './LogSelectionRenderers/DatabasePostgresSelectionRender'
@@ -16,8 +18,6 @@ import DefaultExplorerSelectionRenderer from './LogSelectionRenderers/DefaultExp
import DefaultPreviewSelectionRenderer from './LogSelectionRenderers/DefaultPreviewSelectionRenderer'
import FunctionInvocationSelectionRender from './LogSelectionRenderers/FunctionInvocationSelectionRender'
import FunctionLogsSelectionRender from './LogSelectionRenderers/FunctionLogsSelectionRender'
-import { LogData, QueryType } from './Logs.types'
-import { useMemo } from 'react'
export interface LogSelectionProps {
log: LogData | null
@@ -147,7 +147,7 @@ ${JSON.stringify(fullLog.metadata, null, 2)}
</div>
<div className="flex flex-col gap-1">
<h3 className="text-sm text-foreground">Select an Event</h3>
- <p className="text-xs text-scale-900">
+ <p className="text-xs text-foreground-lighter">
Select an Event to view the code snippet (pretty view) or complete JSON payload (raw
view).
</p>
@@ -165,7 +165,7 @@ ${JSON.stringify(fullLog.metadata, null, 2)}
className="cursor-pointer transition hover:text-foreground h-8 w-8 px-0 py-0 flex items-center justify-center"
onClick={onClose}
>
- <IconX size={14} strokeWidth={2} className="text-scale-900" />
+ <IconX size={14} strokeWidth={2} className="text-foreground-lighter" />
</Button>
</div>
<div className="h-px w-full bg-scale-600 rounded " />
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx
index 6b5b877a236..215dbc3a096 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx
@@ -12,7 +12,7 @@ const AuthSelectionRenderer = ({ log }: { log: PreviewLogData }) => {
return (
<div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding} space-y-6`}>
<div className="flex flex-col gap-3">
- <h3 className="text-scale-900 text-sm">Event Message</h3>
+ <h3 className="text-foreground-lighter text-sm">Event Message</h3>
<div className="text-xs text-wrap font-mono text-foreground whitespace-pre-wrap overflow-x-auto">
{log.metadata?.msg || log.event_message}
</div>
@@ -41,7 +41,7 @@ const AuthSelectionRenderer = ({ log }: { log: PreviewLogData }) => {
)}
<div className="flex flex-col gap-3">
- <h3 className="text-scale-900 text-sm">Metadata</h3>
+ <h3 className="text-foreground-lighter text-sm">Metadata</h3>
<pre
className=" className={`text-foreground text-sm col-span-8 overflow-x-auto text-xs font-mono`}"
dangerouslySetInnerHTML={{
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx
index fa8b9b0e057..ff4cf03666f 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx
@@ -1,5 +1,4 @@
import { Alert } from 'ui'
-import React from 'react'
import { LOGS_TAILWIND_CLASSES } from '../Logs.constants'
import LogsDivider from '../Logs.Divider'
import {
@@ -18,7 +17,7 @@ const DatabasePostgresSelectionRender = ({ log }: any) => {
return (
<>
<div className={LOGS_TAILWIND_CLASSES.log_selection_x_padding}>
- <span className="col-span-4 text-sm text-scale-900">Event message</span>
+ <span className="col-span-4 text-sm text-foreground-lighter">Event message</span>
<div className="text-wrap mt-2 overflow-x-auto whitespace-pre-wrap font-mono text-xs text-foreground">
{log.event_message}
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx
index 326697f8b06..f56d2123791 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx
@@ -13,7 +13,7 @@ const DefaultExplorerSelectionRenderer = ({ log }: any) => {
}) => {
return (
<div className="grid grid-cols-12">
- <span className="text-scale-900 text-sm col-span-4">{label}</span>
+ <span className="text-foreground-lighter text-sm col-span-4">{label}</span>
<span
className={`text-foreground text-sm col-span-8 overflow-x-auto ${
code && 'text-xs font-mono'
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx
index 8ba1b80e2a2..a53f2c46718 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx
@@ -5,14 +5,14 @@ import { jsonSyntaxHighlight, SelectionDetailedTimestampRow } from '../LogsForma
const DefaultPreviewSelectionRenderer = ({ log }: { log: PreviewLogData }) => (
<div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding} space-y-6`}>
<div className="flex flex-col gap-3">
- <h3 className="text-scale-900 text-sm">Event Message</h3>
+ <h3 className="text-foreground-lighter text-sm">Event Message</h3>
<div className="text-xs text-wrap font-mono text-foreground whitespace-pre-wrap overflow-x-auto">
{log.event_message}
</div>
</div>
<SelectionDetailedTimestampRow value={log.timestamp} />
<div className="flex flex-col gap-3">
- <h3 className="text-scale-900 text-sm">Metadata</h3>
+ <h3 className="text-foreground-lighter text-sm">Metadata</h3>
<pre
className=" className={`text-foreground text-sm col-span-8 overflow-x-auto text-xs font-mono`}"
dangerouslySetInnerHTML={{
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx
index 96067ddfe57..ca1538bdede 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx
@@ -1,4 +1,3 @@
-import dayjs from 'dayjs'
import { LOGS_TAILWIND_CLASSES } from '../Logs.constants'
import {
jsonSyntaxHighlight,
@@ -13,7 +12,7 @@ const FunctionLogsSelectionRender = ({ log }: any) => {
return (
<>
<div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>
- <span className="text-scale-900 text-sm col-span-4">Event message</span>
+ <span className="text-foreground-lighter text-sm col-span-4">Event message</span>
<div className="text-xs text-wrap font-mono text-foreground mt-2 whitespace-pre-wrap overflow-x-auto">
{log.event_message}
</div>
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 87f840ec81c..dd7da8b40f3 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -257,7 +257,9 @@ const LogTable = ({
</div>
<div className="flex flex-col gap-1 px-5">
<h3 className="text-lg text-foreground">No results</h3>
- <p className="text-sm text-scale-900">Try another search, or adjusting the filters</p>
+ <p className="text-sm text-foreground-lighter">
+ Try another search, or adjusting the filters
+ </p>
</div>
</div>
)
diff --git a/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx b/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
index df9c3bc50a6..b26a2cfd3a3 100644
--- a/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
@@ -4,11 +4,11 @@
* for http response codes
*/
-import { IconAlertCircle, IconInfo } from 'ui'
+import CopyButton from 'components/ui/CopyButton'
import dayjs from 'dayjs'
import React from 'react'
+import { IconAlertCircle, IconInfo } from 'ui'
import { isUnixMicro, unixMicroToIsoTimestamp } from '.'
-import CopyButton from 'components/ui/CopyButton'
export const RowLayout: React.FC = ({ children }) => (
<div className="flex h-full w-full items-center gap-4">{children}</div>
@@ -31,7 +31,9 @@ export const SelectionDetailedRow = ({
}) => {
return (
<div className="grid grid-cols-12 group">
- <span className="text-scale-900 text-sm col-span-4 whitespace-pre-wrap">{label}</span>
+ <span className="text-foreground-lighter text-sm col-span-4 whitespace-pre-wrap">
+ {label}
+ </span>
<span className="text-foreground text-sm col-span-6 whitespace-pre-wrap break-all">
{valueRender ?? value}
</span>
@@ -76,7 +78,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {
py-1 text-center dark:bg-scale-400
"
>
- <label className="block font-mono text-sm text-scale-900">{value}</label>
+ <label className="block font-mono text-sm text-foreground-lighter">{value}</label>
</div>
</div>
)
@@ -124,7 +126,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {
"
>
- <label className="block font-mono text-sm text-scale-900">{value}</label>
+ <label className="block font-mono text-sm text-foreground-lighter">{value}</label>
</div>
</div>
)
@@ -214,7 +216,7 @@ export const SeverityFormatter = ({
return (
<Layout>
<div className="relative rounded px-2 py-1 text-center h-6 flex justify-center items-center bg-scale-300">
- <label className="block font-mono text-sm text-scale-900">{text}</label>
+ <label className="block font-mono text-sm text-foreground-lighter">{text}</label>
</div>
</Layout>
)
@@ -254,7 +256,11 @@ export const timestampLocalFormatter = (value: string | number) => {
*/
export const HeaderFormmater = ({ value }: any) => {
- return <div className="flex h-full items-center text-xs font-normal text-scale-900">{value}</div>
+ return (
+ <div className="flex h-full items-center text-xs font-normal text-foreground-lighter">
+ {value}
+ </div>
+ )
}
/*
diff --git a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
index 4ef29d0bdf6..8f804576745 100644
--- a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
+++ b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
@@ -117,7 +117,7 @@ const PreviewFilterPanel = ({
handleInputSearch(e.target.value)
}}
icon={
- <div className="text-scale-900">
+ <div className="text-foreground-lighter">
<IconSearch size={14} />
</div>
}
diff --git a/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx b/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx
index a1a0a2bfe03..ecf776ea888 100644
--- a/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx
+++ b/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx
@@ -32,7 +32,7 @@ const PasswordCondition = ({ title, isMet }: PasswordConditionProps) => {
<div
className={
'flex items-center gap-1 space-x-1.5 transition duration-200 ' +
- (isMet ? 'text-foreground-light' : 'text-scale-900')
+ (isMet ? 'text-foreground-light' : 'text-foreground-lighter')
}
>
{isMet ? (
diff --git a/studio/components/interfaces/SignIn/SignInForm.tsx b/studio/components/interfaces/SignIn/SignInForm.tsx
index fcfb9e20a42..508128af482 100644
--- a/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -136,7 +136,9 @@ const SignInForm = () => {
{/* positioned using absolute instead of labelOptional prop so tabbing between inputs works smoothly */}
<Link href="/forgot-password">
- <a className="absolute top-0 right-0 text-sm text-scale-900">Forgot Password?</a>
+ <a className="absolute top-0 right-0 text-sm text-foreground-lighter">
+ Forgot Password?
+ </a>
</Link>
</div>
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
index de7db7173ac..159739e66db 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
@@ -159,7 +159,7 @@ const ColumnType = ({
>
<div className="flex items-center space-x-4">
<span className="text-foreground">{option.name}</span>
- <span className="text-scale-900">{option.description}</span>
+ <span className="text-foreground-lighter">{option.description}</span>
</div>
</Listbox.Option>
))}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
index 53bf92a8435..e632e8072bd 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
@@ -132,7 +132,7 @@ const InputWithSuggestions = ({
onClick={() => onSelectSuggestion(suggestion)}
>
<div>{suggestion.name}</div>
- <div className="text-xs text-scale-900">{suggestion.description}</div>
+ <div className="text-xs text-foreground-lighter">{suggestion.description}</div>
</DropdownMenuItem_Shadcn_>
))}
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index c55d85665ac..60994455d69 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@ -263,7 +263,7 @@ const ForeignKeySelector = ({
<div className="flex items-center gap-2">
{/* For aria searching to target the table name instead of schema */}
<span className="hidden">{table.name}</span>
- <span className="text-scale-900">{table.schema}</span>
+ <span className="text-foreground-lighter">{table.schema}</span>
<span className="text-foreground">{table.name}</span>
</div>
</Listbox.Option>
@@ -309,7 +309,7 @@ const ForeignKeySelector = ({
<Listbox.Option key={column.id} value={column.id} label={column.name}>
<div className="flex items-center gap-2">
<span className="text-foreground">{column.name}</span>
- <span className="text-scale-900">{column.format}</span>
+ <span className="text-foreground-lighter">{column.format}</span>
</div>
</Listbox.Option>
))}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 2bc9d7c141b..a74758f4a64 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -80,15 +80,17 @@ const InputField = ({
value={field.value ?? ''}
descriptionText={
<>
- {field.comment && <span className="text-sm text-scale-900">{field.comment} </span>}
- <span className="text-sm text-scale-900">
+ {field.comment && (
+ <span className="text-sm text-foreground-lighter">{field.comment} </span>
+ )}
+ <span className="text-sm text-foreground-lighter">
{field.comment && '('}Has a foreign key relation to
</span>
- <span className="text-code font-mono text-xs text-scale-900">
+ <span className="text-code font-mono text-xs text-foreground-lighter">
{field.foreignKey.target_table_schema}.{field.foreignKey.target_table_name}.
{field.foreignKey.target_column_name}
</span>
- {field.comment && <span className="text-sm text-scale-900">{`)`}</span>}
+ {field.comment && <span className="text-sm text-foreground-lighter">{`)`}</span>}
</>
}
labelOptional={field.format}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx
index f9742c5a596..178f7379dc7 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx
@@ -1,23 +1,23 @@
+import type { PostgresTable } from '@supabase/postgres-meta'
+import { Dictionary } from 'components/grid'
+import { isEmpty, isUndefined, noop, partition } from 'lodash'
import { useEffect, useMemo, useState } from 'react'
-import { isUndefined, partition, isEmpty, noop } from 'lodash'
import { SidePanel } from 'ui'
-import { Dictionary } from 'components/grid'
-import type { PostgresTable } from '@supabase/postgres-meta'
-import { useForeignKeyConstraintsQuery } from 'data/database/foreign-key-constraints-query'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
+import { useForeignKeyConstraintsQuery } from 'data/database/foreign-key-constraints-query'
import ActionBar from '../ActionBar'
+import ForeignRowSelector from './ForeignRowSelector/ForeignRowSelector'
import HeaderTitle from './HeaderTitle'
import InputField from './InputField'
import JsonEdit from './JsonEditor'
-import ForeignRowSelector from './ForeignRowSelector/ForeignRowSelector'
+import { JsonEditValue, RowField } from './RowEditor.types'
import {
generateRowFields,
- validateFields,
generateRowObjectFromFields,
generateUpdateRowPayload,
+ validateFields,
} from './RowEditor.utils'
-import { JsonEditValue, RowField } from './RowEditor.types'
export interface RowEditorProps {
row?: Dictionary<any>
@@ -170,7 +170,7 @@ const RowEditor = ({
<div className="space-y-10 py-6">
<div>
<h3 className="text-base text-foreground">Optional Fields</h3>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
These are columns that do not need any value
</p>
</div>
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx
index 1bd8260c137..402030b6ad4 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx
@@ -14,7 +14,7 @@ const SpreadSheetTextInput = ({ input, onInputChange }: SpreadSheetTextInputProp
include any special characters other than hyphens (<code>-</code>) or underscores (
<code>_</code>).
</p>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Tip: Datetime columns should be formatted as YYYY-MM-DD HH:mm:ss
</p>
</div>
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index ad2995ae07d..be2b15c43b5 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -194,10 +194,10 @@ const ColumnManagement = ({
{/* Drag handle */}
{isNewRecord && <div className="w-[5%]" />}
<div className="w-[25%] flex items-center space-x-2">
- <h5 className="text-xs text-scale-900">Name</h5>
+ <h5 className="text-xs text-foreground-lighter">Name</h5>
<Tooltip.Root delayDuration={0}>
<Tooltip.Trigger>
- <h5 className="text-xs text-scale-900">
+ <h5 className="text-xs text-foreground-lighter">
<IconHelpCircle size={15} strokeWidth={1.5} />
</h5>
</Tooltip.Trigger>
@@ -220,14 +220,14 @@ const ColumnManagement = ({
</Tooltip.Root>
</div>
<div className="w-[25%]">
- <h5 className="text-xs text-scale-900">Type</h5>
+ <h5 className="text-xs text-foreground-lighter">Type</h5>
</div>
<div className={`${isNewRecord ? 'w-[25%]' : 'w-[30%]'} flex items-center space-x-2`}>
- <h5 className="text-xs text-scale-900">Default Value</h5>
+ <h5 className="text-xs text-foreground-lighter">Default Value</h5>
<Tooltip.Root delayDuration={0}>
<Tooltip.Trigger>
- <h5 className="text-xs text-scale-900">
+ <h5 className="text-xs text-foreground-lighter">
<IconHelpCircle size={15} strokeWidth={1.5} />
</h5>
</Tooltip.Trigger>
@@ -250,7 +250,7 @@ const ColumnManagement = ({
</Tooltip.Root>
</div>
<div className="w-[10%]">
- <h5 className="text-xs text-scale-900">Primary</h5>
+ <h5 className="text-xs text-foreground-lighter">Primary</h5>
</div>
{/* Empty space */}
<div className={`${hasImportContent ? 'w-[10%]' : 'w-0'}`} />
diff --git a/studio/components/layouts/AccountLayout/SidebarItem.tsx b/studio/components/layouts/AccountLayout/SidebarItem.tsx
index 53f9d4b9985..402f94bf075 100644
--- a/studio/components/layouts/AccountLayout/SidebarItem.tsx
+++ b/studio/components/layouts/AccountLayout/SidebarItem.tsx
@@ -54,7 +54,7 @@ const SidebarItem = ({
onClick={onClick}
>
{isExternal && (
- <span className="truncate text-sm text-scale-900 transition group-hover:text-foreground-light">
+ <span className="truncate text-sm text-foreground-lighter transition group-hover:text-foreground-light">
<IconArrowUpRight size="tiny" />
</span>
)}
diff --git a/studio/components/layouts/AccountLayout/WithSidebar.tsx b/studio/components/layouts/AccountLayout/WithSidebar.tsx
index 773c7123d38..385e15b473c 100644
--- a/studio/components/layouts/AccountLayout/WithSidebar.tsx
+++ b/studio/components/layouts/AccountLayout/WithSidebar.tsx
@@ -210,7 +210,7 @@ const SidebarLinkItem = ({
<a className="block" target={isExternal ? '_blank' : '_self'}>
<span className="group flex max-w-full cursor-pointer items-center space-x-2 border-scale-500 py-1 font-normal outline-none ring-scale-1200 focus-visible:z-10 focus-visible:ring-1 group-hover:border-scale-900">
{isExternal && (
- <span className="truncate text-sm text-scale-900 transition group-hover:text-foreground-light">
+ <span className="truncate text-sm text-foreground-lighter transition group-hover:text-foreground-light">
<IconArrowUpRight size={'tiny'} />
</span>
)}
diff --git a/studio/components/layouts/BillingLayout.tsx b/studio/components/layouts/BillingLayout.tsx
index 7f85abb31eb..4ed3bdf85e5 100644
--- a/studio/components/layouts/BillingLayout.tsx
+++ b/studio/components/layouts/BillingLayout.tsx
@@ -17,7 +17,7 @@ const BillingLayout = ({ children }: PropsWithChildren<BillingLayoutProps>) => {
{/* Header */}
<div className="flex items-center space-x-4 border-b py-4 px-5 dark:border-dark">
<Link href={`/project/${selectedProject?.ref}/settings/billing/subscription`} passHref>
- <a className="text-scale-900 transition-colors hover:text-foreground">
+ <a className="text-foreground-lighter transition-colors hover:text-foreground">
<IconX size={16} strokeWidth={1.5} />
</a>
</Link>
diff --git a/studio/components/layouts/ProjectLayout/BuildingState.tsx b/studio/components/layouts/ProjectLayout/BuildingState.tsx
index e5ebfd0d663..2000ecb22ed 100644
--- a/studio/components/layouts/ProjectLayout/BuildingState.tsx
+++ b/studio/components/layouts/ProjectLayout/BuildingState.tsx
@@ -164,7 +164,7 @@ const ChecklistItem = ({ description }: any) => {
return (
<li className="my-3 flex flex-wrap space-x-3">
<div className="mt-0.5">
- <IconArrowRight className="text-scale-900" size="tiny" />
+ <IconArrowRight className="text-foreground-lighter" size="tiny" />
</div>
<div className="flex-1">{description}</div>
</li>
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index be10c7d934e..1075bd954ef 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -2,7 +2,6 @@ import { useState } from 'react'
import {
Button,
IconMessageCircle,
- Popover,
PopoverContent_Shadcn_,
PopoverTrigger_Shadcn_,
Popover_Shadcn_,
@@ -44,7 +43,7 @@ const FeedbackDropdown = ({ alt = false }: FeedbackDropdownProps) => {
type="default"
icon={
alt ? null : (
- <IconMessageCircle size={16} strokeWidth={1.5} className="text-scale-900" />
+ <IconMessageCircle size={16} strokeWidth={1.5} className="text-foreground-lighter" />
)
}
>
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx
index e1818ca487b..557f9d00f83 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx
@@ -40,7 +40,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {
<IconHelpCircle
size={alt ? 18 : 16}
strokeWidth={1.5}
- className={alt ? 'text-foreground-light' : 'text-scale-900'}
+ className={alt ? 'text-foreground-light' : 'text-foreground-lighter'}
/>
}
>
@@ -68,7 +68,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {
<PopoverContent_Shadcn_ className="w-[400px] space-y-4 p-0 py-5" align="end" side="bottom">
<div className="mb-5 space-y-4 px-5">
<h5 className="text-foreground">Need help with your project?</h5>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
For issues with your project hosted on supabase.com, or other inquiries about our hosted
services.
</p>
@@ -95,7 +95,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {
</Button>
</Link>
</div>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Expected response time is based on your billing plan. Pro and Pay as You Go plans are
prioritized.
</p>
@@ -112,7 +112,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {
<div className="mb-4 px-5">
<h5 className={'mb-2'}>Reach out to the community</h5>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
For other support, including questions on our client libraries, advice, or best
practices.
</p>
diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
index ef19bc5ae61..e77376c4fc9 100644
--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
@@ -1,12 +1,12 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import { useParams } from 'common'
-import { isUndefined } from 'lodash'
-import Link from 'next/link'
-import { useRouter } from 'next/router'
-import { useTheme } from 'next-themes'
import { useFlag } from 'hooks'
import { IS_PLATFORM } from 'lib/constants'
import { detectOS } from 'lib/helpers'
+import { isUndefined } from 'lodash'
+import { useTheme } from 'next-themes'
+import Link from 'next/link'
+import { useRouter } from 'next/router'
import {
Button,
DropdownMenuContent_Shadcn_,
@@ -114,7 +114,7 @@ const NavigationBar = () => {
className="border-none"
>
<div className="py-1">
- <IconSearch size={18} strokeWidth={2} className="text-scale-900" />
+ <IconSearch size={18} strokeWidth={2} className="text-foreground-lighter" />
</div>
</Button>
</Tooltip.Trigger>
@@ -142,7 +142,7 @@ const NavigationBar = () => {
<DropdownMenuTrigger_Shadcn_>
<Button asChild type="text" size="tiny">
<span className="py-1 h-10 border-none">
- <IconUser size={18} strokeWidth={2} className="text-scale-900" />
+ <IconUser size={18} strokeWidth={2} className="text-foreground-lighter" />
</span>
</Button>
</DropdownMenuTrigger_Shadcn_>
diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx
index 180f974d3ba..568a361d139 100644
--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx
+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx
@@ -26,7 +26,7 @@ const NavigationIconButton = ({ route, isActive = false }: NavigationIconButtonP
'transition-colors duration-200',
'flex items-center justify-center h-10 w-10 rounded', // Layout
'bg-scale-200 hover:bg-scale-500', // Light mode
- 'text-scale-900 hover:text-foreground ', // Dark mode
+ 'text-foreground-lighter hover:text-foreground ', // Dark mode
`${isActive ? 'bg-scale-500 shadow-sm text-foreground' : ''}`,
].join(' ')}
>
diff --git a/studio/components/layouts/ProjectLayout/PausingState.tsx b/studio/components/layouts/ProjectLayout/PausingState.tsx
index dad4d3ccf6d..eaea7241326 100644
--- a/studio/components/layouts/ProjectLayout/PausingState.tsx
+++ b/studio/components/layouts/ProjectLayout/PausingState.tsx
@@ -59,7 +59,7 @@ const PausingState = ({ project }: PausingStateProps) => {
<div className="absolute flex h-full w-full items-center justify-center">
<IconLoader className="animate-spin" size={20} strokeWidth={2} />
</div>
- <IconCircle className="text-scale-900" size={50} strokeWidth={1.5} />
+ <IconCircle className="text-foreground-lighter" size={50} strokeWidth={1.5} />
</div>
<p className="text-center">Pausing {project.name}</p>
<p className="mt-4 text-center text-sm text-foreground-light">
diff --git a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx
index fbd46cd3ee0..3050d8491c3 100644
--- a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx
+++ b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx
@@ -121,7 +121,7 @@ const UpgradingState = () => {
<div className="absolute flex items-center justify-center w-full h-full">
<IconSettings className="animate-spin" size={20} strokeWidth={2} />
</div>
- <IconCircle className="text-scale-900" size={50} strokeWidth={1.5} />
+ <IconCircle className="text-foreground-lighter" size={50} strokeWidth={1.5} />
</div>
<div className="space-y-2">
<p className="text-center">Upgrading in progress</p>
diff --git a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
index 783a57de036..e5c54792764 100644
--- a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
+++ b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
@@ -202,7 +202,7 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)
}
return (
- <div className="group [div&>button[data-state='open']>span]:text-scale-900 flex items-center">
+ <div className="group [div&>button[data-state='open']>span]:text-foreground-lighter flex items-center">
{IS_PLATFORM ? (
<DropdownMenu_Shadcn_>
<DropdownMenuTrigger_Shadcn_ asChild>
diff --git a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
index 3437271cc49..ebac3e7a9fa 100644
--- a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
+++ b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
@@ -3,7 +3,7 @@ import { useParams } from 'common'
import { observer } from 'mobx-react-lite'
import { useRouter } from 'next/router'
import { useMemo, useState } from 'react'
-import { Button, IconPlus, IconSearch, IconX, Input, Menu, cn } from 'ui'
+import { Button, cn, IconPlus, IconSearch, IconX, Input, Menu } from 'ui'
import { untitledSnippetTitle } from 'components/interfaces/SQLEditor/SQLEditor.constants'
import { createSqlSnippetSkeleton } from 'components/interfaces/SQLEditor/SQLEditor.utils'
@@ -173,7 +173,7 @@ const SideBarContent = observer(() => {
'w-4',
'h-4',
'cursor-pointer',
- isFavoritesFilterOpen ? 'text-foreground' : 'text-scale-900'
+ isFavoritesFilterOpen ? 'text-foreground' : 'text-foreground-lighter'
)}
onClick={() => {
setFavoritesFilterString('')
@@ -240,7 +240,9 @@ const SideBarContent = observer(() => {
'w-4',
'h-4',
'cursor-pointer',
- isProjectSnippetsFilterOpen ? 'text-foreground' : 'text-scale-900'
+ isProjectSnippetsFilterOpen
+ ? 'text-foreground'
+ : 'text-foreground-lighter'
)}
onClick={() => {
setProjectSnippetsFilterString('')
@@ -306,7 +308,7 @@ const SideBarContent = observer(() => {
'w-4',
'h-4',
'cursor-pointer',
- isPersonalSnippetsFilterOpen ? 'text-foreground' : 'text-scale-900'
+ isPersonalSnippetsFilterOpen ? 'text-foreground' : 'text-foreground-lighter'
)}
onClick={() => {
setPersonalSnippetsFilterString('')
diff --git a/studio/components/layouts/SignInLayout/SignInLayout.tsx b/studio/components/layouts/SignInLayout/SignInLayout.tsx
index 7cb91fba27c..1ef3037277a 100644
--- a/studio/components/layouts/SignInLayout/SignInLayout.tsx
+++ b/studio/components/layouts/SignInLayout/SignInLayout.tsx
@@ -141,7 +141,7 @@ const SignInLayout = ({
{showDisclaimer && (
<div className="sm:text-center">
- <p className="text-xs text-scale-900 sm:mx-auto sm:max-w-sm">
+ <p className="text-xs text-foreground-lighter sm:mx-auto sm:max-w-sm">
By continuing, you agree to Supabase's{' '}
<Link href="https://supabase.com/terms">
<a className="underline hover:text-foreground-light">Terms of Service</a>
diff --git a/studio/components/layouts/StorageLayout/StorageMenu.tsx b/studio/components/layouts/StorageLayout/StorageMenu.tsx
index df26a08c25b..13628ad3409 100644
--- a/studio/components/layouts/StorageLayout/StorageMenu.tsx
+++ b/studio/components/layouts/StorageLayout/StorageMenu.tsx
@@ -44,7 +44,7 @@ const StorageMenu = () => {
block
type="default"
icon={
- <div className="text-scale-900">
+ <div className="text-foreground-lighter">
<IconEdit size={14} />
</div>
}
diff --git a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index 1e1e742f32d..e1bb5270c15 100644
--- a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -203,7 +203,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
{entity.type === ENTITY_TYPE.TABLE && isActive && !isLocked && (
<DropdownMenu_Shadcn_>
<DropdownMenuTrigger_Shadcn_>
- <div className="text-scale-900 transition-colors hover:text-foreground">
+ <div className="text-foreground-lighter transition-colors hover:text-foreground">
<IconChevronDown size={14} strokeWidth={2} />
</div>
</DropdownMenuTrigger_Shadcn_>
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 6a6ad807406..a092a8c4c33 100644
--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -232,7 +232,7 @@ const TableEditorMenu = () => {
disabled={!canCreateTables}
size="tiny"
icon={
- <div className="text-scale-900">
+ <div className="text-foreground-lighter">
<IconEdit size={14} strokeWidth={1.5} />
</div>
}
@@ -283,9 +283,13 @@ const TableEditorMenu = () => {
className="table-editor-search border-none"
icon={
isSearching ? (
- <IconLoader className="animate-spin text-scale-900" size={12} strokeWidth={1.5} />
+ <IconLoader
+ className="animate-spin text-foreground-lighter"
+ size={12}
+ strokeWidth={1.5}
+ />
) : (
- <IconSearch className="text-scale-900" size={12} strokeWidth={1.5} />
+ <IconSearch className="text-foreground-lighter" size={12} strokeWidth={1.5} />
)
}
placeholder="Search tables"
@@ -381,7 +385,7 @@ const TableEditorMenu = () => {
>
<Tooltip.Root delayDuration={0}>
<Tooltip.Trigger asChild>
- <div className="text-scale-900 transition-colors hover:text-foreground">
+ <div className="text-foreground-lighter transition-colors hover:text-foreground">
<IconChevronsDown size={18} strokeWidth={1} />
</div>
</Tooltip.Trigger>
@@ -402,7 +406,7 @@ const TableEditorMenu = () => {
</Dropdown>
<button
- className="cursor-pointer text-scale-900 transition-colors hover:text-foreground"
+ className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"
onClick={refreshTables}
>
<IconRefreshCw className={isRefetching ? 'animate-spin' : ''} size={14} />
diff --git a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
index ebfc5854e66..5185b6a5d22 100644
--- a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
+++ b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
@@ -122,7 +122,7 @@ const ChartHandler = ({
return (
<div className="flex h-52 w-full flex-col items-center justify-center space-y-4">
<IconLoader className="animate-spin text-scale-700" />
- <p className="text-xs text-scale-900">Loading data for {label}</p>
+ <p className="text-xs text-foreground-lighter">Loading data for {label}</p>
</div>
)
}
@@ -131,7 +131,7 @@ const ChartHandler = ({
return (
<div className="flex h-52 w-full flex-col items-center justify-center space-y-4">
<IconAlertCircle className="text-scale-700" />
- <p className="text-xs text-scale-900">Unable to load data for {label}</p>
+ <p className="text-xs text-foreground-lighter">Unable to load data for {label}</p>
</div>
)
}
diff --git a/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx b/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx
index ccb3d9ba26f..f11c5de3846 100644
--- a/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx
+++ b/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx
@@ -1,20 +1,19 @@
import dayjs from 'dayjs'
-import { Loading } from 'ui'
import { useState } from 'react'
import {
- BarChart as RechartBarChart,
- Area,
Bar,
- XAxis,
- YAxis,
- Tooltip,
+ BarChart as RechartBarChart,
Cell,
ResponsiveContainer,
+ Tooltip,
+ XAxis,
+ YAxis,
} from 'recharts'
+import { Loading } from 'ui'
-import { formatBytes } from 'lib/helpers'
-import EmptyState from 'components/ui/Charts/EmptyState'
import { CHART_COLORS } from 'components/ui/Charts/Charts.constants'
+import EmptyState from 'components/ui/Charts/EmptyState'
+import { formatBytes } from 'lib/helpers'
function dataCheck(data: any, attribute: any) {
const hasData = data && data.find((record: any) => record[attribute])
@@ -81,7 +80,7 @@ const Header = ({
const day = (value: number | string) => (displayDateInUtc ? dayjs(value).utc() : dayjs(value))
const chartTitle = (
- <h3 className={'text-scale-900 ' + (minimalHeader ? 'text-xs' : 'text-sm')}>
+ <h3 className={'text-foreground-lighter ' + (minimalHeader ? 'text-xs' : 'text-sm')}>
{label ?? attribute}
</h3>
)
@@ -96,7 +95,7 @@ const Header = ({
</h5>
)
const date = (
- <h5 className="text-xs text-scale-900">
+ <h5 className="text-xs text-foreground-lighter">
{focus ? (
data && data[focus] && day(data[focus].period_start).format(FOCUS_FORMAT)
) : (
@@ -249,7 +248,7 @@ export function BarChart({
</RechartBarChart>
</ResponsiveContainer>
{data && (
- <div className="-mt-5 flex items-center justify-between text-xs text-scale-900">
+ <div className="-mt-5 flex items-center justify-between text-xs text-foreground-lighter">
<span>
{day(data[0].period_start).format(
customDateFormat ? customDateFormat : DATE_FORMAT__WITH_TIME
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
index cea200dedcd..da14b4547d3 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
@@ -37,7 +37,7 @@ const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: s
}
if (previewUrl === 'loading') {
return (
- <div className="flex h-full w-full items-center justify-center text-scale-900">
+ <div className="flex h-full w-full items-center justify-center text-foreground-lighter">
<IconLoader size={14} strokeWidth={2} className="animate-spin" />
</div>
)
@@ -141,7 +141,7 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
style={{ width }}
>
{/* Preview Header */}
- <div className="flex w-full justify-end text-scale-900 transition-colors hover:text-foreground">
+ <div className="flex w-full justify-end text-foreground-lighter transition-colors hover:text-foreground">
<IconX
className="cursor-pointer"
size={14}
@@ -180,11 +180,11 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
{/* Preview Metadata */}
<div className="space-y-2">
<div>
- <label className="mb-1 text-xs text-scale-900">Added on</label>
+ <label className="mb-1 text-xs text-foreground-lighter">Added on</label>
<p className="text-sm text-foreground-light">{createdAt}</p>
</div>
<div>
- <label className="mb-1 text-xs text-scale-900">Last modified</label>
+ <label className="mb-1 text-xs text-foreground-lighter">Last modified</label>
<p className="text-sm text-foreground-light">{updatedAt}</p>
</div>
</div>
diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
index c75a0f4feb7..5aac3531093 100644
--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
@@ -26,7 +26,7 @@ const PolicyRow = ({
<div className="group">
<Panel.Content className="flex justify-between gap-2 border-b border-panel-border-light py-4 dark:border-panel-border-dark">
<div className="flex flex-col gap-3 lg:flex-row lg:items-center">
- <div className="font-mono text-xs text-scale-900">{command}</div>
+ <div className="font-mono text-xs text-foreground-lighter">{command}</div>
<div className="flex flex-col gap-2 lg:flex-row">
<span className="truncate text-sm text-foreground">{name}</span>
</div>
@@ -102,7 +102,7 @@ const StoragePoliciesBucketRow = ({
>
{policies.length === 0 ? (
<div className="p-4 px-6">
- <p className="text-sm text-scale-900">No policies created yet</p>
+ <p className="text-sm text-foreground-lighter">No policies created yet</p>
</div>
) : (
<div className="grid grid-cols-1 divide-y dark:divide-dark">
diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js
index 424bcb88d70..0d0925f2b4f 100644
--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js
+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js
@@ -1,14 +1,14 @@
-import { Modal, IconChevronLeft } from 'ui'
import { pull } from 'lodash'
-import { useState, useEffect } from 'react'
+import { useEffect, useState } from 'react'
+import { IconChevronLeft, Modal } from 'ui'
import { useStore } from 'hooks'
-import { STORAGE_POLICY_TEMPLATES } from './StoragePolicies.constants'
import {
+ applyBucketIdToTemplateDefinition,
createPayloadsForAddPolicy,
createSQLPolicies,
- applyBucketIdToTemplateDefinition,
} from '../Storage.utils'
+import { STORAGE_POLICY_TEMPLATES } from './StoragePolicies.constants'
import {
PolicySelection,
@@ -181,7 +181,7 @@ const StoragePoliciesEditPolicyModal = ({
<div className="flex items-center space-x-3">
<span
onClick={onSelectBackFromTemplates}
- className="cursor-pointer text-scale-900 transition-colors hover:text-foreground"
+ className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"
>
<IconChevronLeft strokeWidth={2} size={14} />
</span>
diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js
index d5d155164ec..11af6aaf5c3 100644
--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js
+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js
@@ -12,7 +12,7 @@ const PolicyDefinition = ({ definition = '', onUpdatePolicyDefinition = () => {}
<label className="text-base text-foreground-light" htmlFor="policy-name">
Policy definition
</label>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Provide a SQL conditional expression that returns a boolean.
</p>
</div>
@@ -31,7 +31,7 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (
<label className="text-base text-foreground-light" htmlFor="allowed-operation">
Allowed operation
</label>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Based on the operations you have selected, you can use the highlighted functions in the{' '}
<a
href="https://supabase.com/docs/reference/javascript/storage-from-list"
diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx
index 5bad3bc81e5..1ace3909581 100644
--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx
@@ -109,7 +109,7 @@ const StorageConfig = ({ config, projectRef }: any) => {
<>
<div className="mb-6">
<h3 className="mb-2 text-xl text-foreground">Storage Settings</h3>
- <div className="text-sm text-scale-900">
+ <div className="text-sm text-foreground-lighter">
Configure your project's storage settings
</div>
</div>
diff --git a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
index cc0e32d582c..bf405416218 100644
--- a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
+++ b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
@@ -74,7 +74,7 @@ export default function SchemaFormPanel({
</Button>
</div>
)}
- <span className="text-sm text-scale-900">{message}</span>
+ <span className="text-sm text-foreground-lighter">{message}</span>
</div>
<div className="Form section-block--body px-6 py-3">
diff --git a/studio/components/to-be-cleaned/forms/SecretField.tsx b/studio/components/to-be-cleaned/forms/SecretField.tsx
index 78d1cd28cf4..cc5e5f3dfdd 100644
--- a/studio/components/to-be-cleaned/forms/SecretField.tsx
+++ b/studio/components/to-be-cleaned/forms/SecretField.tsx
@@ -37,9 +37,9 @@ const SecretField: React.FC = (props: any) => {
/>
<div className="px-2" onClick={onToggleVisible}>
{visible ? (
- <IconEye className="text-scale-900" />
+ <IconEye className="text-foreground-lighter" />
) : (
- <IconEyeOff className="text-scale-900" />
+ <IconEyeOff className="text-foreground-lighter" />
)}
</div>
</div>
diff --git a/studio/components/ui/CardButton.tsx b/studio/components/ui/CardButton.tsx
index de4af8de17d..a87949b4765 100644
--- a/studio/components/ui/CardButton.tsx
+++ b/studio/components/ui/CardButton.tsx
@@ -98,7 +98,7 @@ const CardButton = ({
absolute
right-4
top-4
- text-scale-900
+ text-foreground-lighter
transition-all
duration-200
group-hover:right-3
diff --git a/studio/components/ui/Charts/AreaChart.tsx b/studio/components/ui/Charts/AreaChart.tsx
index 0c1b4277390..fd900a32d20 100644
--- a/studio/components/ui/Charts/AreaChart.tsx
+++ b/studio/components/ui/Charts/AreaChart.tsx
@@ -1,19 +1,12 @@
-import { useState } from 'react'
-import {
- AreaChart as RechartAreaChart,
- Area,
- XAxis,
- YAxis,
- Tooltip,
- ResponsiveContainer,
-} from 'recharts'
-import dayjs from 'dayjs'
import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants'
-import ChartHeader from './ChartHeader'
-import { Datum, CommonChartProps } from './Charts.types'
+import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
-import ChartNoData from './NoDataPlaceholder'
+import { useState } from 'react'
+import { Area, AreaChart as RechartAreaChart, Tooltip, XAxis } from 'recharts'
+import ChartHeader from './ChartHeader'
+import { CommonChartProps, Datum } from './Charts.types'
import { numberFormatter, useChartSize } from './Charts.utils'
+import ChartNoData from './NoDataPlaceholder'
dayjs.extend(utc)
export interface AreaChartProps<D = Datum> extends CommonChartProps<D> {
@@ -114,7 +107,7 @@ const AreaChart = ({
</RechartAreaChart>
</Container>
{data && (
- <div className="text-scale-900 -mt-2 flex items-center justify-between text-xs">
+ <div className="text-foreground-lighter -mt-2 flex items-center justify-between text-xs">
<span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span>
<span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span>
</div>
diff --git a/studio/components/ui/Charts/BarChart.tsx b/studio/components/ui/Charts/BarChart.tsx
index 938124bd744..77f08befb9a 100644
--- a/studio/components/ui/Charts/BarChart.tsx
+++ b/studio/components/ui/Charts/BarChart.tsx
@@ -1,13 +1,13 @@
-import { useState } from 'react'
-import { BarChart as RechartBarChart, XAxis, Tooltip, Bar, Cell, BarProps } from 'recharts'
-import dayjs from 'dayjs'
import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants'
-import ChartHeader from './ChartHeader'
-import { Datum, CommonChartProps } from './Charts.types'
+import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
-import ChartNoData from './NoDataPlaceholder'
-import { numberFormatter, useChartSize } from './Charts.utils'
+import { useState } from 'react'
+import { Bar, BarChart as RechartBarChart, Cell, Tooltip, XAxis } from 'recharts'
import { CategoricalChartState } from 'recharts/types/chart/generateCategoricalChart'
+import ChartHeader from './ChartHeader'
+import { CommonChartProps, Datum } from './Charts.types'
+import { numberFormatter, useChartSize } from './Charts.utils'
+import ChartNoData from './NoDataPlaceholder'
dayjs.extend(utc)
export interface BarChartProps<D = Datum> extends CommonChartProps<D> {
@@ -121,7 +121,7 @@ const BarChart = ({
</RechartBarChart>
</Container>
{data && (
- <div className="text-scale-900 -mt-9 flex items-center justify-between text-xs">
+ <div className="text-foreground-lighter -mt-9 flex items-center justify-between text-xs">
<span>{day(data[0][xAxisKey]).format(customDateFormat)}</span>
<span>{day(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span>
</div>
diff --git a/studio/components/ui/Charts/ChartHeader.tsx b/studio/components/ui/Charts/ChartHeader.tsx
index ede3d782639..e1e41ae5024 100644
--- a/studio/components/ui/Charts/ChartHeader.tsx
+++ b/studio/components/ui/Charts/ChartHeader.tsx
@@ -15,7 +15,9 @@ const ChartHeader: React.FC<ChartHeaderProps> = ({
minimalHeader = false,
}: ChartHeaderProps) => {
const chartTitle = (
- <h3 className={'text-scale-900 ' + (minimalHeader ? 'text-xs' : 'text-sm')}>{title}</h3>
+ <h3 className={'text-foreground-lighter ' + (minimalHeader ? 'text-xs' : 'text-sm')}>
+ {title}
+ </h3>
)
const highlighted = (
@@ -28,7 +30,7 @@ const ChartHeader: React.FC<ChartHeaderProps> = ({
</span>
</h5>
)
- const label = <h5 className="text-scale-900 text-xs">{highlightedLabel}</h5>
+ const label = <h5 className="text-foreground-lighter text-xs">{highlightedLabel}</h5>
if (minimalHeader) {
return (
diff --git a/studio/components/ui/Charts/NoDataPlaceholder.tsx b/studio/components/ui/Charts/NoDataPlaceholder.tsx
index 0638943f996..b9708e59e6a 100644
--- a/studio/components/ui/Charts/NoDataPlaceholder.tsx
+++ b/studio/components/ui/Charts/NoDataPlaceholder.tsx
@@ -26,7 +26,7 @@ const NoDataPlaceholder: React.FC<Props> = ({
<IconBarChart2 className="text-scale-800" />
<div>
<p className="text-foreground-light text-xs">{title}</p>
- {message && <p className="text-scale-900 text-xs">{message}</p>}
+ {message && <p className="text-foreground-lighter text-xs">{message}</p>}
</div>
</div>
)
diff --git a/studio/components/ui/Charts/StackedBarChart.tsx b/studio/components/ui/Charts/StackedBarChart.tsx
index 3dbf7e214e0..582b27bb024 100644
--- a/studio/components/ui/Charts/StackedBarChart.tsx
+++ b/studio/components/ui/Charts/StackedBarChart.tsx
@@ -1,10 +1,15 @@
import { useState } from 'react'
-import { BarChart, Bar, XAxis, Tooltip, Legend, Cell, TooltipProps } from 'recharts'
+import { Bar, BarChart, Cell, Legend, Tooltip, XAxis } from 'recharts'
import ChartHeader from './ChartHeader'
-import { CHART_COLORS, DateTimeFormats, DEFAULT_STACK_COLORS, genStackColorScales, ValidStackColor } from './Charts.constants'
+import {
+ CHART_COLORS,
+ DateTimeFormats,
+ DEFAULT_STACK_COLORS,
+ genStackColorScales,
+ ValidStackColor,
+} from './Charts.constants'
import { CommonChartProps } from './Charts.types'
-import { timestampFormatter, useChartSize, useStacked } from './Charts.utils'
-import { precisionFormatter } from './Charts.utils'
+import { precisionFormatter, timestampFormatter, useChartSize, useStacked } from './Charts.utils'
import NoDataPlaceholder from './NoDataPlaceholder'
interface Props extends CommonChartProps<any> {
xAxisKey: string
@@ -34,7 +39,7 @@ const StackedBarChart: React.FC<Props> = ({
displayDateInUtc,
hideLegend = false,
hideHeader = false,
- stackColors = DEFAULT_STACK_COLORS
+ stackColors = DEFAULT_STACK_COLORS,
}) => {
const { Container } = useChartSize(size)
const { dataKeys, stackedData, percentagesStackedData } = useStacked({
@@ -138,7 +143,7 @@ const StackedBarChart: React.FC<Props> = ({
</BarChart>
</Container>
{stackedData && stackedData[0] && (
- <div className="text-scale-900 -mt-5 flex items-center justify-between text-xs">
+ <div className="text-foreground-lighter -mt-5 flex items-center justify-between text-xs">
<span>
{timestampFormatter(
stackedData[0][xAxisKey] as string,
diff --git a/studio/components/ui/DatePicker/DatePicker.tsx b/studio/components/ui/DatePicker/DatePicker.tsx
index 8504abb9db0..d12569c1648 100644
--- a/studio/components/ui/DatePicker/DatePicker.tsx
+++ b/studio/components/ui/DatePicker/DatePicker.tsx
@@ -200,7 +200,7 @@ function _DatePicker({
w-12
items-center
justify-center
- text-scale-900
+ text-foreground-lighter
`}
>
<IconArrowRight strokeWidth={1.5} size={14} />
diff --git a/studio/components/ui/DatePicker/DividerSlash.tsx b/studio/components/ui/DatePicker/DividerSlash.tsx
index 8071f95ba06..7508aff4acb 100644
--- a/studio/components/ui/DatePicker/DividerSlash.tsx
+++ b/studio/components/ui/DatePicker/DividerSlash.tsx
@@ -1,6 +1,6 @@
export default function DividerSlash() {
return (
- <span className="text-scale-900">
+ <span className="text-foreground-lighter">
<svg
viewBox="0 0 24 24"
width="14"
diff --git a/studio/components/ui/DatePicker/TimeSplitInput.tsx b/studio/components/ui/DatePicker/TimeSplitInput.tsx
index 23ca105a2b6..c2db5875d18 100644
--- a/studio/components/ui/DatePicker/TimeSplitInput.tsx
+++ b/studio/components/ui/DatePicker/TimeSplitInput.tsx
@@ -165,7 +165,7 @@ const TimeSplitInput = ({
${focus && ' border-scale-800 outline outline-2 outline-scale-500'}
`}
>
- <div className="mr-1 text-scale-900">
+ <div className="mr-1 text-foreground-lighter">
<IconClock size={14} strokeWidth={1.5} />
</div>
@@ -190,7 +190,7 @@ const TimeSplitInput = ({
"
value={time.HH}
/>
- <span className="text-scale-900">:</span>
+ <span className="text-foreground-lighter">:</span>
<input
type="text"
onBlur={() => handleOnBlur()}
@@ -212,7 +212,7 @@ const TimeSplitInput = ({
"
value={time.mm}
/>
- <span className="text-scale-900">:</span>
+ <span className="text-foreground-lighter">:</span>
<input
type="text"
onBlur={() => handleOnBlur()}
diff --git a/studio/components/ui/FormBoxEmpty.tsx b/studio/components/ui/FormBoxEmpty.tsx
index 3aa503de3a2..b8c9852bc00 100644
--- a/studio/components/ui/FormBoxEmpty.tsx
+++ b/studio/components/ui/FormBoxEmpty.tsx
@@ -8,7 +8,7 @@ interface Props {
const FormBoxEmpty = ({ icon, text }: Props) => {
return (
<div className="flex items-center justify-center flex-row py-4 space-x-2">
- <div className="relative bg-scale-300 text-scale-900 w-6 h-6 rounded-full flex items-center justify-center">
+ <div className="relative bg-scale-300 text-foreground-lighter w-6 h-6 rounded-full flex items-center justify-center">
{icon}
</div>
<p className="text-foreground-light">{text}</p>
diff --git a/studio/components/ui/Forms/FormActions.tsx b/studio/components/ui/Forms/FormActions.tsx
index d5f4789ceac..44057325313 100644
--- a/studio/components/ui/Forms/FormActions.tsx
+++ b/studio/components/ui/Forms/FormActions.tsx
@@ -29,7 +29,7 @@ const FormActions = ({
helper ? 'justify-between' : 'justify-end',
].join(' ')}
>
- {helper && <span className="text-sm text-scale-900">{helper}</span>}
+ {helper && <span className="text-sm text-foreground-lighter">{helper}</span>}
<div className="flex items-center gap-2">
<Button disabled={isDisabled} type="default" htmlType="reset" onClick={() => handleReset()}>
Cancel
diff --git a/studio/components/ui/Forms/FormHeader.tsx b/studio/components/ui/Forms/FormHeader.tsx
index e50553ce816..c1ed34ea1ca 100644
--- a/studio/components/ui/Forms/FormHeader.tsx
+++ b/studio/components/ui/Forms/FormHeader.tsx
@@ -9,7 +9,7 @@ const FormHeader = ({ title, description }: { title: string; description?: strin
</ReactMarkdown>
</h3>
{description && (
- <div className="text-scale-900 text-sm">
+ <div className="text-foreground-lighter text-sm">
<ReactMarkdown>{description}</ReactMarkdown>
</div>
)}
diff --git a/studio/components/ui/InformationBox.tsx b/studio/components/ui/InformationBox.tsx
index 22a9b8c35c1..7422ca0383b 100644
--- a/studio/components/ui/InformationBox.tsx
+++ b/studio/components/ui/InformationBox.tsx
@@ -37,14 +37,14 @@ const InformationBox = ({
<div className="flex flex-col px-4">
<div className="flex items-center justify-between">
<div className="flex w-full space-x-3 lg:items-start">
- {icon && <span className="text-scale-900">{icon}</span>}
+ {icon && <span className="text-foreground-lighter">{icon}</span>}
<div className="flex-grow">
<h5 className="text-sm text-foreground">{title}</h5>
</div>
</div>
{description && !hideCollapse ? (
<div
- className="cursor-pointer text-scale-900"
+ className="cursor-pointer text-foreground-lighter"
onClick={() => setIsExpanded(!isExpanded)}
>
{isExpanded ? (
diff --git a/studio/components/ui/MultiSelect/index.tsx b/studio/components/ui/MultiSelect/index.tsx
index 3671c59bdc3..ae9c46d292d 100644
--- a/studio/components/ui/MultiSelect/index.tsx
+++ b/studio/components/ui/MultiSelect/index.tsx
@@ -175,7 +175,7 @@ export default function MultiSelect({
}
})}
<div className="absolute inset-y-0 right-0 pl-3 pr-2 flex space-x-1 items-center cursor-pointer ">
- <IconChevronDown size={16} strokeWidth={2} className="text-scale-900" />
+ <IconChevronDown size={16} strokeWidth={2} className="text-foreground-lighter" />
</div>
</div>
</PopoverTrigger_Shadcn_>
diff --git a/studio/components/ui/States/EmptyListState.tsx b/studio/components/ui/States/EmptyListState.tsx
index 4ed09aece4d..616aad74ce2 100644
--- a/studio/components/ui/States/EmptyListState.tsx
+++ b/studio/components/ui/States/EmptyListState.tsx
@@ -32,7 +32,7 @@ const EmptyListState = ({ title, description }: { title: string; description: st
</div>
<div className="flex flex-col gap-1 px-5">
<h3 className="text-foreground text-sm">{title}</h3>
- <p className="text-scale-900 text-sm">{description}</p>
+ <p className="text-foreground-lighter text-sm">{description}</p>
</div>
</div>
)
diff --git a/studio/pages/integrations/github/[integrationId]/choose-project.tsx b/studio/pages/integrations/github/[integrationId]/choose-project.tsx
index 1079237eadc..b2bda6ff510 100644
--- a/studio/pages/integrations/github/[integrationId]/choose-project.tsx
+++ b/studio/pages/integrations/github/[integrationId]/choose-project.tsx
@@ -74,7 +74,7 @@ const ChooseProjectGitHubPage: NextPageWithLayout = () => {
Link a Supabase project to a GitHub repository
</h1>
<Markdown
- className="text-scale-900"
+ className="text-foreground-lighter"
// explain what this integration does
content={`
This Supabase integration will allow you to link a Supabase project to a GitHub repository. This will allow you to deploy your database schema to your Supabase project.
@@ -100,10 +100,10 @@ This Supabase integration will allow you to link a Supabase project to a GitHub
<ScaffoldDivider />
</main>
<ScaffoldContainer className="bg-body flex flex-row gap-6 py-6 border-t">
- <div className="flex items-center gap-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconBook size={16} /> Docs
</div>
- <div className="flex items-center gap-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconLifeBuoy size={16} /> Support
</div>
</ScaffoldContainer>
diff --git a/studio/pages/integrations/github/install.tsx b/studio/pages/integrations/github/install.tsx
index 209424a53c2..902c5e56b00 100644
--- a/studio/pages/integrations/github/install.tsx
+++ b/studio/pages/integrations/github/install.tsx
@@ -178,10 +178,10 @@ const GitHubIntegration: NextPageWithLayout = () => {
<ScaffoldDivider />
</main>
<ScaffoldContainer className="bg-body flex flex-row gap-6 py-6">
- <div className="flex items-center gap-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconBook size={16} /> Docs
</div>
- <div className="flex items-center gap-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconLifeBuoy size={16} /> Support
</div>
</ScaffoldContainer>
diff --git a/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
index a21e52eb04a..abe2d0b0f63 100644
--- a/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
+++ b/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
@@ -50,10 +50,10 @@ const VercelIntegration: NextPageWithLayout = () => {
<ScaffoldDivider />
</main>
<ScaffoldContainer className="bg-body flex flex-row gap-6 py-6 border-t">
- <div className="flex items-center gap-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconBook size={16} /> Docs
</div>
- <div className="flex items-center gap-2 text-xs text-scale-900">
+ <div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconLifeBuoy size={16} /> Support
</div>
</ScaffoldContainer>
diff --git a/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx b/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx
index e44bf6f4f80..01cff8dc030 100644
--- a/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx
+++ b/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx
@@ -153,7 +153,7 @@ const VercelIntegration: NextPageWithLayout = () => {
<header>
<h1 className="text-xl text-foreground">Create your first Project Connection</h1>
<Markdown
- className="text-scale-900"
+ className="text-foreground-lighter"
content={`
This Supabase integration manages your environment variables automatically to provide the latest keys in the unlikely event that you will need to refresh your JWT token.
`}
diff --git a/studio/pages/join/index.tsx b/studio/pages/join/index.tsx
index c0a949c13d7..a1a80c0ab30 100644
--- a/studio/pages/join/index.tsx
+++ b/studio/pages/join/index.tsx
@@ -123,7 +123,7 @@ const JoinOrganizationPage = () => {
) : token_does_not_exist ? (
<>
<p>The invite token is invalid.</p>
- <p className="text-scale-900">
+ <p className="text-foreground-lighter">
Try copying and pasting the link from the invite email, or ask the organization owner to
invite you again.
</p>
@@ -134,7 +134,7 @@ const JoinOrganizationPage = () => {
Your email address {profile?.primary_email} does not match the email address this
invitation was sent to.
</p>
- <p className="text-scale-900">
+ <p className="text-foreground-lighter">
To accept this invitation, you will need to{' '}
<a
className="cursor-pointer text-brand"
@@ -152,7 +152,9 @@ const JoinOrganizationPage = () => {
) : expired_token ? (
<>
<p>The invite token has expired.</p>
- <p className="text-scale-900">Please request a new one from the organization owner.</p>
+ <p className="text-foreground-lighter">
+ Please request a new one from the organization owner.
+ </p>
</>
) : (
''
@@ -172,7 +174,7 @@ const JoinOrganizationPage = () => {
{name ? name : organization_name ? `${organization_name}` : 'an organization'}
</p>
{!token_does_not_exist && (
- <p className="text-sm text-scale-900">an organization on Supabase</p>
+ <p className="text-sm text-foreground-lighter">an organization on Supabase</p>
)}
</>
) : (
@@ -180,7 +182,9 @@ const JoinOrganizationPage = () => {
<p className="text-3xl text-foreground">{'an organization'}</p>
</>
)}
- {slug && <p className="text-xs text-scale-900">{`organization slug: ${slug}`}</p>}
+ {slug && (
+ <p className="text-xs text-foreground-lighter">{`organization slug: ${slug}`}</p>
+ )}
</>
</div>
@@ -211,7 +215,7 @@ const JoinOrganizationPage = () => {
{!profile && (
<div className="flex flex-col gap-3">
- <p className="text-xs text-scale-900">
+ <p className="text-xs text-foreground-lighter">
You will need to sign in to accept this invitation
</p>
<div className="flex justify-center gap-3">
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx
index 371cdc31fb2..b238a53f408 100644
--- a/studio/pages/new/[slug].tsx
+++ b/studio/pages/new/[slug].tsx
@@ -271,7 +271,9 @@ const Wizard: NextPageWithLayout = () => {
</Button>
<div className="items-center space-x-3">
{!projectCreationDisabled && (
- <span className="text-xs text-scale-900">You can rename your project later</span>
+ <span className="text-xs text-foreground-lighter">
+ You can rename your project later
+ </span>
)}
<Button
onClick={onClickNext}
@@ -286,7 +288,7 @@ const Wizard: NextPageWithLayout = () => {
>
<>
<Panel.Content className="pt-0 pb-6">
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Your project will have its own dedicated instance and full postgres database.
<br />
An API will be set up so you can easily interact with your new database.
diff --git a/studio/pages/old-org.tsx b/studio/pages/old-org.tsx
index 21716c657bf..1689751b44d 100644
--- a/studio/pages/old-org.tsx
+++ b/studio/pages/old-org.tsx
@@ -91,7 +91,9 @@ const Wizard: NextPageWithLayout = () => {
Cancel
</Button>
<div className="flex items-center space-x-3">
- <p className="text-xs text-scale-900">You can rename your organization later</p>
+ <p className="text-xs text-foreground-lighter">
+ You can rename your organization later
+ </p>
<Button onClick={onClickSubmit} loading={newOrgLoading} disabled={newOrgLoading}>
Create organization
</Button>
diff --git a/studio/pages/project/[ref]/auth/policies.tsx b/studio/pages/project/[ref]/auth/policies.tsx
index fb78b0c214d..742856bad92 100644
--- a/studio/pages/project/[ref]/auth/policies.tsx
+++ b/studio/pages/project/[ref]/auth/policies.tsx
@@ -140,7 +140,7 @@ const AuthPoliciesPage: NextPageWithLayout = () => {
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
@@ -158,7 +158,7 @@ const AuthPoliciesPage: NextPageWithLayout = () => {
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
diff --git a/studio/pages/project/[ref]/database/schemas.tsx b/studio/pages/project/[ref]/database/schemas.tsx
index 18ca4bc75d2..d6737367a75 100644
--- a/studio/pages/project/[ref]/database/schemas.tsx
+++ b/studio/pages/project/[ref]/database/schemas.tsx
@@ -55,7 +55,7 @@ const SchemasPage: NextPageWithLayout = () => {
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
@@ -73,7 +73,7 @@ const SchemasPage: NextPageWithLayout = () => {
key={schema.id}
value={schema.name}
label={schema.name}
- addOnBefore={() => <span className="text-scale-900">schema</span>}
+ addOnBefore={() => <span className="text-foreground-lighter">schema</span>}
>
<span className="text-foreground text-sm">{schema.name}</span>
</Listbox.Option>
diff --git a/studio/pages/project/[ref]/functions/index.tsx b/studio/pages/project/[ref]/functions/index.tsx
index 4b180f754a6..c1f42d31df0 100644
--- a/studio/pages/project/[ref]/functions/index.tsx
+++ b/studio/pages/project/[ref]/functions/index.tsx
@@ -41,7 +41,7 @@ const PageLayout: NextPageWithLayout = () => {
{hasFunctions ? (
<div className="py-6 space-y-4">
<div className="flex justify-between items-center">
- <span className="text-sm text-scale-900">{`${functions.length} function${
+ <span className="text-sm text-foreground-lighter">{`${functions.length} function${
functions.length > 1 ? 's' : ''
} deployed`}</span>
<Button type="primary" onClick={() => setShowTerminalInstructions(true)}>
diff --git a/studio/pages/project/[ref]/logs/explorer/recent.tsx b/studio/pages/project/[ref]/logs/explorer/recent.tsx
index b6d01179f9f..2e2d3c06695 100644
--- a/studio/pages/project/[ref]/logs/explorer/recent.tsx
+++ b/studio/pages/project/[ref]/logs/explorer/recent.tsx
@@ -51,7 +51,7 @@ export const LogsSavedPage: NextPageWithLayout = () => {
<div className="my-auto flex h-full flex-grow flex-col items-center justify-center gap-1">
<IconClock className="animate-bounce" />
<h3 className="text-lg text-foreground">No Recent Queries Yet</h3>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Your recent queries run from the{' '}
<Link href={`/project/${ref}/logs/explorer`}>
<span className="cursor-pointer font-bold underline">Query</span>
diff --git a/studio/pages/project/[ref]/logs/explorer/saved.tsx b/studio/pages/project/[ref]/logs/explorer/saved.tsx
index d6955e8500e..b40313517ea 100644
--- a/studio/pages/project/[ref]/logs/explorer/saved.tsx
+++ b/studio/pages/project/[ref]/logs/explorer/saved.tsx
@@ -49,7 +49,7 @@ export const LogsSavedPage: NextPageWithLayout = () => {
<div className="my-auto flex h-full flex-grow flex-col items-center justify-center gap-1">
<IconSave className="animate-bounce" />
<h3 className="text-lg text-foreground">No Saved Queries Yet</h3>
- <p className="text-sm text-scale-900">
+ <p className="text-sm text-foreground-lighter">
Saved queries will appear here. Queries can be saved from the{' '}
<Link href={`/project/${ref}/logs/explorer`}>
<span className="cursor-pointer font-bold underline">Query</span>
diff --git a/studio/styles/code.scss b/studio/styles/code.scss
index b03385b6c8e..3009884e0a3 100644
--- a/studio/styles/code.scss
+++ b/studio/styles/code.scss
@@ -16,13 +16,13 @@
.token.imports,
.token.property-access {
- @apply text-scale-900 #{!important};
+ @apply text-foreground-lighter #{!important};
}
.token.keyword.module,
.token.function {
font-style: normal !important;
- @apply text-scale-900 #{!important};
+ @apply text-foreground-lighter #{!important};
}
.token.plain,
@@ -56,7 +56,7 @@
.token.comment {
font-style: normal !important;
- @apply text-scale-900 #{!important};
+ @apply text-foreground-lighter #{!important};
}
.token.number {
diff --git a/studio/styles/date-picker.scss b/studio/styles/date-picker.scss
index bb4db328dfe..f4c101c5d46 100644
--- a/studio/styles/date-picker.scss
+++ b/studio/styles/date-picker.scss
@@ -38,7 +38,7 @@
}
.react-datepicker__day-names {
- @apply flex -space-x-px text-scale-900 font-normal text-center text-xs;
+ @apply flex -space-x-px text-foreground-lighter font-normal text-center text-xs;
}
.react-datepicker__day-name {
diff --git a/studio/styles/main.scss b/studio/styles/main.scss
index f02f7f525df..6cd6bb705b8 100644
--- a/studio/styles/main.scss
+++ b/studio/styles/main.scss
@@ -40,7 +40,7 @@ body,
.form-group .form-text,
.Form .form-text {
- @apply text-scale-900;
+ @apply text-foreground-lighter;
}
.form-group input,
@@ -131,11 +131,11 @@ input[type='submit']:hover {
}
input::placeholder {
- @apply text-scale-900;
+ @apply text-foreground-lighter;
}
.form-group input::placeholder {
- @apply text-scale-900;
+ @apply text-foreground-lighter;
}
.billing-input-fixed {
diff --git a/studio/styles/ui.scss b/studio/styles/ui.scss
index 6f6c091ac2a..c64e59460bb 100644
--- a/studio/styles/ui.scss
+++ b/studio/styles/ui.scss
@@ -54,7 +54,7 @@
.Form .form-text,
.Form .form-error {
- @apply block text-sm text-scale-900 my-1;
+ @apply block text-sm text-foreground-lighter my-1;
display: block;
margin-left: calc(33% + 0.5rem);
width: 100%;