The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Migrate CSS classes for light text (#17725)
Ivan Vasilov6648acacea1f
diff --git a/studio/.storybook/preview.css b/studio/.storybook/preview.cssindex 7838b9a4816..59866e2b972 100644--- a/studio/.storybook/preview.css+++ b/studio/.storybook/preview.css@@ -70,7 +70,7 @@}.react-datepicker__day {- @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-scale-1100;+ @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-foreground-light;/* @apply mb-1 py-1; */@apply -space-y-px;@apply border border-scale-500;diff --git a/studio/components/grid/components/editor/JsonEditor.tsx b/studio/components/grid/components/editor/JsonEditor.tsxindex 49bca275ae7..c88c77e74cd 100644--- a/studio/components/grid/components/editor/JsonEditor.tsx+++ b/studio/components/grid/components/editor/JsonEditor.tsx@@ -1,10 +1,10 @@-import { IconMaximize, Popover } from 'ui'-import { useState, useCallback } from 'react'import * as Tooltip from '@radix-ui/react-tooltip'import { EditorProps } from '@supabase/react-data-grid'+import { useCallback, useState } from 'react'+import { IconMaximize, Popover } from 'ui'-import { useTrackedState } from 'components/grid/store'import { BlockKeys, MonacoEditor, NullValue } from 'components/grid/components/common'+import { useTrackedState } from 'components/grid/store'import { tryParseJson } from 'lib/helpers'import { isNil } from 'lodash'@@ -92,13 +92,13 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({<div className="px-1.5 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">⏎</span></div>- <p className="text-xs text-scale-1100">Save changes</p>+ <p className="text-xs text-foreground-light">Save changes</p></div><div className="flex items-center space-x-2"><div className="px-1 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">Esc</span></div>- <p className="text-xs text-scale-1100">Cancel changes</p>+ <p className="text-xs text-foreground-light">Cancel changes</p></div></div>) : (diff --git a/studio/components/grid/components/editor/TextEditor.tsx b/studio/components/grid/components/editor/TextEditor.tsxindex b0b40db5b34..52c93f0fe94 100644--- a/studio/components/grid/components/editor/TextEditor.tsx+++ b/studio/components/grid/components/editor/TextEditor.tsx@@ -1,8 +1,8 @@-import { useState, useCallback } from 'react'import { EditorProps } from '@supabase/react-data-grid'-import { useTrackedState } from '../../store'-import { BlockKeys, MonacoEditor, NullValue, EmptyValue } from '../common'+import { useCallback, useState } from 'react'import { Button, Popover } from 'ui'+import { useTrackedState } from '../../store'+import { BlockKeys, EmptyValue, MonacoEditor, NullValue } from '../common'export const TextEditor = <TRow, TSummaryRow = unknown>({row,@@ -56,13 +56,13 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({<div className="px-1.5 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">⏎</span></div>- <p className="text-xs text-scale-1100">Save changes</p>+ <p className="text-xs text-foreground-light">Save changes</p></div><div className="flex items-center space-x-2"><div className="px-1 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">Esc</span></div>- <p className="text-xs text-scale-1100">Cancel changes</p>+ <p className="text-xs text-foreground-light">Cancel changes</p></div></div><div className="space-y-1">diff --git a/studio/components/grid/components/footer/pagination/Pagination.tsx b/studio/components/grid/components/footer/pagination/Pagination.tsxindex 145a72209d6..636a54fe955 100644--- a/studio/components/grid/components/footer/pagination/Pagination.tsx+++ b/studio/components/grid/components/footer/pagination/Pagination.tsx@@ -1,13 +1,13 @@-import { useState, useEffect } from 'react'import AwesomeDebouncePromise from 'awesome-debounce-promise'-import { Button, InputNumber, IconArrowRight, IconArrowLeft, IconLoader } from 'ui'-import { useUrlState } from 'hooks'-import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'-import { DropdownControl } from '../../common'-import { useDispatch, useTrackedState } from '../../../store'-import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'+import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'+import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'+import { useUrlState } from 'hooks'+import { useEffect, useState } from 'react'+import { Button, IconArrowLeft, IconArrowRight, IconLoader, InputNumber } from 'ui'+import { useDispatch, useTrackedState } from '../../../store'+import { DropdownControl } from '../../common'const updatePage = (payload: number, dispatch: (value: unknown) => void) => {dispatch({@@ -143,7 +143,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {return (<div className="sb-grid-pagination">- {isLoading && <p className="text-sm text-scale-1100">Loading records count...</p>}+ {isLoading && <p className="text-sm text-foreground-light">Loading records count...</p>}{isSuccess && (<>@@ -154,7 +154,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {onClick={onPreviousPage}style={{ padding: '3px 10px' }}/>- <p className="text-sm text-scale-1100">Page</p>+ <p className="text-sm text-foreground-light">Page</p><div className="sb-grid-pagination-input-container"><InputNumber// [Fran] we'll have to upgrade the UI component types to accept the null value when users delete the input content@@ -169,7 +169,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {min={1}/></div>- <p className="text-sm text-scale-1100">{`of ${totalPages}`}</p>+ <p className="text-sm text-foreground-light">{`of ${totalPages}`}</p><Buttonicon={<IconArrowRight />}type="outline"@@ -188,7 +188,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {<span>{`${state.rowsPerPage} rows`}</span></Button></DropdownControl>- <p className="text-sm text-scale-1100">{`${data.count.toLocaleString()} ${+ <p className="text-sm text-foreground-light">{`${data.count.toLocaleString()} ${data.count === 0 || data.count > 1 ? `records` : 'record'}`}</p>{isLoadingRows && <IconLoader size={14} className="animate-spin" />}@@ -196,7 +196,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {)}{isError && (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Error fetching records count. Please refresh the page.</p>)}diff --git a/studio/components/grid/components/grid/ColumnHeader.tsx b/studio/components/grid/components/grid/ColumnHeader.tsxindex bfde220ff30..c23b2b0d113 100644--- a/studio/components/grid/components/grid/ColumnHeader.tsx+++ b/studio/components/grid/components/grid/ColumnHeader.tsx@@ -1,14 +1,13 @@-import * as React from 'react'-import { IconArrowRight, IconKey, IconLink, IconLock } from 'ui'import * as Tooltip from '@radix-ui/react-tooltip'-import { useDrag, useDrop, DropTargetMonitor } from 'react-dnd'+import { getForeignKeyCascadeAction } from 'components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils'+import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'import { XYCoord } from 'dnd-core'-import { useDispatch } from '../../store'+import * as React from 'react'+import { DropTargetMonitor, useDrag, useDrop } from 'react-dnd'+import { IconArrowRight, IconKey, IconLink, IconLock } from 'ui'+import { useDispatch, useTrackedState } from '../../store'import { ColumnHeaderProps, ColumnType, DragItem, GridForeignKey } from '../../types'import { ColumnMenu } from '../menu'-import { useTrackedState } from '../../store'-import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'-import { getForeignKeyCascadeAction } from 'components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils'export function ColumnHeader<R>({column,@@ -198,7 +197,7 @@ function renderColumnIcon(].join(' ')}><div>- <p className="text-xs text-scale-1100">Foreign key relation:</p>+ <p className="text-xs text-foreground-light">Foreign key relation:</p><div className="flex items-center space-x-1"><p className="text-xs text-foreground">{name}</p><IconArrowRight size="tiny" strokeWidth={1.5} />diff --git a/studio/components/grid/components/header/Header.tsx b/studio/components/grid/components/header/Header.tsxindex fced3c76d60..b7f09c09f96 100644--- a/studio/components/grid/components/header/Header.tsx+++ b/studio/components/grid/components/header/Header.tsx@@ -1,33 +1,33 @@+import { PermissionAction } from '@supabase/shared-types/out/constants'import saveAs from 'file-saver'import Papa from 'papaparse'-import { useState, ReactNode } from 'react'+import { ReactNode, useState } from 'react'import {Button,- IconDownload,- IconX,- IconTrash,Dropdown,+ IconArrowUp,IconChevronDown,+ IconDownload,IconFileText,- IconArrowUp,+ IconTrash,+ IconX,} from 'ui'-import { PermissionAction } from '@supabase/shared-types/out/constants'-import { useCheckPermissions, useStore, useUrlState } from 'hooks'-import FilterDropdown from './filter'-import SortPopover from './sort'-import RefreshButton from './RefreshButton'-import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'-import { Sort, Filter, SupaTable } from 'components/grid/types'+import clsx from 'clsx'import { useDispatch, useTrackedState } from 'components/grid/store'+import { Filter, Sort, SupaTable } from 'components/grid/types'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import { useTableRowDeleteMutation } from 'data/table-rows/table-row-delete-mutation'+import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { useTableRowDeleteAllMutation } from 'data/table-rows/table-row-delete-all-mutation'+import { useTableRowDeleteMutation } from 'data/table-rows/table-row-delete-mutation'import { useTableRowTruncateMutation } from 'data/table-rows/table-row-truncate-mutation'import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'import { useTableRowsQuery } from 'data/table-rows/table-rows-query'+import { useCheckPermissions, useStore, useUrlState } from 'hooks'+import FilterDropdown from './filter'+import RefreshButton from './RefreshButton'import RLSBannerWarning from './RLSBannerWarning'-import clsx from 'clsx'+import SortPopover from './sort'// [Joshen] CSV exports require this guard as a fail-safe if the table is// just too large for a browser to keep all the rows in memory before@@ -150,7 +150,7 @@ const DefaultHeader = ({><div className=""><p>Insert row</p>- <p className="text-scale-1000 text-xs">+ <p className="text-foreground-light text-xs">Insert a new row into {table.name}</p></div>@@ -178,7 +178,7 @@ const DefaultHeader = ({><div className=""><p>Insert column</p>- <p className="text-scale-1000 text-xs">+ <p className="text-foreground-light text-xs">Insert a new column into {table.name}</p></div>@@ -207,7 +207,9 @@ const DefaultHeader = ({><div className=""><p>Import data from CSV</p>- <p className="text-scale-1000 text-xs">Insert new rows from a CSV</p>+ <p className="text-foreground-light text-xs">+ Insert new rows from a CSV+ </p></div></Dropdown.Item>,]diff --git a/studio/components/grid/components/header/RefreshButton.tsx b/studio/components/grid/components/header/RefreshButton.tsxindex ae4f21faa4b..141092ca95e 100644--- a/studio/components/grid/components/header/RefreshButton.tsx+++ b/studio/components/grid/components/header/RefreshButton.tsx@@ -1,7 +1,7 @@import { useQueryClient } from '@tanstack/react-query'+import { useParams } from 'common/hooks'import { SupaTable } from 'components/grid/types'import { sqlKeys } from 'data/sql/keys'-import { useParams } from 'common/hooks'import { useEffect, useState } from 'react'import { Button, IconCheck, IconRefreshCw } from 'ui'import { SupabaseGridQueue } from '../../constants'@@ -49,7 +49,7 @@ const RefreshButton = ({ table, isRefetching }: RefreshButtonProps) => {type="text"icon={!status ? (- <IconRefreshCw className="text-scale-1000" strokeWidth={1.5} />+ <IconRefreshCw className="text-foreground-light" strokeWidth={1.5} />) : status === 'saved' ? (<IconCheck className="text-brand" strokeWidth={3} />) : (diff --git a/studio/components/grid/components/header/filter/FilterPopover.tsx b/studio/components/grid/components/header/filter/FilterPopover.tsxindex d2b8458943a..57fd8f85e4e 100644--- a/studio/components/grid/components/header/filter/FilterPopover.tsx+++ b/studio/components/grid/components/header/filter/FilterPopover.tsx@@ -1,13 +1,13 @@-import { useState, useMemo, useCallback, KeyboardEvent } from 'react'-import { isEqual } from 'lodash'-import { Button, IconPlus, IconFilter, Popover } from 'ui'-import update from 'immutability-helper'import { useUrlState } from 'hooks'+import update from 'immutability-helper'+import { isEqual } from 'lodash'+import { KeyboardEvent, useCallback, useMemo, useState } from 'react'+import { Button, IconFilter, IconPlus, Popover } from 'ui'-import FilterRow from './FilterRow'import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'import { Filter, SupaTable } from 'components/grid/types'import { FilterOperatorOptions } from './Filter.constants'+import FilterRow from './FilterRow'export interface FilterPopoverProps {table: SupaTable@@ -32,7 +32,7 @@ const FilterPopover = ({ table, filters, setParams }: FilterPopoverProps) => {asChildtype={(filters || []).length > 0 ? 'link' : 'text'}icon={- <div className="text-scale-1000">+ <div className="text-foreground-light"><IconFilter strokeWidth={1.5} /></div>}@@ -124,7 +124,7 @@ const FilterOverlay = ({ table, filters: filtersFromUrl, setParams }: FilterOver))}{filters.length == 0 && (<div className="space-y-1 px-3">- <h5 className="text-sm text-scale-1100">No filters applied to this view</h5>+ <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></div>)}diff --git a/studio/components/grid/components/header/sort/SortPopover.tsx b/studio/components/grid/components/header/sort/SortPopover.tsxindex cebe91c4a9d..e947206a270 100644--- a/studio/components/grid/components/header/sort/SortPopover.tsx+++ b/studio/components/grid/components/header/sort/SortPopover.tsx@@ -1,13 +1,13 @@-import React, { useState, useMemo, useCallback } from 'react'-import { isEqual } from 'lodash'-import update from 'immutability-helper'-import { Button, IconList, IconChevronDown, Popover } from 'ui'import { useUrlState } from 'hooks'+import update from 'immutability-helper'+import { isEqual } from 'lodash'+import { useCallback, useMemo, useState } from 'react'+import { Button, IconChevronDown, IconList, Popover } from 'ui'-import SortRow from './SortRow'import { DropdownControl } from 'components/grid/components/common'-import { Sort, SupaTable } from 'components/grid/types'import { formatSortURLParams } from 'components/grid/SupabaseGrid.utils'+import { Sort, SupaTable } from 'components/grid/types'+import SortRow from './SortRow'export interface SortPopoverProps {table: SupaTable@@ -32,7 +32,7 @@ const SortPopover = ({ table, sorts, setParams }: SortPopoverProps) => {asChildtype={(sorts || []).length > 0 ? 'link' : 'text'}icon={- <div className="text-scale-1000">+ <div className="text-foreground-light"><IconList strokeWidth={1.5} /></div>}@@ -120,7 +120,7 @@ const SortOverlay = ({ table, sorts: sortsFromUrl, setParams }: SortOverlayProps))}{sorts.length === 0 && (<div className="space-y-1 px-3">- <h5 className="text-sm text-scale-1100">No sorts applied to this view</h5>+ <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></div>)}@@ -144,7 +144,7 @@ const SortOverlay = ({ table, sorts: sortsFromUrl, setParams }: SortOverlayProps</Button></DropdownControl>) : (- <p className="text-sm text-scale-1100">All columns have been added</p>+ <p className="text-sm text-foreground-light">All columns have been added</p>)}<Button disabled={isEqual(sorts, initialSorts)} type="default" onClick={onApplySort}>Apply sortingdiff --git a/studio/components/grid/components/header/sort/SortRow.tsx b/studio/components/grid/components/header/sort/SortRow.tsxindex e02023e2773..6696bf97832 100644--- a/studio/components/grid/components/header/sort/SortRow.tsx+++ b/studio/components/grid/components/header/sort/SortRow.tsx@@ -1,7 +1,7 @@-import { useRef, memo } from 'react'-import { Button, IconMenu, Toggle, IconX } from 'ui'import { XYCoord } from 'dnd-core'-import { useDrag, useDrop, DropTargetMonitor } from 'react-dnd'+import { memo, useRef } from 'react'+import { DropTargetMonitor, useDrag, useDrop } from 'react-dnd'+import { Button, IconMenu, IconX, Toggle } from 'ui'import { DragItem, Sort, SupaTable } from 'components/grid/types'@@ -103,7 +103,7 @@ const SortRow = ({ table, index, columnName, sort, onDelete, onToggle, onDrag }:style={{ opacity }}data-handler-id={handlerId}>- <span className="transition-color text-scale-900 hover:text-scale-1100">+ <span className="transition-color text-scale-900 hover:text-foreground-light"><IconMenu strokeWidth={2} size={16} /></span><div className="grow">diff --git a/studio/components/interfaces/Account/AccessTokenList.tsx b/studio/components/interfaces/Account/AccessTokenList.tsxindex 9b76f1c93b0..bcc8df4effc 100644--- a/studio/components/interfaces/Account/AccessTokenList.tsx+++ b/studio/components/interfaces/Account/AccessTokenList.tsx@@ -37,7 +37,7 @@ const AccessTokenList = observer(() => {tokens && tokens.length == 0 ? (<Table.tr><Table.td colSpan={5} className="p-3 py-12 text-center">- <p className="text-scale-1000">+ <p className="text-foreground-light">{isLoading ? 'Checking for tokens' : 'You do not have any tokens created yet'}</p></Table.td>@@ -89,7 +89,7 @@ const AccessTokenList = observer(() => {}}><Modal.Content>- <p className="py-4 text-sm text-scale-1100">+ <p className="py-4 text-sm text-foreground-light">{`This action cannot be undone. Are you sure you want to delete "${token?.name}" token?`}</p></Modal.Content>diff --git a/studio/components/interfaces/Account/AuditLogs.tsx b/studio/components/interfaces/Account/AuditLogs.tsxindex 7ae9cfe4ce3..b4463252027 100644--- a/studio/components/interfaces/Account/AuditLogs.tsx+++ b/studio/components/interfaces/Account/AuditLogs.tsx@@ -241,7 +241,7 @@ const AuditLogs = () => {</Table.td><Table.td><p- className="text-scale-1100 max-w-[230px] truncate"+ className="text-foreground-light max-w-[230px] truncate"title={project?.name ?? organization?.name ?? '-'}>{project?.name@@ -252,7 +252,7 @@ const AuditLogs = () => {{project?.name ?? organization?.name ?? '-'}</p><p- className="text-scale-1000 text-xs mt-0.5 truncate"+ className="text-foreground-light text-xs mt-0.5 truncate"title={log.target.metadata.project_ref ?? log.target.metadata.org_slug}>{log.target.metadata.project_refdiff --git a/studio/components/interfaces/Auth/Policies/Policies.tsx b/studio/components/interfaces/Auth/Policies/Policies.tsxindex 512efd4fcad..2fa0f89a292 100644--- a/studio/components/interfaces/Auth/Policies/Policies.tsx+++ b/studio/components/interfaces/Auth/Policies/Policies.tsx@@ -161,7 +161,7 @@ const Policies = ({ tables, hasTables, isLocked }: PoliciesProps) => {</div>}/>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Create a table in this schema first before creating a policy.</p></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsxindex e5470be4daf..30ba9e94971 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx@@ -13,7 +13,7 @@ const PolicyAllowedOperation = ({return (<div className="flex justify-between space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-scale-1100" htmlFor="allowed-operation">+ <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>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsxindex c4d07021228..11f7f455f94 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx@@ -37,12 +37,12 @@ const PolicyDefinition = ({<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2"><div className="flex items-center space-x-2">- <label className="text-base text-scale-1100" htmlFor="policy-name">+ <label className="text-base text-foreground-light" htmlFor="policy-name">USING expression</label><Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconHelpCircle className="text-scale-1100" size={16} strokeWidth={1.5} />+ <IconHelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -84,12 +84,12 @@ const PolicyDefinition = ({<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2"><div className="flex items-center space-x-2">- <label className="text-base text-scale-1100" htmlFor="policy-name">+ <label className="text-base text-foreground-light" htmlFor="policy-name">WITH CHECK expression</label><Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconHelpCircle className="text-scale-1100" size={16} strokeWidth={1.5} />+ <IconHelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsxindex c0060c27fc2..c58fff9c8da 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx@@ -10,7 +10,7 @@ const PolicyName = ({ name = '', limit = 100, onUpdatePolicyName }: PolicyNamePrreturn (<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-scale-1100" htmlFor="policy-name">+ <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>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsxindex 4ddb70f931f..3de12bc173f 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx@@ -22,7 +22,7 @@ const PolicyRoles = ({ roles, selectedRoles, onUpdateSelectedRoles }: PolicyRolereturn (<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-scale-1100 text-base" htmlFor="policy-name">+ <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>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsxindex ec03755588d..cbf027aff31 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx@@ -204,7 +204,7 @@ const PolicyEditorModal = ({}}><Modal.Content>- <p className="py-4 text-sm text-scale-1100">+ <p className="py-4 text-sm text-foreground-light">There are unsaved changes. Are you sure you want to close the editor? Your changeswill be lost.</p>diff --git a/studio/components/interfaces/Auth/Policies/PolicyReview.tsx b/studio/components/interfaces/Auth/Policies/PolicyReview.tsxindex 50812e2bb05..6cd6c5478b5 100644--- a/studio/components/interfaces/Auth/Policies/PolicyReview.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyReview.tsx@@ -29,7 +29,7 @@ const PolicyReview = ({<div className="space-y-6 py-8"><div className="flex items-center justify-between space-y-8"><div className="flex flex-col">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">This is the SQL statement that will be used to create your policy.</p></div>@@ -37,7 +37,7 @@ const PolicyReview = ({<div className="space-y-4 overflow-y-auto" style={{ maxHeight: '25rem' }}>{isEmpty(policy) ? (<div className="my-10 flex items-center justify-center space-x-2 opacity-50">- <p className="text-base text-scale-1100">+ <p className="text-base text-foreground-light">There are no changes made to this policy</p></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicySelection.tsx b/studio/components/interfaces/Auth/Policies/PolicySelection.tsxindex 2eaabd516ee..c2d9614839e 100644--- a/studio/components/interfaces/Auth/Policies/PolicySelection.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicySelection.tsx@@ -18,7 +18,7 @@ const PolicySelection = ({<Modal.Content><div className="space-y-6 py-8"><div>- <p className="text-sm text-scale-1100">{description}</p>+ <p className="text-sm text-foreground-light">{description}</p></div><div className="grid grid-cols-1 gap-2 lg:grid-cols-1"><CardButton@@ -58,7 +58,7 @@ const PolicySelection = ({onClick={onViewEditor}/></div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Not sure what policies are? Check out our resources{' '}<atarget="_blank"diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsxindex 6f149978c70..acbc03320f7 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx@@ -2,7 +2,7 @@ import * as Tooltip from '@radix-ui/react-tooltip'import type { PostgresPolicy } from '@supabase/postgres-meta'import { PermissionAction } from '@supabase/shared-types/out/constants'import { noop } from 'lodash'-import { Button, Dropdown, IconEdit, IconMoreVertical, IconTrash, ScrollArea } from 'ui'+import { Button, Dropdown, IconEdit, IconMoreVertical, IconTrash } from 'ui'import Panel from 'components/ui/Panel'import { useCheckPermissions } from 'hooks'@@ -29,20 +29,20 @@ const PolicyRow = ({><div className="flex grow flex-col space-y-1"><div className="flex items-center space-x-4">- <p className="font-mono text-xs text-scale-1000">{policy.command}</p>+ <p className="font-mono text-xs text-foreground-light">{policy.command}</p><p className="text-sm text-foreground">{policy.name}</p></div><div className="flex items-center space-x-2">- <p className="text-scale-1000 text-sm">Applied to:</p>+ <p className="text-foreground-light text-sm">Applied to:</p>{policy.roles.slice(0, 3).map((role, i) => (- <code key={`policy-${role}-${i}`} className="text-scale-1000 text-xs">+ <code key={`policy-${role}-${i}`} className="text-foreground-light text-xs">{role}</code>))}<Tooltip.Root delayDuration={0}><Tooltip.Trigger>{policy.roles.length > 3 && (- <code key={`policy-etc`} className="text-scale-1000 text-xs">+ <code key={`policy-etc`} className="text-foreground-light text-xs">+ {policy.roles.length - 3} more roles</code>)}diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsxindex 1bdc4ec26c5..61c5c51760e 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx@@ -43,10 +43,10 @@ const PolicyTableRow = ({>{policies.length === 0 && (<div className="p-4 px-6 space-y-1">- <p className="text-scale-1100 text-sm">No policies created yet</p>+ <p className="text-foreground-light text-sm">No policies created yet</p>{!isLocked &&(table.rls_enabled ? (- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">RLS is enabled - create a policy to allow access to this table.</p>) : (diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsxindex 4d7e9684afc..a1dfa78a20c 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx@@ -16,11 +16,11 @@ const TemplatePreview = ({ selectedTemplate }: TemplatePreviewProps) => {<div className="space-y-2"><div className="flex flex-col space-y-2"><h3 className="text-foreground text-base">{templateName}</h3>- <p className="text-scale-1100 text-sm">{description}</p>+ <p className="text-foreground-light text-sm">{description}</p></div></div><div className="space-y-2">- <label className="text-scale-1100 text-sm">Policy SQL template:</label>+ <label className="text-foreground-light text-sm">Policy SQL template:</label><div className="h-64"><SqlEditor readOnly queryId={id} defaultValue={statement} /></div>diff --git a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsxindex ec428cd2a9a..8932bf3a9c7 100644--- a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx+++ b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx@@ -186,7 +186,7 @@ const RedirectUrls = () => {return (<div className="mb-4 space-y-4 pt-4"><div className="px-5">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">This will add a URL to a list of allowed URLs that can interact with yourAuthentication services for this project.</p>@@ -222,11 +222,11 @@ const RedirectUrls = () => {><div className="mb-4 space-y-4 pt-4"><div className="px-5">- <p className="mb-2 text-sm text-scale-1100">+ <p className="mb-2 text-sm text-foreground-light">Are you sure you want to remove{' '}<span className="text-foreground">{selectedUrlToDelete}</span>?</p>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">This URL will no longer work with your authentication configuration.</p></div>diff --git a/studio/components/interfaces/Auth/Users/UsersList.tsx b/studio/components/interfaces/Auth/Users/UsersList.tsxindex 434bb8de3c1..dd9e9878bea 100644--- a/studio/components/interfaces/Auth/Users/UsersList.tsx+++ b/studio/components/interfaces/Auth/Users/UsersList.tsx@@ -2,10 +2,10 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { IconAlertCircle, Loading } from 'ui'import Table from 'components/to-be-cleaned/Table'+import { User } from 'data/auth/users-query'import { useCheckPermissions } from 'hooks'import UserListItem from './UsersListItem'import UsersPagination from './UsersPagination'-import { User } from 'data/auth/users-query'interface UsersListProps {page: number@@ -60,7 +60,7 @@ const UsersList = ({><div className="flex items-center space-x-3 opacity-75"><IconAlertCircle size={16} strokeWidth={2} />- <p className="text-scale-1000">+ <p className="text-foreground-light">{keywords? `No users matched the search query "${keywords}"`: 'No users in your project yet'}diff --git a/studio/components/interfaces/Auth/Users/UsersPagination.tsx b/studio/components/interfaces/Auth/Users/UsersPagination.tsxindex d59f0c0ff1b..91578a9f8d1 100644--- a/studio/components/interfaces/Auth/Users/UsersPagination.tsx+++ b/studio/components/interfaces/Auth/Users/UsersPagination.tsx@@ -23,11 +23,11 @@ const UsersPagination = ({ total, page, setPage }: UsersPaginationProps) => {<div className="hidden sm:block"><p className="text-xs text-scale-900">Showing- <span className="px-1 font-medium text-scale-1100">{fromRow}</span>+ <span className="px-1 font-medium text-foreground-light">{fromRow}</span>to- <span className="px-1 font-medium text-scale-1100">{toRow}</span>+ <span className="px-1 font-medium text-foreground-light">{toRow}</span>of- <span className="px-1 font-medium text-scale-1100">{total}</span>+ <span className="px-1 font-medium text-foreground-light">{total}</span>results</p></div>diff --git a/studio/components/interfaces/BillingV2/Invoices.tsx b/studio/components/interfaces/BillingV2/Invoices.tsxindex 938c907b8fa..141a0db63f3 100644--- a/studio/components/interfaces/BillingV2/Invoices.tsx+++ b/studio/components/interfaces/BillingV2/Invoices.tsx@@ -10,8 +10,8 @@ import { getInvoice } from 'data/invoices/invoice-query'import { useProjectInvoicesCountQuery } from 'data/invoices/project-invoices-count-query'import { useProjectInvoicesQuery } from 'data/invoices/project-invoices-query'import { useStore } from 'hooks'-import InvoiceStatusBadge from './InvoiceStatusBadge'import { InvoiceStatus } from './Invoices.types'+import InvoiceStatusBadge from './InvoiceStatusBadge'const PAGE_LIMIT = 10@@ -67,7 +67,7 @@ const Invoices = () => {invoices.length === 0 ? (<Table.tr><Table.td colSpan={6} className="p-3 py-12 text-center">- <p className="text-scale-1000">No invoices for this project yet</p>+ <p className="text-foreground-light">No invoices for this project yet</p></Table.td></Table.tr>) : (diff --git a/studio/components/interfaces/BillingV2/SpendCapModal.tsx b/studio/components/interfaces/BillingV2/SpendCapModal.tsxindex 0243d1bae8c..61e68c9a203 100644--- a/studio/components/interfaces/BillingV2/SpendCapModal.tsx+++ b/studio/components/interfaces/BillingV2/SpendCapModal.tsx@@ -26,9 +26,9 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {{/* Maybe ideate this in Figma first but this is good enough for now */}<div className="border rounded border-scale-600 bg-scale-500"><div className="flex items-center px-4 pt-2 pb-1">- <p className="w-[50%] text-sm text-scale-1100">Item</p>- <p className="w-[25%] text-sm text-scale-1100">Limit</p>- <p className="w-[25%] text-sm text-scale-1100">Rate</p>+ <p className="w-[50%] text-sm text-foreground-light">Item</p>+ <p className="w-[25%] text-sm text-foreground-light">Limit</p>+ <p className="w-[25%] text-sm text-foreground-light">Rate</p></div><div className="py-2"><div className="flex items-center px-4 py-1">diff --git a/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsx b/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsxindex 937f0061180..63911cf7141 100644--- a/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsx@@ -71,10 +71,10 @@ const AddOns = () => {<div className="space-y-6"><div><p className="text-base">Add ons</p>- <p className="text-sm text-scale-1000">Level up your project with add-ons</p>+ <p className="text-sm text-foreground-light">Level up your project with add-ons</p></div><div className="space-y-2">- <p className="text-sm text-scale-1100">More information</p>+ <p className="text-sm text-foreground-light">More information</p><div><Link href="https://supabase.com/docs/guides/platform/compute-add-ons"><a target="_blank" rel="noreferrer">@@ -149,7 +149,7 @@ const AddOns = () => {</div></div><div className="flex-grow">- <p className="text-sm text-scale-1000">Optimized compute</p>+ <p className="text-sm text-foreground-light">Optimized compute</p><p className="">{computeInstance?.variant.name ?? 'Micro'}</p><ProjectUpdateDisabledTooltipprojectUpdateDisabled={projectUpdateDisabled}@@ -208,7 +208,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#ram`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">Memory</p><IconChevronRight@@ -225,7 +225,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#cpu`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">CPU</p><IconChevronRight@@ -242,13 +242,13 @@ const AddOns = () => {</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-scale-1000">No. of direct connections</p>+ <p className="text-sm text-foreground-light">No. of direct connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_direct ?? 60}</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-scale-1000">No. of pooler connections</p>+ <p className="text-sm text-foreground-light">No. of pooler connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_pooler ?? 200}</p>@@ -257,7 +257,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">Max Disk Throughput</p><IconChevronRight@@ -277,7 +277,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">Baseline Disk Throughput</p><IconChevronRight@@ -315,7 +315,7 @@ const AddOns = () => {</div></div><div>- <p className="text-sm text-scale-1000">Point in time recovery</p>+ <p className="text-sm text-foreground-light">Point in time recovery</p><p className="">{pitr !== undefined? `Point in time recovery of ${pitr.variant.meta?.backup_duration_days} days is enabled`@@ -375,7 +375,7 @@ const AddOns = () => {</div></div><div>- <p className="text-sm text-scale-1000">Custom domain</p>+ <p className="text-sm text-foreground-light">Custom domain</p><p className="">{customDomain !== undefined? 'Custom domain is enabled'diff --git a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsxindex c6159105f22..094c032ff97 100644--- a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx@@ -58,7 +58,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<div className="col-span-12 lg:col-span-5"><div className="sticky top-16"><p className="text-base">Billing breakdown</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Current billing cycle: {billingCycleStart.format('MMM DD')} -{' '}{billingCycleEnd.format('MMM DD')}</p>@@ -74,13 +74,13 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<div className="col-span-12 lg:col-span-7 space-y-6"><p className="text-sm">Included usage summary</p>{isUsageBillingEnabled ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your plan includes a limited amount of usage. If the usage on your project exceedsthese quotas, your subscription will be charged for the overages. It may take up to 24hours for usage stats to update.</p>) : (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your plan includes a limited amount of usage. If the usage on your project exceedsthese quotas, you may experience restrictions, as you are currently not billed foroverages. It may take up to 24 hours for usage stats to update.@@ -158,7 +158,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<Link href={`/project/${projectRef}/settings/billing/usage#${metric.anchor}`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">{metric.name}</p><IconChevronRight@@ -176,7 +176,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<IconInfosize={14}strokeWidth={2}- className="hover:text-scale-1000"+ className="hover:text-foreground-light"/></div></Tooltip.Trigger>@@ -294,7 +294,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {}bgClass="bg-gray-300 dark:bg-gray-600"labelBottom={usageLabel}- labelBottomClass="!text-scale-1000"+ labelBottomClass="!text-foreground-light"labelTop={hasLimit ? percentageLabel : undefined}labelTopClass={!hasLimit@@ -309,7 +309,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {) : (// [Joshen] Needs a better CTA here<div className="flex items-center justify-between flex-grow">- <p className="text-sm text-scale-1000">Unavailable in your plan</p>+ <p className="text-sm text-foreground-light">Unavailable in your plan</p><Buttontype="default"onClick={() => snap.setPanelKey('subscriptionPlan')}@@ -320,7 +320,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {)) : (<div className="flex items-center justify-between flex-grow">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">The usage for this metric is missing.</p></div>@@ -332,10 +332,10 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {)}<p className="!mt-10 text-sm">Upcoming cost for next invoice</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">The following table shows your upcoming costs. Depending on your usage, the final amountmay vary. Next invoice on{' '}- <span className="text-scale-1100">{billingCycleEnd.format('MMM DD, YYYY')}</span>.+ <span className="text-foreground-light">{billingCycleEnd.format('MMM DD, YYYY')}</span>.</p>{isLoadingUpcomingInvoice ? (@@ -369,10 +369,18 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<table className="w-full"><thead><tr className="border-b">- <th className="py-2 font-normal text-left text-sm text-scale-1000 w-1/2">Item</th>- <th className="py-2 font-normal text-left text-sm text-scale-1000">Count</th>- <th className="py-2 font-normal text-left text-sm text-scale-1000">Unit price</th>- <th className="py-2 font-normal text-right text-sm text-scale-1000">Price</th>+ <th className="py-2 font-normal text-left text-sm text-foreground-light w-1/2">+ Item+ </th>+ <th className="py-2 font-normal text-left text-sm text-foreground-light">+ Count+ </th>+ <th className="py-2 font-normal text-left text-sm text-foreground-light">+ Unit price+ </th>+ <th className="py-2 font-normal text-right text-sm text-foreground-light">+ Price+ </th></tr></thead><tbody>diff --git a/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsx b/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsxindex 0d5ef46b6ff..80c5b5c8bea 100644--- a/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsx@@ -1,13 +1,13 @@import { useParams, useTheme } from 'common'+import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'+import { useFlag } from 'hooks'import { BASE_PATH } from 'lib/constants'+import Link from 'next/link'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { Alert, Button, IconExternalLink } from 'ui'import SpendCapSidePanel from './SpendCapSidePanel'-import Link from 'next/link'-import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'-import { useFlag } from 'hooks'export interface CostControlProps {}@@ -33,12 +33,12 @@ const CostControl = ({}: CostControlProps) => {<div className="space-y-6"><div><p className="text-base">Cost Control</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Control whether to use beyond your plans included quota</p></div><div className="space-y-2">- <p className="text-sm text-scale-1100">More information</p>+ <p className="text-sm text-foreground-light">More information</p><div><Link href="https://supabase.com/docs/guides/platform/spend-cap"><a target="_blank" rel="noreferrer">@@ -79,7 +79,7 @@ const CostControl = ({}: CostControlProps) => {is exceeded will you be charged for any additional usage.</Alert>) : (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You can control whether your project is charged for additional usage beyond the{' '}<Link href="#breakdown"><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -110,7 +110,7 @@ const CostControl = ({}: CostControlProps) => {<p className="mb-1">Spend cap is {isUsageBillingEnabled ? 'disabled' : 'enabled'}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{isUsageBillingEnabled ? (<span>You will be charged for any usage above the included quota.</span>) : (@@ -121,7 +121,7 @@ const CostControl = ({}: CostControlProps) => {)}</p>{isUsageBillingEnabled && (- <p className="text-sm text-scale-1000 mt-1">+ <p className="text-sm text-foreground-light mt-1">Your project will never become unresponsive. Only when your usage reaches thequota limit will you be charged for any excess usage.</p>diff --git a/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsxindex 471b20bfc22..a7f667d8a51 100644--- a/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx@@ -1,3 +1,4 @@+import { PermissionAction } from '@supabase/shared-types/out/constants'import clsx from 'clsx'import { useParams, useTheme } from 'common'import Table from 'components/to-be-cleaned/Table'@@ -5,14 +6,13 @@ import { useProjectSubscriptionUpdateMutation } from 'data/subscriptions/projectimport { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useCheckPermissions, useStore } from 'hooks'import { BASE_PATH, PRICING_TIER_PRODUCT_IDS } from 'lib/constants'+import Telemetry from 'lib/telemetry'import Link from 'next/link'+import { useRouter } from 'next/router'import { useEffect, useState } from 'react'+import { pricing } from 'shared-data/pricing'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { Alert, Button, Collapsible, IconChevronRight, IconExternalLink, SidePanel } from 'ui'-import { PermissionAction } from '@supabase/shared-types/out/constants'-import { pricing } from 'shared-data/pricing'-import Telemetry from 'lib/telemetry'-import { useRouter } from 'next/router'const SPEND_CAP_OPTIONS: {name: string@@ -148,7 +148,7 @@ const SpendCapSidePanel = () => {size={16}className={showUsageCosts ? 'rotate-90' : ''}/>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">How are each resource charged after exceeding the included quota?</p></div>@@ -257,7 +257,7 @@ const SpendCapSidePanel = () => {className={clsx('text-sm transition',!isFreePlan && 'group-hover:text-foreground',- isSelected ? 'text-foreground' : 'text-scale-1000'+ isSelected ? 'text-foreground' : 'text-foreground-light')}>{option.name}diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsxindex ec7f8a2a344..9bf42adeefb 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsx@@ -1,6 +1,6 @@import clsx from 'clsx'-import { Button, IconCheck } from 'ui'import { PricingInformation } from 'shared-data'+import { Button, IconCheck } from 'ui'export interface EnterpriseCardProps {plan: PricingInformation@@ -20,7 +20,7 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -40,7 +40,10 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {</div><div className="flex flex-col justify-center col-span-2 px-4 md:px-0">- <ul role="list" className="text-xs text-scale-1000 md:grid md:grid-cols-2 md:gap-x-10">+ <ul+ role="list"+ className="text-xs text-foreground-light md:grid md:grid-cols-2 md:gap-x-10"+ >{plan.features.map((feature) => (<li key={feature} className="flex items-center py-2 first:mt-0"><IconCheck className="text-brand h-4 w-4" aria-hidden="true" strokeWidth={3} />diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsxindex e549a4f6db7..09f9f3fab9b 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx@@ -5,6 +5,7 @@ import { useRouter } from 'next/router'import { useReducer, useRef, useState } from 'react'import { useParams } from 'common'+import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import { useSendDowngradeFeedbackMutation } from 'data/feedback/exit-survey-send'import { setProjectStatus } from 'data/projects/projects-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'@@ -13,7 +14,6 @@ import { useFlag, useStore } from 'hooks'import { PROJECT_STATUS } from 'lib/constants'import { Button, Input, Modal } from 'ui'import { CANCELLATION_REASONS } from '../../Billing.constants'-import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'export interface ExitSurveyModalProps {visible: boolean@@ -151,7 +151,7 @@ const ExitSurveyModal = ({ visible, onClose }: ExitSurveyModalProps) => {><Modal.Content><div className="py-6">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">We always strive to improve Supabase as much as we can. Please let us know the reasonsyou are canceling your subscription so that we can improve in the future.</p>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsxindex 501e9259135..585a5c9813c 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsx@@ -23,11 +23,11 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr<div className="py-4 space-y-4"><Modal.Content><div className="space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">The following members have reached their maximum limits for the number of active freeplan projects within organizations where they are an administrator or owner:</p>- <ul className="pl-5 text-sm list-disc text-scale-1100">+ <ul className="pl-5 text-sm list-disc text-foreground-light">{(membersExceededLimit || []).map((member, idx: number) => (<li key={`member-${idx}`}>{member.username || member.primary_email} (Limit: {member.free_project_limit} free@@ -35,7 +35,7 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr</li>))}</ul>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">These members will need to either delete, pause, or upgrade one or more of theseprojects before you're able to downgrade this project.</p>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsxindex cbc4d97ec4d..ffbf2ae6930 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsx@@ -3,13 +3,13 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useEffect, useMemo, useState } from 'react'import { useParams } from 'common'+import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'import { useOrganizationCustomerProfileQuery } from 'data/organizations/organization-customer-profile-query'import { useOrganizationPaymentMethodsQuery } from 'data/organizations/organization-payment-methods-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { getURL } from 'lib/helpers'import { Button, IconAlertCircle, IconCreditCard, IconLoader, IconPlus, Listbox } from 'ui'-import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'export interface PaymentMethodSelectionProps {selectedPaymentMethod?: string@@ -75,11 +75,11 @@ const PaymentMethodSelection = ({{isLoading ? (<div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-scale-700 bg-scale-400"><IconLoader className="animate-spin" size={14} />- <p className="text-sm text-scale-1100">Retrieving payment methods</p>+ <p className="text-sm text-foreground-light">Retrieving payment methods</p></div>) : paymentMethods.length === 0 ? (<div className="flex items-center justify-between px-4 py-2 border border-dashed rounded-md bg-scale-100">- <div className="flex items-center space-x-4 text-scale-1100">+ <div className="flex items-center space-x-4 text-foreground-light"><IconAlertCircle size={16} strokeWidth={1.5} /><p className="text-sm">No saved payment methods</p></div>@@ -145,7 +145,7 @@ const PaymentMethodSelection = ({onClick={() => setShowAddNewPaymentMethodModal(true)}><IconPlus size={16} />- <p className="transition text-scale-1000 group-hover:text-foreground">+ <p className="transition text-foreground-light group-hover:text-foreground">Add new payment method</p></div>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsxindex 3f554172d0c..44bf0f58081 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsx@@ -93,7 +93,7 @@ const SubscriptionPaymentMethod = ({<Panel.Content className="flex justify-between lg:items-center flex-col md:flex-row space-y-6 md:space-y-0">{subscription.payment_method_type === 'card' && (<>- <div className="flex space-x-3 items-center font-mono tracking-wide text-scale-1000">+ <div className="flex space-x-3 items-center font-mono tracking-wide text-foreground-light">{subscription.payment_method_card_details?.brand ? (<imgalt="Credit card brand"@@ -110,7 +110,7 @@ const SubscriptionPaymentMethod = ({{subscription?.payment_method_card_details?.last_4_digits || '****'}</span></div>- <div className="flex flex-row space-x-3 text-scale-1000 text-sm">+ <div className="flex flex-row space-x-3 text-foreground-light text-sm"><span>Expires {subscription?.payment_method_card_details?.expiry_month || '-'}/{subscription?.payment_method_card_details?.expiry_year?.toString()?.slice(-2) ||@@ -124,8 +124,8 @@ const SubscriptionPaymentMethod = ({<><div className="flex space-x-3"><div>- <p className="text-scale-1100">Payment via invoice</p>- <p className="text-sm text-scale-1000">+ <p className="text-foreground-light">Payment via invoice</p>+ <p className="text-sm text-foreground-light">You get a monthly invoice and payment link via email.</p></div>@@ -199,7 +199,7 @@ const SubscriptionPaymentMethod = ({method. There are no immediate charges. Changing the payment method for this projectdoes not affect the payment method for other projects.</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">To remove unused or expired payment methods, head to your{' '}<Link href={`/org/${currentOrgSlug || '_'}/billing`} passHref><a target="_blank" className="text-green-900 transition hover:text-green-1000">diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsxindex 1e1e9a70140..bda4e770421 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx@@ -2,13 +2,13 @@ import dayjs from 'dayjs'import Link from 'next/link'import { useParams } from 'common'+import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import SparkBar from 'components/ui/SparkBar'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useFlag, useSelectedOrganization } from 'hooks'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { Alert, Button, IconExternalLink } from 'ui'-import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import SubscriptionPaymentMethod from './SubscriptionPaymentMethod'import TierUpdateSidePanel from './TierUpdateSidePanel'@@ -39,7 +39,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {<div className="col-span-12 lg:col-span-5 space-y-6"><div className="sticky space-y-6 top-16"><p className="text-base">Subscription plan</p>- <div className="text-sm text-scale-1000">+ <div className="text-sm text-foreground-light">To manage your billing address, emails or Tax ID, head to your{' '}<Link href={`/org/${orgSlug}/billing`}><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -49,7 +49,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {.</div><div className="space-y-2">- <p className="text-sm text-scale-1100">More information</p>+ <p className="text-sm text-foreground-light">More information</p><div><Link href="https://supabase.com/pricing"><a target="_blank" rel="noreferrer">@@ -130,7 +130,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {)}>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">When this project exceeds its{' '}<Link href="#breakdown"><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -161,7 +161,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {'MMM DD')} - ${billingCycleEnd.format('MMM DD')})`}bgClass="bg-gray-300 dark:bg-gray-600"- labelBottomClass="!text-scale-1000 pb-1"+ labelBottomClass="!text-foreground-light pb-1"labelTop={`${daysToCycleEnd} days remaining`}/>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsxindex c71b6df0b5c..59b3a6d580e 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx@@ -5,6 +5,7 @@ import Link from 'next/link'import { useEffect, useState } from 'react'import { useParams } from 'common'+import InformationBox from 'components/ui/InformationBox'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useFreeProjectLimitCheckQuery } from 'data/organizations/free-project-limit-check-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'@@ -22,7 +23,6 @@ import EnterpriseCard from './EnterpriseCard'import ExitSurveyModal from './ExitSurveyModal'import MembersExceedLimitModal from './MembersExceedLimitModal'import PaymentMethodSelection from './PaymentMethodSelection'-import InformationBox from 'components/ui/InformationBox'const TierUpdateSidePanel = () => {const { ui } = useStore()@@ -198,7 +198,7 @@ const TierUpdateSidePanel = () => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -210,7 +210,7 @@ const TierUpdateSidePanel = () => {)}</div><div className="mt-4 flex items-center space-x-1">- {(price ?? 0) > 0 && <p className="text-scale-1000 text-sm">From</p>}+ {(price ?? 0) > 0 && <p className="text-foreground-light text-sm">From</p>}{isLoadingPlans ? (<div className="h-[28px] flex items-center justify-center"><ShimmeringLoader className="w-[30px] h-[24px]" />@@ -218,7 +218,7 @@ const TierUpdateSidePanel = () => {) : (<p className="text-foreground text-lg">${price}</p>)}- <p className="text-scale-1000 text-sm">{tierMeta?.costUnit}</p>+ <p className="text-foreground-light text-sm">{tierMeta?.costUnit}</p></div><divclassName={clsx('flex mt-1 mb-4', !tierMeta?.warningLegacy && 'opacity-0')}@@ -306,7 +306,7 @@ const TierUpdateSidePanel = () => {strokeWidth={3}/></div>- <p className="ml-3 text-xs text-scale-1100">{feature}</p>+ <p className="ml-3 text-xs text-foreground-light">{feature}</p></li>))}</ul>@@ -314,7 +314,7 @@ const TierUpdateSidePanel = () => {{plan.footer && (<div className="border-t pt-4 mt-4">- <p className="text-scale-1000 text-xs">{plan.footer}</p>+ <p className="text-foreground-light text-xs">{plan.footer}</p></div>)}</div>@@ -386,7 +386,7 @@ const TierUpdateSidePanel = () => {Changing the plan resets your billing cycle and may result in a prorated charge forprevious usage.</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You will also be able to change your project's add-ons after upgrading your project'splan.</p>diff --git a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsxindex 39c3c24459a..dd7c457c378 100644--- a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx@@ -7,6 +7,7 @@ import { DataPoint } from 'data/analytics/constants'import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'+import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'import { getAddons } from '../Subscription/Subscription.utils'import SectionContent from './SectionContent'import SectionHeader from './SectionHeader'@@ -14,7 +15,6 @@ import { USAGE_CATEGORIES } from './Usage.constants'import { getUpgradeUrl } from './Usage.utils'import UsageBarChart from './UsageBarChart'import { CPUWarnings, DiskIOBandwidthWarnings, RAMWarnings } from './UsageWarningAlerts'-import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'export interface InfrastructureProps {projectRef: string@@ -141,12 +141,12 @@ const Infrastructure = ({{currentComputeInstanceSpecs.baseline_disk_io_mbs ===currentComputeInstanceSpecs.max_disk_io_mbs ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your current compute can has a baseline and maximum disk throughput of{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps.</p>) : (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your current compute can burst up to{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps for 30minutes a day and reverts to the baseline performance of{' '}@@ -157,17 +157,19 @@ const Infrastructure = ({<div><p className="text-sm mb-2">Overview</p><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">Current compute instance</p>+ <p className="text-xs text-foreground-light">Current compute instance</p><p className="text-xs">{computeInstance?.variant?.name ?? 'Micro'}</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">Maximum IO Bandwidth (burst limit)</p>+ <p className="text-xs text-foreground-light">+ Maximum IO Bandwidth (burst limit)+ </p><p className="text-xs">{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">Baseline IO Bandwidth</p>+ <p className="text-xs text-foreground-light">Baseline IO Bandwidth</p><p className="text-xs">{currentComputeInstanceSpecs.baseline_disk_io_mbs?.toLocaleString()} Mbps</p>@@ -175,7 +177,7 @@ const Infrastructure = ({{currentComputeInstanceSpecs.max_disk_io_mbs !==currentComputeInstanceSpecs?.baseline_disk_io_mbs && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-scale-1000">Daily burst time limit</p>+ <p className="text-xs text-foreground-light">Daily burst time limit</p><p className="text-xs">30 mins</p></div>)}@@ -213,7 +215,7 @@ const Infrastructure = ({</div>{attribute.key === 'ram_usage' && (- <div className="text-sm text-scale-1000">+ <div className="text-sm text-foreground-light"><p>Your compute instance has {currentComputeInstanceSpecs.memory_gb} GB ofmemory.@@ -228,13 +230,13 @@ const Infrastructure = ({)}{attribute.key === 'max_cpu_usage' && (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your compute instance has {currentComputeInstanceSpecs.cpu_cores} CPU cores.</p>)}{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-scale-1000">+ <p key={`para-${idx}`} className="text-sm text-foreground-light">{paragraph}</p>))}@@ -259,9 +261,11 @@ const Infrastructure = ({<Panel><Panel.Content><div className="flex flex-col items-center justify-center space-y-2">- <IconBarChart2 className="text-scale-1100 mb-2" />+ <IconBarChart2 className="text-foreground-light mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-scale-1000">May take a few minutes to show</p>+ <p className="text-sm text-foreground-light">+ May take a few minutes to show+ </p></div></Panel.Content></Panel>diff --git a/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx b/studio/components/interfaces/BillingV2/Usage/SectionContent.tsxindex 05813e0229c..c4256d4994f 100644--- a/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx+++ b/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx@@ -1,7 +1,7 @@+import Link from 'next/link'import { PropsWithChildren } from 'react'import { Badge, IconExternalLink } from 'ui'import { CategoryAttribute } from './Usage.constants'-import Link from 'next/link'export interface SectionContent {section: CategoryAttribute@@ -28,7 +28,7 @@ const SectionContent = ({</div><div className="grid gap-4">{description.split('\n').map((value, idx) => (- <p key={`desc-${idx}`} className="text-sm text-scale-1000 pr-8">+ <p key={`desc-${idx}`} className="text-sm text-foreground-light pr-8">{value}</p>))}@@ -36,7 +36,7 @@ const SectionContent = ({</div>{links && links.length && (<div className="space-y-2">- <p className="text-sm text-foreground dark:text-scale-1100 mb-2">+ <p className="text-sm text-foreground dark:text-foreground-light mb-2">More information</p>{links.map((link) => (diff --git a/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsx b/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsxindex 6b2b35532b1..f5df014695c 100644--- a/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsx+++ b/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsx@@ -9,7 +9,7 @@ const SectionHeader = ({ title, description }: SectionHeaderProps) => {<div className="1xl:px-28 mx-auto flex flex-col gap-10 px-5 lg:px-16 2xl:px-32 py-16"><div><p className="text-xl">{title}</p>- <p className="text-sm text-scale-1000">{description}</p>+ <p className="text-sm text-foreground-light">{description}</p></div></div></div>diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsxindex cf18144cebb..eae44aa34c7 100644--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx@@ -189,7 +189,7 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [</a></Link></div>- <p className="text-sm text-scale-1000 mt-3">+ <p className="text-sm text-foreground-light mt-3">If you reach 95% of the disk space, your project will enter read-only mode. Yourdisk storage expands automatically when the database reaches 90% of the disk size.The disk is expanded to be 50% larger. Auto-scaling can only take place once every 6diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.tsxindex d4fb6339188..77fa26b7898 100644--- a/studio/components/interfaces/BillingV2/Usage/Usage.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Usage.tsx@@ -3,22 +3,22 @@ import { useParams } from 'common'import dayjs from 'dayjs'import { useMemo, useRef, useState } from 'react'import { InView } from 'react-intersection-observer'-import { Button, IconAlertCircle, IconExternalLink, IconInfo, IconLoader, cn } from 'ui'+import { Button, cn, IconAlertCircle, IconExternalLink, IconInfo, IconLoader } from 'ui'import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'+import InformationBox from 'components/ui/InformationBox'import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useProjectUsageQuery } from 'data/usage/project-usage-query'import { useSelectedOrganization } from 'hooks'import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants'+import Link from 'next/link'import Activity from './Activity'import Bandwidth from './Bandwidth'import Infrastructure from './Infrastructure'import SizeAndCounts from './SizeAndCounts'import { USAGE_CATEGORIES, USAGE_STATUS } from './Usage.constants'import { getUsageStatus } from './Usage.utils'-import Link from 'next/link'-import InformationBox from 'components/ui/InformationBox'type UsageSectionIds = 'infra' | 'bandwidth' | 'sizeCount' | 'activity'@@ -167,7 +167,7 @@ const Usage = () => {{isOrgBilling ? 'Organization' : 'Project'} is on the {subscription.plan.name}{' '}plan</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{billingCycleStart.format('DD MMM YYYY')} -{' '}{billingCycleEnd.format('DD MMM YYYY')}</p>diff --git a/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsx b/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsxindex c93733f5eb6..45e3d998803 100644--- a/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsx+++ b/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsx@@ -1,4 +1,5 @@import { DataPoint } from 'data/analytics/constants'+import dayjs from 'dayjs'import {Bar,CartesianGrid,@@ -9,7 +10,6 @@ import {XAxis,YAxis,} from 'recharts'-import dayjs from 'dayjs'// [Joshen] This BarChart is specifically for usage, hence not a reusable component, and not// replacing the existing BarChart in ui/Charts@@ -33,13 +33,12 @@ const UsageBarChart = ({yLimit,yLeftMargin = 10,yFormatter,- tooltipFormatter+ tooltipFormatter,}: UsageBarChartProps) => {const yMin = 0 // We can consider passing this as a prop if there's a use case in the futureconst yDomain = [yMin, yLimit ?? 0]-return (<div className="w-full h-[200px]"><ResponsiveContainer width="100%" height={200}>@@ -65,17 +64,17 @@ const UsageBarChart = ({return (<div className="w-[170px] border bg-scale-300 rounded-md px-2 py-2">- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">{attribute === 'disk_io_budget' ? `Remaining IO budget:` : `${name}:`}</p>{dataPeriod.startOf('day').isAfter(dayjs().startOf('day')) ? (- <p className="text-scale-1000 text-lg">No data yet</p>+ <p className="text-foreground-light text-lg">No data yet</p>) : (<p className="text-xl">{tooltipFormatter !== undefined ? tooltipFormatter(value) : value}</p>)}- <p className="text-xs text-scale-1100 mt-1">+ <p className="text-xs text-foreground-light mt-1">{dataPeriod.format('DD MMM YYYY')}</p></div>diff --git a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsxindex 6dcb6974b42..856ba4942ae 100644--- a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx+++ b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx@@ -1,28 +1,28 @@+import * as Tooltip from '@radix-ui/react-tooltip'+import clsx from 'clsx'+import Panel from 'components/ui/Panel'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import SectionHeader from './SectionHeader'-import { CategoryMetaKey, USAGE_CATEGORIES } from './Usage.constants'+import SparkBar from 'components/ui/SparkBar'+import { DataPoint } from 'data/analytics/constants'+import { ProjectSubscriptionResponse } from 'data/subscriptions/project-subscription-v2-query'import {ProjectUsageResponse,UsageMetric,useProjectUsageQuery,} from 'data/usage/project-usage-query'-import { DataPoint } from 'data/analytics/constants'-import SectionContent from './SectionContent'+import { formatBytes } from 'lib/helpers'+import Link from 'next/link'import { Button, IconAlertTriangle, IconBarChart2 } from 'ui'import { USAGE_APPROACHING_THRESHOLD } from '../Billing.constants'-import Link from 'next/link'-import SparkBar from 'components/ui/SparkBar'-import clsx from 'clsx'-import { ProjectSubscriptionResponse } from 'data/subscriptions/project-subscription-v2-query'+import SectionContent from './SectionContent'+import SectionHeader from './SectionHeader'+import { CategoryMetaKey, USAGE_CATEGORIES } from './Usage.constants'import {ChartTooltipValueFormatter,ChartYFormatterCompactNumber,getUpgradeUrl,} from './Usage.utils'-import { formatBytes } from 'lib/helpers'import UsageBarChart from './UsageBarChart'-import Panel from 'components/ui/Panel'-import * as Tooltip from '@radix-ui/react-tooltip'interface UsageSectionProps {projectRef: string@@ -164,7 +164,7 @@ const UsageSection = ({)}<div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">Included in {subscription?.plan?.name.toLowerCase()} plan</p>{usageMeta?.limit === -1 ? (@@ -181,7 +181,7 @@ const UsageSection = ({</div>{currentBillingCycleSelected && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">{attribute.chartPrefix || 'Used '}in period</p><p className="text-xs">@@ -193,7 +193,7 @@ const UsageSection = ({)}{currentBillingCycleSelected && usageMeta?.limit > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-scale-1000">Overage in period</p>+ <p className="text-xs text-foreground-light">Overage in period</p><p className="text-xs">{(usageMeta?.limit ?? 0) === -1 || usageExcess < 0? 0@@ -214,7 +214,7 @@ const UsageSection = ({{attribute.name} per day</p>{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-scale-1000">+ <p key={`para-${idx}`} className="text-sm text-foreground-light">{paragraph}</p>))}@@ -241,9 +241,11 @@ const UsageSection = ({<Panel><Panel.Content><div className="flex flex-col items-center justify-center">- <IconBarChart2 className="text-scale-1100 mb-2" />+ <IconBarChart2 className="text-foreground-light mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-scale-1000">May take up to 24 hours to show</p>+ <p className="text-sm text-foreground-light">+ May take up to 24 hours to show+ </p></div></Panel.Content></Panel>@@ -256,7 +258,7 @@ const UsageSection = ({<div className="space-y-1"><p className="text-sm">Not included in plan</p><div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">You need to be on a higher plan in order to use this feature.</p></div>diff --git a/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/studio/components/interfaces/BranchManagement/BranchPanels.tsxindex 30e901054d1..ea174fa25c7 100644--- a/studio/components/interfaces/BranchManagement/BranchPanels.tsx+++ b/studio/components/interfaces/BranchManagement/BranchPanels.tsx@@ -3,10 +3,11 @@ import { useParams } from 'common'import dayjs from 'dayjs'import { noop } from 'lodash'import Link from 'next/link'-import { PropsWithChildren, forwardRef, useState } from 'react'+import { forwardRef, PropsWithChildren, useState } from 'react'import {Badge,Button,+ cn,Dropdown,DropdownMenuContent_Shadcn_,DropdownMenuItem_Shadcn_,@@ -18,7 +19,6 @@ import {IconMoreVertical,IconShield,IconTrash,- cn,} from 'ui'import { Markdown } from 'components/interfaces/Markdown'@@ -241,7 +241,7 @@ const PullRequestPanel = ({: `Created ${formattedTimeFromNow}`}</p></div>- <p className="text-scale-1000 ml-8 mt-0.5">{pr.title}</p>+ <p className="text-foreground-light ml-8 mt-0.5">{pr.title}</p></div><div className="flex items-center space-x-4"><Link passHref href={pr.url}>diff --git a/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx b/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsxindex 036f2c4de87..bb50dcdb4db 100644--- a/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx+++ b/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx@@ -113,7 +113,7 @@ const CreateBranchSidePanel = ({ visible, onClose }: CreateBranchSidePanelProps){isLoadingIntegrations && <GenericSkeletonLoader />}{isSuccessIntegrations && (<div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your project is currently connected to the repository:</p><div className="flex items-center space-x-2">diff --git a/studio/components/interfaces/BranchManagement/PreviewBranches.tsx b/studio/components/interfaces/BranchManagement/PreviewBranches.tsxindex 3c8cb4465c7..c5923ef4cfc 100644--- a/studio/components/interfaces/BranchManagement/PreviewBranches.tsx+++ b/studio/components/interfaces/BranchManagement/PreviewBranches.tsx@@ -90,14 +90,16 @@ const PreviewBranches = ({<BranchContainer><div className="flex items-center flex-col justify-center w-full py-8"><p>No database preview branches</p>- <p className="text-scale-1000">Database preview branches will be shown here</p>+ <p className="text-foreground-light">+ Database preview branches will be shown here+ </p><div className="w-[500px] border rounded-md mt-4"><div className="px-5 py-3 bg-surface-100 flex items-center justify-between"><div className="flex items-center space-x-4">- <IconGitBranch strokeWidth={2} className="text-scale-1100" />+ <IconGitBranch strokeWidth={2} className="text-foreground-light" /><div><p>Create a preview branch</p>- <p className="text-scale-1000">Start developing in preview</p>+ <p className="text-foreground-light">Start developing in preview</p></div></div><Button type="default" onClick={() => onSelectCreateBranch()}>@@ -107,7 +109,7 @@ const PreviewBranches = ({<div className="px-5 py-3 border-t flex items-center justify-between"><div><p>Not sure what to do?</p>- <p className="text-scale-1000">Browse our documentation</p>+ <p className="text-foreground-light">Browse our documentation</p></div><Button type="default" iconRight={<IconExternalLink />}>Docsdiff --git a/studio/components/interfaces/BranchManagement/PullRequests.tsx b/studio/components/interfaces/BranchManagement/PullRequests.tsxindex 788208a4285..83574089618 100644--- a/studio/components/interfaces/BranchManagement/PullRequests.tsx+++ b/studio/components/interfaces/BranchManagement/PullRequests.tsx@@ -96,14 +96,14 @@ const PullRequests = ({<BranchContainer><div className="flex items-center flex-col justify-center w-full py-8"><p>No pull requests made yet for this repository</p>- <p className="text-scale-1000">+ <p className="text-foreground-light">Only pull requests with the ./migration directory changes will show here.</p>{previewBranches.length > 0 && (<div className="w-96 border rounded-md mt-4"><div className="px-5 py-3 bg-surface-100 flex items-center justify-between"><div className="flex items-center space-x-4">- <IconGitPullRequest strokeWidth={2} className="text-scale-1100" />+ <IconGitPullRequest strokeWidth={2} className="text-foreground-light" /><p>Create a pull request</p></div><Link passHref href={pullRequestUrl}>@@ -117,7 +117,7 @@ const PullRequests = ({<div className="px-5 py-3 border-t flex items-center justify-between"><div><p>Not sure what to do?</p>- <p className="text-scale-1000">Browse our documentation</p>+ <p className="text-foreground-light">Browse our documentation</p></div><Button type="default" iconRight={<IconExternalLink />}>Docsdiff --git a/studio/components/interfaces/Database/Backups/BackupsList.tsx b/studio/components/interfaces/Database/Backups/BackupsList.tsxindex 3225f7e2606..337565eef36 100644--- a/studio/components/interfaces/Database/Backups/BackupsList.tsx+++ b/studio/components/interfaces/Database/Backups/BackupsList.tsx@@ -82,7 +82,7 @@ const BackupsList = () => {<>{!canTriggerScheduledBackups && (<InformationBox- icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}title="You need additional permissions to trigger a scheduled backup"/>)}diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsxindex ea875c4be24..0e1171449f2 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx@@ -24,7 +24,7 @@ const PITRNotice = ({}) => {disabled={true}footer={<div className="flex items-center justify-between p-6">- <span className="text-sm text-scale-1000">+ <span className="text-sm text-foreground-light">You can also increase your recovery retention period updating your PITR add-on</span><Tooltip.Root delayDuration={0}>@@ -65,7 +65,7 @@ const PITRNotice = ({}) => {</div><div className="space-y-2"><p className="text-sm">Recovery retention period</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Database changes are logged every <span className="text-foreground">2 minutes</span>,with a total recovery period of up to{' '}<span className="text-brand">{retentionPeriod} days</span>.diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsxindex 1bf3a21cbd9..e7ffcd13b8f 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx@@ -196,12 +196,12 @@ const PITRSelection = () => {type="button"className={`${prevMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-scale-1100 hover:text-foreground focus:outline-none+ text-foreground-light hover:text-foreground focus:outline-none`}><IconChevronLeft size={16} strokeWidth={2} /></button>- <span className="text-scale-1100 text-sm">+ <span className="text-foreground-light text-sm">{format(date, 'MMMM yyyy')}</span><button@@ -210,7 +210,7 @@ const PITRSelection = () => {type="button"className={`${nextMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-scale-1100 hover:text-foreground focus:outline-none+ text-foreground-light hover:text-foreground focus:outline-none`}><IconChevronRight size={16} strokeWidth={2} />@@ -221,7 +221,7 @@ const PITRSelection = () => {/><div className="flex items-center space-x-2"><div className="border w-4 h-4 border-scale-800 bg-brand-600" />- <p className="text-xs text-scale-1000">Point in time back up available</p>+ <p className="text-xs text-foreground-light">Point in time back up available</p></div></div>@@ -240,7 +240,7 @@ const PITRSelection = () => {) : (<div className="space-y-8 py-2"><div className="space-y-1">- <p className="text-sm text-scale-1100">Restore database to</p>+ <p className="text-sm text-foreground-light">Restore database to</p><p className="text-3xl"><span>{dayjs(selectedDate).format('DD MMM YYYY')}</span><span>@@ -252,7 +252,7 @@ const PITRSelection = () => {</div><div className="space-y-2"><div className="space-y-1">- <p className="text-sm text-scale-1100">Time zone</p>+ <p className="text-sm text-foreground-light">Time zone</p><div className="w-[350px]"><TimezoneSelectionhideLabel@@ -264,7 +264,7 @@ const PITRSelection = () => {</div><div><div className="space-y-1">- <p className="text-sm text-scale-1100">Recovery time</p>+ <p className="text-sm text-foreground-light">Recovery time</p><TimeInputdefaultTime={selectedTime}minimumTime={@@ -284,7 +284,7 @@ const PITRSelection = () => {/></div>- <p className="text-sm text-scale-1000 mt-8">+ <p className="text-sm text-foreground-light mt-8">Enter a time within the available range to restore from. <br /> Backupsare captured every 2 minutes, allowing you to enter a time and restoreyour database to the closest backup point. We'll match the time you@@ -292,15 +292,15 @@ const PITRSelection = () => {</p></div><div className="!mt-4 space-y-1">- <h3 className="text-sm text-scale-1100"></h3>+ <h3 className="text-sm text-foreground-light"></h3>{isSelectedOnEarliestDay && (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light"><strong>Earliest backup available for this date</strong>:{' '}{earliestAvailableBackup.format('HH:mm:ss')}</p>)}{isSelectedOnLatestDay && (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light"><strong>Latest backup available for this date</strong>:{' '}{latestAvailableBackup.format('HH:mm:ss')}</p>@@ -344,7 +344,7 @@ const PITRSelection = () => {<div className="space-y-4 py-3"><Modal.Content><div className="py-2 space-y-1">- <p className="text-sm text-scale-1100">Your database will be restored to:</p>+ <p className="text-sm text-foreground-light">Your database will be restored to:</p></div><div className="py-2 flex flex-col gap-3"><div>@@ -370,7 +370,7 @@ const PITRSelection = () => {</Modal.Content><Modal.Separator /><Modal.Content>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Restores may take from a few minutes up to several hours depending on the size of yourdatabase. During this period, your project will not be available, until therestoration is completed.diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsxindex c51278b013e..fdf7a5a569d 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx@@ -50,8 +50,8 @@ const PITRStatus = ({footer={<div className="flex items-center justify-between p-6"><div className="flex items-center space-x-4">- <IconAlertCircle className="text-scale-1100" size={18} strokeWidth={1.5} />- <span className="text-scale-1000 text-sm">+ <IconAlertCircle className="text-foreground-light" size={18} strokeWidth={1.5} />+ <span className="text-foreground-light text-sm">You'll be able to pick the right date and time when you begin</span></div>@@ -92,11 +92,11 @@ const PITRStatus = ({</div><div className="flex items-center space-x-20"><div className="space-y-2">- <p className="text-sm text-scale-1100">Database restore available from</p>+ <p className="text-sm text-foreground-light">Database restore available from</p><p className="text-2xl">{earliestAvailableBackup}</p></div><div className="space-y-2">- <p className="text-sm text-scale-1100">Latest restore available at</p>+ <p className="text-sm text-foreground-light">Latest restore available at</p><p className="text-2xl">{latestAvailableBackup}</p></div></div>diff --git a/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx b/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsxindex 435d892f5a5..ec29c6f5811 100644--- a/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx@@ -94,7 +94,7 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T}`,].join(' ')}>- <IconClock className="text-scale-1100" size={18} strokeWidth={1.5} />+ <IconClock className="text-foreground-light" size={18} strokeWidth={1.5} /><Tooltip.Root delayDuration={0}><Tooltip.Trigger className="w-1/4" tabIndex={-1}><inputdiff --git a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsxindex fc169e254df..a7e91fe3e98 100644--- a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx+++ b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx@@ -6,9 +6,9 @@ import { Badge, IconExternalLink, IconLoader, Toggle } from 'ui'import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { useCheckPermissions, useStore } from 'hooks'import { isResponseOk } from 'lib/common/fetch'-import EnableExtensionModal from './EnableExtensionModal'import Link from 'next/link'import { extensions } from 'shared-data'+import EnableExtensionModal from './EnableExtensionModal'interface ExtensionCardProps {extension: any@@ -128,11 +128,11 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => {].join(' ')}><div className="py-3 px-4">- <p className="text-sm text-scale-1100 capitalize-sentence">{extension.comment}</p>+ <p className="text-sm text-foreground-light capitalize-sentence">{extension.comment}</p></div>{isOn && extension.schema && (<div className="py-3 px-4">- <div className="flex items-center flex-grow space-x-2 text-sm text-scale-1100">+ <div className="flex items-center flex-grow space-x-2 text-sm text-foreground-light"><span>Schema:</span><Badge color="scale">{`${extension.schema}`}</Badge></div>diff --git a/studio/components/interfaces/Database/Extensions/Extensions.tsx b/studio/components/interfaces/Database/Extensions/Extensions.tsxindex 7837d60db08..308249f1b64 100644--- a/studio/components/interfaces/Database/Extensions/Extensions.tsx+++ b/studio/components/interfaces/Database/Extensions/Extensions.tsx@@ -52,7 +52,7 @@ const Extensions = () => {{!canUpdateExtensions ? (<div className="w-[500px]"><InformationBox- icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}title="You need additional permissions to update database extensions"/></div>diff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsxindex f6e32e04b32..4e7c1bf925b 100644--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx@@ -1,7 +1,7 @@import { filter, has, isEmpty, isNull, isUndefined, keyBy, mapValues, partition } from 'lodash'import { makeAutoObservable } from 'mobx'import { observer, useLocalObservable } from 'mobx-react-lite'-import { FormEvent, createContext, useContext, useEffect, useState } from 'react'+import { createContext, FormEvent, useContext, useEffect, useState } from 'react'import { Button, IconPlus, IconTrash, Input, Listbox, Modal, Radio, SidePanel, Toggle } from 'ui'import { Dictionary } from 'components/grid'@@ -14,9 +14,9 @@ import SqlEditor from 'components/ui/SqlEditor'import { useSchemasQuery } from 'data/database/schemas-query'import { useStore } from 'hooks'import { isResponseOk } from 'lib/common/fetch'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'import { SupaResponse } from 'types'import { convertArgumentTypes, convertConfigParams, hasWhitespace } from './Functions.utils'-import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'// [Refactor] Remove local state, just use the Form component@@ -427,7 +427,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {}}><Modal.Content>- <p className="py-4 text-sm text-scale-1100">+ <p className="py-4 text-sm text-foreground-light">There are unsaved changes. Are you sure you want to close the panel? Your changes willbe lost.</p>@@ -481,7 +481,7 @@ const InputMultiArguments = observer(({ readonly }: InputMultiArgumentsProps) =><div><div className="flex flex-col"><h5 className="text-base text-foreground">Arguments</h5>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Arguments can be referenced in the function body using either names or numbers.</p></div>@@ -695,11 +695,11 @@ const InputDefinition = observer(({}) => {<div className="space-y-4"><div className="flex flex-col"><h5 className="text-base text-foreground">Definition</h5>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">The language below should be written in `{_localState!.formState.language.value}`.</p>{!_localState?.isEditing && (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Change the language in the Advanced Settings below.</p>)}diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsxindex 4e3f9fa43e5..2386edcdfec 100644--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx@@ -70,11 +70,11 @@ const FunctionsList = ({disabled={!canCreateFunctions}disabledMessage="You need additional permissions to create functions">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">PostgreSQL functions, also known as stored procedures, is a set of SQL and proceduralcommands such as declarations, assignments, loops, flow-of-control, etc.</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">It's stored on the database server and can be invoked using the SQL interface.</p></ProductEmptyState>diff --git a/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/studio/components/interfaces/Database/Hooks/EditHookPanel.tsxindex 81eb0791973..a897d1b13d4 100644--- a/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx+++ b/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx@@ -17,8 +17,8 @@ import { useTablesQuery } from 'data/tables/tables-query'import { useStore } from 'hooks'import { isValidHttpUrl, tryParseJson, uuidv4 } from 'lib/helpers'import { Button, Checkbox, Form, Input, Listbox, Modal, Radio, SidePanel } from 'ui'-import HTTPRequestFields from './HTTPRequestFields'import { AVAILABLE_WEBHOOK_TYPES, HOOK_EVENTS } from './Hooks.constants'+import HTTPRequestFields from './HTTPRequestFields'export interface EditHookPanelProps {visible: boolean@@ -334,7 +334,7 @@ const EditHookPanel = ({ visible, selectedHook, onClose }: EditHookPanelProps) =}}><Modal.Content>- <p className="py-4 text-sm text-scale-1100">+ <p className="py-4 text-sm text-foreground-light">There are unsaved changes. Are you sure you want to close the panel? Your changes willbe lost.</p>@@ -424,7 +424,7 @@ const FormContents = ({<FormSectionLabelclassName="lg:!col-span-4"description={- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Select which table and events will trigger your webhook</p>}@@ -457,7 +457,7 @@ const FormContents = ({label={table.name}><div className="flex items-center space-x-2">- <p className="text-scale-1000">{table.schema}</p>+ <p className="text-foreground-light">{table.schema}</p><p className="text-foreground">{table.name}</p></div></Listbox.Option>@@ -504,7 +504,7 @@ const FormContents = ({<div className="flex space-x-2"><p className="text-foreground">{webhook.label}</p></div>- <p className="text-scale-1000">{webhook.description}</p>+ <p className="text-foreground-light">{webhook.description}</p></div></div>}diff --git a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsxindex 148378db9b6..946d44cfba1 100644--- a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx+++ b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx@@ -87,7 +87,7 @@ const HTTPRequestFields = ({/>) : type === 'supabase_function' && edgeFunctions.length === 0 ? (<div className="space-y-1">- <p className="text-sm text-scale-1100">Select which edge function to trigger</p>+ <p className="text-sm text-foreground-light">Select which edge function to trigger</p><div className="px-4 py-4 border rounded bg-scale-500 border-scale-700 flex items-center justify-between space-x-4"><p className="text-sm">No edge functions created yet</p><Link href={`/project/${ref}/functions`}>@@ -181,7 +181,7 @@ const HTTPRequestFields = ({><div className="space-y-1"><p className="block text-foreground">Add auth header with service key</p>- <p className="text-scale-1000">+ <p className="text-foreground-light">Required if your edge function enforces JWT verification</p></div>@@ -199,7 +199,7 @@ const HTTPRequestFields = ({><div className="space-y-1"><p className="block text-foreground">Add custom source header</p>- <p className="text-scale-1000">+ <p className="text-foreground-light">Useful to verify that the edge function was triggered from this webhook</p></div>diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsxindex 29c0304b3fa..f6b5951efbb 100644--- a/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx+++ b/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx@@ -62,7 +62,7 @@ const HooksList = ({disabled={!canCreateWebhooks}disabledMessage="You need additional permissions to create webhooks">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Database Webhooks can be used to trigger serverless functions or send requests to anHTTP endpoint.</p>diff --git a/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx b/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsxindex 35bc890a3f6..fb7030d46df 100644--- a/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx+++ b/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx@@ -21,7 +21,7 @@ const SchemaTable = ({<div key={schema} className=""><div className="sticky top-0 backdrop-blur backdrop-filter"><div className="flex items-baseline space-x-1 py-2">- <h5 className="text-scale-1000">schema</h5>+ <h5 className="text-foreground-light">schema</h5><h4>{schema}</h4></div></div>diff --git a/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx b/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsxindex 21a07a3471b..563ad10fe3a 100644--- a/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx+++ b/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx@@ -6,13 +6,13 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport CodeEditor from 'components/ui/CodeEditor'import MultiSelect, { MultiSelectOption } from 'components/ui/MultiSelect'import ShimmeringLoader from 'components/ui/ShimmeringLoader'+import { useIndexesQuery } from 'data/database/indexes-query'import { useSchemasQuery } from 'data/database/schemas-query'import { useTableColumnsQuery } from 'data/database/table-columns-query'import { useEntityTypesQuery } from 'data/entity-types/entity-types-infinite-query'-import { INDEX_TYPES } from './Indexes.constants'import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation'-import { useIndexesQuery } from 'data/database/indexes-query'import { useStore } from 'hooks'+import { INDEX_TYPES } from './Indexes.constants'interface CreateIndexSidePanelProps {visible: boolean@@ -143,7 +143,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp{entityTypes.length === 0 ? (<div className="space-y-2">- <p className="text-sm text-scale-1100 leading-4">Select a table</p>+ <p className="text-sm text-foreground-light leading-4">Select a table</p><Inputdisabledplaceholder="No tables available in schema"@@ -170,7 +170,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp{selectedEntity !== '---' && (<div>- <p className="text-sm text-scale-1100 mb-2">Select up to 32 columns</p>+ <p className="text-sm text-foreground-light mb-2">Select up to 32 columns</p>{isLoadingTableColumns && <ShimmeringLoader className="py-4" />}{isSuccessTableColumns && (<MultiSelectdiff --git a/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx b/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsxindex 733b521fb30..01c2b9b4476 100644--- a/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx+++ b/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx@@ -50,7 +50,7 @@ const MigrationsEmptyState = () => {<div className="space-y-8"><div className="space-y-2 w-4/5"><h4 className="text-lg">Database migrations</h4>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Database changes are managed through "migrations" and they are a common way of trackingchanges to your database over time. You can run migrations against your project'sdatabase via the Supabase CLI.diff --git a/studio/components/interfaces/Database/Publications/PublicationsList.tsx b/studio/components/interfaces/Database/Publications/PublicationsList.tsxindex c3b32829d41..fa2b16dafc4 100644--- a/studio/components/interfaces/Database/Publications/PublicationsList.tsx+++ b/studio/components/interfaces/Database/Publications/PublicationsList.tsx@@ -76,7 +76,7 @@ const PublicationsList = ({ onSelectPublication = noop }: PublicationsListProps){!canUpdatePublications && (<div className="w-[500px]"><InformationBox- icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}title="You need additional permissions to update database replications"/></div>diff --git a/studio/components/interfaces/Database/Publications/PublicationsTables.tsx b/studio/components/interfaces/Database/Publications/PublicationsTables.tsxindex 0e6b650674b..9b881dddd5b 100644--- a/studio/components/interfaces/Database/Publications/PublicationsTables.tsx+++ b/studio/components/interfaces/Database/Publications/PublicationsTables.tsx@@ -101,7 +101,7 @@ const PublicationsTables = ({ selectedPublication, onSelectBack }: PublicationsT{!canUpdatePublications && (<div className="w-[500px]"><InformationBox- icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}title="You need additional permissions to update database replications"/></div>diff --git a/studio/components/interfaces/Database/Roles/RoleRow.tsx b/studio/components/interfaces/Database/Roles/RoleRow.tsxindex 94a30a0f413..7b6e3aaf829 100644--- a/studio/components/interfaces/Database/Roles/RoleRow.tsx+++ b/studio/components/interfaces/Database/Roles/RoleRow.tsx@@ -105,7 +105,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {<p className="text-left text-sm" id="collapsible-trigger">{role.name}</p>- <p className="text-left text-sm text-scale-1000" id="collapsible-trigger">+ <p className="text-left text-sm text-foreground-light" id="collapsible-trigger">(ID: {role.id})</p></div>@@ -122,7 +122,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {<pid="collapsible-trigger"className={`text-sm ${- role.active_connections > 0 ? 'text-scale-1100' : 'text-scale-1000'+ role.active_connections > 0 ? 'text-foreground' : 'text-foreground-light'}`}>{role.active_connections} connectionsdiff --git a/studio/components/interfaces/Database/Roles/RolesList.tsx b/studio/components/interfaces/Database/Roles/RolesList.tsxindex e9e43ad9f7c..5c69f774698 100644--- a/studio/components/interfaces/Database/Roles/RolesList.tsx+++ b/studio/components/interfaces/Database/Roles/RolesList.tsx@@ -1,19 +1,19 @@-import { partition } from 'lodash'-import { useState, useEffect } from 'react'-import { observer } from 'mobx-react-lite'import * as Tooltip from '@radix-ui/react-tooltip'import { PostgresRole } from '@supabase/postgres-meta'-import { Button, Input, IconPlus, IconSearch, IconX, Badge } from 'ui'import { PermissionAction } from '@supabase/shared-types/out/constants'+import { partition } from 'lodash'+import { observer } from 'mobx-react-lite'+import { useEffect, useState } from 'react'+import { Badge, Button, IconPlus, IconSearch, IconX, Input } from 'ui'-import { useCheckPermissions, useStore } from 'hooks'-import SparkBar from 'components/ui/SparkBar'import { FormHeader } from 'components/ui/Forms'-import RoleRow from './RoleRow'-import { SUPABASE_ROLES } from './Roles.constants'+import NoSearchResults from 'components/ui/NoSearchResults'+import SparkBar from 'components/ui/SparkBar'+import { useCheckPermissions, useStore } from 'hooks'import CreateRolePanel from './CreateRolePanel'import DeleteRoleModal from './DeleteRoleModal'-import NoSearchResults from 'components/ui/NoSearchResults'+import RoleRow from './RoleRow'+import { SUPABASE_ROLES } from './Roles.constants'const RolesList = ({}) => {const { meta } = useStore()@@ -90,7 +90,7 @@ const RolesList = ({}) => {'text-xs w-[90px] h-full text-center rounded-l-full flex items-center justify-center transition',filterType === 'all'? 'bg-scale-500 text-foreground'- : 'hover:bg-scale-400 text-scale-1100',+ : 'hover:bg-scale-400 text-foreground-light',].join(' ')}onClick={() => setFilterType('all')}>@@ -102,7 +102,7 @@ const RolesList = ({}) => {'text-xs w-[90px] h-full text-center rounded-r-full flex items-center justify-center transition',filterType === 'active'? 'bg-scale-500 text-foreground'- : 'hover:bg-scale-400 text-scale-1100',+ : 'hover:bg-scale-400 text-foreground-light',].join(' ')}onClick={() => setFilterType('active')}>@@ -140,7 +140,7 @@ const RolesList = ({}) => {'border border-scale-200 space-y-1',].join(' ')}>- <p className="text-xs text-scale-1100 pr-2">Connections by roles:</p>+ <p className="text-xs text-foreground-light pr-2">Connections by roles:</p>{rolesWithActiveConnections.map((role: PostgresRole) => (<div key={role.id} className="text-xs text-foreground">{role.name}: {role.active_connections}@@ -181,7 +181,7 @@ const RolesList = ({}) => {<div>{supabaseRoles.length > 0 && (<div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t flex items-center space-x-4">- <p className="text-sm text-scale-1100">Roles managed by Supabase</p>+ <p className="text-sm text-foreground-light">Roles managed by Supabase</p><Badge color="green">Protected</Badge></div>)}@@ -198,7 +198,7 @@ const RolesList = ({}) => {<div>{otherRoles.length > 0 && (<div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t">- <p className="text-sm text-scale-1100">Other database roles</p>+ <p className="text-sm text-foreground-light">Other database roles</p></div>)}{otherRoles.map((role: PostgresRole, i: number) => (diff --git a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsxindex 4fb1bd23fa6..429076b21c6 100644--- a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx+++ b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx@@ -374,14 +374,14 @@ const SchemaGraph = ({ schema }: { schema: string }) => {return (<div className="flex h-full w-full items-center justify-center space-x-2"><IconLoader className="animate-spin" size={14} />- <p className="text-sm text-scale-1000">Loading table...</p>+ <p className="text-sm text-foreground-light">Loading table...</p></div>)}if (isError) {return (- <div className="px-6 py-4 text-scale-1000">+ <div className="px-6 py-4 text-foreground-light"><p>Error connecting to API</p><p>{`${error?.message ?? 'Unknown error'}`}</p></div>diff --git a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsxindex 0ea6fd334c1..6e111b7eb4d 100644--- a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx+++ b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx@@ -1,13 +1,13 @@-import { createContext, useContext, useState } from 'react'-import { useRouter } from 'next/router'-import { observer, useLocalObservable } from 'mobx-react-lite'-import { uniqBy, map as lodashMap } from 'lodash'import { Transition } from '@headlessui/react'-import { Button, IconChevronDown, IconHelpCircle, IconTerminal, SidePanel } from 'ui'import { Dictionary } from 'components/grid'-import SqlEditor from 'components/ui/SqlEditor'import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'import InformationBox from 'components/ui/InformationBox'+import SqlEditor from 'components/ui/SqlEditor'+import { map as lodashMap, uniqBy } from 'lodash'+import { observer, useLocalObservable } from 'mobx-react-lite'+import { useRouter } from 'next/router'+import { createContext, useContext, useState } from 'react'+import { Button, IconChevronDown, IconHelpCircle, IconTerminal, SidePanel } from 'ui'interface IChooseFunctionFormStore {functionSchemas: string[]@@ -112,7 +112,7 @@ const NoFunctionsState = ({}) => {router.push(`/project/${ref}/database/functions`)}}>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">You will need to create a trigger based function before you can add it to your trigger.</p></ProductEmptyState>@@ -130,7 +130,7 @@ const SchemaFunctionGroup = observer(({ schema, selectFunction }: SchemaFunctionreturn (<div className="space-y-4"><div className="sticky top-0 flex items-center space-x-1 px-6 backdrop-blur backdrop-filter">- <h5 className="text-scale-1000">schema</h5>+ <h5 className="text-foreground-light">schema</h5><h5>{schema}</h5></div><div className="space-y-0 divide-y border-t border-b dark:divide-dark dark:border-dark">diff --git a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsxindex ab6475a5c3f..177ad2f98c2 100644--- a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx+++ b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx@@ -12,6 +12,7 @@ import NoTableState from 'components/ui/States/NoTableState'import { useTablesQuery } from 'data/tables/tables-query'import { useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'import {Badge,Button,@@ -25,7 +26,6 @@ import {SidePanel,} from 'ui'import ChooseFunctionForm from './ChooseFunctionForm'-import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'class CreateTriggerFormState {id: number | undefined@@ -404,7 +404,7 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) =>}}><Modal.Content>- <p className="py-4 text-sm text-scale-1100">+ <p className="py-4 text-sm text-foreground-light">There are unsaved changes. Are you sure you want to close the panel? Your changeswill be lost.</p>@@ -595,7 +595,7 @@ const ListboxTable = observer(({}) => {)}><div className="flex flex-row items-center space-x-1">- <p className="text-sm text-scale-1000">{x.schema}</p>+ <p className="text-sm text-foreground-light">{x.schema}</p><p className="text">{x.name}</p></div></Listbox.Option>@@ -769,7 +769,7 @@ const FunctionWithArguments = observer(({}) => {<IconTerminal size="small" strokeWidth={2} width={14} /></div><div className="flex items-center gap-2">- <p className="text-scale-1000">{_localState!.formState.functionName.value}</p>+ <p className="text-foreground-light">{_localState!.formState.functionName.value}</p><div><Badge>{_localState!.formState.functionSchema.value}</Badge></div>diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsxindex e7d5e3ca61f..62c0f244d8b 100644--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx@@ -63,11 +63,11 @@ const TriggersList = ({onClickCta={() => createTrigger()}><AlphaPreview />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">A PostgreSQL trigger is a function invoked automatically whenever an event associatedwith a table occurs.</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">An event could be any of the following: INSERT, UPDATE, DELETE. A trigger is a specialuser-defined function associated with a table.</p>diff --git a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsxindex 23193e52b11..fa28dd5bc2c 100644--- a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx+++ b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx@@ -11,19 +11,19 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport {FormActions,FormPanel,+ FormsContainer,FormSection,FormSectionContent,FormSectionLabel,- FormsContainer,} from 'components/ui/Forms'import { invalidateSchemasQuery } from 'data/database/schemas-query'import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation'import { useCheckPermissions, useStore } from 'hooks'import { Button, Form, IconArrowLeft, IconEdit, IconExternalLink, IconTrash, Input } from 'ui'import InputField from './InputField'-import WrapperTableEditor from './WrapperTableEditor'import { WRAPPERS } from './Wrappers.constants'import { makeValidateRequired } from './Wrappers.utils'+import WrapperTableEditor from './WrapperTableEditor'const CreateWrapper = () => {const formId = 'create-wrapper-form'@@ -71,7 +71,7 @@ const CreateWrapper = () => {<div className="flex flex-col items-center justify-center w-full h-full space-y-4"><div className="space-y-2 flex flex-col items-center w-[400px]"><p>Unsupported wrapper type</p>- <p className="text-sm text-center text-scale-1000">+ <p className="text-sm text-center text-foreground-light">The wrapper type {type} not supported by the dashboard. Head back to create a differentwrapper.</p>@@ -210,7 +210,7 @@ const CreateWrapper = () => {header={<FormSectionLabel><p>Foreign Tables</p>- <p className="text-scale-1000 mt-2 w-[90%]">+ <p className="text-foreground-light mt-2 w-[90%]">You can query your data from these foreign tables after the wrapper iscreated</p>@@ -235,7 +235,7 @@ const CreateWrapper = () => {<p className="text-sm">{table.schema_name}.{table.table_name}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{wrapperMeta.tables[table.index].label}:{' '}{table.columns.map((column: any) => column.name).join(', ')}</p>diff --git a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsxindex 63f9988ee80..aac33fe70fd 100644--- a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx+++ b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx@@ -11,10 +11,10 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport {FormActions,FormPanel,+ FormsContainer,FormSection,FormSectionContent,FormSectionLabel,- FormsContainer,} from 'components/ui/Forms'import Loading from 'components/ui/Loading'import { invalidateSchemasQuery } from 'data/database/schemas-query'@@ -33,13 +33,13 @@ import {Input,} from 'ui'import InputField from './InputField'-import WrapperTableEditor from './WrapperTableEditor'import { WRAPPERS } from './Wrappers.constants'import {convertKVStringArrayToJson,formatWrapperTables,makeValidateRequired,} from './Wrappers.utils'+import WrapperTableEditor from './WrapperTableEditor'const EditWrapper = () => {const formId = 'edit-wrapper-form'@@ -120,7 +120,7 @@ const EditWrapper = () => {<div className="flex flex-col items-center justify-center w-full h-full space-y-4"><div className="space-y-2 flex flex-col items-center w-[400px]"><p>Unknown wrapper</p>- <p className="text-sm text-center text-scale-1000">+ <p className="text-sm text-center text-foreground-light">The wrapper ID {id} cannot be found in your project. Head back to select anotherwrapper.</p>@@ -312,7 +312,7 @@ const EditWrapper = () => {header={<FormSectionLabel><p>Foreign Tables</p>- <p className="text-scale-1000 mt-2 w-[90%]">+ <p className="text-foreground-light mt-2 w-[90%]">You can query your data from these foreign tables after the wrapper iscreated</p>@@ -337,7 +337,7 @@ const EditWrapper = () => {<p className="text-sm">{table.schema_name}.{table.table_name}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{wrapperMeta.tables[table.index].label}:{' '}{table.columns.map((column: any) => column.name).join(', ')}</p>diff --git a/studio/components/interfaces/Database/Wrappers/InputField.tsx b/studio/components/interfaces/Database/Wrappers/InputField.tsxindex 9faff0ef110..ff44468b970 100644--- a/studio/components/interfaces/Database/Wrappers/InputField.tsx+++ b/studio/components/interfaces/Database/Wrappers/InputField.tsx@@ -32,7 +32,7 @@ const InputField = ({ option, loading, error }: InputFieldProps) => {<IconHelpCirclestrokeWidth={2}size={14}- className="text-scale-1000 hover:text-foreground cursor-pointer transition"+ className="text-foreground-light hover:text-foreground cursor-pointer transition"/></a></Link>@@ -60,7 +60,7 @@ const InputField = ({ option, loading, error }: InputFieldProps) => {<IconHelpCirclestrokeWidth={2}size={14}- className="text-scale-1000 hover:text-foreground cursor-pointer transition"+ className="text-foreground-light hover:text-foreground cursor-pointer transition"/></a></Link>diff --git a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsxindex 8b9d042322b..2ff3cf2590a 100644--- a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx@@ -93,7 +93,7 @@ const WrapperRow = ({{visibleMetadata.map((metadata) => (<divkey={metadata.name}- className="flex items-center space-x-2 text-sm text-scale-1000"+ className="flex items-center space-x-2 text-sm text-foreground-light"><p>{metadata.label}:</p><p>{serverOptions[metadata.name]}</p>@@ -101,11 +101,11 @@ const WrapperRow = ({))}{encryptedMetadata.map((metadata) => (<div key={metadata.name} className="flex items-center space-x-2 text-sm">- <p className="text-scale-1000">{metadata.label}:</p>+ <p className="text-foreground-light">{metadata.label}:</p><Linkhref={`/project/${ref}/settings/vault/secrets?search=${wrapper.name}_${metadata.name}`}>- <a className="transition text-scale-1000 hover:text-scale-1100 flex items-center space-x-2">+ <a className="transition text-foreground-light hover:text-foreground flex items-center space-x-2"><span>Encrypted in Vault</span><IconExternalLink size={14} strokeWidth={1.5} /></a>@@ -113,7 +113,7 @@ const WrapperRow = ({</div>))}<div className="!mt-3 space-y-1">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Foreign tables{wrapper.tables && `: (${wrapper.tables.length})`}</p><div className="flex flex-wrap gap-2">@@ -131,7 +131,7 @@ const WrapperRow = ({</Link>))) : (- <p className="text-sm text-scale-1100">No tables available</p>+ <p className="text-sm text-foreground-light">No tables available</p>)}</div></div>diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsxindex eb3c7be536e..dc674601bf9 100644--- a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx@@ -1,14 +1,14 @@+import * as Tooltip from '@radix-ui/react-tooltip'+import { PermissionAction } from '@supabase/shared-types/out/constants'+import { observer } from 'mobx-react-lite'import Link from 'next/link'import { useState } from 'react'import { Button, IconExternalLink } from 'ui'-import { observer } from 'mobx-react-lite'-import * as Tooltip from '@radix-ui/react-tooltip'-import { PermissionAction } from '@supabase/shared-types/out/constants'-import { useCheckPermissions, useStore } from 'hooks'+import { useTheme } from 'common'import { useParams } from 'common/hooks'+import { useCheckPermissions, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'-import { useTheme } from 'common'const WrappersDisabledState = () => {const { ui, meta } = useStore()@@ -79,7 +79,7 @@ const WrappersDisabledState = () => {<div className="w-3/5 space-y-8"><div className="space-y-2"><h4 className="text-lg">Supabase Wrappers</h4>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Supabase Wrappers is a framework for building Postgres Foreign Data Wrappers (FDW)which connect Postgres to external systems. Query your data warehouse or third-partyAPIs directly from your database.@@ -89,10 +89,10 @@ const WrappersDisabledState = () => {<div className="space-y-4"><div className="rounded border border-scale-500 px-4 py-2 flex items-center justify-between"><div>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Wrappers is not available for this project yet.</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Do reach out to us if you're interested!</p></div>diff --git a/studio/components/interfaces/Docs/GeneratingTypes.tsx b/studio/components/interfaces/Docs/GeneratingTypes.tsxindex dc1ea1347e3..8f9f787d275 100644--- a/studio/components/interfaces/Docs/GeneratingTypes.tsx+++ b/studio/components/interfaces/Docs/GeneratingTypes.tsx@@ -86,7 +86,7 @@ export default function GeneratingTypes({ selectedLang }: Props) {</Button>)}</p>- <p className="text-xs text-center text-scale-1100 bg-scale-200 p-4">+ <p className="text-xs text-center text-foreground-light bg-scale-200 p-4">Remember to re-generate and download this file as you make changes to your tables.</p></div>diff --git a/studio/components/interfaces/Docs/Param.tsx b/studio/components/interfaces/Docs/Param.tsxindex be3a09263ca..6e047522960 100644--- a/studio/components/interfaces/Docs/Param.tsx+++ b/studio/components/interfaces/Docs/Param.tsx@@ -63,7 +63,7 @@ const Param = ({<div className="mb-4 flex items-center gap-2"><label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">Type</label><div>- <span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-scale-1000">+ <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"><IconCode size="tiny" /><span>{getColumnType(type, format)}</span>@@ -76,7 +76,7 @@ const Param = ({Format</label><div>- <span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-scale-1000">+ <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"><IconDatabase size="tiny" /><span>{format}</span>diff --git a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsxindex a53fabc2ed7..49f75659756 100644--- a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx+++ b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx@@ -192,7 +192,7 @@ const EdgeFunctionDetails = () => {for this function</p></div>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Import maps allow the use of bare specifiers in functions instead ofexplicit import URLs</p>diff --git a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsxindex 5aec55b598d..1069ed7c477 100644--- a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx+++ b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx@@ -7,8 +7,8 @@ import { IconCheck, IconClipboard } from 'ui'import { useParams } from 'common/hooks'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import Table from 'components/to-be-cleaned/Table'-import { EdgeFunctionsResponse } from 'data/edge-functions/edge-functions-query'import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'+import { EdgeFunctionsResponse } from 'data/edge-functions/edge-functions-query'interface EdgeFunctionsListItemProps {function: EdgeFunctionsResponse@@ -46,7 +46,7 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =</div></Table.td><Table.td className="">- <div className="text-xs text-scale-1100 flex gap-2 items-center truncate">+ <div className="text-xs text-foreground-light flex gap-2 items-center truncate"><p className="font-mono truncate hidden md:inline">{endpoint}</p><buttontype="button"@@ -78,13 +78,15 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =</div></Table.td><Table.td className="hidden 2xl:table-cell">- <p className="text-scale-1100">{dayjs(item.created_at).format('DD MMM, YYYY HH:mm')}</p>+ <p className="text-foreground-light">+ {dayjs(item.created_at).format('DD MMM, YYYY HH:mm')}+ </p></Table.td><Table.td className="lg:table-cell"><Tooltip.Root delayDuration={0}><Tooltip.Trigger><div className="flex items-center space-x-2">- <p className="text-sm text-scale-1000">{dayjs(item.updated_at).fromNow()}</p>+ <p className="text-sm text-foreground-light">{dayjs(item.updated_at).fromNow()}</p></div></Tooltip.Trigger><Tooltip.Portal>@@ -105,7 +107,7 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =</Tooltip.Root></Table.td><Table.td className="lg:table-cell">- <p className="text-scale-1100">{item.version}</p>+ <p className="text-foreground-light">{item.version}</p></Table.td></Table.tr>)diff --git a/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/studio/components/interfaces/Functions/FunctionsEmptyState.tsxindex 53f27c1d26b..c28db55ccb4 100644--- a/studio/components/interfaces/Functions/FunctionsEmptyState.tsx+++ b/studio/components/interfaces/Functions/FunctionsEmptyState.tsx@@ -10,7 +10,7 @@ const FunctionsEmptyState = () => {<p className="max-w-lg text-base text-foreground">Scalable functions to run your code with no server management.</p>- <p className="max-w-lg text-sm text-scale-1100">+ <p className="max-w-lg text-sm text-foreground-light">Edge Functions are server-side Typescript functions, distributed globally at the edge -close to your users. They can be used for listening to webhooks or integrating yourSupabase project with third-parties.diff --git a/studio/components/interfaces/Functions/TerminalInstructions.tsx b/studio/components/interfaces/Functions/TerminalInstructions.tsxindex 554a31f9914..80b77bbc185 100644--- a/studio/components/interfaces/Functions/TerminalInstructions.tsx+++ b/studio/components/interfaces/Functions/TerminalInstructions.tsx@@ -119,7 +119,7 @@ const TerminalInstructions = ({<div className="px-8 py-6 space-y-3 border-t"><div><h3 className="text-base text-foreground">You may need to create an access token</h3>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">You can create a secure access token in your account section</p></div>@@ -131,7 +131,7 @@ const TerminalInstructions = ({<div className="px-8 py-6 space-y-3 border-t"><div><h3 className="text-base text-foreground">Need help?</h3>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Read the documentation, or browse some sample code.</p></div>diff --git a/studio/components/interfaces/Home/ExampleProject.tsx b/studio/components/interfaces/Home/ExampleProject.tsxindex 6b169e013d9..0d388f09e83 100644--- a/studio/components/interfaces/Home/ExampleProject.tsx+++ b/studio/components/interfaces/Home/ExampleProject.tsx@@ -42,7 +42,7 @@ const ExampleProject = ({ framework, title, description, url }: ExampleProjectPr</div><div className="w-4/5 space-y-2"><h5 className="text-foreground">{title}</h5>- <p className="text-sm text-scale-1000">{description}</p>+ <p className="text-sm text-foreground-light">{description}</p></div><divclassName="diff --git a/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx b/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsxindex bdb05b801b7..f861eeedf47 100644--- a/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx@@ -4,13 +4,13 @@ import Link from 'next/link'import { useState } from 'react'import { IconAlertCircle, IconLoader, Input } from 'ui'-import { useProjectApiQuery } from 'data/config/project-api-query'-import { useJwtSecretUpdatingStatusQuery } from 'data/config/jwt-secret-updating-status-query'-import { useCheckPermissions } from 'hooks'import { useParams } from 'common/hooks'import Snippets from 'components/interfaces/Docs/Snippets'-import Panel from 'components/ui/Panel'import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'+import Panel from 'components/ui/Panel'+import { useJwtSecretUpdatingStatusQuery } from 'data/config/jwt-secret-updating-status-query'+import { useProjectApiQuery } from 'data/config/project-api-query'+import { useCheckPermissions } from 'hooks'const APIKeys = () => {const { ref: projectRef } = useParams()@@ -59,7 +59,7 @@ const APIKeys = () => {title={<div className="space-y-3"><h5 className="text-base">Project API</h5>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your API is secured behind an API gateway which requires an API Key for every request.<br />You can use the parameters below to use Supabase client libraries.@@ -70,14 +70,14 @@ const APIKeys = () => {{isProjectSettingsError || isJwtSecretUpdateStatusError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{isProjectSettingsError ? 'Failed to retrieve API keys' : 'Failed to update JWT secret'}</p></div>) : isApiKeysEmpty || isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (<div className="flex items-center justify-center py-8 space-x-2"><IconLoader className="animate-spin" size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{isProjectSettingsLoading || isApiKeysEmpty? 'Retrieving API keys': 'JWT secret is being updated'}@@ -155,7 +155,7 @@ const APIKeys = () => {key={language.key}className={['px-3 py-1 text-sm cursor-pointer transition',- `${!isSelected ? 'bg-scale-200 text-scale-1000' : 'bg-scale-300'}`,+ `${!isSelected ? 'bg-scale-200 text-foreground-light' : 'bg-scale-300'}`,].join(' ')}onClick={() => setSelectedLanguage(language)}>diff --git a/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx b/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsxindex c4745876262..fa8cf3096a3 100644--- a/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx@@ -8,49 +8,49 @@ const GetStartedHero = () => {].join(' ')}><div className="text-xs font-mono space-x-4 flex items-center">- <span className="text-scale-1000">1</span>+ <span className="text-foreground-light">1</span><p className="text-blue-900">create table <span className="text-foreground">countries {`(`}</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-scale-1000">2</span>+ <span className="text-foreground-light">2</span><p className="text-foreground">id <span className="text-blue-900">bigint generated by default</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-scale-1000">3</span>+ <span className="text-foreground-light">3</span><p className="text-foreground">name <span className="text-blue-900">text</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-scale-1000">4</span>+ <span className="text-foreground-light">4</span><p className="text-foreground">iso2 <span className="text-blue-900">text not null</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-scale-1000">5</span>+ <span className="text-foreground-light">5</span><p className="text-foreground">iso3 <span className="text-blue-900">text</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-scale-1000">6</span>+ <span className="text-foreground-light">6</span><p className="text-foreground">local_name <span className="text-blue-900">text</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-scale-1000">7</span>+ <span className="text-foreground-light">7</span><p className="text-foreground">continent <span className="text-blue-900">continents</span></p></div><div className="text-xs font-mono space-x-4 flex items-center">- <span className="text-scale-1000">8</span>+ <span className="text-foreground-light">8</span><p className="text-blue-900">{`);`}</p></div></div>diff --git a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsxindex f8c3599b89d..73d8ab6c0a2 100644--- a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx@@ -20,7 +20,7 @@ const NewProjectPanel = () => {<div className="flex h-full flex-col justify-between"><div className="space-y-2"><h3 className="text-xl text-foreground">Welcome to your new project</h3>- <p className="text-base text-scale-1100">+ <p className="text-base text-foreground-light">Your project has been deployed on its own instance, with its own API all set up andready to use.</p>@@ -33,7 +33,7 @@ const NewProjectPanel = () => {<h3 className="text-xl text-foreground">Get started by building out your database</h3>- <p className="text-base text-scale-1100">+ <p className="text-base text-foreground-light">Start building your app by creating tables and inserting data. Our Table Editormakes Postgres as easy to use as a spreadsheet, but there's also our SQL Editor ifyou need something more.@@ -97,7 +97,7 @@ const NewProjectPanel = () => {<div className="flex h-full flex-col justify-between space-y-6"><div className="max-w-2xl space-y-2"><h3 className="text-xl text-foreground">Explore our other products</h3>- <p className="text-base text-scale-1100">+ <p className="text-base text-foreground-light">Supabase provides all the backend features you need to build a product. You can useit completely, or just the features you need.</p>@@ -106,13 +106,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconKey strokeWidth={2} size={16} /></div><h5>Authentication</h5></div><div className="flex flex-grow md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">A complete user management system that works without any additional tools.</p></div>@@ -140,13 +140,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconArchive strokeWidth={2} size={16} /></div><h5>Storage</h5></div><div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Store, organize, and serve any file types of any size from multiple buckets.</p></div>@@ -174,13 +174,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconCode strokeWidth={2} size={16} /></div><h5>Edge Functions</h5></div><div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Write custom code without deploying or scaling servers, with fast deploy timesand low latency.</p>@@ -208,13 +208,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-4">- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconActivity strokeWidth={2} size={16} /></div><h5>Realtime</h5></div><div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Listen to your PostgreSQL database in realtime via websockets.</p></div>@@ -242,14 +242,14 @@ const NewProjectPanel = () => {<div className="space-y-6"><div className="space-y-2"><h3 className="text-xl text-foreground">Connecting to your new project</h3>- <p className="text-base text-scale-1100 lg:max-w-sm">+ <p className="text-base text-foreground-light lg:max-w-sm">Interact with your database through the{' '}<Link href="https://supabase.com/docs/reference"><a className="text-brand">Supabase client libraries</a></Link>{' '}with your API keys.</p>- <p className="text-base text-scale-1100 lg:max-w-sm">+ <p className="text-base text-foreground-light lg:max-w-sm">More information about your project's keys can be found in your project's APIsettings.</p>diff --git a/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/studio/components/interfaces/Home/ProjectList/ProjectCard.tsxindex f0b3c460ce5..2042f6ca176 100644--- a/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx+++ b/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx@@ -1,12 +1,12 @@import { IconGitBranch, IconGitHub } from 'ui'import CardButton from 'components/ui/CardButton'-import { BASE_PATH } from 'lib/constants'-import { Project } from 'types'import { IntegrationProjectConnection } from 'data/integrations/integrations.types'import { ResourceWarning } from 'data/usage/resource-warnings-query'-import { ProjectCardStatus } from './ProjectCardStatus'+import { BASE_PATH } from 'lib/constants'+import { Project } from 'types'import { inferProjectStatus } from './ProjectCard.utils'+import { ProjectCardStatus } from './ProjectCardStatus'export interface ProjectCardProps {project: Project@@ -40,7 +40,7 @@ const ProjectCard = ({title={<div className="w-full justify-between space-y-1.5 px-6"><p className="flex-shrink truncate text-base">{name}</p>- <span className="text-sm lowercase text-scale-1000">{desc}</span>+ <span className="text-sm lowercase text-foreground-light">{desc}</span><div className="flex items-center space-x-1.5">{isVercelIntegrated && (<div className="w-fit p-1 border rounded-md flex items-center border-scale-600">@@ -61,7 +61,7 @@ const ProjectCard = ({<div className="w-fit p-1 border rounded-md flex items-center border-scale-600"><IconGitHub size={12} strokeWidth={1.5} /></div>- <p className="text-xs !ml-2 text-scale-1100">{githubRepository}</p>+ <p className="text-xs !ml-2 text-foreground-light">{githubRepository}</p></>)}</div>diff --git a/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/studio/components/interfaces/Home/ProjectList/ProjectList.tsxindex ab938e7de38..aaa65f13805 100644--- a/studio/components/interfaces/Home/ProjectList/ProjectList.tsx+++ b/studio/components/interfaces/Home/ProjectList/ProjectList.tsx@@ -14,10 +14,10 @@ import { useProjectsQuery } from 'data/projects/projects-query'import { ResourceWarning, useResourceWarningsQuery } from 'data/usage/resource-warnings-query'import { IS_PLATFORM } from 'lib/constants'import { makeRandomString } from 'lib/helpers'+import { useState } from 'react'import { Organization, Project, ResponseError } from 'types'import ProjectCard from './ProjectCard'import ShimmeringCard from './ShimmeringCard'-import { useState } from 'react'export interface ProjectListProps {rewriteHref?: (projectRef: string) => string@@ -214,7 +214,7 @@ const NoProjectsState = ({ slug }: { slug: string }) => {<div className="col-span-4 space-y-4 rounded-lg border-2 border-dashed border-gray-300 p-6 text-center"><div className="space-y-1"><p>No projects</p>- <p className="text-sm text-scale-1100">Get started by creating a new project.</p>+ <p className="text-sm text-foreground-light">Get started by creating a new project.</p></div><div><Link href={`/new/${slug}`}>diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsxindex ca593dd3ea6..8d233c94e82 100644--- a/studio/components/interfaces/Home/ProjectUsage.tsx+++ b/studio/components/interfaces/Home/ProjectUsage.tsx@@ -95,7 +95,7 @@ const ProjectUsage = () => {<span>{selectedInterval.label}</span></Button></Dropdown>- <span className="text-xs text-scale-1000">+ <span className="text-xs text-foreground-light">Statistics for past {selectedInterval.label}</span></div>@@ -104,7 +104,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconDatabase strokeWidth={2} size={16} /></div>}@@ -129,7 +129,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconKey strokeWidth={2} size={16} /></div>}@@ -153,7 +153,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconArchive strokeWidth={2} size={16} /></div>}@@ -178,7 +178,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm"><IconZap strokeWidth={2} size={16} /></div>}diff --git a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsxindex e18c5f8fe3f..16a64f65b61 100644--- a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx+++ b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx@@ -292,9 +292,11 @@ const AuditLogs = () => {<div className="flex items-center space-x-4"><div>{userIcon}</div><div>- <p className="text-scale-1100">{user?.username ?? '-'}</p>+ <p className="text-foreground-light">{user?.username ?? '-'}</p>{role && (- <p className="mt-0.5 text-xs text-scale-1000">{role?.name}</p>+ <p className="mt-0.5 text-xs text-foreground-light">+ {role?.name}+ </p>)}</div></div>@@ -313,7 +315,7 @@ const AuditLogs = () => {</Table.td><Table.td><p- className="text-scale-1100 max-w-[230px] truncate"+ className="text-foreground-light max-w-[230px] truncate"title={project?.name ?? organization?.name ?? '-'}>{project?.name@@ -324,7 +326,7 @@ const AuditLogs = () => {{project?.name ?? organization?.name ?? 'Unknown'}</p><p- className="text-scale-1000 text-xs mt-0.5 truncate"+ className="text-foreground-light text-xs mt-0.5 truncate"title={log.target.metadata.project_ref ?? log.target.metadata.org_slug}diff --git a/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx b/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsxindex 2c6d7cf7235..a09fbb3cd77 100644--- a/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx@@ -165,7 +165,7 @@ const BillingAddress = () => {<div className="border-t border-scale-400" /><Panel.Content className="flex justify-between">{!canUpdateBillingAddress ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You need additional permissions to update this organization's billingaddress</p>diff --git a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsxindex 76943acadac..3cac7660205 100644--- a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx@@ -135,7 +135,7 @@ const PaymentMethods = () => {footer={<div className="flex w-full justify-between">{!canUpdatePaymentMethods ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You need additional permissions to manage this organization's payment methods</p>) : (diff --git a/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx b/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsxindex 87ea901dfea..a4874c72b99 100644--- a/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx@@ -93,7 +93,7 @@ const ProjectsSummary = ({ projects }: ProjectsSummaryProps) => {))}{projects.length === 0 && (<Panel.Content>- <p className="text-sm text-scale-1100">No projects created yet</p>+ <p className="text-sm text-foreground-light">No projects created yet</p></Panel.Content>)}</Panel>diff --git a/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsxindex 29ab3fd3c94..972f3a5b88f 100644--- a/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx@@ -157,7 +157,7 @@ const TaxID = () => {!isLoadingTaxIds && (<div className="flex w-full justify-between">{!canUpdateTaxIds ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You need additional permissions to update this organization's tax IDs</p>) : (diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsxindex aa209366fd4..c30aa76e556 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsx@@ -69,7 +69,7 @@ const BillingAddress = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Billing Address</p>- <p className="text-sm text-scale-1000 m-0">+ <p className="text-sm text-foreground-light m-0">This will be reflected in every upcoming invoice, past invoices are not affected</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsxindex c806533ad1b..02bc16683c0 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx@@ -10,11 +10,11 @@ import AlertError from 'components/ui/AlertError'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useOrgUsageQuery } from 'data/usage/org-usage-query'+import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'import { Alert, Button } from 'ui'import { BILLING_BREAKDOWN_METRICS } from './BillingBreakdown.constants'import BillingMetric from './BillingMetric'import UpcomingInvoice from './UpcomingInvoice'-import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'const BillingBreakdown = () => {const snap = useOrgSettingsPageStateSnapshot()@@ -53,7 +53,7 @@ const BillingBreakdown = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Billing breakdown</p>- <p className="text-sm text-scale-1000 m-0">+ <p className="text-sm text-foreground-light m-0">Current billing cycle: {billingCycleStart.format('MMM DD')} -{' '}{billingCycleEnd.format('MMM DD')}</p>@@ -76,13 +76,13 @@ const BillingBreakdown = () => {<><p className="text-sm">Included usage summary</p>{isUsageBillingEnabled ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your plan includes a limited amount of usage. If the usage on your organizationexceeds these quotas, your subscription will be charged for the overages. It maytake up to 24 hours for usage stats to update.</p>) : (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your plan includes a limited amount of usage. If the usage on your organizationexceeds these quotas, you may experience restrictions, as you are currently notbilled for overages. It may take up to 24 hours for usage stats to update.@@ -146,10 +146,10 @@ const BillingBreakdown = () => {)}<p className="!mt-10 text-sm">Upcoming cost for next invoice</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">The following table shows your upcoming costs. Depending on your usage, the finalamount may vary. Next invoice on{' '}- <span className="text-scale-1100 whitespace-nowrap">+ <span className="text-foreground-light whitespace-nowrap">{billingCycleEnd.format('MMM DD, YYYY')}</span>.diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsxindex 8a5b6aabfd9..0d9a579e650 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsx@@ -1,14 +1,14 @@+import * as Tooltip from '@radix-ui/react-tooltip'import clsx from 'clsx'import Link from 'next/link'-import * as Tooltip from '@radix-ui/react-tooltip'import { BILLING_BREAKDOWN_METRICS } from 'components/interfaces/BillingV2/Subscription/Subscription.constants'-import { Button, IconAlertTriangle, IconChevronRight, IconInfo } from 'ui'-import { Metric, USAGE_APPROACHING_THRESHOLD } from './BillingBreakdown.constants'+import SparkBar from 'components/ui/SparkBar'import { OrgSubscription } from 'data/subscriptions/org-subscription-query'import { OrgUsageResponse } from 'data/usage/org-usage-query'import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'-import SparkBar from 'components/ui/SparkBar'+import { Button, IconAlertTriangle, IconChevronRight, IconInfo } from 'ui'+import { Metric, USAGE_APPROACHING_THRESHOLD } from './BillingBreakdown.constants'export interface BillingMetricProps {idx: number@@ -57,7 +57,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric<Link href={`/org/${slug}/usage#${metric.anchor}`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">{metric.name}</p><IconChevronRight@@ -73,7 +73,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric<Tooltip.Root delayDuration={0}><Tooltip.Trigger><div className="flex items-center">- <IconInfo size={14} strokeWidth={2} className="hover:text-scale-1000" />+ <IconInfo size={14} strokeWidth={2} className="hover:text-foreground-light" /></div></Tooltip.Trigger><Tooltip.Portal>@@ -168,7 +168,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric}bgClass="bg-gray-300 dark:bg-gray-600"labelBottom={usageLabel}- labelBottomClass="!text-scale-1000"+ labelBottomClass="!text-foreground-light"labelTop={hasLimit ? percentageLabel : undefined}labelTopClass={!hasLimit@@ -182,7 +182,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric/>) : (<div className="flex items-center justify-between flex-grow">- <p className="text-sm text-scale-1000">Unavailable in your plan</p>+ <p className="text-sm text-foreground-light">Unavailable in your plan</p><Button type="default" onClick={() => snap.setPanelKey('subscriptionPlan')}>Upgrade</Button>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsxindex bb2e2ffb5f4..507f9ddc836 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsx@@ -4,8 +4,8 @@ import { partition } from 'lodash'import AlertError from 'components/ui/AlertError'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useOrgUpcomingInvoiceQuery } from 'data/invoices/org-invoice-upcoming-query'-import { Button, Collapsible, IconChevronRight } from 'ui'import { useState } from 'react'+import { Button, Collapsible, IconChevronRight } from 'ui'export interface UpcomingInvoiceProps {slug?: string@@ -40,10 +40,14 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {<table className="w-full"><thead><tr className="border-b">- <th className="py-2 font-normal text-left text-sm text-scale-1000 w-1/2">Item</th>- <th className="py-2 font-normal text-left text-sm text-scale-1000">Count</th>- <th className="py-2 font-normal text-left text-sm text-scale-1000">Unit price</th>- <th className="py-2 font-normal text-right text-sm text-scale-1000">Price</th>+ <th className="py-2 font-normal text-left text-sm text-foreground-light w-1/2">+ Item+ </th>+ <th className="py-2 font-normal text-left text-sm text-foreground-light">Count</th>+ <th className="py-2 font-normal text-left text-sm text-foreground-light">+ Unit price+ </th>+ <th className="py-2 font-normal text-right text-sm text-foreground-light">Price</th></tr></thead><tbody>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsxindex aa8f5d10ab8..a7ae06dad72 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsx@@ -59,7 +59,7 @@ const BillingEmail = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Email Recipient</p>- <p className="text-sm text-scale-1000 m-0">+ <p className="text-sm text-foreground-light m-0">All billing correspondence will go to this email</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsxindex e377cb39452..eeeb2a5a142 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx@@ -45,12 +45,12 @@ const CostControl = ({}: CostControlProps) => {<div className="sticky space-y-6 top-12"><div className="space-y-2"><p className="text-base m-0">Cost Control</p>- <p className="text-sm text-scale-1000 m-0">+ <p className="text-sm text-foreground-light m-0">Control whether to use beyond your plans included quota</p></div><div className="space-y-2">- <p className="text-sm text-scale-1100">More information</p>+ <p className="text-sm text-foreground-light">More information</p><div><Link href="https://supabase.com/docs/guides/platform/spend-cap"><a target="_blank" rel="noreferrer">@@ -95,7 +95,7 @@ const CostControl = ({}: CostControlProps) => {is exceeded will you be charged for any additional usage.</Alert>) : (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You can control whether your organization is charged for additional usage beyondthe{' '}<Link href="#breakdown">@@ -127,7 +127,7 @@ const CostControl = ({}: CostControlProps) => {<p className="mb-1">Spend cap is {isUsageBillingEnabled ? 'disabled' : 'enabled'}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{isUsageBillingEnabled ? (<span>You will be charged for any usage above the included quota.</span>) : (@@ -139,7 +139,7 @@ const CostControl = ({}: CostControlProps) => {)}</p>{isUsageBillingEnabled && (- <p className="text-sm text-scale-1000 mt-1">+ <p className="text-sm text-foreground-light mt-1">Your projects will never become unresponsive. Only when your usage reaches thequota limit will you be charged for any excess usage.</p>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsxindex 7a71b763d59..fd876e70812 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsx@@ -152,7 +152,7 @@ const SpendCapSidePanel = () => {size={16}className={showUsageCosts ? 'rotate-90' : ''}/>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">How are each resource charged after exceeding the included quota?</p></div>@@ -261,7 +261,7 @@ const SpendCapSidePanel = () => {className={clsx('text-sm transition',!isFreePlan && 'group-hover:text-foreground',- isSelected ? 'text-foreground' : 'text-scale-1000'+ isSelected ? 'text-foreground' : 'text-foreground-light')}>{option.name}diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsxindex 6ad16720eec..9c809c4aaa9 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsx@@ -32,7 +32,7 @@ const CreditBalance = () => {{isCredit && <Badge>You have credits available</Badge>}{isDebt && <Badge color="red">Outstanding payments</Badge>}</div>- <p className="text-sm text-scale-1000 m-0">+ <p className="text-sm text-foreground-light m-0">Charges will be deducted from your balance first</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsxindex a89b13c3463..d40ededda0a 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx@@ -19,10 +19,10 @@ import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-queimport { useCheckPermissions, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { getURL } from 'lib/helpers'+import Link from 'next/link'import { Alert, Badge, Button, Dropdown, IconCreditCard, IconMoreHorizontal, IconPlus } from 'ui'import ChangePaymentMethodModal from './ChangePaymentMethodModal'import DeletePaymentMethodModal from './DeletePaymentMethodModal'-import Link from 'next/link'const PaymentMethods = () => {const { ui } = useStore()@@ -56,7 +56,7 @@ const PaymentMethods = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Payment methods</p>- <p className="text-sm text-scale-1000 mb-2 pr-4 m-0">+ <p className="text-sm text-foreground-light mb-2 pr-4 m-0">After adding a payment method, make sure to mark it as active to use it for billing.You can remove unused cards.</p>@@ -105,7 +105,7 @@ const PaymentMethods = () => {footer={<div className="flex items-center justify-between py-4 px-8">{!canUpdatePaymentMethods ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You need additional permissions to manage payment methods</p>) : (diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsxindex ec7f8a2a344..9bf42adeefb 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsx@@ -1,6 +1,6 @@import clsx from 'clsx'-import { Button, IconCheck } from 'ui'import { PricingInformation } from 'shared-data'+import { Button, IconCheck } from 'ui'export interface EnterpriseCardProps {plan: PricingInformation@@ -20,7 +20,7 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -40,7 +40,10 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {</div><div className="flex flex-col justify-center col-span-2 px-4 md:px-0">- <ul role="list" className="text-xs text-scale-1000 md:grid md:grid-cols-2 md:gap-x-10">+ <ul+ role="list"+ className="text-xs text-foreground-light md:grid md:grid-cols-2 md:gap-x-10"+ >{plan.features.map((feature) => (<li key={feature} className="flex items-center py-2 first:mt-0"><IconCheck className="text-brand h-4 w-4" aria-hidden="true" strokeWidth={3} />diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsxindex 20c3840924a..b714fe9b0e4 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx@@ -140,7 +140,7 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">We always strive to improve Supabase as much as we can. Please let us know the reasonsyou are canceling your subscription so that we can improve in the future.</p>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsxindex 7f64080e394..ebfb6403d87 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsx@@ -25,11 +25,11 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr<div className="py-4 space-y-4"><Modal.Content><div className="space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">The following members have reached their maximum limits for the number of active freeplan projects within organizations where they are an administrator or owner:</p>- <ul className="pl-5 text-sm list-disc text-scale-1100">+ <ul className="pl-5 text-sm list-disc text-foreground-light">{(membersExceededLimit || []).map((member, idx: number) => (<li key={`member-${idx}`}>{member.username || member.primary_email} (Limit: {member.free_project_limit} free@@ -37,7 +37,7 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr</li>))}</ul>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">These members will need to either delete, pause, or upgrade one or more of theseprojects before you're able to downgrade this project.</p>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsxindex 986025ba721..40cbb27233d 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsx@@ -3,13 +3,13 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useEffect, useMemo, useState } from 'react'import { useParams } from 'common'+import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'import { useOrganizationCustomerProfileQuery } from 'data/organizations/organization-customer-profile-query'import { useOrganizationPaymentMethodsQuery } from 'data/organizations/organization-payment-methods-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { getURL } from 'lib/helpers'import { Button, IconAlertCircle, IconCreditCard, IconLoader, IconPlus, Listbox } from 'ui'-import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'export interface PaymentMethodSelectionProps {selectedPaymentMethod?: string@@ -76,11 +76,11 @@ const PaymentMethodSelection = ({{isLoading ? (<div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-scale-700 bg-scale-400"><IconLoader className="animate-spin" size={14} />- <p className="text-sm text-scale-1100">Retrieving payment methods</p>+ <p className="text-sm text-foreground-light">Retrieving payment methods</p></div>) : paymentMethods.length === 0 ? (<div className="flex items-center justify-between px-4 py-2 border border-dashed rounded-md bg-scale-100">- <div className="flex items-center space-x-4 text-scale-1100">+ <div className="flex items-center space-x-4 text-foreground-light"><IconAlertCircle size={16} strokeWidth={1.5} /><p className="text-sm">No saved payment methods</p></div>@@ -153,7 +153,7 @@ const PaymentMethodSelection = ({onClick={() => setShowAddNewPaymentMethodModal(true)}><IconPlus size={16} />- <p className="transition text-scale-1000 group-hover:text-foreground">+ <p className="transition text-foreground-light group-hover:text-foreground">Add new payment method</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsxindex 61d09b7175f..5e6515bc784 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx@@ -4,10 +4,16 @@ import clsx from 'clsx'import Link from 'next/link'import { useEffect, useState } from 'react'+import Table from 'components/to-be-cleaned/Table'+import AlertError from 'components/ui/AlertError'+import InformationBox from 'components/ui/InformationBox'import ShimmeringLoader from 'components/ui/ShimmeringLoader'+import { useFreeProjectLimitCheckQuery } from 'data/organizations/free-project-limit-check-query'+import { useOrganizationBillingSubscriptionPreview } from 'data/organizations/organization-billing-subscription-preview'import { useOrgPlansQuery } from 'data/subscriptions/org-plans-query'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useOrgSubscriptionUpdateMutation } from 'data/subscriptions/org-subscription-update-mutation'+import { SubscriptionTier } from 'data/subscriptions/types'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'import Telemetry from 'lib/telemetry'@@ -20,12 +26,6 @@ import EnterpriseCard from './EnterpriseCard'import ExitSurveyModal from './ExitSurveyModal'import MembersExceedLimitModal from './MembersExceedLimitModal'import PaymentMethodSelection from './PaymentMethodSelection'-import { useFreeProjectLimitCheckQuery } from 'data/organizations/free-project-limit-check-query'-import { useOrganizationBillingSubscriptionPreview } from 'data/organizations/organization-billing-subscription-preview'-import InformationBox from 'components/ui/InformationBox'-import AlertError from 'components/ui/AlertError'-import { SubscriptionTier } from 'data/subscriptions/types'-import Table from 'components/to-be-cleaned/Table'// [Joshen TODO] Need to remove all contexts of "projects"@@ -178,7 +178,7 @@ const PlanUpdateSidePanel = () => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -190,7 +190,7 @@ const PlanUpdateSidePanel = () => {)}</div><div className="mt-4 flex items-center space-x-1">- {(price ?? 0) > 0 && <p className="text-scale-1000 text-sm">From</p>}+ {(price ?? 0) > 0 && <p className="text-foreground-light text-sm">From</p>}{isLoadingPlans ? (<div className="h-[28px] flex items-center justify-center"><ShimmeringLoader className="w-[30px] h-[24px]" />@@ -198,7 +198,7 @@ const PlanUpdateSidePanel = () => {) : (<p className="text-foreground text-lg">${price}</p>)}- <p className="text-scale-1000 text-sm">{tierMeta?.costUnitOrg}</p>+ <p className="text-foreground-light text-sm">{tierMeta?.costUnitOrg}</p></div><div className={clsx('flex mt-1 mb-4', !tierMeta?.warning && 'opacity-0')}><div className="bg-scale-200 text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-xs">@@ -274,7 +274,7 @@ const PlanUpdateSidePanel = () => {strokeWidth={3}/></div>- <p className="ml-3 text-xs text-scale-1100">{feature}</p>+ <p className="ml-3 text-xs text-foreground-light">{feature}</p></li>))}</ul>@@ -282,7 +282,7 @@ const PlanUpdateSidePanel = () => {{plan.footer && (<div className="border-t pt-4 mt-4">- <p className="text-scale-1000 text-xs">{plan.footer}</p>+ <p className="text-foreground-light text-xs">{plan.footer}</p></div>)}</div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsxindex b03207f9c34..bfa1903d67f 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx@@ -46,7 +46,7 @@ const Subscription = () => {<div className="sticky space-y-6 top-12"><p className="text-base m-0">Subscription Plan</p><div className="space-y-2">- <p className="text-sm text-scale-1100 m-0">More information</p>+ <p className="text-sm text-foreground-light m-0">More information</p><div><Link href="https://supabase.com/pricing"><a target="_blank" rel="noreferrer">@@ -140,7 +140,7 @@ const Subscription = () => {)}>- <div className="text-sm text-scale-1000 mr-2">+ <div className="text-sm text-foreground-light mr-2">When this organization exceeds its{' '}<Link href="#breakdown"><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -172,7 +172,7 @@ const Subscription = () => {'MMM DD')} - ${billingCycleEnd.format('MMM DD')})`}bgClass="bg-gray-300 dark:bg-gray-600"- labelBottomClass="!text-scale-1000 pb-1"+ labelBottomClass="!text-foreground-light pb-1"labelTop={`${daysToCycleEnd} days remaining`}/></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsxindex 6f1a45e2baf..f72a8f333c6 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx@@ -136,11 +136,11 @@ const TaxID = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Tax ID</p>- <p className="text-sm text-scale-1000 pr-4 m-0">+ <p className="text-sm text-foreground-light pr-4 m-0">If you would like to include specific tax ID(s) to your invoices. Old invoices are notaffected.</p>- <p className="text-sm text-scale-1000 m-0">+ <p className="text-sm text-foreground-light m-0">Make sure the tax ID looks exactly like the placeholder text.</p></div>diff --git a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsxindex 69fbf343cf7..ce482b6c887 100644--- a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx@@ -127,13 +127,13 @@ const GeneralSettings = () => {size={16}className={clsx('transition-all', open ? 'rotate-90' : '')}/>- <p className="text-sm text-scale-1000 underline">+ <p className="text-sm text-foreground-light underline">Important information regarding opting in</p></div></Collapsible.Trigger><Collapsible.Content>- <div className="space-y-2 py-4 ml-16 text-sm text-scale-1100">+ <div className="space-y-2 py-4 ml-16 text-sm text-foreground-light"><p>Supabase AI is a chatbot support tool powered by OpenAI. Supabase willshare the query you submit and information about the databases youdiff --git a/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsx b/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsxindex 04b6c564687..a349dc359f5 100644--- a/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsx@@ -19,12 +19,12 @@ import {} from 'ui'import { SpendCapModal } from 'components/interfaces/BillingV2'+import InformationBox from 'components/ui/InformationBox'import { useOrganizationBillingMigrationMutation } from 'data/organizations/organization-migrate-billing-mutation'import { useOrganizationBillingMigrationPreview } from 'data/organizations/organization-migrate-billing-preview-query'import { useCheckPermissions, useFlag, useSelectedOrganization, useStore } from 'hooks'import { PRICING_TIER_LABELS_ORG } from 'lib/constants'import PaymentMethodSelection from '../BillingSettingsV2/Subscription/PaymentMethodSelection'-import InformationBox from 'components/ui/InformationBox'const MigrateOrganizationBillingButton = observer(() => {const { ui } = useStore()@@ -207,7 +207,7 @@ const MigrateOrganizationBillingButton = observer(() => {</>)}<Modal.Content>- <div className="text-scale-1100 text-sm space-y-2">+ <div className="text-foreground-light text-sm space-y-2"><p>Migrating to new organization-based billing combines subscriptions for all projectsin the organization into a single subscription.@@ -252,7 +252,7 @@ const MigrateOrganizationBillingButton = observer(() => {})}</Listbox>- <p className="text-sm text-scale-1100 mt-4">+ <p className="text-sm text-foreground-light mt-4">The pricing plan, along with included usage limits will apply to your entireorganization. See{' '}<a@@ -268,7 +268,7 @@ const MigrateOrganizationBillingButton = observer(() => {{tier !== '' && tier !== 'FREE' && (<div className="my-2 space-y-1 pb-4">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Paid plans come with one compute instance included. Additional projects will atleast cost the compute instance hours used (min $10/month). See{' '}<Link href="https://supabase.com/docs/guides/platform/org-based-billing#usage-based-billing-for-compute">@@ -310,7 +310,7 @@ const MigrateOrganizationBillingButton = observer(() => {</div><div className="col-span-12">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">When enabled, usage is limited to the plan's quota, with restrictions whenlimits are exceeded. When disabled, you scale beyond Pro limits withoutrestrictions and pay for over-usage beyond the quota.@@ -412,16 +412,16 @@ const MigrateOrganizationBillingButton = observer(() => {<table className="w-full"><thead><tr className="border-b">- <th className="py-2 font-normal text-left text-sm text-scale-1000 w-1/2">+ <th className="py-2 font-normal text-left text-sm text-foreground-light w-1/2">Item</th>- <th className="py-2 font-normal text-left text-sm text-scale-1000">+ <th className="py-2 font-normal text-left text-sm text-foreground-light">Count</th>- <th className="py-2 font-normal text-left text-sm text-scale-1000">+ <th className="py-2 font-normal text-left text-sm text-foreground-light">Unit price</th>- <th className="py-2 font-normal text-right text-sm text-scale-1000">+ <th className="py-2 font-normal text-right text-sm text-foreground-light">Price</th></tr>@@ -461,7 +461,7 @@ const MigrateOrganizationBillingButton = observer(() => {)}<Modal.Content>- <p className="mb-4 text-sm text-scale-1100">+ <p className="mb-4 text-sm text-foreground-light">The migration can take up to 30 seconds, please do not cancel the request or closeyour browser.</p>diff --git a/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsx b/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsxindex 80a75c570dc..fd8a63d0404 100644--- a/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsx@@ -21,7 +21,7 @@ const OrganizationBillingMigrationPanel = observer(() => {<Panel.Content><div className="flex justify-between gap-12"><div className="space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">You will have a single subscription for all projects inside the organization, ratherthan individual subscriptions per project. Migrating to organization-based billingis not reversible.diff --git a/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsxindex 61a002132ac..ae89f0cc9bc 100644--- a/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx+++ b/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx@@ -6,14 +6,14 @@ import { InvoiceStatusBadge } from 'components/interfaces/BillingV2'import { InvoiceStatus } from 'components/interfaces/BillingV2/Invoices.types'import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'import Table from 'components/to-be-cleaned/Table'+import AlertError from 'components/ui/AlertError'import NoPermission from 'components/ui/NoPermission'+import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { getInvoice } from 'data/invoices/invoice-query'import { useInvoicesCountQuery } from 'data/invoices/invoices-count-query'import { useInvoicesQuery } from 'data/invoices/invoices-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'-import { Button, IconChevronLeft, IconChevronRight, IconDownload, IconFileText, Loading } from 'ui'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'-import AlertError from 'components/ui/AlertError'+import { Button, IconChevronLeft, IconChevronRight, IconDownload, IconFileText } from 'ui'const PAGE_LIMIT = 10@@ -81,7 +81,7 @@ const InvoicesSettings = () => {invoices.length === 0 ? (<Table.tr><Table.td colSpan={6} className="p-3 py-12 text-center">- <p className="text-scale-1000">+ <p className="text-foreground-light">{isLoading ? 'Checking for invoices' : 'No invoices for this organization yet'}</p></Table.td>diff --git a/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx b/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsxindex e81f62ed73a..76e2629967a 100644--- a/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx+++ b/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx@@ -15,6 +15,7 @@ import {Toggle,} from 'ui'+import { useParams } from 'common'import { SpendCapModal } from 'components/interfaces/BillingV2'import InformationBox from 'components/ui/InformationBox'import Panel from 'components/ui/Panel'@@ -23,7 +24,6 @@ import { invalidateOrganizationsQuery } from 'data/organizations/organizations-qimport { useStore } from 'hooks'import { BASE_PATH, PRICING_TIER_LABELS_ORG } from 'lib/constants'import { getURL } from 'lib/helpers'-import { useParams } from 'common'const ORG_KIND_TYPES = {PERSONAL: 'Personal',@@ -198,7 +198,7 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => {><Panel.Content className="pt-0"><p className="text-sm">This is your organization within Supabase.</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">For example, you can use the name of your company or department.</p></Panel.Content>diff --git a/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx b/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsxindex 16d4edac3f7..6fc508b5974 100644--- a/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx@@ -15,11 +15,11 @@ const AuthorizeRequesterDetails = ({ icon, name, domain }: AuthorizeRequesterDetbackgroundImage: icon !== null ? `url('${icon}')` : 'none',}}>- {icon === null && <p className="text-scale-1000 text-lg">{name[0]}</p>}+ {icon === null && <p className="text-foreground-light text-lg">{name[0]}</p>}</div></div></div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{name} ({domain}) is requesting API access to an organization. The application will be ableto{' '}<span className="text-amber-1200">diff --git a/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx b/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsxindex e91586f3899..75cfa26c204 100644--- a/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx@@ -1,19 +1,19 @@import { useState } from 'react'import { useParams } from 'common'+import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'import Table from 'components/to-be-cleaned/Table'import AlertError from 'components/ui/AlertError'import ShimmeringLoader from 'components/ui/ShimmeringLoader'+import { AuthorizedApp, useAuthorizedAppsQuery } from 'data/oauth/authorized-apps-query'import { OAuthAppCreateResponse } from 'data/oauth/oauth-app-create-mutation'import { OAuthApp, useOAuthAppsQuery } from 'data/oauth/oauth-apps-query'import { Alert, Button, IconX, Input } from 'ui'+import AuthorizedAppRow from './AuthorizedAppRow'import DeleteAppModal from './DeleteAppModal'import OAuthAppRow from './OAuthAppRow'import PublishAppModal from './PublishAppSidePanel'-import { AuthorizedApp, useAuthorizedAppsQuery } from 'data/oauth/authorized-apps-query'-import AuthorizedAppRow from './AuthorizedAppRow'import RevokeAppModal from './RevokeAppModal'-import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'// [Joshen] Note on nav UX// Kang Ming mentioned that it might be better to split Published Apps and Authorized Apps into 2 separate tabs@@ -58,7 +58,7 @@ const OAuthApps = () => {<div className="flex items-center justify-between"><div><p>Published Apps</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Build integrations that extend Supabase's functionality</p></div>@@ -158,7 +158,7 @@ const OAuthApps = () => {<div><p>Authorized Apps</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Applications that have access to your organization's settings and projects</p>diff --git a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsxindex 60848885cae..586ee3e7cd1 100644--- a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx@@ -10,8 +10,8 @@ import { useOAuthAppUpdateMutation } from 'data/oauth/oauth-app-update-mutation'import { OAuthApp } from 'data/oauth/oauth-apps-query'import { useStore } from 'hooks'import { isValidHttpUrl, uuidv4 } from 'lib/helpers'-import { Badge, Button, Dropdown, Form, IconEdit, IconUpload, Input, Modal, SidePanel } from 'ui'import { uploadAttachment } from 'lib/upload'+import { Badge, Button, Dropdown, Form, IconEdit, IconUpload, Input, Modal, SidePanel } from 'ui'import AuthorizeRequesterDetails from './AuthorizeRequesterDetails'export interface PublishAppSidePanelProps {@@ -268,7 +268,7 @@ const PublishAppSidePanel = ({}}><IconUpload size={18} strokeWidth={1.5} className="text-foreground" />- <p className="text-xs text-scale-1100">Upload logo</p>+ <p className="text-xs text-foreground-light">Upload logo</p></div>)}<input@@ -289,7 +289,7 @@ const PublishAppSidePanel = ({<div className="mb-2 flex items-center justify-between"><div><p className="prose text-sm">Authorization callback URLs</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">All URLs must use HTTPS, except for localhost</p></div>@@ -370,7 +370,7 @@ const PublishAppSidePanel = ({<p className="prose text-sm">Select an organization to grant API access to</p>- <div className="border border-scale-600 text-scale-1000 rounded px-4 py-2 text-sm bg-scale-400">+ <div className="border border-scale-600 text-foreground-light rounded px-4 py-2 text-sm bg-scale-400">Organizations that you have access to will be listed here</div></div>diff --git a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsxindex 3f96c915885..b83552359e9 100644--- a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx@@ -189,7 +189,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {<div><p className="text-foreground">{getUserDisplayName(x)}</p>{x.invited_id === undefined && (- <p className="text-scale-1100">{x.primary_email}</p>+ <p className="text-foreground-light">{x.primary_email}</p>)}</div></div>@@ -269,7 +269,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {</Tooltip.Root>) : (<div className="flex items-center space-x-2">- <p className="text-sm text-scale-1100">Invalid role</p>+ <p className="text-sm text-foreground-light">Invalid role</p><Tooltip.Root delayDuration={0}><Tooltip.Trigger><IconAlertCircle size={16} strokeWidth={1.5} />@@ -310,7 +310,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {<Table.td colSpan={12}><div className="flex items-center space-x-3 opacity-75"><IconAlertCircle size={16} strokeWidth={2} />- <p className="text-scale-1100">+ <p className="text-foreground-light">No users matched the search query "{searchString}"</p></div>@@ -323,7 +323,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {className="bg-panel-secondary-light dark:bg-panel-secondary-dark"><Table.td colSpan={4}>- <p className="text-scale-1100">+ <p className="text-foreground-light">{searchString ? `${filteredMembers.length} of ` : ''}{members.length || '0'} {members.length == 1 ? 'user' : 'users'}</p>@@ -344,7 +344,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {><div className="flex flex-col gap-2 py-4"><Modal.Content>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">You are changing the role of{' '}<span className="text-foreground">{getUserDisplayName(selectedMember)}</span> from{' '}<span className="text-foreground">{getRoleNameById(selectedMember?.oldRoleId)}</span>{' '}diff --git a/studio/components/interfaces/Organization/Usage/SectionContent.tsx b/studio/components/interfaces/Organization/Usage/SectionContent.tsxindex cc4017df337..05e76ef2d14 100644--- a/studio/components/interfaces/Organization/Usage/SectionContent.tsx+++ b/studio/components/interfaces/Organization/Usage/SectionContent.tsx@@ -1,8 +1,8 @@+import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold'+import Link from 'next/link'import { PropsWithChildren } from 'react'import { Badge, IconExternalLink } from 'ui'import { CategoryAttribute } from './Usage.constants'-import Link from 'next/link'-import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold'export interface SectionContent {section: CategoryAttribute@@ -30,7 +30,7 @@ const SectionContent = ({</div><div className="grid gap-4">{description.split('\n').map((value, idx) => (- <p key={`desc-${idx}`} className="text-sm text-scale-1000 pr-8">+ <p key={`desc-${idx}`} className="text-sm text-foreground-light pr-8">{value}</p>))}@@ -38,7 +38,7 @@ const SectionContent = ({</div>{links && links.length && (<div className="space-y-2">- <p className="text-sm text-foreground dark:text-scale-1100 mb-2">+ <p className="text-sm text-foreground dark:text-foreground-light mb-2">More information</p>{links.map((link) => (diff --git a/studio/components/interfaces/Organization/Usage/SectionHeader.tsx b/studio/components/interfaces/Organization/Usage/SectionHeader.tsxindex 0b7a5c43bb7..f896bf6d4be 100644--- a/studio/components/interfaces/Organization/Usage/SectionHeader.tsx+++ b/studio/components/interfaces/Organization/Usage/SectionHeader.tsx@@ -8,7 +8,7 @@ const SectionHeader = ({ title, description }: SectionHeaderProps) => {<div className="mx-auto flex flex-col gap-10 py-14"><div><p className="text-xl">{title}</p>- <p className="text-sm text-scale-1000">{description}</p>+ <p className="text-sm text-foreground-light">{description}</p></div></div>)diff --git a/studio/components/interfaces/Organization/Usage/Usage.tsx b/studio/components/interfaces/Organization/Usage/Usage.tsxindex 34942cc2873..3b4ceb6ea50 100644--- a/studio/components/interfaces/Organization/Usage/Usage.tsx+++ b/studio/components/interfaces/Organization/Usage/Usage.tsx@@ -6,18 +6,18 @@ import { useParams } from 'common'import { ScaffoldContainer } from 'components/layouts/Scaffold'import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'import AlertError from 'components/ui/AlertError'+import InformationBox from 'components/ui/InformationBox'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useProjectsQuery } from 'data/projects/projects-query'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'+import { useOrgUsageQuery } from 'data/usage/org-usage-query'import { useSelectedOrganization } from 'hooks'import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants'+import Link from 'next/link'import { Alert, Button, IconExternalLink, IconInfo, Listbox } from 'ui'import Activity from './Activity'import Bandwidth from './Bandwidth'import SizeAndCounts from './SizeAndCounts'-import InformationBox from 'components/ui/InformationBox'-import Link from 'next/link'-import { useOrgUsageQuery } from 'data/usage/org-usage-query'const Usage = () => {const { slug, projectRef } = useParams()@@ -157,7 +157,7 @@ const Usage = () => {<p className={clsx('text-sm transition', isLoadingSubscription && 'opacity-50')}>Organization is on the {subscription.plan.name} plan</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{billingCycleStart.format('DD MMM YYYY')} -{' '}{billingCycleEnd.format('DD MMM YYYY')}</p>diff --git a/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx b/studio/components/interfaces/Organization/Usage/UsageBarChart.tsxindex 337f43e6edd..d2253be4ccf 100644--- a/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx@@ -1,4 +1,6 @@+import clsx from 'clsx'import { DataPoint } from 'data/analytics/constants'+import dayjs from 'dayjs'import {Bar,CartesianGrid,@@ -9,9 +11,7 @@ import {XAxis,YAxis,} from 'recharts'-import dayjs from 'dayjs'-import clsx from 'clsx'-import { COLOR_MAP, Attribute } from './Usage.constants'+import { Attribute, COLOR_MAP } from './Usage.constants'import { MultiAttributeTooltipContent, SingleAttributeTooltipContent } from './UsageChartTooltips'// [Joshen] This BarChart is specifically for usage, hence not a reusable component, and not@@ -83,7 +83,7 @@ const UsageBarChart = ({isAfterToday={isAfterToday}/>)}- <p className="text-xs text-scale-1100 mt-1">+ <p className="text-xs text-foreground-light mt-1">{dataPeriod.format('DD MMM YYYY')}</p></div>diff --git a/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx b/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsxindex 6a0a5680f45..a10feab2f63 100644--- a/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx@@ -20,9 +20,9 @@ export const SingleAttributeTooltipContent = ({const formattedValue = unit === 'percentage' ? Number(value).toFixed(2) : Number(value)return (<>- <p className="text-xs text-scale-1000">{name}</p>+ <p className="text-xs text-foreground-light">{name}</p>{isAfterToday ? (- <p className="text-scale-1000 text-lg">No data yet</p>+ <p className="text-foreground-light text-lg">No data yet</p>) : (<p className="text-xl">{tooltipFormatter !== undefined ? tooltipFormatter(formattedValue) : formattedValue}@@ -78,7 +78,7 @@ export const MultiAttributeTooltipContent = ({return (<>{isAfterToday ? (- <p className="text-scale-1000 text-lg">No data yet</p>+ <p className="text-foreground-light text-lg">No data yet</p>) : (<div className="space-y-1 pb-1">{attributes.flatMap((attr) => {diff --git a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsxindex 9454d073b27..68ba64fe10c 100644--- a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx@@ -9,6 +9,7 @@ import SparkBar from 'components/ui/SparkBar'import { OrgSubscription } from 'data/subscriptions/org-subscription-query'import { OrgUsageResponse, UsageMetric } from 'data/usage/org-usage-query'import { USAGE_APPROACHING_THRESHOLD } from 'lib/constants'+import { useMemo } from 'react'import { ResponseError } from 'types'import { Button, IconAlertTriangle, IconBarChart2 } from 'ui'import SectionContent from '../SectionContent'@@ -20,7 +21,6 @@ import {} from '../Usage.utils'import UsageBarChart from '../UsageBarChart'import { ChartMeta } from './UsageSection'-import { useMemo } from 'react'export interface AttributeUsageProps {slug: string@@ -184,7 +184,7 @@ const AttributeUsage = ({{<div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">Included in {subscription?.plan?.name.toLowerCase()} plan</p>{usageMeta.unlimited ? (@@ -199,7 +199,7 @@ const AttributeUsage = ({</div>{currentBillingCycleSelected && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">{attribute.chartPrefix || 'Used '} in period</p><p className="text-xs">@@ -212,7 +212,7 @@ const AttributeUsage = ({{currentBillingCycleSelected &&(usageMeta?.pricing_free_units ?? 0) > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-scale-1000">Overage in period</p>+ <p className="text-xs text-foreground-light">Overage in period</p><p className="text-xs">{(usageMeta?.pricing_free_units ?? 0) === -1 || usageExcess < 0? `0${attribute.unit === 'bytes' ? ' GB' : ''}`@@ -234,7 +234,7 @@ const AttributeUsage = ({{attribute.chartPrefix || ''} {attribute.name} per day</p>{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-scale-1000">+ <p key={`para-${idx}`} className="text-sm text-foreground-light">{paragraph}</p>))}@@ -259,9 +259,11 @@ const AttributeUsage = ({<Panel><Panel.Content><div className="flex flex-col items-center justify-center">- <IconBarChart2 className="text-scale-1100 mb-2" />+ <IconBarChart2 className="text-foreground-light mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-scale-1000">May take up to 24 hours to show</p>+ <p className="text-sm text-foreground-light">+ May take up to 24 hours to show+ </p></div></Panel.Content></Panel>@@ -274,7 +276,7 @@ const AttributeUsage = ({<div className="space-y-1"><p className="text-sm">Not included in plan</p><div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">You need to be on a higher plan in order to use this feature.</p></div>diff --git a/studio/components/interfaces/Reports/ReportFilterBar.tsx b/studio/components/interfaces/Reports/ReportFilterBar.tsxindex 6e54c699323..510fc30a9f6 100644--- a/studio/components/interfaces/Reports/ReportFilterBar.tsx+++ b/studio/components/interfaces/Reports/ReportFilterBar.tsx@@ -175,7 +175,7 @@ const ReportFilterBar = ({>{productFilter.label}</p>- <p className=" text-left text-scale-1000 inline-block w-[180px]">+ <p className=" text-left text-foreground-light inline-block w-[180px]">{productFilter.description}</p></Dropdown.Item>@@ -212,7 +212,7 @@ const ReportFilterBar = ({size="tiny"className="!p-0 !space-x-0"onClick={() => onRemoveFilters([filter])}- icon={<IconX size="tiny" className="text-scale-1100" />}+ icon={<IconX size="tiny" className="text-foreground-light" />}><span className="sr-only">Remove</span></Button>@@ -292,7 +292,7 @@ const ReportFilterBar = ({asChildtype="default"size="tiny"- icon={<IconPlus size="tiny" className={`text-scale-1100 `} />}+ icon={<IconPlus size="tiny" className={`text-foreground-light `} />}><span>Add filter</span></Button>diff --git a/studio/components/interfaces/Reports/ReportHeader.tsx b/studio/components/interfaces/Reports/ReportHeader.tsxindex 7b2fbafbbb1..bfe2a5fbd3d 100644--- a/studio/components/interfaces/Reports/ReportHeader.tsx+++ b/studio/components/interfaces/Reports/ReportHeader.tsx@@ -17,7 +17,7 @@ const ReportHeader: React.FC<Props> = ({ title, onRefresh, isLoading }) => (icon={<IconRefreshCwsize="tiny"- className={`text-scale-1100 ${isLoading ? 'animate-spin' : ''}`}+ className={`text-foreground-light ${isLoading ? 'animate-spin' : ''}`}/>}>diff --git a/studio/components/interfaces/Reports/ReportWidget.tsx b/studio/components/interfaces/Reports/ReportWidget.tsxindex 081b456b5c8..ed36af0b3ce 100644--- a/studio/components/interfaces/Reports/ReportWidget.tsx+++ b/studio/components/interfaces/Reports/ReportWidget.tsx@@ -1,9 +1,9 @@-import { NextRouter, useRouter } from 'next/router'import * as Tooltip from '@radix-ui/react-tooltip'+import Panel from 'components/ui/Panel'+import { NextRouter, useRouter } from 'next/router'import { Button, IconExternalLink, IconHelpCircle, Loading } from 'ui'-import { BaseReportParams } from './Reports.types'import { LogsEndpointParams } from '../Settings/Logs'-import Panel from 'components/ui/Panel'+import { BaseReportParams } from './Reports.types'export interface ReportWidgetProps<T = any> {data: T[]@@ -45,7 +45,11 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {{props?.tooltip && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconHelpCircle className="text-scale-1100" size="tiny" strokeWidth={1.5} />+ <IconHelpCircle+ className="text-foreground-light"+ size="tiny"+ strokeWidth={1.5}+ /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -63,7 +67,7 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {</Tooltip.Root>)}</div>- <p className="text-sm text-scale-1100">{props.description}</p>+ <p className="text-sm text-foreground-light">{props.description}</p></div>{props.params && (<Tooltip.Root delayDuration={0}>diff --git a/studio/components/interfaces/Reports/Reports.tsx b/studio/components/interfaces/Reports/Reports.tsxindex ebac12cf501..271d080e396 100644--- a/studio/components/interfaces/Reports/Reports.tsx+++ b/studio/components/interfaces/Reports/Reports.tsx@@ -21,7 +21,7 @@ import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'import Loading from 'components/ui/Loading'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions } from 'hooks'-import { METRIC_CATEGORIES, METRICS, TIME_PERIODS_REPORTS } from 'lib/constants'+import { METRICS, METRIC_CATEGORIES, TIME_PERIODS_REPORTS } from 'lib/constants'import { uuidv4 } from 'lib/helpers'import { useProfile } from 'lib/profile'import { useProjectContentStore } from 'stores/projectContentStore'@@ -317,13 +317,13 @@ const Reports = () => {{startDate && endDate && (<div className="hidden items-center space-x-1 lg:flex ">- <span className="text-sm text-scale-1100">+ <span className="text-sm text-foreground-light">{dayjs(startDate).format('MMM D, YYYY')}</span><span className="text-scale-900"><IconArrowRight size={12} /></span>- <span className="text-sm text-scale-1100">+ <span className="text-sm text-foreground-light">{dayjs(endDate).format('MMM D, YYYY')}</span></div>@@ -392,7 +392,7 @@ const Reports = () => {</Button></Dropdown>) : (- <p className="text-sm text-scale-1000">No charts set up yet in report</p>+ <p className="text-sm text-foreground-light">No charts set up yet in report</p>)}</div>) : (diff --git a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsxindex 8d72a882657..a0e61126038 100644--- a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx+++ b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx@@ -1,15 +1,15 @@-import { ReportWidgetProps, ReportWidgetRendererProps } from '../ReportWidget'-import BarChart from 'components/ui/Charts/BarChart'-import Table from 'components/to-be-cleaned/Table'import {jsonSyntaxHighlight,TextFormatter,} from 'components/interfaces/Settings/Logs/LogsFormatters'-import { Button, Collapsible, IconChevronRight } from 'ui'-import { queryParamsToObject } from '../Reports.utils'-import { Fragment } from 'react'+import Table from 'components/to-be-cleaned/Table'+import BarChart from 'components/ui/Charts/BarChart'import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'import sumBy from 'lodash/sumBy'+import { Fragment } from 'react'+import { Button, Collapsible, IconChevronRight } from 'ui'+import { queryParamsToObject } from '../Reports.utils'+import { ReportWidgetProps, ReportWidgetRendererProps } from '../ReportWidget'export const NetworkTrafficRenderer = (props: ReportWidgetProps<{@@ -245,7 +245,7 @@ const RouteTdContent = (datum: RouteTdContentProps) => (/>)}<div className=" truncate max-w-sm lg:max-w-lg">- <TextFormatter className="text-scale-1100" value={datum.path} />+ <TextFormatter className="text-foreground-light" value={datum.path} /><TextFormatterclassName="max-w-sm text-scale-900 truncate "value={decodeURIComponent(datum.search || '')}diff --git a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsxindex cdff467d303..76c7d599390 100644--- a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx+++ b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx@@ -65,7 +65,7 @@ export const TopCacheMissesRenderer = (<Table.tr className="p-0"><Table.td className={[cellClasses].join(' ')}><div className=" truncate max-w-sm lg:max-w-lg">- <TextFormatter className="text-scale-1100" value={datum.path} />+ <TextFormatter className="text-foreground-light" value={datum.path} /><TextFormatterclassName="max-w-sm text-scale-900 truncate "value={decodeURIComponent(datum.search || '')}diff --git a/studio/components/interfaces/SQLEditor/AISettingsModal.tsx b/studio/components/interfaces/SQLEditor/AISettingsModal.tsxindex aaa07e7e107..3ef85daf751 100644--- a/studio/components/interfaces/SQLEditor/AISettingsModal.tsx+++ b/studio/components/interfaces/SQLEditor/AISettingsModal.tsx@@ -47,7 +47,7 @@ const AISettingsModal = (props: ModalProps) => {/><div className="grid gap-2"><p className="text-sm">Include anonymous database metadata in AI queries</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Includes table names, column names and their corresponding data types in the request.This will generate queries that are more relevant to your project.</p>diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsxindex b02cab1ca40..a6c3ca9162f 100644--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx@@ -1,5 +1,5 @@-import { useState } from 'react'import CardButton from 'components/ui/CardButton'+import { useState } from 'react'export interface SQLCardProps {title: string@@ -20,7 +20,7 @@ const SQLCard = ({ title, description, sql, onClick }: SQLCardProps) => {title={title}loading={loading}onClick={() => handleOnClick()}- footer={<span className="text-scale-1100 text-sm">{description}</span>}+ footer={<span className="text-foreground-light text-sm">{description}</span>}/>)}diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsxindex fc6d68b7e50..988b254a787 100644--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx@@ -62,11 +62,11 @@ const SQLQuickstarts = observer(() => {<div className="mb-8"><div className="mb-4"><h1 className="text-foreground mb-3 text-xl">Quickstarts</h1>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">While we're in beta, we want to offer a quick way to explore Supabase. While we buildimporters, check out these simple starters.</p>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Click on any script to fill the query box, modify the script, then click<span className="text-code">Run</span>.</p>diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsxindex 0440b81901e..df84619c0f9 100644--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx@@ -64,8 +64,8 @@ const SQLTemplates = observer(() => {<div><div className="mb-4"><h1 className="text-foreground mb-3 text-xl">Scripts</h1>- <p className="text-scale-1100 text-sm">Quick scripts to run on your database.</p>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Quick scripts to run on your database.</p>+ <p className="text-foreground-light text-sm">Click on any script to fill the query box, modify the script, then click<span className="text-code">Run</span>.</p>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsxindex ea35afd3cb6..fa74f184829 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx@@ -1,8 +1,8 @@import * as Tooltip from '@radix-ui/react-tooltip'-import { Button, IconAlertCircle, IconCheck, IconLoader, IconRefreshCcw } from 'ui'import { usePrevious } from 'hooks'import { useEffect, useState } from 'react'import { useSqlEditorStateSnapshot } from 'state/sql-editor'+import { Button, IconAlertCircle, IconCheck, IconLoader, IconRefreshCcw } from 'ui'export type SavingIndicatorProps = { id: string }@@ -96,7 +96,7 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {</Tooltip.Content></Tooltip.Root>) : null}- <span className="text-scale-1000 text-sm">+ <span className="text-foreground-light text-sm">{savingState === 'UPDATING_FAILED' && 'Failed to save'}</span></div>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsxindex 55d513dd8d9..198e4732515 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx@@ -1,7 +1,7 @@+import * as Tooltip from '@radix-ui/react-tooltip'import { IS_PLATFORM } from 'lib/constants'import { detectOS } from 'lib/helpers'import { Button, IconAlignLeft, IconCommand, IconCornerDownLeft } from 'ui'-import * as Tooltip from '@radix-ui/react-tooltip'import FavoriteButton from './FavoriteButton'import SavingIndicator from './SavingIndicator'@@ -63,7 +63,7 @@ const UtilityActions = ({{os === 'macos' ? (<IconCommand size={10} strokeWidth={1.5} />) : (- <p className="text-xs text-scale-1100">CTRL</p>+ <p className="text-xs text-foreground-light">CTRL</p>)}<IconCornerDownLeft size={10} strokeWidth={1.5} /></div>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsxindex 4e8f8178d1e..0661dd7cd4a 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx@@ -1,12 +1,14 @@+import { subscriptionHasHipaaAddon } from 'components/interfaces/BillingV2/Subscription/Subscription.utils'import { useSqlDebugMutation } from 'data/ai/sql-debug-mutation'import { useEntityDefinitionsQuery } from 'data/database/entity-definitions-query'+import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { isError } from 'data/utils/error-check'import {+ useFlag,useLocalStorageQuery,useSelectedOrganization,useSelectedProject,useStore,- useFlag,} from 'hooks'import { IS_PLATFORM, OPT_IN_TAGS } from 'lib/constants'import { format } from 'sql-formatter'@@ -15,8 +17,6 @@ import { AiIconAnimation, Button } from 'ui'import { useSqlEditor } from '../SQLEditor'import { sqlAiDisclaimerComment } from '../SQLEditor.constants'import Results from './Results'-import { subscriptionHasHipaaAddon } from 'components/interfaces/BillingV2/Subscription/Subscription.utils'-import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'export type UtilityTabResultsProps = {id: string@@ -136,7 +136,7 @@ const UtilityTabResults = ({ id, isExecuting }: UtilityTabResultsProps) => {} else if (!result) {return (<div className="bg-table-header-light dark:bg-table-header-dark">- <p className="m-0 border-0 px-6 py-4 text-sm text-scale-1100">+ <p className="m-0 border-0 px-6 py-4 text-sm text-foreground-light">Click <code>RUN</code> to execute your query.</p></div>diff --git a/studio/components/interfaces/Settings/API/JWTSettings.tsx b/studio/components/interfaces/Settings/API/JWTSettings.tsxindex 2c601e83df8..e93fa986982 100644--- a/studio/components/interfaces/Settings/API/JWTSettings.tsx+++ b/studio/components/interfaces/Settings/API/JWTSettings.tsx@@ -94,7 +94,7 @@ const JWTSettings = () => {{isError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">Failed to retrieve JWT settings</p>+ <p className="text-sm text-foreground-light">Failed to retrieve JWT settings</p></div>) : (<>@@ -266,7 +266,7 @@ const JWTSettings = () => {><Modal.Content><div className="py-4 space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Create a custom JWT secret. Make sure it is a strong combination of characters thatcannot be guessed easily.</p>diff --git a/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/studio/components/interfaces/Settings/API/PostgrestConfig.tsxindex e2415fa351a..3be5a200e5d 100644--- a/studio/components/interfaces/Settings/API/PostgrestConfig.tsx+++ b/studio/components/interfaces/Settings/API/PostgrestConfig.tsx@@ -115,7 +115,7 @@ const PostgrestConfig = () => {{isError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">Failed to retrieve API settings</p>+ <p className="text-sm text-foreground-light">Failed to retrieve API settings</p></div>) : (<>diff --git a/studio/components/interfaces/Settings/API/ServiceList.tsx b/studio/components/interfaces/Settings/API/ServiceList.tsxindex 4d07b15fdc2..9cc552b6097 100644--- a/studio/components/interfaces/Settings/API/ServiceList.tsx+++ b/studio/components/interfaces/Settings/API/ServiceList.tsx@@ -1,20 +1,20 @@-import { useQueryClient } from '@tanstack/react-query'import { JwtSecretUpdateError, JwtSecretUpdateStatus } from '@supabase/shared-types/out/events'+import { useQueryClient } from '@tanstack/react-query'import { useEffect, useRef } from 'react'import { Badge, IconAlertCircle, Input } from 'ui'-import { useStore } from 'hooks'import { useParams } from 'common/hooks'import { useJwtSecretUpdatingStatusQuery } from 'data/config/jwt-secret-updating-status-query'+import { useStore } from 'hooks'-import { useProjectApiQuery } from 'data/config/project-api-query'-import { configKeys } from 'data/config/keys'import Panel from 'components/ui/Panel'import { DisplayApiSettings } from 'components/ui/ProjectSettings'+import { configKeys } from 'data/config/keys'+import { useProjectApiQuery } from 'data/config/project-api-query'+import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'import { JWT_SECRET_UPDATE_ERROR_MESSAGES } from './API.constants'import JWTSettings from './JWTSettings'import PostgrestConfig from './PostgrestConfig'-import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'const ServiceList = () => {const { ui } = useStore()@@ -74,7 +74,7 @@ const ServiceList = () => {{isError ? (<div className="flex items-center justify-center py-4 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">Failed to retrieve project URL</p>+ <p className="text-sm text-foreground-light">Failed to retrieve project URL</p></div>) : (<Inputdiff --git a/studio/components/interfaces/Settings/Addons/Addons.tsx b/studio/components/interfaces/Settings/Addons/Addons.tsxindex dae6df2216e..c6ad97e49f4 100644--- a/studio/components/interfaces/Settings/Addons/Addons.tsx+++ b/studio/components/interfaces/Settings/Addons/Addons.tsx@@ -85,7 +85,7 @@ const Addons = () => {<div className="mx-auto flex flex-col gap-10 py-6"><div><p className="text-xl">Add ons</p>- <p className="text-sm text-scale-1000">Level up your project with add-ons</p>+ <p className="text-sm text-foreground-light">Level up your project with add-ons</p></div></div></ScaffoldContainer>@@ -139,7 +139,7 @@ const Addons = () => {<div className="space-y-6"><p className="m-0">Optimized compute</p><div className="space-y-2">- <p className="text-sm text-scale-1100 m-0">More information</p>+ <p className="text-sm text-foreground-light m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/compute-add-ons"><a target="_blank" rel="noreferrer">@@ -184,7 +184,7 @@ const Addons = () => {</div></div><div className="flex-grow">- <p className="text-sm text-scale-1000">Current option:</p>+ <p className="text-sm text-foreground-light">Current option:</p><p className="">{computeInstance?.variant.name ?? 'Micro'}</p><ProjectUpdateDisabledTooltipprojectUpdateDisabled={projectUpdateDisabled}@@ -243,7 +243,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#ram`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">Memory</p><IconChevronRight@@ -260,7 +260,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#cpu`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">CPU</p><IconChevronRight@@ -277,13 +277,13 @@ const Addons = () => {</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-scale-1000">No. of direct connections</p>+ <p className="text-sm text-foreground-light">No. of direct connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_direct ?? 60}</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-scale-1000">No. of pooler connections</p>+ <p className="text-sm text-foreground-light">No. of pooler connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_pooler ?? 200}</p>@@ -292,7 +292,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">Max Disk Throughput</p><IconChevronRight@@ -313,7 +313,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-scale-1100 group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">Baseline Disk Throughput</p><IconChevronRight@@ -344,7 +344,7 @@ const Addons = () => {<div className="space-y-6"><p className="m-0">Point in time recovery</p><div className="space-y-2">- <p className="text-sm text-scale-1100 m-0">More information</p>+ <p className="text-sm text-foreground-light m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/backups#point-in-time-recovery"><a target="_blank" rel="noreferrer">@@ -375,7 +375,7 @@ const Addons = () => {</div></div><div>- <p className="text-sm text-scale-1000">Current option:</p>+ <p className="text-sm text-foreground-light">Current option:</p><p className="">{pitr !== undefined? `Point in time recovery of ${pitr.variant.meta?.backup_duration_days} days is enabled`@@ -434,7 +434,7 @@ const Addons = () => {<div className="space-y-6"><p className="m-0">Custom domain</p><div className="space-y-2">- <p className="text-sm text-scale-1100 m-0">More information</p>+ <p className="text-sm text-foreground-light m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/custom-domains"><a target="_blank" rel="noreferrer">@@ -465,7 +465,7 @@ const Addons = () => {</div></div><div>- <p className="text-sm text-scale-1000">Current option:</p>+ <p className="text-sm text-foreground-light">Current option:</p><p className="">{customDomain !== undefined? 'Custom domain is enabled'diff --git a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsxindex ff16a90ac90..f4c95e49535 100644--- a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx@@ -241,7 +241,7 @@ const ComputeInstanceSidePanel = () => {<pclassName={clsx('text-sm transition',- isSelected ? 'text-foreground' : 'text-scale-1000'+ isSelected ? 'text-foreground' : 'text-foreground-light')}>{option.name}@@ -299,8 +299,10 @@ const ComputeInstanceSidePanel = () => {<p className="text-sm">{option.name}</p></div><div className="px-4 py-2">- <p className="text-scale-1000">{option.meta?.memory_gb ?? 0} GB memory</p>- <p className="text-scale-1000">+ <p className="text-foreground-light">+ {option.meta?.memory_gb ?? 0} GB memory+ </p>+ <p className="text-foreground-light">{option.meta?.cpu_cores ?? 0}-core {cpuArchitecture} CPU ({option.meta?.cpu_dedicated ? 'Dedicated' : 'Shared'})</p>@@ -309,7 +311,7 @@ const ComputeInstanceSidePanel = () => {<span className="text-foreground text-sm">${option.price.toLocaleString()}</span>- <span className="text-scale-1000 translate-y-[1px]">+ <span className="text-foreground-light translate-y-[1px]">{' '}/ {option.price_interval === 'monthly' ? 'month' : 'hour'}</span>@@ -321,7 +323,7 @@ const ComputeInstanceSidePanel = () => {<IconInfosize={14}strokeWidth={2}- className="hover:text-scale-1000"+ className="hover:text-foreground-light"/></div></Tooltip.Trigger>@@ -355,7 +357,7 @@ const ComputeInstanceSidePanel = () => {)}{selectedCategory === 'micro' && (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your database will use the standard Micro size instance of 2-core {cpuArchitecture}{' '}CPU (Shared) with 1GB of memory.</p>@@ -363,13 +365,13 @@ const ComputeInstanceSidePanel = () => {{hasChanges &&(selectedCategory === 'micro' && !isOrgBilling ? (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Upon clicking confirm, the amount of that's unused during the current billingcycle will be returned as credits that can be used for subsequent billing cycles</p>) : selectedCategory !== 'micro' && selectedCompute?.price_interval === 'monthly' ? (// Monthly payment with project-level subscription- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Upon clicking confirm, the amount of{' '}<span className="text-foreground">${selectedCompute?.price.toLocaleString()}@@ -381,7 +383,7 @@ const ComputeInstanceSidePanel = () => {</p>) : selectedCategory !== 'micro' ? (// Hourly usage-billing with org-based subscription- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">There are no immediate charges when changing compute. Compute Hours are ausage-based item and you're billed at the end of your billing cycle based on yourcompute usage. Read more about{' '}diff --git a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsxindex 84e4bf45584..e340d0307c3 100644--- a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx@@ -184,10 +184,12 @@ const CustomDomainSidePanel = () => {<p className="text-sm">No custom domain</p></div><div className="px-4 py-2">- <p className="text-scale-1000">Use the default supabase domain for your API</p>+ <p className="text-foreground-light">+ Use the default supabase domain for your API+ </p><div className="flex items-center space-x-1 mt-2"><p className="text-foreground text-sm">$0</p>- <p className="text-scale-1000 translate-y-[1px]"> / month</p>+ <p className="text-foreground-light translate-y-[1px]"> / month</p></div></div></div>@@ -207,10 +209,12 @@ const CustomDomainSidePanel = () => {<p className="text-sm">{option.name}</p></div><div className="px-4 py-2">- <p className="text-scale-1000">Present a branded experience to your users</p>+ <p className="text-foreground-light">+ Present a branded experience to your users+ </p><div className="flex items-center space-x-1 mt-2"><p className="text-foreground text-sm">${option.price}</p>- <p className="text-scale-1000 translate-y-[1px]"> / month</p>+ <p className="text-foreground-light translate-y-[1px]"> / month</p></div></div></div>@@ -223,12 +227,12 @@ const CustomDomainSidePanel = () => {<>{selectedOption === 'cd_none' ||(selectedCustomDomain?.price ?? 0) < (subscriptionCDOption?.variant.price ?? 0) ? (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Upon clicking confirm, the amount of that's unused during the current billingcycle will be returned as credits that can be used for subsequent billing cycles</p>) : (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Upon clicking confirm, the amount of{' '}<span className="text-foreground">${selectedCustomDomain?.price.toLocaleString()}diff --git a/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx b/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsxindex b673727abc4..52bd4a73ebe 100644--- a/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx@@ -212,7 +212,7 @@ const PITRSidePanel = () => {<pclassName={clsx('text-sm transition',- isSelected ? 'text-foreground' : 'text-scale-1000'+ isSelected ? 'text-foreground' : 'text-foreground-light')}>{option.name}@@ -290,7 +290,7 @@ const PITRSidePanel = () => {<p className="text-sm">{option.name}</p></div><div className="px-4 py-2">- <p className="text-scale-1000">+ <p className="text-foreground-light">Allow database restorations to any time up to{' '}{option.identifier.split('_')[1]} days ago</p>@@ -298,7 +298,7 @@ const PITRSidePanel = () => {<p className="text-foreground text-sm">${option.price.toLocaleString()}</p>- <p className="text-scale-1000 translate-y-[1px]"> / month</p>+ <p className="text-foreground-light translate-y-[1px]"> / month</p></div></div></div>@@ -312,12 +312,12 @@ const PITRSidePanel = () => {<>{selectedOption === 'pitr_0' ||(selectedPitr?.price ?? 0) < (subscriptionPitr?.variant.price ?? 0) ? (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Upon clicking confirm, the amount of that's unused during the current billingcycle will be returned as credits that can be used for subsequent billing cycles</p>) : (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Upon clicking confirm, the amount of{' '}<span className="text-foreground">${selectedPitr?.price.toLocaleString()}</span>{' '}will be added to your monthly invoice. You're immediately charged for thediff --git a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsxindex f12a0da1993..a1a60f82d31 100644--- a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx+++ b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx@@ -80,7 +80,7 @@ const ConnectionPooling = () => {}><Panel.Content>- <p className="text-scale-1000">+ <p className="text-foreground-light">Please start a new project to enable this feature.</p></Panel.Content>diff --git a/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsx b/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsxindex a4388f59402..f3846a72d31 100644--- a/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsx+++ b/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsx@@ -18,7 +18,7 @@ const DatabaseSettings = () => {if (isError) {return (<div className="mx-auto p-6 text-center sm:w-full md:w-3/4">- <p className="text-scale-1000">Error loading database settings</p>+ <p className="text-foreground-light">Error loading database settings</p></div>)}diff --git a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsxindex 8a4adeeced2..685fd82ae51 100644--- a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx+++ b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx@@ -1,19 +1,19 @@-import dayjs from 'dayjs'import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'+import dayjs from 'dayjs'import Link from 'next/link'import { useState } from 'react'import { Alert, Button, Form, InputNumber, Modal } from 'ui'import { number, object } from 'yup'import { useParams } from 'common/hooks'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { FormHeader } from 'components/ui/Forms'import Panel from 'components/ui/Panel'import { useProjectDiskResizeMutation } from 'data/config/project-disk-resize-mutation'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useProjectUsageQuery } from 'data/usage/project-usage-query'import { useCheckPermissions, useStore } from 'hooks'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'export interface DiskSizeConfigurationProps {disabled?: boolean@@ -87,7 +87,7 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)<div className="grid grid-cols-1 items-center lg:grid-cols-3"><div className="col-span-2 space-y-1">{projectUsage?.disk_volume_size_gb && (- <span className="text-scale-1100 flex gap-2 items-baseline">+ <span className="text-foreground-light flex gap-2 items-baseline"><span className="text-foreground">Current Disk Storage Size:</span><span className="text-foreground text-xl">{currentDiskSize}diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsxindex 77da73278fb..9d4e909255b 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx@@ -120,7 +120,7 @@ const AddRestrictionModal = ({<><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">This will add an IP address range to a list of allowed ranges that can accessyour database. Only IPv4 addresses are supported at the moment.</p>@@ -198,11 +198,11 @@ const AddRestrictionModal = ({</code>{' '}will be restricted</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Selected address space: <code className="text-xs">{addressRange.start}</code>{' '}to <code className="text-xs">{addressRange.end}</code>{' '}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Number of addresses: {availableAddresses}</p></div>@@ -211,7 +211,7 @@ const AddRestrictionModal = ({<Modal.Content><div className="pt-2 pb-4"><div className="h-[68px] flex items-center">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">A summary of your restriction will be shown here after entering a valid IPaddress and CIDR block size</p>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsxindex edb8e167824..2afb599b262 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsx@@ -1,4 +1,3 @@-import { FC } from 'react'import { Button, Modal } from 'ui'import { useParams } from 'common/hooks'@@ -32,7 +31,7 @@ const AllowAllModal = ({ visible, onClose }: AllowAllModalProps) => {><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">This will allow any IP address to access your project's database. Are you sure?</p></div>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsxindex 3f39e6e30b8..fae43938ad2 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsx@@ -30,7 +30,7 @@ const DisallowAllModal = ({ visible, onClose }: DisallowAllModalProps) => {><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">This will prevent any external IP addresses from accessing your project's database. Areyou sure?</p>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsxindex 285c81aca22..c1662c1ee65 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx@@ -5,11 +5,11 @@ import Link from 'next/link'import { useState } from 'react'import { Button, IconAlertCircle, IconExternalLink, IconGlobe, IconLock } from 'ui'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { FormHeader, FormPanel } from 'components/ui/Forms'import Panel from 'components/ui/Panel'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useNetworkRestrictionsQuery } from 'data/network-restrictions/network-restrictions-query'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { useCheckPermissions } from 'hooks'import AddRestrictionModal from './AddRestrictionModal'import AllowAllModal from './AllowAllModal'@@ -162,10 +162,10 @@ const NetworkRestrictions = ({}) => {<div className="flex items-center justify-between"><div className="space-y-2"><div className="flex items-center space-x-2">- <IconAlertCircle strokeWidth={1.5} className="text-scale-1000" />+ <IconAlertCircle strokeWidth={1.5} className="text-foreground-light" /><p className="text-sm">Your network restrictions were not applied correctly</p></div>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Please try to add your network restrictions again</p></div>@@ -188,10 +188,10 @@ const NetworkRestrictions = ({}) => {<div className="px-8 py-8 flex items-center justify-between"><div className="flex items-start space-x-4"><div className="space-y-1">- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Your database can be accessed by all IP addresses</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">You may start limiting access to your database by adding a networkrestriction.</p>@@ -207,17 +207,17 @@ const NetworkRestrictions = ({}) => {) : isDisallowedAll ? (<div className="px-8 py-8 flex items-center justify-between"><div className="flex items-start space-x-4">- <IconLock className="text-scale-1100" strokeWidth={1.5} />+ <IconLock className="text-foreground-light" strokeWidth={1.5} /><div className="space-y-1">- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Your database <span className="text-amber-900 opacity-80">cannot</span> beaccessed externally</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">All external IP addresses have been disallowed from accessing your project'sdatabase.</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Note: Restrictions only apply to your database, and not to Supabase services</p></div>@@ -233,14 +233,14 @@ const NetworkRestrictions = ({}) => {<div className="divide-y"><div className="px-8 py-3 flex items-center justify-between"><div>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Only the following IP addresses have access to your database</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">You may remove all of them to allow all IP addresses to have access to yourdatabase</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Note: Restrictions only apply to your database, and not to Supabase services</p></div>@@ -259,7 +259,7 @@ const NetworkRestrictions = ({}) => {return (<div key={ip} className="px-8 py-4 flex items-center justify-between"><div className="flex items-center space-x-5">- <IconGlobe size={16} className="text-scale-1000" />+ <IconGlobe size={16} className="text-foreground-light" /><p className="text-sm font-mono">{ip}</p></div><Button type="default" onClick={() => setSelectedRestrictionToRemove(ip)}>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsxindex 037469a7376..7b9811e56ba 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx@@ -56,7 +56,7 @@ const RemoveRestrictionModal = ({><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">The IPv4 address <code className="text-xs">{selectedRestriction}</code> will be removedfrom your list of network restrictions{isRemovingOnlyRestrictiondiff --git a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsxindex 11b7e59245b..6a7aad20310 100644--- a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx+++ b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx@@ -5,6 +5,7 @@ import Link from 'next/link'import { useEffect, useState } from 'react'import { Alert, Button, IconDownload, IconExternalLink, IconLoader, Toggle } from 'ui'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import {FormHeader,FormPanel,@@ -16,7 +17,6 @@ import { useProjectSettingsQuery } from 'data/config/project-settings-query'import { useSSLEnforcementQuery } from 'data/ssl-enforcement/ssl-enforcement-query'import { useSSLEnforcementUpdateMutation } from 'data/ssl-enforcement/ssl-enforcement-update-mutation'import { useCheckPermissions, useStore } from 'hooks'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'const SSLConfiguration = () => {const { ui } = useStore()@@ -100,7 +100,7 @@ const SSLConfiguration = () => {className="lg:col-span-7"description={<div className="space-y-4">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Reject non-SSL connections to your database</p>{isSuccess && !sslEnforcementConfiguration?.appliedSuccessfully && (diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsxindex 154a1ef4ff1..85f926d6c9f 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx@@ -65,7 +65,7 @@ const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainActivateSetup complete! Press activate to enable the custom domain{' '}<code className="text-sm">{customDomain.hostname}</code> for this project.</h4>- <span className="text-sm text-scale-1100">+ <span className="text-sm text-foreground-light">We recommend that you schedule a downtime window of 20 - 30 minutes for yourapplication, as you will need to update any services that need to know about yourcustom domain (e.g client side code or OAuth providers)@@ -73,7 +73,7 @@ const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainActivate</div><div className="mt-4"><Alert_Shadcn_>- <IconAlertCircle className="text-scale-1100" strokeWidth={1.5} />+ <IconAlertCircle className="text-foreground-light" strokeWidth={1.5} /><AlertTitle_Shadcn_>Do remember to restore the original CNAME record from the first step beforeactivatingdiff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsxindex d2e68280594..c1fc13403f3 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx@@ -6,13 +6,13 @@ import Panel from 'components/ui/Panel'import UpgradeToPro from 'components/ui/UpgradeToPro'import { useProjectApiQuery } from 'data/config/project-api-query'import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'+import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { IconAlertCircle } from 'ui'import CustomDomainActivate from './CustomDomainActivate'import CustomDomainDelete from './CustomDomainDelete'-import CustomDomainVerify from './CustomDomainVerify'import CustomDomainsConfigureHostname from './CustomDomainsConfigureHostname'import CustomDomainsShimmerLoader from './CustomDomainsShimmerLoader'-import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'+import CustomDomainVerify from './CustomDomainVerify'const CustomDomainConfig = () => {const { ref } = useParams()@@ -47,7 +47,7 @@ const CustomDomainConfig = () => {<Panel.Content className="space-y-6"><div className="flex items-center justify-center space-x-2 py-8"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Failed to retrieve custom domain configuration. Please try again later or{' '}<Link href={`/support/new?ref=${ref}&category=sales`}><a className="underline">contact support</a>diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsxindex ebeb95f35c8..cc141f9dd88 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx@@ -33,14 +33,14 @@ const CustomDomainDelete = ({ projectRef, customDomain }: CustomDomainDeleteProp<><Panel.Content><div className="w-full space-y-2">- <p className="text-xs text-scale-1100">Active custom domain:</p>+ <p className="text-xs text-foreground-light">Active custom domain:</p><div className="flex items-center space-x-2"><code className="text-lg mx-0 flex items-center space-x-2"><div className="h-2 w-2 rounded-full bg-brand" /><span>{customDomain.hostname}</span></code></div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your custom domain is currently active and is serving traffic</p></div>diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsxindex 49ede1fb34e..1fdd6a72c90 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx@@ -60,19 +60,19 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomainConfigure TXT verification for your custom domain{' '}<code className="text-sm">{customDomain.hostname}</code></h4>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Set the following TXT record(s) in your DNS provider, then click verify to confirm yourcontrol over the domain</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Records which have been successfully verified will be removed from this list below.</p><div className="mt-4 mb-2"><Alert_Shadcn_ variant="default">{isNotVerifiedYet ? (- <IconAlertCircle className="text-scale-1100" strokeWidth={1.5} />+ <IconAlertCircle className="text-foreground-light" strokeWidth={1.5} />) : (- <IconHelpCircle className="text-scale-1100" strokeWidth={1.5} />+ <IconHelpCircle className="text-foreground-light" strokeWidth={1.5} />)}<AlertTitle_Shadcn_>{isNotVerifiedYet@@ -128,16 +128,16 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain<div className="space-y-2"><div className="flex gap-4"><div className="w-[50px]">- <p className="text-scale-1100 text-sm">Type</p>+ <p className="text-foreground-light text-sm">Type</p></div><div className="text-sm grid gap-2 md:grid md:grid-cols-12 md:gap-x-4 input-mono flex-1"><div className="flex flex-row space-x-2 justify-between col-span-12">- <label className="block text-scale-1100 text-sm break-all">Name</label>+ <label className="block text-foreground-light text-sm break-all">Name</label></div></div><div className="text-sm grid gap-2 md:grid md:grid-cols-12 md:gap-x-4 input-mono flex-1"><div className="flex flex-row space-x-2 justify-between col-span-12">- <label className="block text-scale-1100 text-sm break-all">Content</label>+ <label className="block text-foreground-light text-sm break-all">Content</label></div></div></div>@@ -171,7 +171,7 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain{customDomain.ssl.status === 'pending_deployment' && (<div className="flex items-center justify-center space-x-2 py-8"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">SSL certificate is being deployed. Please wait a few minutes and try again.</p></div>@@ -180,11 +180,12 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain)}<div className="!mt-4">- <p className="text-sm text-scale-1000">- One of the records requires you to <span className="text-scale-1100">replace</span> the- CNAME record set up in the first step with a TXT record.+ <p className="text-sm text-foreground-light">+ One of the records requires you to{' '}+ <span className="text-foreground-light">replace</span> the CNAME record set up in the+ first step with a TXT record.</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You'll be able to restore it back to the CNAME after the verification process has beencompleted.</p>diff --git a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsxindex 057dcf57ef3..b992452981f 100644--- a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx+++ b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx@@ -11,7 +11,6 @@ import { useSendDowngradeFeedbackMutation } from 'data/feedback/exit-survey-sendimport { useProjectDeleteMutation } from 'data/projects/project-delete-mutation'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useCheckPermissions, useStore } from 'hooks'-import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'export interface DeleteProjectButtonProps {type?: 'danger' | 'default'@@ -147,7 +146,7 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {<><div className="space-y-1"><h4 className="text-base">We're sad that you're leaving.</h4>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">We always strive to improve Supabase as much as we can. Please let us know thereasons you are deleting your project so that we can improve in the future.</p>diff --git a/studio/components/interfaces/Settings/General/General.tsx b/studio/components/interfaces/Settings/General/General.tsxindex 82cc41c6e68..311e032e43b 100644--- a/studio/components/interfaces/Settings/General/General.tsx+++ b/studio/components/interfaces/Settings/General/General.tsx@@ -124,7 +124,7 @@ const General = () => {<div><p className="text-sm">Restart project</p><div className="max-w-[420px]">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your project will not be available for a few minutes.</p></div>@@ -135,7 +135,7 @@ const General = () => {<div><p className="text-sm">Pause project</p><div className="max-w-[420px]">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your project will not be accessible while it is paused.</p></div>@@ -152,7 +152,7 @@ const General = () => {<IconBarChart2 strokeWidth={2} /><div><p className="text-sm">Project usage statistics has been moved</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">You may view your project's usage under your organization's settings</p></div>diff --git a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsxindex b8dd565b224..99af70d9865 100644--- a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx+++ b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx@@ -1,24 +1,23 @@+import * as Tooltip from '@radix-ui/react-tooltip'+import { observer } from 'mobx-react-lite'import Link from 'next/link'import { Alert, Badge, Button, IconPackage, Input } from 'ui'-import { observer } from 'mobx-react-lite'-import * as Tooltip from '@radix-ui/react-tooltip'-import { useFlag } from 'hooks'import { useParams } from 'common/hooks'-import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import {FormHeader,FormPanel,FormSection,- FormSectionLabel,FormSectionContent,+ FormSectionLabel,} from 'components/ui/Forms'-import ProjectUpgradeAlert from './ProjectUpgradeAlert'-import PauseProjectButton from './PauseProjectButton'-import RestartServerButton from './RestartServerButton'import { useProjectUpgradeEligibilityQuery } from 'data/config/project-upgrade-eligibility-query'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'+import { useFlag } from 'hooks'+import PauseProjectButton from './PauseProjectButton'+import ProjectUpgradeAlert from './ProjectUpgradeAlert'+import RestartServerButton from './RestartServerButton'interface InfrastructureProps {}@@ -54,7 +53,7 @@ const Infrastructure = ({}: InfrastructureProps) => {<div><p className="text-sm">Restart server</p><div className="max-w-[420px]">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your project will not be available for a few minutes.</p></div>@@ -69,7 +68,7 @@ const Infrastructure = ({}: InfrastructureProps) => {<div><p className="text-sm">Pause project</p><div className="max-w-[420px]">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your project will not be accessible while it is paused.</p></div>@@ -127,7 +126,7 @@ const Infrastructure = ({}: InfrastructureProps) => {{showDbUpgrades && data?.eligible && <ProjectUpgradeAlert />}{showDbUpgrades && !data?.eligible && data?.requires_manual_intervention && (<Alert- icon={<IconPackage className="text-scale-1100" strokeWidth={1.5} />}+ icon={<IconPackage className="text-foreground-light" strokeWidth={1.5} />}variant="neutral"title="A new version of Postgres is available for your project">diff --git a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsxindex 05fc81fcb9f..d2fef612dad 100644--- a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx+++ b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx@@ -112,7 +112,7 @@ const RestartServerButton = () => {><div className="space-y-1"><p className="block text-foreground">Fast database reboot</p>- <p className="block text-scale-1100 text-xs">+ <p className="block text-foreground-light text-xs">Restarts only the database - faster but may not be able to recover from allfailure modes</p>diff --git a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsxindex 0d9d7bc477e..1eecf14c5ca 100644--- a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx+++ b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx@@ -140,7 +140,7 @@ const TransferProjectButton = () => {</div>}>- <div className="space-y-4 py-4 text-scale-1100">+ <div className="space-y-4 py-4 text-foreground-light"><Modal.Content><p className="text-sm">To transfer projects, the owner must be a member of both the source and target@@ -225,7 +225,7 @@ const TransferProjectButton = () => {</Listbox>)}- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">The target organization needs to use{' '}<Link href="https://supabase.com/docs/guides/platform/org-based-billing"><a target="_blank" rel="noreferrer" className="underline">@@ -248,7 +248,7 @@ const TransferProjectButton = () => {<Modal.Content><div className="px-4">{transferPreviewData && transferPreviewData.valid && (- <div className="text-sm text-scale-1100 p-4 bg-scale-400">+ <div className="text-sm text-foreground-light p-4 bg-scale-400">{transferPreviewData.source_subscription_plan !==transferPreviewData.target_subscription_plan ? (<div>@@ -322,12 +322,12 @@ const TransferProjectButton = () => {</div>{transferPreviewData.members_exceeding_free_project_limit.length > 0 && (<div className="space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">These members have reached their maximum limits for the number of activeFree plan projects within organizations where they are an administrator orowner:</p>- <ul className="pl-5 text-sm list-disc text-scale-1100">+ <ul className="pl-5 text-sm list-disc text-foreground-light">{(transferPreviewData.members_exceeding_free_project_limit || []).map((member, idx: number) => (<li key={`member-${idx}`}>@@ -336,7 +336,7 @@ const TransferProjectButton = () => {))}</ul>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">These members will need to either delete, pause, or upgrade one or more oftheir projects before you can downgrade this project.</p>diff --git a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsxindex e3eb9a72d01..3b7805bdf0c 100644--- a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx+++ b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx@@ -23,7 +23,7 @@ const TransferProjectPanel = () => {<IconTruck className="mt-1" /><div className="space-y-1 xl:max-w-lg"><p className="text-sm">Transfer project to another organization</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">To transfer projects, the owner must be a member of both the source and targetorganizations.</p>diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsxindex 594a736e9f5..6d343850273 100644--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx@@ -25,10 +25,10 @@ import { DataPoint } from 'data/analytics/constants'import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'+import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'import { useSelectedOrganization } from 'hooks'import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants'import { INFRA_ACTIVITY_METRICS } from './Infrastructure.constants'-import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'const InfrastructureActivity = () => {const { ref: projectRef } = useParams()@@ -178,7 +178,7 @@ const InfrastructureActivity = () => {<div className="mx-auto flex flex-col gap-10 pt-6"><div><p className="text-xl">Infrastructure Activity</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Activity statistics related to your server instance</p></div>@@ -195,7 +195,7 @@ const InfrastructureActivity = () => {loading={isLoadingSubscription}currentBillingPeriodStart={subscription?.current_period_start}/>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{dayjs(startDate).format('DD MMM YYYY')} - {dayjs(endDate).format('DD MMM YYYY')}</p></>@@ -218,14 +218,14 @@ const InfrastructureActivity = () => {</div><div className="grid gap-4">{attribute.description.split('\n').map((value, idx) => (- <p key={`desc-${idx}`} className="text-sm text-scale-1000 pr-8 m-0">+ <p key={`desc-${idx}`} className="text-sm text-foreground-light pr-8 m-0">{value}</p>))}</div></div><div className="space-y-2">- <p className="text-sm text-foreground dark:text-scale-1100 mb-2">+ <p className="text-sm text-foreground dark:text-foreground-light mb-2">More information</p>{attribute.links.map((link) => (@@ -259,12 +259,12 @@ const InfrastructureActivity = () => {{currentComputeInstanceSpecs.baseline_disk_io_mbs ===currentComputeInstanceSpecs.max_disk_io_mbs ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your current compute can has a baseline and maximum disk throughput of{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps.</p>) : (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your current compute can burst up to{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps for30 minutes a day and reverts to the baseline performance of{' '}@@ -276,11 +276,11 @@ const InfrastructureActivity = () => {<div><p className="text-sm mb-2">Overview</p><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">Current compute instance</p>+ <p className="text-xs text-foreground-light">Current compute instance</p><p className="text-xs">{computeInstance?.variant?.name ?? 'Micro'}</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">Maximum IO Bandwidth (burst limit)</p><p className="text-xs">@@ -288,7 +288,7 @@ const InfrastructureActivity = () => {</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-scale-1000">Baseline IO Bandwidth</p>+ <p className="text-xs text-foreground-light">Baseline IO Bandwidth</p><p className="text-xs">{currentComputeInstanceSpecs.baseline_disk_io_mbs?.toLocaleString()}{' '}Mbps@@ -297,7 +297,7 @@ const InfrastructureActivity = () => {{currentComputeInstanceSpecs.max_disk_io_mbs !==currentComputeInstanceSpecs?.baseline_disk_io_mbs && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-scale-1000">Daily burst time limit</p>+ <p className="text-xs text-foreground-light">Daily burst time limit</p><p className="text-xs">30 mins</p></div>)}@@ -335,7 +335,7 @@ const InfrastructureActivity = () => {</div>{attribute.key === 'ram_usage' && (- <div className="text-sm text-scale-1000">+ <div className="text-sm text-foreground-light"><p>Your compute instance has {currentComputeInstanceSpecs.memory_gb} GB ofmemory.@@ -350,13 +350,13 @@ const InfrastructureActivity = () => {)}{attribute.key === 'max_cpu_usage' && (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your compute instance has {currentComputeInstanceSpecs.cpu_cores} CPU cores.</p>)}{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-scale-1000">+ <p key={`para-${idx}`} className="text-sm text-foreground-light">{paragraph}</p>))}@@ -381,9 +381,11 @@ const InfrastructureActivity = () => {<Panel><Panel.Content><div className="flex flex-col items-center justify-center space-y-2">- <IconBarChart2 className="text-scale-1100 mb-2" />+ <IconBarChart2 className="text-foreground-light mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-scale-1000">May take a few minutes to show</p>+ <p className="text-sm text-foreground-light">+ May take a few minutes to show+ </p></div></Panel.Content></Panel>diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsxindex adc9c56a642..706ab312116 100644--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx@@ -45,7 +45,7 @@ const InfrastructureInfo = () => {<div className="mx-auto flex flex-col gap-10 py-6"><div><p className="text-xl">Infrastructure</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">General information regarding your server instance</p></div>@@ -56,7 +56,7 @@ const InfrastructureInfo = () => {<ScaffoldSection><ScaffoldSectionDetail><p>Configuration</p>- <p className="text-scale-1000 text-sm">Information on your server provider</p>+ <p className="text-foreground-light text-sm">Information on your server provider</p></ScaffoldSectionDetail><ScaffoldSectionContent><Input readOnly disabled value={project?.cloud_provider} label="Cloud provider" />@@ -66,7 +66,9 @@ const InfrastructureInfo = () => {<ScaffoldSection className="!pt-0"><ScaffoldSectionDetail><p>Service Versions</p>- <p className="text-scale-1000 text-sm">Information on your provisioned instance</p>+ <p className="text-foreground-light text-sm">+ Information on your provisioned instance+ </p></ScaffoldSectionDetail><ScaffoldSectionContent>{isLoadingUpgradeEligibility && <GenericSkeletonLoader />}@@ -122,7 +124,7 @@ const InfrastructureInfo = () => {{showDbUpgrades && data?.eligible && <ProjectUpgradeAlert />}{showDbUpgrades && !data?.eligible && data?.requires_manual_intervention && (<Alert- icon={<IconPackage className="text-scale-1100" strokeWidth={1.5} />}+ icon={<IconPackage className="text-foreground-light" strokeWidth={1.5} />}variant="neutral"title="A new version of Postgres is available for your project">diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsxindex 7ba3e0bd53a..87f840ec81c 100644--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx@@ -13,9 +13,9 @@ import DatabasePostgresColumnRender from './LogColumnRenderers/DatabasePostgresCimport DefaultPreviewColumnRenderer from './LogColumnRenderers/DefaultPreviewColumnRenderer'import FunctionsEdgeColumnRender from './LogColumnRenderers/FunctionsEdgeColumnRender'import FunctionsLogsColumnRender from './LogColumnRenderers/FunctionsLogsColumnRender'-import LogSelection, { LogSelectionProps } from './LogSelection'import { LogData, QueryType } from './Logs.types'import { isDefaultLogPreviewFormat } from './Logs.utils'+import LogSelection, { LogSelectionProps } from './LogSelection'import DefaultErrorRenderer from './LogsErrorRenderers/DefaultErrorRenderer'import ResourcesExceededErrorRenderer from './LogsErrorRenderers/ResourcesExceededErrorRenderer'@@ -185,7 +185,7 @@ const LogTable = ({{data && data.length ? (<><span className="text-sm text-foreground">Query results</span>- <span className="text-sm text-scale-1100">{data && data.length}</span>+ <span className="text-sm text-foreground-light">{data && data.length}</span></>) : (<span className="text-xs text-foreground">Results will be shown below</span>@@ -237,7 +237,7 @@ const LogTable = ({<div className="flex flex-col gap-1"><div className="relative flex h-4 w-32 items-center rounded border border-dashed border-scale-600 px-2 dark:border-scale-900"></div><div className="relative flex h-4 w-32 items-center rounded border border-dashed border-scale-600 px-2 dark:border-scale-900">- <div className="absolute right-1 -bottom-4 text-scale-1100">+ <div className="absolute right-1 -bottom-4 text-foreground-light"><svgxmlns="http://www.w3.org/2000/svg"className="h-6 w-6"diff --git a/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx b/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsxindex 0c466ab5f41..710c199a5e7 100644--- a/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx+++ b/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx@@ -1,7 +1,7 @@-import { Alert, Button, Dropdown, IconClock } from 'ui'import { DatePicker } from 'components/ui/DatePicker'import dayjs from 'dayjs'import { useEffect, useState } from 'react'+import { Alert, Button, Dropdown, IconClock } from 'ui'import { DatetimeHelper, getDefaultHelper, LOGS_LARGE_DATE_RANGE_DAYS_THRESHOLD } from '.'interface Props {@@ -50,9 +50,9 @@ const DatePickers: React.FC<Props> = ({ to, from, onChange, helpers }) => {{helpers.map((helper) => (<Dropdown.Radio key={helper.text} value={helper.text} disabled={helper.disabled}><span- className={[helper.disabled ? 'text-scale-1000 cursor-not-allowed' : ''].join(- ' '- )}+ className={[+ helper.disabled ? 'text-foreground-light cursor-not-allowed' : '',+ ].join(' ')}>{helper.text}</span>diff --git a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsxindex 3547bc272f1..65cb8967e58 100644--- a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx+++ b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx@@ -30,13 +30,13 @@ const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => {</div></Table.td><Table.td className="">- <span className="text-scale-1100">{item.description}</span>+ <span className="text-foreground-light">{item.description}</span></Table.td><Table.td className="">- <span className="text-scale-1100">{timestampLocalFormatter(item.inserted_at)}</span>+ <span className="text-foreground-light">{timestampLocalFormatter(item.inserted_at)}</span></Table.td><Table.td className="">- <span className="text-scale-1100">{timestampLocalFormatter(item.updated_at)}</span>+ <span className="text-foreground-light">{timestampLocalFormatter(item.updated_at)}</span></Table.td><Table.td className=" text-right"><Buttondiff --git a/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsxindex c8b76284adc..312051db184 100644--- a/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsx@@ -2,7 +2,7 @@ import { Accordion, Input } from 'ui'import { ErrorRendererProps } from './DefaultErrorRenderer'const ResourcesExceededErrorRenderer: React.FC<ErrorRendererProps> = ({ error, isCustomQuery }) => (- <div className="flex flex-col gap-2 text-scale-1100">+ <div className="flex flex-col gap-2 text-foreground-light"><div className="flex flex-col gap-1 text-sm"><p>This query requires too much memory to be executed.</p><p>diff --git a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsxindex cf63326b0f0..7617f33dc4a 100644--- a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx@@ -9,10 +9,10 @@ import Link from 'next/link'import React from 'react'import {EXPLORER_DATEPICKER_HELPERS,- LOGS_SOURCE_DESCRIPTION,- LogTemplate,LogsTableName,LogsWarning,+ LOGS_SOURCE_DESCRIPTION,+ LogTemplate,} from '.'import DatePickers from './Logs.DatePickers'@@ -64,8 +64,10 @@ const LogsQueryPanel = ({.map((source) => (<Dropdown.Item key={source} onClick={() => onSelectSource(source)}><div className="flex flex-col gap-1">- <span className="font-mono font-bold text-scale-1100">{source}</span>- <span className="text-scale-1100">{LOGS_SOURCE_DESCRIPTION[source]}</span>+ <span className="font-mono font-bold text-foreground-light">{source}</span>+ <span className="text-foreground-light">+ {LOGS_SOURCE_DESCRIPTION[source]}+ </span></div></Dropdown.Item>))}diff --git a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsxindex 5358fd67393..4ef29d0bdf6 100644--- a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx+++ b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx@@ -3,8 +3,8 @@ import { Button, IconExternalLink, IconEye, IconEyeOff, IconRefreshCw, IconSearcimport CSVButton from 'components/ui/CSVButton'import { Filters, LogSearchCallback, LogTemplate, PREVIEWER_DATEPICKER_HELPERS } from '.'-import DatePickers from './Logs.DatePickers'import { FILTER_OPTIONS, LogsTableName } from './Logs.constants'+import DatePickers from './Logs.DatePickers'import LogsFilterPopover from './LogsFilterPopover'interface PreviewFilterPanelProps {@@ -126,7 +126,7 @@ const PreviewFilterPanel = ({hasEdits && (<buttononClick={() => handleInputSearch(search)}- className="mx-2 text-scale-1100 hover:text-foreground"+ className="mx-2 text-foreground-light hover:text-foreground">{'↲'}</button>diff --git a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsxindex bd88aa58a6e..f1a56549106 100644--- a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx+++ b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx@@ -1,8 +1,8 @@import { Button, Modal } from 'ui'-import { TIER_QUERY_LIMITS } from '.'import Link from 'next/link'import { useRouter } from 'next/router'+import { TIER_QUERY_LIMITS } from '.'interface Props {show: boolean@@ -31,8 +31,8 @@ const UpgradePrompt: React.FC<Props> = ({ show, setShowUpgradePrompt }) => {</p><div className="border-scale-600 bg-scale-500 rounded border"><div className="flex items-center px-4 pt-2 pb-1">- <p className="text-scale-1100 w-[40%] text-sm">Plan</p>- <p className="text-scale-1100 w-[60%] text-sm">Retention duration</p>+ <p className="text-foreground-light w-[40%] text-sm">Plan</p>+ <p className="text-foreground-light w-[60%] text-sm">Retention duration</p></div><div className="py-1"><div className="flex items-center px-4 py-1">diff --git a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsxindex b6d6910d8ca..57ac6f3088f 100644--- a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx+++ b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx@@ -182,7 +182,11 @@ const EncryptionKeysManagement = () => {<div className="border border-scale-500 rounded">{!vault.isLoaded ? (<div className="px-6 py-6 space-x-2 flex items-center justify-center">- <IconLoader className="animate-spin text-scale-1100" size={16} strokeWidth={1.5} />+ <IconLoader+ className="animate-spin text-foreground-light"+ size={16}+ strokeWidth={1.5}+ /><p className="text-sm text-foreground">Loading keys from the Vault</p></div>) : (@@ -191,7 +195,7 @@ const EncryptionKeysManagement = () => {return (<Fragment key={key.key_id}><div className="px-6 py-4 flex items-center space-x-4">- <IconKey className="text-scale-1100" strokeWidth={2} />+ <IconKey className="text-foreground-light" strokeWidth={2} /><div className="space-y-1 min-w-[70%] max-w-[70%]"><pclassName="text-sm truncate text-foreground"@@ -199,12 +203,15 @@ const EncryptionKeysManagement = () => {>{key.name || DEFAULT_KEY_NAME}</p>- <p title={key.id} className="text-xs text-scale-1100 font-bold truncate">+ <p+ title={key.id}+ className="text-xs text-foreground-light font-bold truncate"+ >ID: <span className="font-mono">{key.id}</span></p></div><div className="flex items-center justify-end w-[30%] space-x-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Added on {dayjs(key.created).format('MMM D, YYYY')}</p><Tooltip.Root delayDuration={0}>@@ -246,7 +253,7 @@ const EncryptionKeysManagement = () => {{searchValue.length === 0 ? (<div className="px-6 py-6 space-y-1 flex flex-col items-center justify-center"><p className="text-sm text-foreground">No encryption keys added yet</p>- <p className="text-sm text-scale-1100 text-center">+ <p className="text-sm text-foreground-light text-center">Encryption keys are created by the pgsodium extension and can be used toencrypt your columns and secrets</p>@@ -254,7 +261,7 @@ const EncryptionKeysManagement = () => {) : (<div className="px-6 py-4 space-y-1"><p className="text-sm text-foreground">No results found</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your search for "{searchValue}" did not return any results</p></div>@@ -293,7 +300,7 @@ const EncryptionKeysManagement = () => {<p className="text-sm text-foreground">{selectedKeyToRemove?.name ?? DEFAULT_KEY_NAME}</p>- <p className="text-xs text-scale-1100">+ <p className="text-xs text-foreground-light"><code className="!mx-0">ID: {selectedKeyToRemove?.id}</code></p></div>diff --git a/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx b/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsxindex 82b5f43ef1e..bb2694e798c 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx@@ -53,7 +53,7 @@ const DeleteSecretModal = ({ selectedSecret, onClose }: DeleteSecretModalProps)</p><div className="space-y-1"><p className="text-sm">{selectedSecret?.description}</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">ID: <span className="font-mono">{selectedSecret?.key_id}</span></p></div>diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsxindex d9c6b0fa09e..8caca42d7d9 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx@@ -58,7 +58,7 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =>{name}</p>{secret.description !== undefined && (- <p className="text-sm text-scale-1100" title={secret.description}>+ <p className="text-sm text-foreground-light" title={secret.description}>{secret.description}</p>)}@@ -67,11 +67,11 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =><IconKeysize={14}strokeWidth={2}- className="text-scale-1000 transition group-hover:text-brand"+ className="text-foreground-light transition group-hover:text-brand"/><Link href={`/project/${ref}/settings/vault/keys?id=${secret.key_id}`}><a- className="text-scale-1100 font-mono text-xs cursor-pointer transition group-hover:text-brand"+ className="text-foreground-light font-mono text-xs cursor-pointer transition group-hover:text-brand"title={secret.key_id}>{secret.key_id}@@ -103,7 +103,7 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =></div></div><div className="flex items-center justify-end w-[25%] space-x-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{secret.updated_at === secret.created_at ? 'Added' : 'Updated'} on{' '}{dayjs(secret.updated_at).format('MMM D, YYYY')}</p>diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsxindex 2ac5e63cd62..9a4f1b6c54b 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx@@ -144,7 +144,11 @@ const SecretsManagement = () => {<div className="border border-scale-500 rounded">{!vault.isLoaded ? (<div className="px-6 py-6 space-x-2 flex items-center justify-center">- <IconLoader className="animate-spin text-scale-1100" size={16} strokeWidth={1.5} />+ <IconLoader+ className="animate-spin text-foreground-light"+ size={16}+ strokeWidth={1.5}+ /><p className="text-sm text-foreground">Loading secrets from the Vault</p></div>) : (@@ -166,14 +170,14 @@ const SecretsManagement = () => {{searchValue.length === 0 ? (<div className="px-6 py-6 space-y-1 flex flex-col items-center justify-center"><p className="text-sm text-foreground">No secrets added yet</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">The Vault allows you to store sensitive information like API keys</p></div>) : (<div className="px-6 py-4 space-y-1"><p className="text-sm text-foreground">No results found</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your search for "{searchValue}" did not return any results</p></div>diff --git a/studio/components/interfaces/Settings/Vault/VaultToggle.tsx b/studio/components/interfaces/Settings/Vault/VaultToggle.tsxindex f5e6c9a103a..f949db747d2 100644--- a/studio/components/interfaces/Settings/Vault/VaultToggle.tsx+++ b/studio/components/interfaces/Settings/Vault/VaultToggle.tsx@@ -71,7 +71,7 @@ const VaultToggle = () => {<div className="w-3/5 space-y-8"><div className="space-y-2"><h4 className="text-lg">Enable Vault today</h4>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Supabase Vault is a Postgres extension for managing secrets and encryption inside yourdatabase without leaking any sensitive information.</p>@@ -80,10 +80,10 @@ const VaultToggle = () => {<div className="space-y-4"><div className="rounded border border-scale-500 px-4 py-2 flex items-center justify-between"><div>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Vault is not available for this project yet.</p>- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Do reach out to us if you're interested!</p></div>diff --git a/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx b/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsxindex a2436717341..a1a0a2bfe03 100644--- a/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx+++ b/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx@@ -32,7 +32,7 @@ const PasswordCondition = ({ title, isMet }: PasswordConditionProps) => {<divclassName={'flex items-center gap-1 space-x-1.5 transition duration-200 ' +- (isMet ? 'text-scale-1100' : 'text-scale-900')+ (isMet ? 'text-foreground-light' : 'text-scale-900')}>{isMet ? (diff --git a/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/studio/components/interfaces/SignIn/SignInMfaForm.tsxindex 258419fdec6..d18ac5a3044 100644--- a/studio/components/interfaces/SignIn/SignInMfaForm.tsx+++ b/studio/components/interfaces/SignIn/SignInMfaForm.tsx@@ -154,13 +154,13 @@ const SignInMfaForm = () => {<div className="my-8"><div className="text-sm">- <span className="text-scale-1000">Unable to sign in?</span>{' '}+ <span className="text-foreground-light">Unable to sign in?</span>{' '}</div><ul className="list-disc pl-6">{factors?.totp.length === 2 && (<li><a- className="text-sm text-scale-1100 hover:text-foreground cursor-pointer"+ className="text-sm text-foreground-light hover:text-foreground cursor-pointer"onClick={() =>setSelectedFactor(factors.totp.find((f) => f.id !== selectedFactor?.id)!)}@@ -177,7 +177,7 @@ const SignInMfaForm = () => {<atarget="_blank"rel="noreferrer"- className="text-sm transition text-scale-1100 hover:text-foreground"+ className="text-sm transition text-foreground-light hover:text-foreground">Reach out to us via support</a>diff --git a/studio/components/interfaces/Storage/CreateBucketModal.tsx b/studio/components/interfaces/Storage/CreateBucketModal.tsxindex 8c002cdd778..6ca95df56e7 100644--- a/studio/components/interfaces/Storage/CreateBucketModal.tsx+++ b/studio/components/interfaces/Storage/CreateBucketModal.tsx@@ -159,7 +159,7 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {<IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-scale-1100', showConfiguration && 'rotate-180')}+ className={clsx('text-foreground-light', showConfiguration && 'rotate-180')}/></div></Collapsible.Trigger>@@ -209,7 +209,7 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {</div>{IS_PLATFORM && (<div className="col-span-12">- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Note: The{' '}<Link href={`/project/${ref}/settings/storage`}><a className="text-brand opacity-80 hover:opacity-100 transition">diff --git a/studio/components/interfaces/Storage/EditBucketModal.tsx b/studio/components/interfaces/Storage/EditBucketModal.tsxindex 4e7e590220c..7316f8a74a0 100644--- a/studio/components/interfaces/Storage/EditBucketModal.tsx+++ b/studio/components/interfaces/Storage/EditBucketModal.tsx@@ -168,7 +168,7 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =><IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-scale-1100', showConfiguration && 'rotate-180')}+ className={clsx('text-foreground-light', showConfiguration && 'rotate-180')}/></div></Collapsible.Trigger>@@ -218,7 +218,7 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =></div>{IS_PLATFORM && (<div className="col-span-12">- <p className="text-scale-1000 text-sm">+ <p className="text-foreground-light text-sm">Note: The{' '}<Link href={`/project/${ref}/settings/storage`}><a className="text-brand opacity-80 hover:opacity-100 transition">diff --git a/studio/components/interfaces/Support/Success.tsx b/studio/components/interfaces/Support/Success.tsxindex c690d0fa9dd..fa045d86c69 100644--- a/studio/components/interfaces/Support/Success.tsx+++ b/studio/components/interfaces/Support/Success.tsx@@ -25,7 +25,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => {</div><div className="flex items-center flex-col space-y-2"><h3 className="text-xl">Support request successfully sent!</h3>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">We will reach out to you using your account's email address</p></div>@@ -36,7 +36,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => {</div><div className="flex flex-col items-center px-12 space-y-2"><p>In the meantime, tap into our community</p>- <p className="text-sm text-scale-1000 text-center">+ <p className="text-sm text-foreground-light text-center">Find the answers you need with fellow developers building with Supabase by joining ourGitHub discussions or on Discord - build the next best thing together</p>diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex 8b68c7ea9ac..bb8f76cf2c7 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -325,7 +325,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {<div className="space-y-2"><p className="text-sm prose">Which project is affected?</p><div className="border rounded-md px-4 py-2 flex items-center space-x-2">- <IconAlertCircle strokeWidth={2} className="text-scale-1000" />+ <IconAlertCircle strokeWidth={2} className="text-foreground-light" /><p className="text-sm prose">Failed to retrieve projects</p></div></div>@@ -374,14 +374,14 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {</div>{values.projectRef !== 'no-project' && subscription && isSuccessProjects ? (- <p className="text-sm text-scale-1000 mt-2">+ <p className="text-sm text-foreground-light mt-2">This project is on the{' '}- <span className="text-scale-1100">{subscription.plan.name} plan</span>+ <span className="text-foreground-light">{subscription.plan.name} plan</span></p>) : isLoadingSubscription && selectedProjectRef !== 'no-project' ? (<div className="flex items-center space-x-2 mt-2"><IconLoader size={14} className="animate-spin" />- <p className="text-sm text-scale-1000">Checking project's plan</p>+ <p className="text-sm text-foreground-light">Checking project's plan</p></div>) : (<></>@@ -403,7 +403,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {<div className="space-y-2"><p className="text-sm prose">Which organization is affected?</p><div className="border rounded-md px-4 py-2 flex items-center space-x-2">- <IconAlertCircle strokeWidth={2} className="text-scale-1000" />+ <IconAlertCircle strokeWidth={2} className="text-foreground-light" /><p className="text-sm prose">Failed to retrieve organizations</p></div></div>@@ -493,7 +493,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {<atarget="_blank"rel="noreferrer"- className="flex items-center space-x-2 text-scale-1000 underline hover:text-scale-1100 transition"+ className="flex items-center space-x-2 text-foreground-light underline hover:text-foreground transition">Github discussions<IconExternalLink size={14} strokeWidth={2} className="ml-1" />@@ -539,7 +539,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {{selectedLibrary !== undefined && (<div className="px-6 space-y-4 !mt-4"><div className="space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Found an issue or a bug? Try searching our Github issues or submit a newone.</p>@@ -557,7 +557,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {><div className="space-y-1"><p className="text-sm">{library.name}</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">For issues regarding the {libraryLanguage} client library</p></div>@@ -584,7 +584,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {><div className="space-y-1"><p className="text-sm">supabase</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">For any issues about our API</p></div>@@ -607,7 +607,9 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {{values.category !== 'Login_issues' && (<div className="px-6 space-y-2">- <p className="text-sm text-scale-1100">Which services are affected?</p>+ <p className="text-sm text-foreground-light">+ Which services are affected?+ </p><MultiSelectoptions={SERVICE_OPTIONS}value={selectedServices}@@ -639,8 +641,8 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {)}<div className="space-y-4 px-6"><div className="space-y-1">- <p className="block text-sm text-scale-1100">Attachments</p>- <p className="block text-sm text-scale-1000">+ <p className="block text-sm text-foreground-light">Attachments</p>+ <p className="block text-sm text-foreground-light">Upload up to {MAX_ATTACHMENTS} screenshots that might be relevant to theissue that you're facing</p>@@ -691,11 +693,11 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {</div><div className="px-6"><div className="flex items-center space-x-1 justify-end block text-sm mt-0 mb-2">- <p className="text-scale-1000">We will contact you at</p>+ <p className="text-foreground-light">We will contact you at</p><p className="text-foreground font-medium">{respondToEmail}</p></div><div className="flex items-center space-x-1 justify-end block text-sm mt-0 mb-2">- <p className="text-scale-1000">+ <p className="text-foreground-light">Please ensure you haven't blocked Hubspot in your emails</p></div>diff --git a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsxindex a54ee88e5c7..940e58d83a5 100644--- a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx+++ b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx@@ -95,7 +95,7 @@ const APIDocumentationPanel = ({ visible, onClose }: APIDocumentationPanelProps)<div className="Docs Docs--table-editor Docs--inner-wrapper">{isErrorJSONSchema && (<div className="p-6 mx-auto text-center sm:w-full md:w-3/4">- <div className="text-scale-1000">+ <div className="text-foreground-light"><p>Error connecting to API</p><p>{`${jsonSchemaError}`}</p></div>diff --git a/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx b/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsxindex 36466c89bba..c599eca798d 100644--- a/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx+++ b/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx@@ -154,7 +154,7 @@ const DeleteConfirmationDialogs = ({><Modal.Content><div className="py-4 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Are you sure you want to delete the selected column? This action cannot be undone.</p><Checkbox@@ -201,7 +201,7 @@ const DeleteConfirmationDialogs = ({><Modal.Content><div className="py-4 space-y-4">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Are you sure you want to delete the selected table? This action cannot be undone.</p><Checkboxdiff --git a/studio/components/interfaces/TableGridEditor/EmptyState.tsx b/studio/components/interfaces/TableGridEditor/EmptyState.tsxindex e39d4d72bae..6b17abbc366 100644--- a/studio/components/interfaces/TableGridEditor/EmptyState.tsx+++ b/studio/components/interfaces/TableGridEditor/EmptyState.tsx@@ -43,7 +43,9 @@ const EmptyState = ({}: EmptyStateProps) => {ctaButtonLabel={canCreateTables ? 'Create a new table' : undefined}onClickCta={canCreateTables ? snap.onAddTable : undefined}>- <p className="text-sm text-scale-1100">There are no tables available in this schema.</p>+ <p className="text-sm text-foreground-light">+ There are no tables available in this schema.+ </p></ProductEmptyState>) : (<div className="flex flex-col items-center space-y-4">@@ -52,7 +54,7 @@ const EmptyState = ({}: EmptyStateProps) => {ctaButtonLabel={canCreateTables ? 'Create a new table' : undefined}onClickCta={canCreateTables ? snap.onAddTable : undefined}>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Select a table from the navigation panel on the left to view its data{canCreateTables && ', or create a new one.'}</p>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsxindex c0688d428a1..9f77fe7dc1e 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx@@ -101,7 +101,9 @@ const ColumnForeignKeyInformation = ({title={<div className="flex flex-col space-y-4"><div className="space-y-2">- <p className="text-scale-1100">This column has the following foreign key relation:</p>+ <p className="text-foreground-light">+ This column has the following foreign key relation:+ </p><div className="flex items-center space-x-2 text-foreground"><p className="text-xs text-code font-mono">{columnName}</p><IconArrowRight size={14} strokeWidth={2} />@@ -151,7 +153,7 @@ const ColumnForeignKeyAdded = ({<InformationBoxblocktitle={- <div className="flex flex-col space-y-4 text-scale-1100">+ <div className="flex flex-col space-y-4 text-foreground-light"><div className="space-y-2"><span>The following foreign key relation will be <span className="text-brand">added</span>:@@ -210,7 +212,7 @@ const ColumnForeignKeyRemoved = ({title={<div className="flex flex-col space-y-4"><div className="space-y-2">- <p className="text-scale-1100">+ <p className="text-foreground-light">The following foreign key relation will be{' '}<span className="text-amber-900">removed</span>:</p>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsxindex 8d557588d70..85c2820d204 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx@@ -15,8 +15,8 @@ export const generateCascadeActionDescription = (case FOREIGN_KEY_CASCADE_ACTION.NO_ACTION:return (<>- <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-scale-1100">{reference}</code> will{' '}+ <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-foreground-light">{reference}</code> will{' '}<span className="text-amber-900 opacity-75">raise an error</span> if there are recordsexisting in this table that reference it</>@@ -24,8 +24,8 @@ export const generateCascadeActionDescription = (case FOREIGN_KEY_CASCADE_ACTION.CASCADE:return (<>- <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-scale-1100">{reference}</code> will{' '}+ <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-foreground-light">{reference}</code> will{' '}<span className="text-amber-900 opacity-75">also {action}</span> any records thatreference it in this table</>@@ -33,10 +33,10 @@ export const generateCascadeActionDescription = (case FOREIGN_KEY_CASCADE_ACTION.RESTRICT:return (<>- <span className="text-scale-1100">{actionName}</span>+ <span className="text-foreground-light">{actionName}</span><Tooltip.Root delayDuration={0}><Tooltip.Trigger className="translate-y-[3px] mx-1">- <IconHelpCircle className="text-scale-1100" size={16} strokeWidth={1.5} />+ <IconHelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -55,26 +55,27 @@ export const generateCascadeActionDescription = (</Tooltip.Content></Tooltip.Portal></Tooltip.Root>- : {actionVerb} a record from <code className="text-xs text-scale-1100">{reference}</code>{' '}- will <span className="text-amber-900 opacity-75">prevent {actionVerb.toLowerCase()}</span>{' '}+ : {actionVerb} a record from{' '}+ <code className="text-xs text-foreground-light">{reference}</code> will{' '}+ <span className="text-amber-900 opacity-75">prevent {actionVerb.toLowerCase()}</span>{' '}existing referencing rows from this table.</>)case FOREIGN_KEY_CASCADE_ACTION.SET_DEFAULT:return (<>- <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-scale-1100">{reference}</code> will set the value of any- existing records in this table referencing it to their{' '}+ <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-foreground-light">{reference}</code> will set the value of+ any existing records in this table referencing it to their{' '}<span className="text-amber-900 opacity-75">default value</span></>)case FOREIGN_KEY_CASCADE_ACTION.SET_NULL:return (<>- <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-scale-1100">{reference}</code> will set the value of any- existing records in this table referencing it{' '}+ <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-foreground-light">{reference}</code> will set the value of+ any existing records in this table referencing it{' '}<span className="text-amber-900 opacity-75">to NULL</span></>)diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsxindex 4a3620853f9..7fb588b4513 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx@@ -4,10 +4,10 @@ import { DndProvider } from 'react-dnd'import { HTML5Backend } from 'react-dnd-html5-backend'import { parseSupaTable } from 'components/grid'-import { formatFilterURLParams, formatSortURLParams } from 'components/grid/SupabaseGrid.utils'-import RefreshButton from 'components/grid/components/header/RefreshButton'import FilterPopover from 'components/grid/components/header/filter'+import RefreshButton from 'components/grid/components/header/RefreshButton'import SortPopover from 'components/grid/components/header/sort'+import { formatFilterURLParams, formatSortURLParams } from 'components/grid/SupabaseGrid.utils'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'import { useTableRowsQuery } from 'data/table-rows/table-rows-query'@@ -105,13 +105,13 @@ const ForeignRowSelector = ({{isLoading && (<div className="flex h-full py-6 flex-col items-center justify-center space-y-2"><IconLoader className="animate-spin" />- <p className="text-sm text-scale-1100">Loading rows</p>+ <p className="text-sm text-foreground-light">Loading rows</p></div>)}{isError && (<div className="flex h-full py-6 flex-col items-center justify-center">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Unable to load rows from{' '}<code>{schemaName}.{tableName}@@ -164,7 +164,7 @@ const ForeignRowSelector = ({/>) : (<div className="flex h-full items-center justify-center border-b border-t border-scale-500">- <span className="text-scale-1100 text-sm">No Rows Found</span>+ <span className="text-foreground-light text-sm">No Rows Found</span></div>)}</div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsxindex 0118f6135ef..7b4887f3995 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx@@ -18,6 +18,7 @@ import { useTableEditorStateSnapshot } from 'state/table-editor'import { ColumnEditor, RowEditor, SpreadsheetImport, TableEditor } from '.'import ForeignRowSelector from './RowEditor/ForeignRowSelector/ForeignRowSelector'import JsonEdit from './RowEditor/JsonEditor/JsonEditor'+import SchemaEditor from './SchemaEditor'import {ColumnField,CreateColumnPayload,@@ -25,7 +26,6 @@ import {UpdateColumnPayload,} from './SidePanelEditor.types'import { ImportContent } from './TableEditor/TableEditor.types'-import SchemaEditor from './SchemaEditor'export interface SidePanelEditorProps {editable?: boolean@@ -609,7 +609,7 @@ const SidePanelEditor = ({}}><Modal.Content>- <p className="py-4 text-sm text-scale-1100">+ <p className="py-4 text-sm text-foreground-light">There are unsaved changes. Are you sure you want to close the panel? Your changes willbe lost.</p>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsxindex 61a47eba62e..277f2e10451 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx@@ -37,13 +37,13 @@ const SpreadSheetFileUpload = ({return (<div className="space-y-4"><div>- <p className="mb-2 text-sm text-scale-1100">+ <p className="mb-2 text-sm text-foreground-light">Upload a CSV or TSV file. The first row should be the headers of the table, and yourheaders should not include any special characters other than hyphens (<span className="text-code">-</span>) or underscores (<span className="text-code">_</span>).</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Tip: Datetime columns should be formatted as YYYY-MM-DD HH:mm:ss</p></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsxindex f77a9d7194d..a80e2283b99 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx@@ -1,6 +1,6 @@import clsx from 'clsx'import { useState } from 'react'-import { SidePanel, Button, IconChevronDown, Collapsible } from 'ui'+import { Button, Collapsible, IconChevronDown, SidePanel } from 'ui'import { SpreadsheetData } from './SpreadsheetImport.types'interface SpreadSheetImportConfigurationProps {@@ -28,7 +28,7 @@ const SpreadsheetImportConfiguration = ({<IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-scale-1100', expandConfiguration && 'rotate-180')}+ className={clsx('text-foreground-light', expandConfiguration && 'rotate-180')}/>}className="px-1"@@ -41,8 +41,8 @@ const SpreadsheetImportConfiguration = ({<SidePanel.Content><div className="py-2 space-y-3"><div>- <p className="text-sm text-scale-1100">Select which columns to import</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Select which columns to import</p>+ <p className="text-sm text-foreground-light">By default, all columns are selected to be imported from your CSV</p></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsxindex 285308a7738..1bd8260c137 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx@@ -8,7 +8,7 @@ interface SpreadSheetTextInputProps {const SpreadSheetTextInput = ({ input, onInputChange }: SpreadSheetTextInputProps) => (<div className="space-y-10"><div>- <p className="mb-2 text-sm text-scale-1100">+ <p className="mb-2 text-sm text-foreground-light">Copy a table from a spreadsheet program such as Google Sheets or Excel and paste it in thefield below. The first row should be the headers of the table, and your headers should notinclude any special characters other than hyphens (<code>-</code>) or underscores (diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsxindex 5e967af0f64..5fb93a5d7ff 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx@@ -1,19 +1,19 @@import clsx from 'clsx'import { useEffect, useState } from 'react'import {- SidePanel,Badge,Button,Collapsible,+ IconAlertCircle,+ IconArrowRight,IconChevronDown,IconChevronRight,- IconArrowRight,- IconAlertCircle,+ SidePanel,} from 'ui'+import { PostgresTable } from '@supabase/postgres-meta'import { SpreadsheetData } from './SpreadsheetImport.types'import SpreadsheetPreviewGrid from './SpreadsheetPreviewGrid'-import { PostgresTable } from '@supabase/postgres-meta'const MAX_ROWS = 20const MAX_HEADERS = 20@@ -72,7 +72,7 @@ const SpreadsheetImportPreview = ({<IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-scale-1100', expandPreview && 'rotate-180')}+ className={clsx('text-foreground-light', expandPreview && 'rotate-180')}/>}className="px-1"@@ -84,7 +84,7 @@ const SpreadsheetImportPreview = ({<Collapsible.Content><SidePanel.Content><div className="mb-4">- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{selectedTable === undefined? `Your table will have ${spreadsheetData.rowCount.toLocaleString()} rows and thefollowing ${spreadsheetData.headers.length} columns.`@@ -92,7 +92,7 @@ const SpreadsheetImportPreview = ({selectedTable.name}"`}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Here is a preview of the data that will be added (up to the first 20 columns and first20 rows).</p>@@ -102,8 +102,8 @@ const SpreadsheetImportPreview = ({<SpreadsheetPreviewGrid height={350} headers={previewHeaders} rows={previewRows} />) : (<div className="flex items-center justify-center py-4 border border-scale-600 rounded-md space-x-2">- <IconAlertCircle size={16} strokeWidth={1.5} className="text-scale-1000" />- <p className="text-sm text-scale-1000">+ <IconAlertCircle size={16} strokeWidth={1.5} className="text-foreground-light" />+ <p className="text-sm text-foreground-light">{previewHeaders.length === 0? 'No headers have been selected': previewRows.length === 0@@ -118,7 +118,7 @@ const SpreadsheetImportPreview = ({<div className="flex flex-col space-y-1"><p className="text-sm">Issues found in spreadsheet</p>{isCompatible && (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{selectedTable !== undefined? 'This CSV can still be imported into your table despite issues in the following rows.': 'Your table can still be created nonetheless despite issues in the following rows.'}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsxindex 671ace28386..7539927999d 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx@@ -1,5 +1,5 @@-import clsx from 'clsx'import DataGrid from '@supabase/react-data-grid'+import clsx from 'clsx'const MAX_ROWS = 20const MAX_HEADERS = 20@@ -38,7 +38,9 @@ const SpreadsheetPreviewGrid = ({formatter: ({ row }: { row: any }) => {const isEmpty = !row[header]return (- <span className={clsx('text-sm flex items-center', isEmpty && 'text-scale-1000')}>+ <span+ className={clsx('text-sm flex items-center', isEmpty && 'text-foreground-light')}+ >{isEmpty ? 'NULL' : row[header]}</span>)diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsxindex c053cb7ed1e..baed6b7a6b3 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx@@ -115,7 +115,7 @@ const Column = ({<span className="text-xs text-foreground">Edit foreign key relation</span>) : (<div>- <p className="text-xs text-scale-1100">Foreign key relation:</p>+ <p className="text-xs text-foreground-light">Foreign key relation:</p><div className="flex items-center space-x-1"><p className="text-xs text-foreground">{column.foreignKey.source_schema}.{column.foreignKey.source_table_name}.@@ -261,11 +261,11 @@ const Column = ({><div className="group flex items-center -space-x-1">{settingsCount > 0 && (- <div className="rounded-full bg-scale-1200 py-0.5 px-2 text-xs text-scale-100 dark:bg-scale-100 dark:text-scale-1100">+ <div className="rounded-full bg-scale-1200 py-0.5 px-2 text-xs text-scale-100 dark:bg-scale-100 dark:text-foreground-light">{settingsCount}</div>)}- <div className="text-scale-1100 transition-colors group-hover:text-foreground">+ <div className="text-foreground-light transition-colors group-hover:text-foreground"><IconSettings size={18} strokeWidth={1} /></div></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsxindex 1aba554f392..ad2995ae07d 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx@@ -164,7 +164,7 @@ const ColumnManagement = ({</div>{hasImportContent && (- <p className="text-sm text-scale-1000 my-2">+ <p className="text-sm text-foreground-light my-2">Your table will be created with {importContent?.rowCount?.toLocaleString()} rows and thefollowing {columns.length} columns.</p>@@ -344,7 +344,7 @@ const ColumnManagement = ({<a target="_blank" rel="noreferrer"><Buttontype="text"- className="text-scale-1000 hover:text-foreground"+ className="text-foreground-light hover:text-foreground"icon={<IconExternalLink size={12} strokeWidth={2} />}>Learn more about data typesdiff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsxindex 24928c3b897..ffc774b44ba 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsx@@ -1,11 +1,10 @@import Link from 'next/link'-import React from 'react'import { Alert, Button, IconAlertOctagon, IconBookOpen, IconLock, IconShieldOff } from 'ui'export default function RLSDisableModalContent() {return (<div className="my-6">- <div className="text-sm text-scale-1100 grid gap-4">+ <div className="text-sm text-foreground-light grid gap-4"><div className="grid gap-1"><Alertvariant="warning"diff --git a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsxindex 80052cc6ed3..1ba1504284c 100644--- a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx@@ -9,10 +9,10 @@ import { useEffect, useRef, useState } from 'react'import { useParams } from 'common'import {Dictionary,- SupaTable,+ parseSupaTable,SupabaseGrid,SupabaseGridRef,- parseSupaTable,+ SupaTable,} from 'components/grid'import { ERROR_PRIMARY_KEY_NOTFOUND } from 'components/grid/constants'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'@@ -371,7 +371,7 @@ const TableGridEditor = ({<p>SQL Definition of <code className="text-sm">{selectedTable.name}</code>{' '}</p>- <p className="text-scale-1000 text-sm">(Read only)</p>+ <p className="text-foreground-light text-sm">(Read only)</p></div>) : null}diff --git a/studio/components/layouts/AccountLayout/SidebarItem.tsx b/studio/components/layouts/AccountLayout/SidebarItem.tsxindex a6926dcbf2f..53f9d4b9985 100644--- a/studio/components/layouts/AccountLayout/SidebarItem.tsx+++ b/studio/components/layouts/AccountLayout/SidebarItem.tsx@@ -54,13 +54,13 @@ const SidebarItem = ({onClick={onClick}>{isExternal && (- <span className="truncate text-sm text-scale-900 transition group-hover:text-scale-1100">+ <span className="truncate text-sm text-scale-900 transition group-hover:text-foreground-light"><IconArrowUpRight size="tiny" /></span>)}<spantitle={label}- className="w-full truncate text-sm text-scale-1100 transition group-hover:text-foreground"+ className="w-full truncate text-sm text-foreground-light transition group-hover:text-foreground">{isSubitem ? <p>{label}</p> : label}</span>diff --git a/studio/components/layouts/AccountLayout/WithSidebar.tsx b/studio/components/layouts/AccountLayout/WithSidebar.tsxindex e3ee246b228..773c7123d38 100644--- a/studio/components/layouts/AccountLayout/WithSidebar.tsx+++ b/studio/components/layouts/AccountLayout/WithSidebar.tsx@@ -210,13 +210,13 @@ 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-scale-1100">+ <span className="truncate text-sm text-scale-900 transition group-hover:text-foreground-light"><IconArrowUpRight size={'tiny'} /></span>)}<spantitle={label}- className="w-full truncate text-sm text-scale-1100 transition group-hover:text-foreground"+ className="w-full truncate text-sm text-foreground-light transition group-hover:text-foreground">{isSubitem ? <p>{label}</p> : label}</span>diff --git a/studio/components/layouts/AppLayout/BranchDropdown.tsx b/studio/components/layouts/AppLayout/BranchDropdown.tsxindex 29c46423f9e..3e81c01e3ff 100644--- a/studio/components/layouts/AppLayout/BranchDropdown.tsx+++ b/studio/components/layouts/AppLayout/BranchDropdown.tsx@@ -1,7 +1,7 @@+import { ListTree } from 'lucide-react'import Link from 'next/link'import { useRouter } from 'next/router'import { useRef, useState } from 'react'-import { ListTree } from 'lucide-react'import { useParams } from 'common'import ShimmeringLoader from 'components/ui/ShimmeringLoader'@@ -19,7 +19,6 @@ import {IconAlertCircle,IconCheck,IconCode,- IconGitBranch,PopoverContent_Shadcn_,PopoverTrigger_Shadcn_,Popover_Shadcn_,@@ -102,7 +101,7 @@ const BranchDropdown = ({ isNewNav = false }: BranchDropdownProps) => {type="text"className="pr-2"iconRight={- <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />+ <IconCode className="text-foreground-light rotate-90" strokeWidth={2} size={12} />}><div className="flex items-center space-x-2">diff --git a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/studio/components/layouts/AppLayout/OrganizationDropdown.tsxindex 6a24db67853..1bf405ee521 100644--- a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx+++ b/studio/components/layouts/AppLayout/OrganizationDropdown.tsx@@ -56,7 +56,7 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) =type="text"className="pr-2"iconRight={- <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />+ <IconCode className="text-foreground-light rotate-90" strokeWidth={2} size={12} />}><div className="flex items-center space-x-2">diff --git a/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/studio/components/layouts/AppLayout/ProjectDropdown.tsxindex ea0e0218e3f..69ba333bce9 100644--- a/studio/components/layouts/AppLayout/ProjectDropdown.tsx+++ b/studio/components/layouts/AppLayout/ProjectDropdown.tsx@@ -138,7 +138,9 @@ const ProjectDropdown = ({ isNewNav = false }: ProjectDropdownProps) => {<Buttontype="text"className="pr-2"- iconRight={<IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />}+ iconRight={+ <IconCode className="text-foreground-light rotate-90" strokeWidth={2} size={12} />+ }><div className="flex items-center space-x-2"><p className={isNewNav ? 'text-sm' : 'text-xs'}>{selectedProject?.name}</p>diff --git a/studio/components/layouts/AppLayout/SettingsButton.tsx b/studio/components/layouts/AppLayout/SettingsButton.tsxindex 959bb174e3f..035c5640933 100644--- a/studio/components/layouts/AppLayout/SettingsButton.tsx+++ b/studio/components/layouts/AppLayout/SettingsButton.tsx@@ -12,7 +12,7 @@ const SettingsButton = () => {<Link href={slug ? `/org/${slug}/general` : '/'} passHref><Tooltip.Trigger type="button" asChild className="px-1"><a id="organization-settings">- <IconSettings size={18} strokeWidth={1.5} className="text-scale-1100" />+ <IconSettings size={18} strokeWidth={1.5} className="text-foreground-light" /></a></Tooltip.Trigger></Link>diff --git a/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx b/studio/components/layouts/AppLayout/UserSettingsDropdown.tsxindex 726e6a613c2..1ec61bff049 100644--- a/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx+++ b/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx@@ -40,7 +40,7 @@ const UserSettingsDropdown = () => {<DropdownMenuTrigger_Shadcn_ asChild><buttonid="user-settings-dropdown"- className="flex items-center justify-center border font-bold rounded-full h-7 w-7 text-scale-1100 bg-surface-100"+ className="flex items-center justify-center border font-bold rounded-full h-7 w-7 text-foreground-light bg-surface-100">{profile?.first_name ? profile?.first_name?.[0] : <IconUser size={14} strokeWidth={2} />}</button>@@ -51,7 +51,7 @@ const UserSettingsDropdown = () => {<p className="text-sm text-foreground">{profile?.first_name} {profile?.last_name}</p>- <p className="text-sm text-scale-1000 truncate">{profile?.primary_email}</p>+ <p className="text-sm text-foreground-light truncate">{profile?.primary_email}</p></div><DropdownMenuSeparator_Shadcn_ />diff --git a/studio/components/layouts/BillingLayout.tsx b/studio/components/layouts/BillingLayout.tsxindex 82ece1c7295..7f85abb31eb 100644--- a/studio/components/layouts/BillingLayout.tsx+++ b/studio/components/layouts/BillingLayout.tsx@@ -25,7 +25,7 @@ const BillingLayout = ({ children }: PropsWithChildren<BillingLayoutProps>) => {<h1 className="text-sm text-foreground">Customize your plan</h1><div className="h-6 w-px bg-scale-600"></div><div className="flex items-center space-x-3">- <p className="text-sm text-scale-1100">{selectedOrganization?.name}</p>+ <p className="text-sm text-foreground-light">{selectedOrganization?.name}</p><span className="text-scale-800"><svgviewBox="0 0 24 24"@@ -41,7 +41,7 @@ const BillingLayout = ({ children }: PropsWithChildren<BillingLayoutProps>) => {<path d="M16 3.549L7.12 20.600"></path></svg></span>- <p className="text-sm text-scale-1100">{selectedProject?.name}</p>+ <p className="text-sm text-foreground-light">{selectedProject?.name}</p></div></div></div>diff --git a/studio/components/layouts/FunctionsLayout.tsx b/studio/components/layouts/FunctionsLayout.tsxindex 624b974c234..946dc05191b 100644--- a/studio/components/layouts/FunctionsLayout.tsx+++ b/studio/components/layouts/FunctionsLayout.tsx@@ -81,13 +81,13 @@ const FunctionsLayout = ({ title, children }: PropsWithChildren<FunctionsLayoutP<div className="flex items-center justify-between w-full"><div className="flex items-center space-x-4"><Link href={`/project/${ref}/functions`}>- <h1 className="cursor-pointer text-2xl text-foreground transition-colors hover:text-scale-1100">+ <h1 className="cursor-pointer text-2xl text-foreground transition-colors hover:text-foreground-light">Edge Functions</h1></Link>{name && (<div className="mt-1.5 flex items-center space-x-4">- <span className="text-scale-1000">+ <span className="text-foreground-light"><svgviewBox="0 0 24 24"width="16"diff --git a/studio/components/layouts/ProjectLayout/BuildingState.tsx b/studio/components/layouts/ProjectLayout/BuildingState.tsxindex a7f79f55169..e5ebfd0d663 100644--- a/studio/components/layouts/ProjectLayout/BuildingState.tsx+++ b/studio/components/layouts/ProjectLayout/BuildingState.tsx@@ -65,11 +65,11 @@ const BuildingState = () => {</Badge></div><div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{' '}We are provisioning your database and API endpoints</p>- <p className="text-sm text-scale-1100"> This may take a few minutes</p>+ <p className="text-sm text-foreground-light"> This may take a few minutes</p></div></div><div>@@ -80,7 +80,7 @@ const BuildingState = () => {<ChecklistItemdescription={- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Browse the Supabase{' '}<Link href="https://supabase.com/docs"><a@@ -100,7 +100,7 @@ const BuildingState = () => {<h4 className="text-base text-foreground">Not working?</h4><ChecklistItemdescription={- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Try refreshing after a couple of minutes.</p>}@@ -109,7 +109,7 @@ const BuildingState = () => {<ChecklistItemdescription={<>- <p className="mb-4 text-sm text-scale-1100">+ <p className="mb-4 text-sm text-foreground-light">If your dashboard hasn't connected within 2 minutes, you can open asupport ticket.</p>diff --git a/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/studio/components/layouts/ProjectLayout/ConnectingState.tsxindex 4068150d9e6..36708f85ff5 100644--- a/studio/components/layouts/ProjectLayout/ConnectingState.tsx+++ b/studio/components/layouts/ProjectLayout/ConnectingState.tsx@@ -57,13 +57,13 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {<div className="mx-auto flex max-w-[300px] items-center justify-center"><div><div className="flex items-center justify-center w-12 h-12 rounded-md border">- <IconMonitor className="text-scale-1100" size={30} strokeWidth={1.5} />+ <IconMonitor className="text-foreground-light" size={30} strokeWidth={1.5} /></div></div><ShimmerLine active /><div><div className="flex items-center justify-center w-12 h-12 rounded-md border">- <IconServer className="text-scale-1100" size={30} strokeWidth={1.5} />+ <IconServer className="text-foreground-light" size={30} strokeWidth={1.5} /></div></div></div>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsxindex cf5ec0d733a..54f57362b6b 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx@@ -118,7 +118,11 @@ const FeedbackWidget = ({pathname: router.asPath,})setFeedback('')- ui.setNotification({ category: 'success', message: 'Feedback sent. Thank you!\n\nPlease be aware that we do not provide responses to feedback. If you require assistance or a reply, consider submitting a support ticket.' })+ ui.setNotification({+ category: 'success',+ message:+ 'Feedback sent. Thank you!\n\nPlease be aware that we do not provide responses to feedback. If you require assistance or a reply, consider submitting a support ticket.',+ })} finally {setSending(false)}@@ -216,7 +220,7 @@ const FeedbackWidget = ({</Button></div></div>- <p className="text-xs text-scale-1000">+ <p className="text-xs text-foreground-light">Have a technical issue? Contact{' '}<Link href="/support/new"><a>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsxindex e2bcdcc07bc..e1818ca487b 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) => {<IconHelpCirclesize={alt ? 18 : 16}strokeWidth={1.5}- className={alt ? 'text-scale-1100' : 'text-scale-900'}+ className={alt ? 'text-foreground-light' : 'text-scale-900'}/>}>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsxindex 6e28f3fa424..53f6d1b42f8 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsx@@ -1,12 +1,10 @@-import * as Tooltip from '@radix-ui/react-tooltip'import { Notification, NotificationStatus } from '@supabase/shared-types/out/notifications'import dayjs from 'dayjs'-import { Button, IconArchive, IconX } from 'ui'+import { Button, IconX } from 'ui'import { useNotificationsDismissMutation } from 'data/notifications/notifications-dismiss-mutation'import { useProjectsQuery } from 'data/projects/projects-query'import { useStore } from 'hooks'-import { API_URL } from 'lib/constants'import { Project } from 'types'import NotificationActions from './NotificationActions'import { formatNotificationCTAText, formatNotificationText } from './NotificationRows.utils'@@ -64,7 +62,7 @@ const NotificationRow = ({<div className="w-9/10 space-y-2">{formatNotificationText(project, notification)}{formatNotificationCTAText(availableActions)}- <p className="text-scale-1100 text-sm !mt-2">{insertedAt}</p>+ <p className="text-foreground-light text-sm !mt-2">{insertedAt}</p></div><div className="w-1/10 flex justify-end"><div>@@ -76,7 +74,7 @@ const NotificationRow = ({<IconXsize={14}strokeWidth={2}- className="text-scale-1100 group-hover:text-foreground transition"+ className="text-foreground-light group-hover:text-foreground transition"/>}onClick={() => dismissNotification(notification.id)}diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsxindex 9cccae6e964..52426c9abd6 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx@@ -1,5 +1,3 @@-import dayjs from 'dayjs'-import { Project } from 'types'import {Action,ActionType,@@ -10,9 +8,11 @@ import {ServiceUpgrade,ViolatedLimit,} from '@supabase/shared-types/out/notifications'-import { IconArrowRight, IconExternalLink, Button } from 'ui'-import Link from 'next/link'import { Markdown } from 'components/interfaces/Markdown'+import dayjs from 'dayjs'+import Link from 'next/link'+import { Project } from 'types'+import { Button, IconArrowRight, IconExternalLink } from 'ui'export const formatNotificationText = (project: Project, notification: Notification) => {const projectName = project.name@@ -111,7 +111,7 @@ export const formatNotificationText = (project: Project, notification: Notificat<Link href={upgrade.changelog_link}><a target="_blank" rel="noreferrer"><IconExternalLink- className="cursor-pointer text-scale-1000 hover:text-foreground transition"+ className="cursor-pointer text-foreground-light hover:text-foreground transition"size={12}strokeWidth={2}/>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsxindex dbd5be380ab..72cd52436a9 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx@@ -15,13 +15,13 @@ import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'import { useNotificationsQuery } from 'data/notifications/notifications-query'import { useNotificationsUpdateMutation } from 'data/notifications/notifications-update-mutation'import { getProjectDetail } from 'data/projects/project-detail-query'+import { useProjectRestartServicesMutation } from 'data/projects/project-restart-services-mutation'import { setProjectPostgrestStatus } from 'data/projects/projects-query'import { useStore } from 'hooks'import { delete_, post } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { Project } from 'types'import NotificationRow from './NotificationRow'-import { useProjectRestartServicesMutation } from 'data/projects/project-restart-services-mutation'interface NotificationsPopoverProps {alt?: boolean@@ -160,7 +160,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {<div className="flex items-center justify-between border-b border-gray-500 bg-gray-400 px-4 py-2"><p className="text-sm">Notifications</p>{/* Area for improvement: Paginate notifications and show in a side panel */}- {/* <p className="text-scale-1000 hover:text-foreground cursor-pointer text-sm transition">+ {/* <p className="text-foreground-light hover:text-foreground cursor-pointer text-sm transition">See all{' '}{notifications.length > MAX_NOTIFICATIONS_TO_SHOW && `(${notifications.length})`}</p> */}@@ -168,7 +168,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {<div className="max-h-[380px] overflow-y-auto py-2">{notifications.length === 0 ? (<div className="py-2 px-4">- <p className="text-sm text-scale-1000">No notifications available</p>+ <p className="text-sm text-foreground-light">No notifications available</p></div>) : (<>@@ -222,7 +222,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {<p className="text-xs text-scale-100">{newNotifications.length}</p></div>) : alt ? (- <IconInbox size={18} strokeWidth={1.5} className="text-scale-1100" />+ <IconInbox size={18} strokeWidth={1.5} className="text-foreground-light" />) : (<IconBell size={16} strokeWidth={1.5} className="text-foreground" />)@@ -231,7 +231,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {hasNewNotifications ? (<>{alt ? (- <IconInbox size={18} strokeWidth={1.5} className="text-scale-1100" />+ <IconInbox size={18} strokeWidth={1.5} className="text-foreground-light" />) : (<IconBell size={16} strokeWidth={1.5} className="text-foreground" />)}diff --git a/studio/components/layouts/ProjectLayout/PausingState.tsx b/studio/components/layouts/ProjectLayout/PausingState.tsxindex e2cce40abce..dad4d3ccf6d 100644--- a/studio/components/layouts/ProjectLayout/PausingState.tsx+++ b/studio/components/layouts/ProjectLayout/PausingState.tsx@@ -2,12 +2,12 @@ import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common'import { Badge, IconCircle, IconLoader } from 'ui'+import { invalidateProjectDetailsQuery } from 'data/projects/project-detail-query'import { useProjectStatusQuery } from 'data/projects/project-status-query'import { invalidateProjectsQuery } from 'data/projects/projects-query'import { PROJECT_STATUS } from 'lib/constants'-import { Project } from 'types'import { useEffect, useState } from 'react'-import { invalidateProjectDetailsQuery } from 'data/projects/project-detail-query'+import { Project } from 'types'export interface PausingStateProps {project: Project@@ -62,7 +62,7 @@ const PausingState = ({ project }: PausingStateProps) => {<IconCircle className="text-scale-900" size={50} strokeWidth={1.5} /></div><p className="text-center">Pausing {project.name}</p>- <p className="mt-4 text-center text-sm text-scale-1100">+ <p className="mt-4 text-center text-sm text-foreground-light">You may restore your project anytime thereafter, and your data will be restored towhen it was initially paused.</p>diff --git a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsxindex 9bb107c62ea..51be102f24f 100644--- a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx@@ -76,14 +76,14 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {<div className="mx-6 flex h-[500px] items-center justify-center rounded border border-scale-400 bg-scale-300 p-8"><div className="grid w-[480px] gap-4"><div className="mx-auto flex max-w-[300px] items-center justify-center space-x-4 lg:space-x-8">- <IconPauseCircle className="text-scale-1100" size={50} strokeWidth={1.5} />+ <IconPauseCircle className="text-foreground-light" size={50} strokeWidth={1.5} /></div><div className="space-y-2"><p className="text-center">The project "{project?.name ?? ''}" is currently paused.</p>- <p className="text-sm text-scale-1100 text-center">+ <p className="text-sm text-foreground-light text-center">All of your project's data is still intact, but your project is inaccessible whilepaused.{' '}{product !== undefined ? (@@ -96,12 +96,12 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {)}</p>{isFreePlan && (- <p className="text-sm text-scale-1100 text-center">+ <p className="text-sm text-foreground-light text-center">You can also prevent project pausing in the future by upgrading to Pro.</p>)}{!isFreePlan && (- <p className="text-sm text-scale-1100 text-center">+ <p className="text-sm text-foreground-light text-center">Unpaused projects count towards compute usage. For every hour your instance isactive, we'll bill you based on the instance size of your project. See{' '}<Link href="https://supabase.com/docs/guides/platform/org-based-billing#usage-based-billing-for-compute">@@ -187,11 +187,11 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {<div className="py-4 space-y-4"><Modal.Content><div className="space-y-2">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">The following members have reached their maximum limits for the number of activefree plan projects within organizations where they are an administrator or owner:</p>- <ul className="pl-5 text-sm list-disc text-scale-1100">+ <ul className="pl-5 text-sm list-disc text-foreground-light">{(membersExceededLimit || []).map((member, idx: number) => (<li key={`member-${idx}`}>{member.username || member.primary_email} (Limit: {member.free_project_limit}{' '}@@ -199,7 +199,7 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {</li>))}</ul>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">These members will need to either delete, pause, or upgrade one or more of theseprojects before you're able to unpause this project.</p>diff --git a/studio/components/layouts/ProjectLayout/RestoringState.tsx b/studio/components/layouts/ProjectLayout/RestoringState.tsxindex 700f2a23bdf..3eb4e3c71d8 100644--- a/studio/components/layouts/ProjectLayout/RestoringState.tsx+++ b/studio/components/layouts/ProjectLayout/RestoringState.tsx@@ -64,7 +64,7 @@ const RestoringState = () => {</div><div className="space-y-1"><p>Restoration complete!</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your project has been successfully restored and is now back online.</p></div>@@ -83,7 +83,7 @@ const RestoringState = () => {</div><div className="space-y-1"><p>Something went wrong while restoring your project</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Our engineers have already been notified of this, do hang tight while we areinvestigating into the issue.</p>@@ -109,7 +109,7 @@ const RestoringState = () => {</div><div className="space-y-1"><p>Restoration in progress</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Restoration can take from a few minutes up to several hours depending on the sizeof your database. Your project will be offline while the restoration is running.</p>diff --git a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsxindex 66ae8af70af..fbd46cd3ee0 100644--- a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx+++ b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx@@ -15,6 +15,7 @@ import {IconSettings,} from 'ui'+import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common/hooks'import { useProjectUpgradingStatusQuery } from 'data/config/project-upgrade-status-query'import { getProjectDetail, invalidateProjectDetailsQuery } from 'data/projects/project-detail-query'@@ -22,7 +23,6 @@ import { useStore } from 'hooks'import { IS_PLATFORM } from 'lib/constants'import { useProjectContext } from '../ProjectContext'import { DATABASE_UPGRADE_MESSAGES } from './UpgradingState.constants'-import { useQueryClient } from '@tanstack/react-query'const UpgradingState = () => {const { ref } = useParams()@@ -79,7 +79,7 @@ const UpgradingState = () => {</div><div className="space-y-2"><p className="text-center">Upgrade completed!</p>- <p className="mt-4 text-center text-sm text-scale-1100 w-[300px] mx-auto">+ <p className="mt-4 text-center text-sm text-foreground-light w-[300px] mx-auto">Your project has been successfully upgraded to Postgres {target_version} and isnow back online.</p>@@ -97,7 +97,7 @@ const UpgradingState = () => {</div><div className="space-y-2"><p className="text-center">We ran into an issue while upgrading your project</p>- <p className="mt-4 text-center text-sm text-scale-1100 w-[450px] mx-auto">+ <p className="mt-4 text-center text-sm text-foreground-light w-[450px] mx-auto">Your project is back online and its data is not affected. Please reach out to usvia our support form for assistance with the upgrade.</p>@@ -125,7 +125,7 @@ const UpgradingState = () => {</div><div className="space-y-2"><p className="text-center">Upgrading in progress</p>- <p className="text-sm text-center text-scale-1100">+ <p className="text-sm text-center text-foreground-light">Upgrades can take from a few minutes up to several hours depending on the sizeof your database. Your project will be offline while it is being upgraded.</p>@@ -172,7 +172,7 @@ const UpgradingState = () => {<div className="flex items-center justify-center w-5 h-5 rounded-full"><IconLoadersize={20}- className="animate-spin text-scale-1100"+ className="animate-spin text-foreground-light"strokeWidth={2}/></div>@@ -188,8 +188,8 @@ const UpgradingState = () => {isCurrent? 'text-foreground': isCompleted- ? 'text-scale-1100'- : 'text-scale-1000'+ ? 'text-foreground-light'+ : 'text-foreground-lighter'} hover:text-foreground transition`}>{isCurrent@@ -207,7 +207,7 @@ const UpgradingState = () => {{initiated_at !== undefined && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger className="w-full">- <p className="text-sm text-center text-scale-1000">+ <p className="text-sm text-center text-foreground-light">Started on: {initiatedAtUTC} (UTC)</p></Tooltip.Trigger>diff --git a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/studio/components/layouts/SQLEditorLayout/QueryItem.tsxindex d4c12086803..cad313b6474 100644--- a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx+++ b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx@@ -67,7 +67,7 @@ const QueryItem = ({ tabInfo }: QueryItemProps) => {<a className="py-1 px-3 w-full overflow-hidden"><ptitle={description || name}- className="text-sm text-scale-1100 group-hover:text-foreground transition overflow-hidden text-ellipsis"+ className="text-sm text-foreground-light group-hover:text-foreground transition overflow-hidden text-ellipsis">{name}</p>@@ -231,8 +231,8 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)className={clsx('p-0.5 rounded-md',isActive- ? 'text-scale-1100 hover:bg-scale-800'- : 'text-scale-300 dark:text-scale-200 hover:bg-scale-500 group-hover:text-scale-1100'+ ? 'text-foreground-light hover:bg-scale-800'+ : 'text-scale-300 dark:text-scale-200 hover:bg-scale-500 group-hover:text-foreground-light')}><IconChevronDown size="tiny" strokeWidth={2} />@@ -261,7 +261,7 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)><Modal.Content><div className="my-6">- <div className="text-sm text-scale-1100 grid gap-4">+ <div className="text-sm text-foreground-light grid gap-4"><div className="grid gap-1">{sharedSnippetsFeature && visibility === 'project' && (<Alert_Shadcn_ variant="destructive">@@ -289,7 +289,7 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)><Modal.Content><div className="my-6">- <div className="text-sm text-scale-1100 grid gap-4">+ <div className="text-sm text-foreground-light grid gap-4"><div className="grid gap-1"><Alert_Shadcn_ variant="warning"><IconAlertTriangle strokeWidth={2} />diff --git a/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsx b/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsxindex 056f8310546..447a84bdfab 100644--- a/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsx+++ b/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsx@@ -44,7 +44,7 @@ const ProjectSettingsMenuItem = ({ project }: ProjectSettingsMenuItemProps) => {className="h-4 w-4 transition-transform duration-200"strokeWidth={1.5}/>- <p className="text-scale-1100 text-sm font-normal transition duration-200">+ <p className="text-foreground-light text-sm font-normal transition duration-200">{project.name}</p></div>diff --git a/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx b/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsxindex 1a855220dce..819b7e28e3e 100644--- a/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx+++ b/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx@@ -14,7 +14,7 @@ const SettingsMenuItem = ({ href, label, isActive }: SettingsMenuItemProps) => {<aclassName={clsx('text-sm',- isActive ? 'text-foreground' : 'text-scale-1100 hover:text-foreground transition'+ isActive ? 'text-foreground' : 'text-foreground-light hover:text-foreground transition')}>{label}diff --git a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsxindex 0452dd01118..e93426cbd25 100644--- a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx+++ b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx@@ -1,9 +1,9 @@+import { useTheme } from 'common'+import { BASE_PATH } from 'lib/constants'import { observer } from 'mobx-react-lite'import Image from 'next/image'import Link from 'next/link'import { PropsWithChildren } from 'react'-import { BASE_PATH } from 'lib/constants'-import { useTheme } from 'common'type ForgotPasswordLayoutProps = {heading: string@@ -51,7 +51,7 @@ const ForgotPasswordLayout = ({{showHeadings && (<div className="mb-6"><h1 className="text-2xl lg:text-3xl mt-8 mb-2">{heading}</h1>- <h2 className="text-scale-1100 text-sm">{subheading}</h2>+ <h2 className="text-foreground-light text-sm">{subheading}</h2></div>)}diff --git a/studio/components/layouts/SignInLayout/SignInLayout.tsx b/studio/components/layouts/SignInLayout/SignInLayout.tsxindex d8907e92cef..cc3fbf33080 100644--- a/studio/components/layouts/SignInLayout/SignInLayout.tsx+++ b/studio/components/layouts/SignInLayout/SignInLayout.tsx@@ -133,7 +133,7 @@ const SignInLayout = ({<div className="flex-1 flex flex-col justify-center w-[330px] sm:w-[384px]"><div className="mb-10"><h1 className="mt-8 mb-2 text-2xl lg:text-3xl">{heading}</h1>- <h2 className="text-sm text-scale-1100">{subheading}</h2>+ <h2 className="text-sm text-foreground-light">{subheading}</h2></div>{children}@@ -144,11 +144,11 @@ const SignInLayout = ({<p className="text-xs text-scale-900 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-scale-1100">Terms of Service</a>+ <a className="underline hover:text-foreground-light">Terms of Service</a></Link>{' '}and{' '}<Link href="https://supabase.com/privacy">- <a className="underline hover:text-scale-1100">Privacy Policy</a>+ <a className="underline hover:text-foreground-light">Privacy Policy</a></Link>, and to receive periodic emails with updates.</p>@@ -178,7 +178,7 @@ const SignInLayout = ({/><div className="flex flex-col">- <cite className="not-italic font-medium text-scale-1100 whitespace-nowrap">+ <cite className="not-italic font-medium text-foreground-light whitespace-nowrap">@{quote.handle}</cite></div>diff --git a/studio/components/layouts/StorageLayout/BucketRow.tsx b/studio/components/layouts/StorageLayout/BucketRow.tsxindex c34f43d1df1..054edfbd0c8 100644--- a/studio/components/layouts/StorageLayout/BucketRow.tsx+++ b/studio/components/layouts/StorageLayout/BucketRow.tsx@@ -36,7 +36,7 @@ const BucketRow = ({<a className="py-1 px-3 w-full"><div className="flex items-center justify-between space-x-2 truncate w-full"><p- className="text-sm text-scale-1100 group-hover:text-foreground transition truncate"+ className="text-sm text-foreground-light group-hover:text-foreground transition truncate"title={bucket.name}>{bucket.name}@@ -74,7 +74,9 @@ const BucketRow = ({<ButtonasChildtype="text"- icon={<IconChevronDown size="tiny" strokeWidth={2} className="text-scale-1100" />}+ icon={+ <IconChevronDown size="tiny" strokeWidth={2} className="text-foreground-light" />+ }style={{ padding: '3px' }}><span></span>diff --git a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/studio/components/layouts/TableEditorLayout/EntityListItem.tsxindex c23164b8c18..60838c169d4 100644--- a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx+++ b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx@@ -1,28 +1,27 @@-import saveAs from 'file-saver'-import Papa from 'papaparse'-import clsx from 'clsx'-import SVG from 'react-inlinesvg'import * as Tooltip from '@radix-ui/react-tooltip'+import clsx from 'clsx'+import { parseSupaTable } from 'components/grid'import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'import { Entity } from 'data/entity-types/entity-type-query'+import { fetchAllTableRows } from 'data/table-rows/table-rows-query'+import { getTable } from 'data/tables/table-query'+import saveAs from 'file-saver'+import { useStore } from 'hooks'+import { BASE_PATH } from 'lib/constants'import Link from 'next/link'+import Papa from 'papaparse'+import SVG from 'react-inlinesvg'+import { useTableEditorStateSnapshot } from 'state/table-editor'import {Dropdown,- IconEdit,+ IconChevronDown,IconCopy,+ IconDownload,+ IconEdit,IconLock,IconTrash,- IconChevronDown,- IconDownload,} from 'ui'-import { BASE_PATH } from 'lib/constants'-import { useTableEditorStateSnapshot } from 'state/table-editor'-import { fetchAllTableRows } from 'data/table-rows/table-rows-query'-import { useParams } from 'common'import { useProjectContext } from '../ProjectLayout/ProjectContext'-import { getTable } from 'data/tables/table-query'-import { parseSupaTable } from 'components/grid'-import { useStore } from 'hooks'export interface EntityListItemProps {id: number@@ -142,7 +141,8 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListItentity.type === ENTITY_TYPE.FOREIGN_TABLE && 'text-yellow-900 bg-yellow-500',entity.type === ENTITY_TYPE.MATERIALIZED_VIEW &&'text-purple-1000 bg-purple-500',- entity.type === ENTITY_TYPE.PARTITIONED_TABLE && 'text-scale-1100 bg-scale-800'+ entity.type === ENTITY_TYPE.PARTITIONED_TABLE &&+ 'text-foreground-light bg-scale-800')}>{Object.entries(ENTITY_TYPE)@@ -167,7 +167,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt</Tooltip.Content></Tooltip.Portal></Tooltip.Root>- <p className="text-sm text-scale-1100 group-hover:text-foreground transition max-w-[85%] overflow-hidden text-ellipsis whitespace-nowrap">+ <p className="text-sm text-foreground-light group-hover:text-foreground transition max-w-[85%] overflow-hidden text-ellipsis whitespace-nowrap">{/* only show tooltips if required, to reduce noise */}{entity.name.length > 20 ? (<Tooltip.Root delayDuration={0} disableHoverableContent={true}>diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsxindex edd7a9a1269..6a6ad807406 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx@@ -148,7 +148,11 @@ const TableEditorMenu = () => {type="outline"className="w-full [&>span]:w-full"iconRight={- <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />+ <IconCode+ className="text-foreground-light rotate-90"+ strokeWidth={2}+ size={12}+ />}><div>@@ -302,17 +306,21 @@ const TableEditorMenu = () => {{isLoading ? (<div className="mx-4 flex items-center space-x-2"><IconLoader className="animate-spin" size={14} strokeWidth={1.5} />- <p className="text-sm text-scale-1000">Loading entities...</p>+ <p className="text-sm text-foreground-light">Loading entities...</p></div>) : searchText.length === 0 && (entityTypes?.length ?? 0) === 0 ? (<div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4"><p className="text-xs">No entities available</p>- <p className="text-xs text-scale-1100">This schema has no entities available yet</p>+ <p className="text-xs text-foreground-light">+ This schema has no entities available yet+ </p></div>) : searchText.length > 0 && (entityTypes?.length ?? 0) === 0 ? (<div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4"><p className="text-xs">No results found</p>- <p className="text-xs text-scale-1100">There are no entities that match your search</p>+ <p className="text-xs text-foreground-light">+ There are no entities that match your search+ </p></div>) : (<Menudiff --git a/studio/components/layouts/WizardLayout.tsx b/studio/components/layouts/WizardLayout.tsxindex c576b121211..066565dcfb9 100644--- a/studio/components/layouts/WizardLayout.tsx+++ b/studio/components/layouts/WizardLayout.tsx@@ -5,9 +5,9 @@ import { IconChevronRight } from 'ui'import { useFlag, withAuth } from 'hooks'import { BASE_PATH } from 'lib/constants'+import { Organization, Project } from 'types'import FeedbackDropdown from './ProjectLayout/LayoutHeader/FeedbackDropdown'import HelpPopover from './ProjectLayout/LayoutHeader/HelpPopover'-import { Organization, Project } from 'types'interface WizardLayoutProps {organization: Organization | null | undefined@@ -56,16 +56,16 @@ const Header = ({ organization, project }: WizardLayoutProps) => {/></a></Link>- <IconChevronRight size="small" className="text-scale-1100" />+ <IconChevronRight size="small" className="text-foreground-light" /><p className="text-sm">{organization ? `Organization: ${organization.name}` : 'Create an organization'}</p>- <IconChevronRight size="small" className="text-scale-1100" />- <p className={`text-sm ${stepNumber < 1 ? 'text-scale-1100' : ''}`}>+ <IconChevronRight size="small" className="text-foreground-light" />+ <p className={`text-sm ${stepNumber < 1 ? 'text-foreground-light' : ''}`}>{project ? project.name : 'Create a new project'}</p>- <IconChevronRight size="small" className="text-scale-1100" />- <p className={`text-sm ${stepNumber < 2 ? 'text-scale-1100' : ''}`}>+ <IconChevronRight size="small" className="text-foreground-light" />+ <p className={`text-sm ${stepNumber < 2 ? 'text-foreground-light' : ''}`}>{project ? project.name : 'Extend your database'}</p></div>diff --git a/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.js b/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.jsindex e25a3d57690..20fffb585ef 100644--- a/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.js+++ b/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.js@@ -1,6 +1,6 @@-import React, { useState } from 'react'-import { Button, Modal } from 'ui'+import { useState } from 'react'import { render, unmountComponentAtNode } from 'react-dom'+import { Button, Modal } from 'ui'function ConfirmModal({title,@@ -59,7 +59,7 @@ function ConfirmModal({>{description && (<Modal.Content>- <p className="py-4 text-sm text-scale-1100">{description}</p>+ <p className="py-4 text-sm text-foreground-light">{description}</p></Modal.Content>)}</Modal>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsxindex 1f7f0d207f6..4cb6b132812 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx@@ -1,22 +1,22 @@-import { useState, useRef, useEffect } from 'react'-import { get, noop, sum } from 'lodash'-import { Checkbox, IconUpload } from 'ui'import { Transition } from '@headlessui/react'+import { get, noop, sum } from 'lodash'+import { useEffect, useRef, useState } from 'react'import { useContextMenu } from 'react-contexify'+import { Checkbox, IconUpload } from 'ui'import InfiniteList from 'components/ui/InfiniteList'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import FileExplorerRow from './FileExplorerRow'+import { BASE_PATH } from 'lib/constants'+import { formatBytes } from 'lib/helpers'+import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'import {- STORAGE_VIEWS,- STORAGE_ROW_TYPES,- STORAGE_ROW_STATUS,CONTEXT_MENU_KEYS,+ STORAGE_ROW_STATUS,+ STORAGE_ROW_TYPES,+ STORAGE_VIEWS,} from '../Storage.constants'-import { formatBytes } from 'lib/helpers'-import { BASE_PATH } from 'lib/constants'import { StorageColumn } from '../Storage.types'-import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'+import FileExplorerRow from './FileExplorerRow'const DragOverOverlay = ({ isOpen, onDragLeave, onDrop, folderIsEmpty }: any) => {return (@@ -176,10 +176,10 @@ const FileExplorerColumn = ({{columnFiles.length > 0 ? (<><SelectAllCheckbox />- <p className="text-sm text-scale-1100">Select all {columnFiles.length} files</p>+ <p className="text-sm text-foreground-light">Select all {columnFiles.length} files</p></>) : (- <p className="text-sm text-scale-1100">No files available for selection</p>+ <p className="text-sm text-foreground-light">No files available for selection</p>)}</div>)}@@ -246,7 +246,7 @@ const FileExplorerColumn = ({className="opacity-75 pointer-events-none"/><p className="my-3 opacity-75">Drop your files here</p>- <p className="w-40 text-center text-sm text-scale-1100">+ <p className="w-40 text-center text-sm text-foreground-light">Or upload them via the "Upload file" button above</p></div>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsxindex d41c1b3c2a0..608dc4211c6 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx@@ -1,37 +1,37 @@+import * as Tooltip from '@radix-ui/react-tooltip'+import { PermissionAction } from '@supabase/shared-types/out/constants'import { find, isEmpty, isEqual } from 'lodash'+import { useContextMenu } from 'react-contexify'+import SVG from 'react-inlinesvg'import {Checkbox,Dropdown,- IconMoreVertical,- IconLoader,- IconImage,- IconMusic,- IconFilm,- IconFile,IconAlertCircle,+ IconChevronRight,+ IconClipboard,IconDownload,IconEdit,+ IconFile,+ IconFilm,+ IconImage,+ IconLoader,+ IconMoreVertical,IconMove,- IconClipboard,+ IconMusic,IconTrash2,- IconChevronRight,} from 'ui'-import SVG from 'react-inlinesvg'-import * as Tooltip from '@radix-ui/react-tooltip'-import { useContextMenu } from 'react-contexify'-import { PermissionAction } from '@supabase/shared-types/out/constants'import { useCheckPermissions } from 'hooks'+import { BASE_PATH } from 'lib/constants'+import { formatBytes } from 'lib/helpers'+import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import {- STORAGE_VIEWS,- STORAGE_ROW_TYPES,- STORAGE_ROW_STATUS,CONTEXT_MENU_KEYS,+ STORAGE_ROW_STATUS,+ STORAGE_ROW_TYPES,+ STORAGE_VIEWS,URL_EXPIRY_DURATION,} from '../Storage.constants'-import { formatBytes } from 'lib/helpers'-import { BASE_PATH } from 'lib/constants'-import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import FileExplorerRowEditing from './FileExplorerRowEditing'import { copyPathToFolder } from './StorageExplorer.utils'@@ -368,7 +368,7 @@ const FileExplorerRow = ({{item.isCorrupted && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconAlertCircle size={18} strokeWidth={2} className="text-scale-1000" />+ <IconAlertCircle size={18} strokeWidth={2} className="text-foreground-light" /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -437,7 +437,7 @@ const FileExplorerRow = ({><divclassName={[- 'flex items-center justify-between px-4 py-1.5 text-xs text-scale-1100',+ 'flex items-center justify-between px-4 py-1.5 text-xs text-foreground-light','w-full focus:bg-scale-300 dark:focus:bg-scale-500 focus:text-foreground',].join(' ')}>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsxindex 37297db9fd4..20c69f01fb9 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx@@ -1,25 +1,25 @@+import { Transition } from '@headlessui/react'+import * as Tooltip from '@radix-ui/react-tooltip'+import { PermissionAction } from '@supabase/shared-types/out/constants'+import { BASE_PATH } from 'lib/constants'+import { formatBytes } from 'lib/helpers'import { isEmpty } from 'lodash'+import SVG from 'react-inlinesvg'import {Button,Dropdown,- IconX,- IconLoader,+ IconAlertCircle,+ IconChevronDown,IconClipboard,IconDownload,+ IconLoader,IconTrash2,- IconAlertCircle,- IconChevronDown,+ IconX,} from 'ui'-import SVG from 'react-inlinesvg'-import { formatBytes } from 'lib/helpers'-import { BASE_PATH } from 'lib/constants'-import { Transition } from '@headlessui/react'-import * as Tooltip from '@radix-ui/react-tooltip'-import { PermissionAction } from '@supabase/shared-types/out/constants'import { useCheckPermissions } from 'hooks'-import { URL_EXPIRY_DURATION } from '../Storage.constants'import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'+import { URL_EXPIRY_DURATION } from '../Storage.constants'const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: string }) => {if (!mimeType || !previewUrl) {@@ -67,7 +67,7 @@ const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: s<div className="flex h-full w-full items-center justify-center px-10"><audio key={previewUrl} controls style={{ width: 'inherit' }}><source src={previewUrl} type="audio/mpeg" />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Your browser does not support the audio element.</p></audio>@@ -79,7 +79,9 @@ const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: s<div className="flex h-full w-full items-center justify-center"><video key={previewUrl} controls style={{ maxHeight: '100%' }}><source src={previewUrl} type="video/mp4" />- <p className="text-sm text-scale-1100">Your browser does not support the video tag.</p>+ <p className="text-sm text-foreground-light">+ Your browser does not support the video tag.+ </p></video></div>)@@ -158,14 +160,14 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {<h5 className="break-words text-base text-foreground">{file.name}</h5>{file.isCorrupted && (<div className="flex items-center space-x-2">- <IconAlertCircle size={14} strokeWidth={2} className="text-scale-1100" />- <p className="text-sm text-scale-1100">+ <IconAlertCircle size={14} strokeWidth={2} className="text-foreground-light" />+ <p className="text-sm text-foreground-light">File is corrupted, please delete and reupload this file again</p></div>)}{mimeType && (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{mimeType}{size && <span> - {size}</span>}</p>@@ -176,11 +178,11 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {<div className="space-y-2"><div><label className="mb-1 text-xs text-scale-900">Added on</label>- <p className="text-sm text-scale-1100">{createdAt}</p>+ <p className="text-sm text-foreground-light">{createdAt}</p></div><div><label className="mb-1 text-xs text-scale-900">Last modified</label>- <p className="text-sm text-scale-1100">{updatedAt}</p>+ <p className="text-sm text-foreground-light">{updatedAt}</p></div></div>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.jsindex f47e0ed45ad..ee649b27dc1 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.js@@ -1,19 +1,19 @@-import { useEffect, useState } from 'react'+import { filter, find, get, isEmpty } from 'lodash'import { observer } from 'mobx-react-lite'+import { useEffect, useState } from 'react'import { IconLoader } from 'ui'-import { find, get, isEmpty, filter } from 'lodash'+import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'import { useStore } from 'hooks'+import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import { formatPoliciesForStorage } from '../Storage.utils'-import StoragePoliciesPlaceholder from './StoragePoliciesPlaceholder'import StoragePoliciesBucketRow from './StoragePoliciesBucketRow'import StoragePoliciesEditPolicyModal from './StoragePoliciesEditPolicyModal'-import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'-import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'+import StoragePoliciesPlaceholder from './StoragePoliciesPlaceholder'+import { useParams } from 'common'import { PolicyEditorModal } from 'components/interfaces/Auth/Policies'import { useBucketsQuery } from 'data/storage/buckets-query'-import { useParams } from 'common'const StoragePolicies = () => {const { ui, meta } = useStore()@@ -151,7 +151,7 @@ const StoragePolicies = () => {return (<div className="flex min-h-full w-full flex-col"><h3 className="text-xl">Storage policies</h3>- <p className="mt-2 text-sm text-scale-1100">+ <p className="mt-2 text-sm text-foreground-light">Safeguard your files with policies that define the operations allowed for your users at thebucket level.</p>@@ -186,7 +186,7 @@ const StoragePolicies = () => {})}<div className="!mb-4 w-full border-b border-gray-600" />- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You may also write policies for the tables under the storage schema directly for greatercontrol</p>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.jsindex 995a966f82e..f4bdcfbd200 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js@@ -1,6 +1,6 @@-import { Badge, Button, IconArchive, Dropdown, IconEdit, IconTrash, IconMoreVertical } from 'ui'-import { isEmpty } from 'lodash'import Panel from 'components/ui/Panel'+import { isEmpty } from 'lodash'+import { Badge, Button, Dropdown, IconArchive, IconEdit, IconMoreVertical, IconTrash } from 'ui'const PolicyRow = ({policy,@@ -79,7 +79,7 @@ const StoragePoliciesBucketRow = ({title={[<div key={label} className="flex w-full items-center justify-between"><div className="flex items-center space-x-4">- <IconArchive className="text-scale-1000" size="small" />+ <IconArchive className="text-foreground-light" size="small" /><h4 className="m-0 text-lg"><span>{label}</span></h4>@@ -109,7 +109,7 @@ const StoragePoliciesBucketRow = ({))}{policies.length !== 0 ? (<div className="px-6 py-2">- <p className="text-sm text-scale-1100">{getFooterLabel()}</p>+ <p className="text-sm text-foreground-light">{getFooterLabel()}</p></div>) : null}</div>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.jsindex f9c6adf292f..d5d155164ec 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js@@ -1,16 +1,15 @@-import { Badge, Button, Checkbox, Input, Modal } from 'ui'-import { get } from 'lodash'+import { Badge, Button, Checkbox, Modal } from 'ui'+import { PolicyName, PolicyRoles } from 'components/interfaces/Auth/Policies/PolicyEditor'+import SqlEditor from 'components/ui/SqlEditor'import { STORAGE_CLIENT_LIBRARY_MAPPINGS } from '../Storage.constants'import { deriveAllowedClientLibraryMethods } from '../Storage.utils'-import SqlEditor from 'components/ui/SqlEditor'-import { PolicyName, PolicyRoles } from 'components/interfaces/Auth/Policies/PolicyEditor'const PolicyDefinition = ({ definition = '', onUpdatePolicyDefinition = () => {} }) => {return (<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-scale-1100" htmlFor="policy-name">+ <label className="text-base text-foreground-light" htmlFor="policy-name">Policy definition</label><p className="text-sm text-scale-900">@@ -29,7 +28,7 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (return (<div className="flex justify-between space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-scale-1100" htmlFor="allowed-operation">+ <label className="text-base text-foreground-light" htmlFor="allowed-operation">Allowed operation</label><p className="text-sm text-scale-900">diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.jsindex 8e6e4abb30d..60d4be88dc1 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.js@@ -1,5 +1,5 @@-import { IconArchive } from 'ui'import Panel from 'components/ui/Panel'+import { IconArchive } from 'ui'const StoragePoliciesPlaceholder = ({ guiHeight }) => (<Panel@@ -13,7 +13,9 @@ const StoragePoliciesPlaceholder = ({ guiHeight }) => (]}><div className="p-4 px-6">- <p className="text-sm text-scale-1100">Create a bucket first to start writing policies!</p>+ <p className="text-sm text-foreground-light">+ Create a bucket first to start writing policies!+ </p></div></Panel>)diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.jsindex e4f5ebadacf..23669b55339 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.js@@ -1,6 +1,6 @@-import { Button, Modal } from 'ui'-import { useState } from 'react'import SqlEditor from 'components/ui/SqlEditor'+import { useState } from 'react'+import { Button, Modal } from 'ui'const ReviewEmptyState = () => {return (@@ -27,7 +27,7 @@ const StoragePoliciesReview = ({<div className="space-y-6 py-8"><div className="flex items-center justify-between space-y-8 space-x-4"><div className="flex flex-col">- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">These are the SQL statements that will be used to create your policies. The suffixappended to the end of your policy name (<code>[hashString]_[number]</code>) justfunctions as a unique identifier for each of your policies.diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsxindex 1d7c965b1ae..5bad3bc81e5 100644--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx@@ -2,14 +2,14 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useState } from 'react'import { Button, Form, IconClock, Input, Listbox } from 'ui'+import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import UpgradeToPro from 'components/ui/UpgradeToPro'import { useProjectStorageConfigQuery } from 'data/config/project-storage-config-query'import { useProjectStorageConfigUpdateUpdateMutation } from 'data/config/project-storage-config-update-mutation'import { useCheckPermissions, useStore } from 'hooks'import { IS_PLATFORM } from 'lib/constants'-import { STORAGE_FILE_SIZE_LIMIT_MAX_BYTES, StorageSizeUnits } from './StorageSettings.constants'+import { StorageSizeUnits, STORAGE_FILE_SIZE_LIMIT_MAX_BYTES } from './StorageSettings.constants'import { convertFromBytes, convertToBytes } from './StorageSettings.utils'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'export type StorageSettingsProps = {projectRef: string | undefined@@ -161,7 +161,7 @@ const StorageConfig = ({ config, projectRef }: any) => {</Listbox></div></div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{selectedUnit !== StorageSizeUnits.BYTES &&`Equivalent to ${convertToBytes(values.fileSizeLimit,@@ -187,7 +187,7 @@ const StorageConfig = ({ config, projectRef }: any) => {<div className="flex justify-between px-8 py-4"><div className="flex items-center justify-between w-full gap-2">{!canUpdateStorageSettings ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">You need additional permissions to update storage settings</p>) : (diff --git a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js b/studio/components/to-be-cleaned/forms/SchemaFormPanel.jsindex b903d2abf63..cc0e32d582c 100644--- a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js+++ b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js@@ -1,4 +1,4 @@-import React, { useState } from 'react'+import { useState } from 'react'import { Button } from 'ui'import SchemaForm from './SchemaForm'@@ -53,7 +53,7 @@ export default function SchemaFormPanel({<h6>{title || ''}</h6></div>{disabled && disabledMessage ? (- <p className="text-sm text-scale-1000">{disabledMessage}</p>+ <p className="text-sm text-foreground-light">{disabledMessage}</p>) : (<divclassName={`flex transition duration-150 ${diff --git a/studio/components/ui/CardButton.tsx b/studio/components/ui/CardButton.tsxindex 3efcf8252ab..de4af8de17d 100644--- a/studio/components/ui/CardButton.tsx+++ b/studio/components/ui/CardButton.tsx@@ -86,7 +86,7 @@ const CardButton = ({{typeof title === 'string' ? <h5 className="text-foreground">{title}</h5> : title}{(children || description) && (<div className="flex w-full flex-1 flex-col">- <p className="text-sm text-scale-1100">{description}</p>+ <p className="text-sm text-foreground-light">{description}</p><div className="w-full">{children && children}</div></div>)}diff --git a/studio/components/ui/Charts/AreaChart.stories.tsx b/studio/components/ui/Charts/AreaChart.stories.tsxindex d7797fa7410..77a3b92db6c 100644--- a/studio/components/ui/Charts/AreaChart.stories.tsx+++ b/studio/components/ui/Charts/AreaChart.stories.tsx@@ -1,7 +1,7 @@-import React from 'react'import { ComponentMeta } from '@storybook/react'-import Chart, { AreaChartProps } from './AreaChart'import dayjs from 'dayjs'+import React from 'react'+import Chart, { AreaChartProps } from './AreaChart'export default {title: 'Charts',@@ -12,7 +12,7 @@ const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({timestamp: dayjs().subtract(index, 'day').toISOString(),}))-const PROPS: AreaChartProps<typeof DATA[number]> = {+const PROPS: AreaChartProps<(typeof DATA)[number]> = {title: 'Memory usage',xAxisKey: 'timestamp',yAxisKey: 'ram_usage',@@ -51,5 +51,5 @@ export const AreaChart = () => ()const ExampleName: React.FC = ({ children }) => (- <h1 className="font-bold text-scale-1100">{children}</h1>+ <h1 className="font-bold text-foreground-light">{children}</h1>)diff --git a/studio/components/ui/Charts/BarChart.stories.tsx b/studio/components/ui/Charts/BarChart.stories.tsxindex 53779c01763..72894c415c9 100644--- a/studio/components/ui/Charts/BarChart.stories.tsx+++ b/studio/components/ui/Charts/BarChart.stories.tsx@@ -1,7 +1,7 @@-import React from 'react'import { ComponentMeta } from '@storybook/react'-import Chart, { BarChartProps } from './BarChart'import dayjs from 'dayjs'+import React from 'react'+import Chart, { BarChartProps } from './BarChart'export default {title: 'Charts',@@ -12,7 +12,7 @@ const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({timestamp: dayjs().subtract(index, 'day').toISOString(),}))-const PROPS: BarChartProps<typeof DATA[number]> = {+const PROPS: BarChartProps<(typeof DATA)[number]> = {title: 'Memory usage',xAxisKey: 'timestamp',yAxisKey: 'ram_usage',@@ -52,5 +52,5 @@ export const BarChart = () => ()const ExampleName: React.FC = ({ children }) => (- <h1 className="font-bold text-scale-1100">{children}</h1>+ <h1 className="font-bold text-foreground-light">{children}</h1>)diff --git a/studio/components/ui/Charts/EmptyState.tsx b/studio/components/ui/Charts/EmptyState.tsxindex 5673ba9a43d..eceb65857c0 100644--- a/studio/components/ui/Charts/EmptyState.tsx+++ b/studio/components/ui/Charts/EmptyState.tsx@@ -17,10 +17,10 @@ const EmptyState = ({border-dashed border-scale-600 py-4 text-center">- <IconBarChart2 className="text-scale-1100" />+ <IconBarChart2 className="text-foreground-light" /><div>- <p className="text-xs text-scale-1100">{title}</p>- <p className="text-xs text-scale-1000">{message}</p>+ <p className="text-xs text-foreground-light">{title}</p>+ <p className="text-xs text-foreground-light">{message}</p></div></div>)diff --git a/studio/components/ui/Charts/NoDataPlaceholder.tsx b/studio/components/ui/Charts/NoDataPlaceholder.tsxindex 54f36619dfe..0638943f996 100644--- a/studio/components/ui/Charts/NoDataPlaceholder.tsx+++ b/studio/components/ui/Charts/NoDataPlaceholder.tsx@@ -25,7 +25,7 @@ const NoDataPlaceholder: React.FC<Props> = ({><IconBarChart2 className="text-scale-800" /><div>- <p className="text-scale-1100 text-xs">{title}</p>+ <p className="text-foreground-light text-xs">{title}</p>{message && <p className="text-scale-900 text-xs">{message}</p>}</div></div>diff --git a/studio/components/ui/ClientLoadingError.tsx b/studio/components/ui/ClientLoadingError.tsxindex 58096e8edd7..c0d6e345112 100644--- a/studio/components/ui/ClientLoadingError.tsx+++ b/studio/components/ui/ClientLoadingError.tsx@@ -13,10 +13,10 @@ const ClientLoadingError = ({return (<div className="px-6 py-4 bg-scale-400 border border-scale-600 rounded flex justify-between items-center"><div className="flex space-x-4">- <IconAlertCircle strokeWidth={1.5} className="text-scale-1100" />+ <IconAlertCircle strokeWidth={1.5} className="text-foreground-light" /><div className="space-y-1"><p className="text-sm text-foreground">{description}</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Try refreshing your browser. However, if this issue persists, please reach out to us viasupport.</p>diff --git a/studio/components/ui/DatePicker/DatePicker.tsx b/studio/components/ui/DatePicker/DatePicker.tsxindex cff17c71f85..8504abb9db0 100644--- a/studio/components/ui/DatePicker/DatePicker.tsx+++ b/studio/components/ui/DatePicker/DatePicker.tsx@@ -252,19 +252,21 @@ function _DatePicker({type="button"className={`${prevMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-scale-1100 hover:text-foreground focus:outline-none+ text-foreground-light hover:text-foreground focus:outline-none`}><IconChevronLeft size={16} strokeWidth={2} /></button>- <span className="text-sm text-scale-1100">{format(date, 'MMMM yyyy')}</span>+ <span className="text-sm text-foreground-light">+ {format(date, 'MMMM yyyy')}+ </span><buttononClick={increaseMonth}disabled={nextMonthButtonDisabled}type="button"className={`${nextMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-scale-1100 hover:text-foreground focus:outline-none+ text-foreground-light hover:text-foreground focus:outline-none`}><IconChevronRight size={16} strokeWidth={2} />diff --git a/studio/components/ui/DatePicker/TimeSplitInput.tsx b/studio/components/ui/DatePicker/TimeSplitInput.tsxindex 1eb27d40284..23ca105a2b6 100644--- a/studio/components/ui/DatePicker/TimeSplitInput.tsx+++ b/studio/components/ui/DatePicker/TimeSplitInput.tsx@@ -3,7 +3,7 @@ import { IconClock } from 'ui'import { format } from 'date-fns'-import { TimeType, Time, TimeSplitInputProps } from './DatePicker.types'+import { TimeSplitInputProps, TimeType } from './DatePicker.types'const TimeSplitInput = ({type,@@ -161,7 +161,7 @@ const TimeSplitInput = ({<divclassName={`flex h-7 items-center justify-center- gap-0 rounded border border-scale-700 bg-scale-100 text-xs text-scale-1100 dark:bg-scaleA-300+ gap-0 rounded border border-scale-700 bg-scale-100 text-xs text-foreground-light dark:bg-scaleA-300${focus && ' border-scale-800 outline outline-2 outline-scale-500'}`}>diff --git a/studio/components/ui/Dialogs/ConfirmDialog.js b/studio/components/ui/Dialogs/ConfirmDialog.jsindex bc2302c9376..d7ad5e3f88b 100644--- a/studio/components/ui/Dialogs/ConfirmDialog.js+++ b/studio/components/ui/Dialogs/ConfirmDialog.js@@ -1,5 +1,5 @@-import { Modal, Button, Form } from 'ui'-import { useState, useEffect } from 'react'+import { useEffect, useState } from 'react'+import { Button, Form, Modal } from 'ui'// [Joshen] As of 280222, let's just use ConfirmationModal as the one and only confirmation modal (Deprecate this)@@ -50,7 +50,7 @@ const ConfirmModal = ({return (<div className="space-y-4 py-4"><Modal.Content>- <p className="text-sm text-scale-1100">{description}</p>+ <p className="text-sm text-foreground-light">{description}</p></Modal.Content><Modal.Separator /><Modal.Content>diff --git a/studio/components/ui/Error.tsx b/studio/components/ui/Error.tsxindex 0ec01d2abbf..3e0acad8186 100644--- a/studio/components/ui/Error.tsx+++ b/studio/components/ui/Error.tsx@@ -1,5 +1,5 @@-import { useEffect } from 'react'import Link from 'next/link'+import { useEffect } from 'react'import { Button } from 'ui'export default function EmptyPageState({ error }: any) {@@ -11,7 +11,7 @@ export default function EmptyPageState({ error }: any) {<div className="mx-auto flex h-full w-full flex-col items-center justify-center space-y-6"><div className="flex w-[320px] flex-col items-center justify-center space-y-3"><h4 className="text-lg">Something went wrong 🤕</h4>- <p className="text-center text-sm text-scale-1100">+ <p className="text-center text-sm text-foreground-light">Sorry about that, please try again later or feel free to reach out to us if the problempersists.</p>@@ -28,7 +28,7 @@ export default function EmptyPageState({ error }: any) {</a></Link></div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Error: [{error?.code}] {error?.message}</p></div>diff --git a/studio/components/ui/FormBoxEmpty.tsx b/studio/components/ui/FormBoxEmpty.tsxindex a1016e2bf54..3aa503de3a2 100644--- a/studio/components/ui/FormBoxEmpty.tsx+++ b/studio/components/ui/FormBoxEmpty.tsx@@ -11,7 +11,7 @@ const FormBoxEmpty = ({ icon, text }: Props) => {<div className="relative bg-scale-300 text-scale-900 w-6 h-6 rounded-full flex items-center justify-center">{icon}</div>- <p className="text-scale-1000">{text}</p>+ <p className="text-foreground-light">{text}</p></div>)}diff --git a/studio/components/ui/InformationBox.tsx b/studio/components/ui/InformationBox.tsxindex e2597a39bca..22a9b8c35c1 100644--- a/studio/components/ui/InformationBox.tsx+++ b/studio/components/ui/InformationBox.tsx@@ -62,7 +62,7 @@ const InformationBox = ({}`}style={{ maxHeight: isExpanded ? 500 : 0 }}>- <div className="text-scale-1100 text-sm">{description}</div>+ <div className="text-foreground-light text-sm">{description}</div>{url && (<Link href={url}>diff --git a/studio/components/ui/Logs/LogsExplorerHeader.tsx b/studio/components/ui/Logs/LogsExplorerHeader.tsxindex fce9b53b999..d3eac01b171 100644--- a/studio/components/ui/Logs/LogsExplorerHeader.tsx+++ b/studio/components/ui/Logs/LogsExplorerHeader.tsx@@ -36,7 +36,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {</div><h1 className="text-2xl text-foreground">Logs Explorer</h1>- {subtitle && <span className="text-2xl text-scale-1000">{subtitle}</span>}+ {subtitle && <span className="text-2xl text-foreground-light">{subtitle}</span>}</div><div className="flex flex-row gap-2"><Link href={LOGS_EXPLORER_DOCS_URL}>diff --git a/studio/components/ui/MultiSelect/index.tsx b/studio/components/ui/MultiSelect/index.tsxindex 275e1e704c3..3671c59bdc3 100644--- a/studio/components/ui/MultiSelect/index.tsx+++ b/studio/components/ui/MultiSelect/index.tsx@@ -150,7 +150,7 @@ export default function MultiSelect({onClick={() => setOpen(true)}>{selectedOptions.length === 0 && placeholder && (- <div className="px-2 text-sm text-scale-1000 h-full flex items-center">+ <div className="px-2 text-sm text-foreground-light h-full flex items-center">{placeholder}</div>)}@@ -248,8 +248,12 @@ export default function MultiSelect({emptyMessage) : (<div className="flex w-full items-center space-x-2">- <IconAlertCircle strokeWidth={1.5} size={18} className="text-scale-1000" />- <p className="text-sm text-scale-1000">No options available</p>+ <IconAlertCircle+ strokeWidth={1.5}+ size={18}+ className="text-foreground-light"+ />+ <p className="text-sm text-foreground-light">No options available</p></div>)}</div>@@ -264,7 +268,7 @@ export default function MultiSelect({emptyMessage) : (<div className="flex w-full items-center space-x-2">- <p className="text-sm text-scale-1000">No options found</p>+ <p className="text-sm text-foreground-light">No options found</p></div>)}</div>diff --git a/studio/components/ui/NoPermission.tsx b/studio/components/ui/NoPermission.tsxindex 19e8fb138c5..06377fe605f 100644--- a/studio/components/ui/NoPermission.tsx+++ b/studio/components/ui/NoPermission.tsx@@ -22,7 +22,7 @@ const NoPermission = ({ resourceText, isFullPage = false }: NoPermissionProps) =<div className="space-y-1"><p className="text-sm">You need additional permissions to {resourceText}</p><div>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Contact your organization owner or adminstrator for assistance.</p></div>diff --git a/studio/components/ui/NoSearchResults.tsx b/studio/components/ui/NoSearchResults.tsxindex 54e94c82772..2d232ce32f2 100644--- a/studio/components/ui/NoSearchResults.tsx+++ b/studio/components/ui/NoSearchResults.tsx@@ -9,8 +9,8 @@ const NoSearchResults = ({ searchString, onResetFilter }: NoSearchResultsProps)return (<div className="bg-scale-100 dark:bg-scale-300 border border-scale-300 dark:border-scale-500 px-6 py-4 rounded flex items-center justify-between"><div className="space-y-1">- <p className="text-sm text-scale-1100">No results found</p>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">No results found</p>+ <p className="text-sm text-foreground-light">Your search for "{searchString}" did not return any results</p></div>diff --git a/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/studio/components/ui/ProjectSettings/DisplayApiSettings.tsxindex a19d5f34d48..fc305589537 100644--- a/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx+++ b/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx@@ -41,7 +41,7 @@ const DisplayApiSettings = () => {title={<div className="space-y-3"><h5 className="text-base">Project API keys</h5>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">Your API is secured behind an API gateway which requires an API Key for every request.<br />You can use the keys below in the Supabase client libraries.@@ -58,14 +58,14 @@ const DisplayApiSettings = () => {{isProjectSettingsError || isJwtSecretUpdateStatusError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{isProjectSettingsError ? 'Failed to retrieve API keys' : 'Failed to update JWT secret'}</p></div>) : isApiKeysEmpty || isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (<div className="flex items-center justify-center py-8 space-x-2"><IconLoader className="animate-spin" size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{isProjectSettingsLoading || isApiKeysEmpty? 'Retrieving API keys': 'JWT secret is being updated'}diff --git a/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx b/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsxindex 575cc79b202..5cf6557a9db 100644--- a/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx+++ b/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx@@ -40,7 +40,7 @@ const DisplayConfigSettings = () => {{isProjectSettingsError || isJwtSecretUpdateStatusError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{isProjectSettingsError? 'Failed to retrieve configuration': 'Failed to update JWT secret'}@@ -49,7 +49,7 @@ const DisplayConfigSettings = () => {) : isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (<div className="flex items-center justify-center py-8 space-x-2"><IconLoader className="animate-spin" size={16} strokeWidth={1.5} />- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">{isProjectSettingsLoading ? 'Retrieving API keys' : 'JWT secret is being updated'}</p></div>diff --git a/studio/components/ui/SparkBar.tsx b/studio/components/ui/SparkBar.tsxindex 7891d7289de..0c64a00d001 100644--- a/studio/components/ui/SparkBar.tsx+++ b/studio/components/ui/SparkBar.tsx@@ -43,7 +43,7 @@ const SparkBar = ({>{labelBottom}</p>- <p className={clsx('text-scale-1100 text-sm', labelTopClass)}>{labelTop}</p>+ <p className={clsx('text-foreground-light text-sm', labelTopClass)}>{labelTop}</p></div>)}<divdiff --git a/studio/components/ui/States/NoTableState.tsx b/studio/components/ui/States/NoTableState.tsxindex d5428a1a3bd..fed3f31d7ec 100644--- a/studio/components/ui/States/NoTableState.tsx+++ b/studio/components/ui/States/NoTableState.tsx@@ -17,7 +17,7 @@ const NoTableState: React.FC<Props> = ({ message }) => {router.push(`/project/${ref}/editor`)}}>- <p className="text-sm text-scale-1100">{message}</p>+ <p className="text-sm text-foreground-light">{message}</p></ProductEmptyState>)}diff --git a/studio/components/ui/TwoOptionToggle.tsx b/studio/components/ui/TwoOptionToggle.tsxindex d9cfc6214d7..8495cf8d0bb 100644--- a/studio/components/ui/TwoOptionToggle.tsx+++ b/studio/components/ui/TwoOptionToggle.tsx@@ -19,7 +19,7 @@ const TwoOptionToggle = ({isActive: boolean) => `absolute top-0 z-1 text-xs inline-flex h-full items-center justify-center font-medium${- isActive ? 'hover:text-scale-1100 dark:hover:text-white' : 'hover:text-gray-600'+ isActive ? 'hover:text-foreground-light dark:hover:text-white' : 'hover:text-gray-600'} dark:hover:text-white focus:z-10 focus:outline-none focus:border-blue-300 focus:ring-bluetransition ease-in-out duration-150`@@ -41,7 +41,7 @@ const TwoOptionToggle = ({key={`toggle_${index}`}style={{ width: width + 1 }}className={`- ${activeOption === option ? 'text-foreground' : 'text-scale-1000'}+ ${activeOption === option ? 'text-foreground' : 'text-foreground-light'}${index === 0 ? 'right-0' : 'left-0'}${buttonStyle(activeOption === option)}cursor-pointer@@ -51,7 +51,7 @@ const TwoOptionToggle = ({<spanclassName={clsx('capitalize hover:text-foreground dark:hover:text-foreground',- activeOption === option ? 'text-foreground' : 'text-scale-1000'+ activeOption === option ? 'text-foreground' : 'text-foreground-light')}>{option}diff --git a/studio/components/ui/UpgradeToPro.tsx b/studio/components/ui/UpgradeToPro.tsxindex a086612d3c5..68cb12af358 100644--- a/studio/components/ui/UpgradeToPro.tsx+++ b/studio/components/ui/UpgradeToPro.tsx@@ -45,7 +45,7 @@ const UpgradeToPro = ({<div className="space-y-1"><p className="text-sm">{primaryText}</p><div>- <p className="text-sm text-scale-1100">{secondaryText}</p>+ <p className="text-sm text-foreground-light">{secondaryText}</p></div></div><Tooltip.Root delayDuration={0}>diff --git a/studio/hooks/misc/useStore.tsx b/studio/hooks/misc/useStore.tsxindex 7abc9c6043a..191e6ccad57 100644--- a/studio/hooks/misc/useStore.tsx+++ b/studio/hooks/misc/useStore.tsx@@ -48,7 +48,7 @@ export const StoreProvider = ({ children, rootStore }: PropsWithChildren<StorePrlabelTop={`${progress.toFixed(2)}%`}/>{description !== undefined && (- <p className="text-xs text-scale-1100">{description}</p>+ <p className="text-xs text-foreground-light">{description}</p>)}</div>,{ id }diff --git a/studio/pages/404.tsx b/studio/pages/404.tsxindex acf5db37979..529c764ec89 100644--- a/studio/pages/404.tsx+++ b/studio/pages/404.tsx@@ -4,8 +4,8 @@ import Link from 'next/link'import { useEffect, useState } from 'react'import { Button } from 'ui'-import { BASE_PATH } from 'lib/constants'import { useTheme } from 'common'+import { BASE_PATH } from 'lib/constants'const Error404: NextPage = ({}) => {const { isDarkMode } = useTheme()@@ -55,7 +55,9 @@ const Error404: NextPage = ({}) => {><div className="flex w-[380px] flex-col items-center justify-center space-y-3 text-center"><h3 className="text-xl">Looking for something? 🔍</h3>- <p className="text-scale-1100">We couldn't find the page that you're looking for!</p>+ <p className="text-foreground-light">+ We couldn't find the page that you're looking for!+ </p></div><div className="flex items-center space-x-4"><Link href="/projects">diff --git a/studio/pages/account/me.tsx b/studio/pages/account/me.tsxindex 2c6a0dbc7bb..9b2183fc53c 100644--- a/studio/pages/account/me.tsx+++ b/studio/pages/account/me.tsx@@ -4,19 +4,17 @@ import Link from 'next/link'import { useTheme } from 'common'import { AccountLayout } from 'components/layouts'import SchemaFormPanel from 'components/to-be-cleaned/forms/SchemaFormPanel'+import AlertError from 'components/ui/AlertError'import Panel from 'components/ui/Panel'+import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useProfileUpdateMutation } from 'data/profile/profile-update-mutation'import { Profile as ProfileType } from 'data/profile/types'import { useStore } from 'hooks'import { useSession } from 'lib/auth'import { useProfile } from 'lib/profile'+import { useAppStateSnapshot } from 'state/app-state'import { NextPageWithLayout } from 'types'import { Button, IconMoon, IconSun, Input, Listbox, Toggle } from 'ui'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'-import AlertError from 'components/ui/AlertError'-import { LOCAL_STORAGE_KEYS } from 'lib/constants'-import { useEffect, useState } from 'react'-import { useAppStateSnapshot } from 'state/app-state'const User: NextPageWithLayout = () => {return (@@ -153,7 +151,7 @@ const Profile = ({ profile }: { profile?: ProfileType }) => {{session?.user.app_metadata.provider === 'email' && (<div className="text-sm grid gap-2 md:grid md:grid-cols-12 md:gap-x-4"><div className="flex flex-col space-y-2 col-span-4 ">- <p className="text-scale-1100 break-all">Password</p>+ <p className="text-foreground-light break-all">Password</p></div><div className="col-span-8"><Link href="/reset-password">diff --git a/studio/pages/forgot-password.tsx b/studio/pages/forgot-password.tsxindex 01132fa0e22..be3312adcd1 100644--- a/studio/pages/forgot-password.tsx+++ b/studio/pages/forgot-password.tsx@@ -11,9 +11,9 @@ const ForgotPasswordPage: NextPageWithLayout = () => {</div><div className="my-8 self-center text-sm">- <span className="text-scale-1100">Already have an account?</span>{' '}+ <span className="text-foreground-light">Already have an account?</span>{' '}<Link href="/sign-in">- <a className="underline hover:text-scale-1100">Sign In</a>+ <a className="underline hover:text-foreground-light">Sign In</a></Link></div></>diff --git a/studio/pages/join/index.tsx b/studio/pages/join/index.tsxindex 0f9fff67ca9..c0a949c13d7 100644--- a/studio/pages/join/index.tsx+++ b/studio/pages/join/index.tsx@@ -111,7 +111,7 @@ const JoinOrganizationPage = () => {<divclassName={['flex flex-col items-center justify-center gap-3 text-sm',- isError ? 'text-scale-1100' : 'text-foreground',+ isError ? 'text-foreground-light' : 'text-foreground',].join(' ')}>{children}diff --git a/studio/pages/old-org.tsx b/studio/pages/old-org.tsxindex be52ba18366..21716c657bf 100644--- a/studio/pages/old-org.tsx+++ b/studio/pages/old-org.tsx@@ -101,7 +101,7 @@ const Wizard: NextPageWithLayout = () => {><Panel.Content className="pt-0"><p className="text-sm">This is your organization within Supabase.</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">For example, you can use the name of your company or department.</p></Panel.Content>diff --git a/studio/pages/org/[slug]/index.tsx b/studio/pages/org/[slug]/index.tsxindex 1607bf71bdd..fbafe9e4dd7 100644--- a/studio/pages/org/[slug]/index.tsx+++ b/studio/pages/org/[slug]/index.tsx@@ -1,16 +1,16 @@import Link from 'next/link'import { Button, IconPlus } from 'ui'+import NoProjectsOnPaidOrgInfo from 'components/interfaces/BillingV2/NoProjectsOnPaidOrgInfo'import ProjectCard from 'components/interfaces/Home/ProjectList/ProjectCard'import ShimmeringCard from 'components/interfaces/Home/ProjectList/ShimmeringCard'import AppLayout from 'components/layouts/AppLayout/AppLayout'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'import AlertError from 'components/ui/AlertError'+import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'import { useProjectsQuery } from 'data/projects/projects-query'import { useSelectedOrganization } from 'hooks'import { NextPageWithLayout } from 'types'-import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'-import NoProjectsOnPaidOrgInfo from 'components/interfaces/BillingV2/NoProjectsOnPaidOrgInfo'const ProjectsPage: NextPageWithLayout = () => {const {@@ -63,7 +63,7 @@ const ProjectsPage: NextPageWithLayout = () => {<div className="col-span-4 space-y-4 rounded-lg border-2 border-dashed border-gray-300 p-6 text-center"><div className="space-y-1"><p>No projects</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Get started by creating a new project.</p></div>diff --git a/studio/pages/org/_/[[...routeSlug]].tsx b/studio/pages/org/_/[[...routeSlug]].tsxindex b7bec24174a..272ea7fa405 100644--- a/studio/pages/org/_/[[...routeSlug]].tsx+++ b/studio/pages/org/_/[[...routeSlug]].tsx@@ -72,7 +72,7 @@ const GenericOrganizationPage: NextPage = () => {<div className="col-span-4 space-y-4 rounded-lg border-2 border-dashed border-gray-300 p-6 text-center"><div className="space-y-1"><p>You are not part of any organizations yet</p>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Get started by creating a new organization.</p></div>@@ -102,7 +102,7 @@ const GenericOrganizationPage: NextPage = () => {}footer={<div className="flex items-end justify-between">- <span className="text-sm lowercase text-scale-1000">+ <span className="text-sm lowercase text-foreground-light">{organization.slug}</span></div>diff --git a/studio/pages/project/[ref]/api/graphiql.tsx b/studio/pages/project/[ref]/api/graphiql.tsxindex d1040650eca..688bf000e4f 100644--- a/studio/pages/project/[ref]/api/graphiql.tsx+++ b/studio/pages/project/[ref]/api/graphiql.tsx@@ -1,4 +1,4 @@-import { Fetcher, createGraphiQLFetcher } from '@graphiql/toolkit'+import { createGraphiQLFetcher, Fetcher } from '@graphiql/toolkit'import { observer } from 'mobx-react-lite'import { useEffect, useMemo } from 'react'@@ -67,7 +67,7 @@ const GraphiQLPage: NextPageWithLayout = () => {<div className="w-full max-w-md"><div className="mb-6"><h1 className="mt-8 mb-2 text-2xl">Enable the GraphQL Extension</h1>- <h2 className="text-sm text-scale-1100">+ <h2 className="text-sm text-foreground-light">Toggle the switch below to enable the GraphQL extension. You can then use the GraphQLAPI with your Supabase Database.</h2>diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsxindex e4f8b718a03..c159b220e02 100644--- a/studio/pages/project/[ref]/api/index.tsx+++ b/studio/pages/project/[ref]/api/index.tsx@@ -91,7 +91,7 @@ const DocView = observer(() => {if (error || jsonSchemaError)return (<div className="p-6 mx-auto text-center sm:w-full md:w-3/4">- <p className="text-scale-1000">+ <p className="text-foreground-light"><p>Error connecting to API</p><p>{`${error || jsonSchemaError}`}</p></p>diff --git a/studio/pages/project/[ref]/database/backups/scheduled.tsx b/studio/pages/project/[ref]/database/backups/scheduled.tsxindex fe6966e6803..b146a78bd67 100644--- a/studio/pages/project/[ref]/database/backups/scheduled.tsx+++ b/studio/pages/project/[ref]/database/backups/scheduled.tsx@@ -60,7 +60,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {{isSuccess && (<>{!isPitrEnabled && (- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Projects are backed up daily around midnight of your project's region and canbe restored at any time.</p>diff --git a/studio/pages/project/[ref]/database/hooks.tsx b/studio/pages/project/[ref]/database/hooks.tsxindex 099950eda65..eea3c6443dd 100644--- a/studio/pages/project/[ref]/database/hooks.tsx+++ b/studio/pages/project/[ref]/database/hooks.tsx@@ -82,7 +82,7 @@ const HooksPage: NextPageWithLayout = () => {return (<div className="w-full h-full flex items-center justify-center space-x-2"><IconLoader className="animate-spin" size="tiny" strokeWidth={1.5} />- <p className="text-sm text-scale-1100">Checking if hooks are enabled</p>+ <p className="text-sm text-foreground-light">Checking if hooks are enabled</p></div>)}@@ -101,11 +101,11 @@ const HooksPage: NextPageWithLayout = () => {!canCreateWebhooks ? 'You need additional permissions to enable webhooks' : undefined}>- <p className="text-sm text-scale-1100">+ <p className="text-sm text-foreground-light">Database Webhooks can be used to trigger serverless functions or send requests to anHTTP endpoint.</p>- <p className="text-sm text-scale-1100">Enable database webhooks on your project.</p>+ <p className="text-sm text-foreground-light">Enable database webhooks on your project.</p></ProductEmptyState></div>)diff --git a/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx b/studio/pages/project/[ref]/functions/[functionSlug]/index.tsxindex bb67f902225..84983c243c9 100644--- a/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx+++ b/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx@@ -1,23 +1,22 @@-import dayjs, { Dayjs } from 'dayjs'-import { useMemo, useState } from 'react'-import { useRouter } from 'next/router'-import { Button } from 'ui'-import { observer } from 'mobx-react-lite'import { PermissionAction } from '@supabase/shared-types/out/constants'-import { useCheckPermissions } from 'hooks'import { useParams } from 'common/hooks'-import { ChartIntervals, NextPageWithLayout } from 'types'-import NoPermission from 'components/ui/NoPermission'-import FunctionsLayout from 'components/layouts/FunctionsLayout'-import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'-import { useFunctionsInvStatsQuery } from 'data/analytics/functions-inv-stats-query'import ReportWidget from 'components/interfaces/Reports/ReportWidget'-import BarChart from 'components/ui/Charts/BarChart'-import AreaChart from 'components/ui/Charts/AreaChart'import { isUnixMicro, unixMicroToIsoTimestamp } from 'components/interfaces/Settings/Logs'-import meanBy from 'lodash/meanBy'-import sumBy from 'lodash/sumBy'+import FunctionsLayout from 'components/layouts/FunctionsLayout'+import AreaChart from 'components/ui/Charts/AreaChart'+import BarChart from 'components/ui/Charts/BarChart'+import NoPermission from 'components/ui/NoPermission'+import { useFunctionsInvStatsQuery } from 'data/analytics/functions-inv-stats-query'+import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'+import dayjs, { Dayjs } from 'dayjs'+import { useCheckPermissions } from 'hooks'import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'+import sumBy from 'lodash/sumBy'+import { observer } from 'mobx-react-lite'+import { useRouter } from 'next/router'+import { useMemo, useState } from 'react'+import { ChartIntervals, NextPageWithLayout } from 'types'+import { Button } from 'ui'const CHART_INTERVALS: ChartIntervals[] = [{@@ -106,7 +105,7 @@ const PageLayout: NextPageWithLayout = () => {})}</div>- <span className="text-xs text-scale-1000">+ <span className="text-xs text-foreground-light">Statistics for past {selectedInterval.label}</span></div>diff --git a/studio/pages/project/[ref]/reports/database.tsx b/studio/pages/project/[ref]/reports/database.tsxindex 9b9b828146a..77ac07a0262 100644--- a/studio/pages/project/[ref]/reports/database.tsx+++ b/studio/pages/project/[ref]/reports/database.tsx@@ -103,7 +103,7 @@ const DatabaseUsage = observer(() => {{isPaidTier && (<div className="flex justify-between items-center mt-3">- <div className="flex flex-row space-x-3 text-scale-1000 text-sm">+ <div className="flex flex-row space-x-3 text-foreground-light text-sm"><Badge>Auto-Scaling</Badge></div>@@ -142,7 +142,7 @@ const DatabaseUsage = observer(() => {{isPaidTier && (<div className="flex justify-between items-center mt-3">- <div className="flex flex-row space-x-3 text-scale-1000 text-sm">+ <div className="flex flex-row space-x-3 text-foreground-light text-sm">{usage?.disk_volume_size_gb && (<span>Disk Size: {usage.disk_volume_size_gb} GB</span>)}@@ -215,13 +215,13 @@ const DatabaseUsage = observer(() => {/>{dateRange && (<div className="flex items-center space-x-2">- <p className="text-scale-1000">+ <p className="text-foreground-light">{dayjs(dateRange.period_start.date).format('MMMM D, hh:mma')}</p>- <p className="text-scale-1000">+ <p className="text-foreground-light"><IconArrowRight size={12} /></p>- <p className="text-scale-1000">+ <p className="text-foreground-light">{dayjs(dateRange.period_end.date).format('MMMM D, hh:mma')}</p></div>diff --git a/studio/pages/project/[ref]/reports/index.tsx b/studio/pages/project/[ref]/reports/index.tsxindex 4a0f7d9fc26..a853d628454 100644--- a/studio/pages/project/[ref]/reports/index.tsx+++ b/studio/pages/project/[ref]/reports/index.tsx@@ -65,8 +65,8 @@ export const UserReportPage: NextPageWithLayout = () => {disabled={!canCreateReport}disabledMessage="You need additional permissions to create a report">- <p className="text-scale-1100 text-sm">Create custom reports for your projects.</p>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Create custom reports for your projects.</p>+ <p className="text-foreground-light text-sm">Get a high level overview of your network traffic, user actions, and infrastructurehealth.</p>diff --git a/studio/pages/project/[ref]/reports/query-performance.tsx b/studio/pages/project/[ref]/reports/query-performance.tsxindex a8c3b156bd2..4e9f281a3c3 100644--- a/studio/pages/project/[ref]/reports/query-performance.tsx+++ b/studio/pages/project/[ref]/reports/query-performance.tsx@@ -66,7 +66,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {indexHitRate && tableHitRate && (indexHitRate <= 0.99 || tableHitRate <= 0.99)const headerText = (- <p className="whitespace-pre-wrap prose text-sm max-w-2xl text-scale-1000">+ <p className="whitespace-pre-wrap prose text-sm max-w-2xl text-foreground-light">Identify the queries that consume the most time and database resources.{'\n\n'}It relies on the <code>pg_stat_statements</code> table. Read more about{' '}<Link@@ -96,7 +96,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {Look for queries with high or mean execution times. These are often good candidates for optimization.`const panelClassNames = 'text-sm max-w-none flex flex-col gap-8 py-4'- const helperTextClassNames = 'prose text-sm max-w-2xl text-scale-1000'+ const helperTextClassNames = 'prose text-sm max-w-2xl text-foreground-light'return (<ReportPadding>@@ -155,7 +155,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {</div></div><div className="px-8 pt-4 m-0">- <p className="text-scale-1100 text-sm max-w-2xl">+ <p className="text-foreground-light text-sm max-w-2xl">For best performance, ensure that the cache hit rate ratios above 99%. <br />{' '}Consider upgrading to an instance with more memory if the ratios dip below 95%.</p>diff --git a/studio/pages/project/[ref]/settings/api.tsx b/studio/pages/project/[ref]/settings/api.tsxindex 4df0f301cad..99c3b18c49d 100644--- a/studio/pages/project/[ref]/settings/api.tsx+++ b/studio/pages/project/[ref]/settings/api.tsx@@ -17,7 +17,7 @@ const ApiSettings: NextPageWithLayout = () => {<h3 className="mb-6 text-xl text-foreground">API Settings</h3><div className="flex items-center justify-center rounded border border-scale-400 bg-scale-300 p-8"><IconAlertCircle strokeWidth={1.5} />- <p className="text-sm text-scale-1100 ml-2">+ <p className="text-sm text-foreground-light ml-2">API settings are unavailable as the project is not active</p></div>diff --git a/studio/pages/project/[ref]/settings/billing/invoices.tsx b/studio/pages/project/[ref]/settings/billing/invoices.tsxindex ca536f73645..a07620a782c 100644--- a/studio/pages/project/[ref]/settings/billing/invoices.tsx+++ b/studio/pages/project/[ref]/settings/billing/invoices.tsx@@ -2,11 +2,11 @@ import Link from 'next/link'import { Invoices } from 'components/interfaces/BillingV2'import { SettingsLayout } from 'components/layouts'+import InformationBox from 'components/ui/InformationBox'import { useSelectedOrganization } from 'hooks'-import { NextPageWithLayout } from 'types'import { useRouter } from 'next/router'import { useEffect } from 'react'-import InformationBox from 'components/ui/InformationBox'+import { NextPageWithLayout } from 'types'import { Button, IconExternalLink, IconInfo } from 'ui'const ProjectBilling: NextPageWithLayout = () => {@@ -87,7 +87,7 @@ const Settings = () => {<h4 className="text-lg">Invoices</h4>- <div className="text-sm text-scale-1000">+ <div className="text-sm text-foreground-light">To manage your billing address, emails or Tax ID, head to your{' '}<Link href={`/org/${orgSlug}/billing`} passHref><a className="text-sm text-green-900 transition hover:text-green-1000">diff --git a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsxindex 99dde9c3777..ee97c0bd770 100644--- a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx+++ b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx@@ -1,6 +1,6 @@+import { useParams } from 'common'import { find } from 'lodash'import { observer } from 'mobx-react-lite'-import { useParams } from 'common'import { StorageLayout } from 'components/layouts'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'@@ -26,7 +26,7 @@ const PageLayout: NextPageWithLayout = () => {{isSuccess ? (!bucket ? (<div className="flex h-full w-full items-center justify-center">- <p className="text-sm text-scale-1100">Bucket {bucketId} cannot be found</p>+ <p className="text-sm text-foreground-light">Bucket {bucketId} cannot be found</p></div>) : (// @ts-ignorediff --git a/studio/pages/project/[ref]/storage/buckets/index.tsx b/studio/pages/project/[ref]/storage/buckets/index.tsxindex cb611229f85..072f853fb75 100644--- a/studio/pages/project/[ref]/storage/buckets/index.tsx+++ b/studio/pages/project/[ref]/storage/buckets/index.tsx@@ -26,10 +26,10 @@ const PageLayout: NextPageWithLayout = () => {infoButtonLabel="About storage"infoButtonUrl="https://supabase.com/docs/guides/storage">- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Create buckets to store and serve any type of digital content.</p>- <p className="text-scale-1100 text-sm">+ <p className="text-foreground-light text-sm">Make your buckets private or public depending on your security preference.</p></ProductEmptyState>diff --git a/studio/pages/reset-password.tsx b/studio/pages/reset-password.tsxindex 1336eaef9c0..3778991fb82 100644--- a/studio/pages/reset-password.tsx+++ b/studio/pages/reset-password.tsx@@ -12,9 +12,9 @@ const ResetPasswordPage: NextPageWithLayout = () => {</div><div className="my-8 self-center text-sm">- <span className="text-scale-1100">Already have an account?</span>{' '}+ <span className="text-foreground-light">Already have an account?</span>{' '}<Link href="/sign-in">- <a className="underline hover:text-scale-1100">Sign In</a>+ <a className="underline hover:text-foreground-light">Sign In</a></Link></div></>diff --git a/studio/pages/sign-in-sso.tsx b/studio/pages/sign-in-sso.tsxindex 4780abeef7d..fe1896dfc5b 100644--- a/studio/pages/sign-in-sso.tsx+++ b/studio/pages/sign-in-sso.tsx@@ -1,6 +1,5 @@import SignInSSOForm from 'components/interfaces/SignIn/SignInSSOForm'import { SignInLayout } from 'components/layouts'-import Link from 'next/link'import { NextPageWithLayout } from 'types'const SignInSSOPage: NextPageWithLayout = () => {@@ -12,11 +11,11 @@ const SignInSSOPage: NextPageWithLayout = () => {<div className="my-8 self-center text-sm"><div>- <span className="text-scale-1000">Interested in SSO?</span>{' '}+ <span className="text-foreground-light">Interested in SSO?</span>{' '}<ahref="https://supabase.com/contact/enterprise"rel="noopener noreferrer"- className="underline text-foreground hover:text-scale-1100 transition"+ className="underline text-foreground hover:text-foreground-light transition">Let Us Know</a>diff --git a/studio/pages/sign-in.tsx b/studio/pages/sign-in.tsxindex dddcfda2deb..fd2a4f46288 100644--- a/studio/pages/sign-in.tsx+++ b/studio/pages/sign-in.tsx@@ -38,9 +38,9 @@ const SignInPage: NextPageWithLayout = () => {<div className="self-center my-8 text-sm"><div>- <span className="text-scale-1000">Don't have an account?</span>{' '}+ <span className="text-foreground-light">Don't have an account?</span>{' '}<Link href="/sign-up">- <a className="underline transition text-foreground hover:text-scale-1100">+ <a className="underline transition text-foreground hover:text-foreground-light">Sign Up Now</a></Link>diff --git a/studio/pages/sign-up.tsx b/studio/pages/sign-up.tsxindex 77fba23bb5c..9e63bd0fce9 100644--- a/studio/pages/sign-up.tsx+++ b/studio/pages/sign-up.tsx@@ -23,9 +23,11 @@ const SignUpPage: NextPageWithLayout = () => {</div><div className="my-8 self-center text-sm">- <span className="text-scale-1000">Have an account?</span>{' '}+ <span className="text-foreground-light">Have an account?</span>{' '}<Link href="/sign-in">- <a className="underline text-foreground hover:text-scale-1100 transition">Sign In Now</a>+ <a className="underline text-foreground hover:text-foreground-light transition">+ Sign In Now+ </a></Link></div></>diff --git a/studio/pages/vercel/integrate.tsx b/studio/pages/vercel/integrate.tsxindex a6f828acd28..3b9a466d8d8 100644--- a/studio/pages/vercel/integrate.tsx+++ b/studio/pages/vercel/integrate.tsx@@ -3,10 +3,9 @@ import { makeAutoObservable, runInAction } from 'mobx'import { observer, useLocalObservable } from 'mobx-react-lite'import Link from 'next/link'import { useRouter } from 'next/router'-import { ChangeEvent, createContext, FC, useContext, useEffect, useState } from 'react'+import { ChangeEvent, createContext, useContext, useEffect, useState } from 'react'import { toast } from 'react-hot-toast'-import { Button, IconChevronRight, IconPlusCircle, IconX, Listbox, Select } from 'ui'import { Dictionary } from 'components/grid'import VercelIntegrationLayout from 'components/layouts/VercelIntegrationLayout'import {@@ -18,7 +17,7 @@ import {import { databaseIcon, vercelIcon } from 'components/to-be-cleaned/ListIcons'import Loading from 'components/ui/Loading'import { useProjectsQuery } from 'data/projects/projects-query'-import { useStore, withAuth } from 'hooks'+import { withAuth } from 'hooks'import { get } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import {@@ -26,6 +25,7 @@ import {VERCEL_DEFAULT_EXTERNAL_ID,VERCEL_INTEGRATION_CONFIGS,} from 'lib/vercelConfigs'+import { Button, IconChevronRight, IconPlusCircle, IconX, Listbox, Select } from 'ui'interface IVercelIntegrationStore {code: string@@ -288,7 +288,7 @@ const IntegrationProject = observer(() => {</Button></div></div>- {errorMsg && <p className="py-4 text-scale-1000">{errorMsg}</p>}+ {errorMsg && <p className="py-4 text-foreground-light">{errorMsg}</p>}</div>)})@@ -446,9 +446,9 @@ const ProjectLinks = observer(() => {<Divider light /><div className="space-y-2"><div className="flex justify-between">- <p className="text-scale-1000">Vercel Projects</p>+ <p className="text-foreground-light">Vercel Projects</p><div />- <p className="text-scale-1000">Supabase Projects</p>+ <p className="text-foreground-light">Supabase Projects</p></div><ProjectLinkList /><Divider light />@@ -485,7 +485,7 @@ const ProjectLinkList = observer(() => {</ul><div className="py-2">{_store.projectLinkRemaining == 0 ? (- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">All Vercel projects for selected scope have been added</p>) : (@@ -498,7 +498,7 @@ const ProjectLinkList = observer(() => {>{`Add another Vercel Project`}</Button>- <p className="text-sm text-scale-1000">+ <p className="text-sm text-foreground-light">{_store.projectLinkRemaining} project(s) remaining</p></div>@@ -578,7 +578,7 @@ const ProjectLinkItem = observer(</Listbox></div><div className="flex flex-shrink items-center">- <IconChevronRight className="text-scale-1000" />+ <IconChevronRight className="text-foreground-light" /></div><div className="w-1/2 flex-grow"><Listbox@@ -611,14 +611,14 @@ const ProjectLinkItem = observer(</div>)}</div>- {error && <p className="text-sm text-scale-1000">{error}</p>}+ {error && <p className="text-sm text-foreground-light">{error}</p>}{_store.waitingIntegration && result && (<pclassName={`text-sm ${result.status === 'waiting'- ? 'text-scale-1000'+ ? 'text-foreground-light': result.status === 'fail'- ? 'text-scale-1000'+ ? 'text-foreground-light': 'text-foreground'}`}>diff --git a/studio/styles/code.scss b/studio/styles/code.scssindex d679eb8e7c6..b03385b6c8e 100644--- a/studio/styles/code.scss+++ b/studio/styles/code.scss@@ -35,7 +35,7 @@.token.doc-comment.parameter.punctuation,.token.doc-comment.optional-parameter.punctuation {font-style: normal !important;- @apply text-scale-1100 #{!important};+ @apply text-foreground-light #{!important};}.token.keyword,diff --git a/studio/styles/date-picker.scss b/studio/styles/date-picker.scssindex 491e5a5e1f8..bb4db328dfe 100644--- a/studio/styles/date-picker.scss+++ b/studio/styles/date-picker.scss@@ -58,7 +58,7 @@}.react-datepicker__day {- @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-scale-1100;+ @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-foreground-light;/* @apply mb-1 py-1; */@apply -space-y-px;@apply border border-scale-500;@@ -102,5 +102,5 @@}.react-datepicker__day--highlighted {- @apply bg-brand-600 text-scale-1100;+ @apply bg-brand-600 text-foreground-light;}diff --git a/studio/styles/grid.scss b/studio/styles/grid.scssindex 87819962545..0e616d6f534 100644--- a/studio/styles/grid.scss+++ b/studio/styles/grid.scss@@ -483,7 +483,7 @@.sb-grid-column-header__inner__format {@apply text-xs;@apply overflow-hidden overflow-ellipsis font-normal;- @apply text-scale-1000;+ @apply text-foreground-light;}.sb-grid-column-header__inner__primary-key {diff --git a/studio/styles/react-data-grid-logs.scss b/studio/styles/react-data-grid-logs.scssindex 34dc5d741f0..a3396962b92 100644--- a/studio/styles/react-data-grid-logs.scss+++ b/studio/styles/react-data-grid-logs.scss@@ -1,7 +1,7 @@.data-grid--simple-logs {.rdg-cell,.rdg-cell span {- @apply text-scale-1100 font-normal #{!important};+ @apply text-foreground-light font-normal #{!important};border-left: none;border-right: none;}@@ -31,7 +31,7 @@.rdg-cell,.rdg-cell span {- @apply text-scale-1100 font-normal #{!important};+ @apply text-foreground-light font-normal #{!important};}.rdg-cell:first-child {@@ -49,7 +49,7 @@&.rdg-row--focused .rdg-cell,&.rdg-row--focused .rdg-cell span {- @apply text-scale-1100 font-semibold #{!important};+ @apply text-foreground-light font-semibold #{!important};}}}diff --git a/studio/styles/ui.scss b/studio/styles/ui.scssindex afe63893d05..6f6c091ac2a 100644--- a/studio/styles/ui.scss+++ b/studio/styles/ui.scss@@ -33,7 +33,7 @@// TO DO: REMOVE.form-group label {- @apply inline-block text-scale-1100 text-sm py-2;+ @apply inline-block text-foreground-light text-sm py-2;width: 33%;align-self: top;}@@ -118,7 +118,7 @@}.table-container thead th {- @apply text-scale-1100 font-normal text-sm;+ @apply text-foreground-light font-normal text-sm;@apply bg-table-header-light dark:bg-table-header-dark;@apply border-t border-b border-table-border-light dark:border-table-border-dark;}@@ -276,7 +276,7 @@max-width: 50%;h4 {- @apply uppercase font-normal m-1 p-0 text-sm text-scale-1100;+ @apply uppercase font-normal m-1 p-0 text-sm text-foreground-light;}h4:not(:first-child) {