Skip to content

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

Misc styling fixes

Joshen Lime33b5e292fe9
diff --git a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx
index 23f7e25f05d..83fde824d91 100644
--- a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx
+++ b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx
@@ -112,17 +112,17 @@ const ExtensionCard: FC<Props> = ({ extension }) => {
flex flex-col h-full"
>
<div className="p-4 px-6">
- <Typography.Text type="secondary">
- <span className="flex-grow capitalize-first">{extension.comment}</span>
- </Typography.Text>
+ <p className="text-sm text-scale-1100">
+ <span className="flex-grow capitalize">{extension.comment}</span>
+ </p>
</div>
{isOn && extension.schema && (
<div className="p-4 px-6">
- <Typography.Text type="secondary" small>
- <span className="flex-grow capitalize-first">
+ <p className="text-sm text-scale-1100">
+ <span className="flex-grow">
Schema: <Badge>{`${extension.schema}`}</Badge>
</span>
- </Typography.Text>
+ </p>
</div>
)}
</div>
diff --git a/studio/components/interfaces/Database/Extensions/Extensions.tsx b/studio/components/interfaces/Database/Extensions/Extensions.tsx
index 8653309156f..d6d5584295b 100644
--- a/studio/components/interfaces/Database/Extensions/Extensions.tsx
+++ b/studio/components/interfaces/Database/Extensions/Extensions.tsx
@@ -38,7 +38,7 @@ const Extensions: FC<Props> = ({}) => {
<div className="w-full my-8 space-y-12">
{enabledExtensions.length > 0 && (
<div className="space-y-4">
- <Typography.Title level={4}>Enabled</Typography.Title>
+ <h4 className="text-lg">Enabled</h4>
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3 mb-4">
{enabledExtensions.map((extension) => (
<ExtensionCard key={extension.name} extension={extension} />
@@ -49,7 +49,7 @@ const Extensions: FC<Props> = ({}) => {
{disabledExtensions.length > 0 && (
<div className="space-y-4">
- <Typography.Title level={4}>Extensions</Typography.Title>
+ <h4 className="text-lg">Extensions</h4>
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3 mb-4">
{disabledExtensions.map((extension) => (
<ExtensionCard key={extension.name} extension={extension} />
diff --git a/studio/components/interfaces/Database/Pooling/BouncerSettings.tsx b/studio/components/interfaces/Database/Pooling/BouncerSettings.tsx
index 2426f3b3173..be0a2bf494c 100644
--- a/studio/components/interfaces/Database/Pooling/BouncerSettings.tsx
+++ b/studio/components/interfaces/Database/Pooling/BouncerSettings.tsx
@@ -165,7 +165,7 @@ const BouncerSettings: FC<Props> = ({}) => {
/>
<div className="flex space-x-3">
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-1100">
<p>
Learn more about connection strings{' '}
<Typography.Link href="https://supabase.com/docs/reference/postgres/connection-strings">
@@ -177,7 +177,7 @@ const BouncerSettings: FC<Props> = ({}) => {
</Typography.Link>
.
</p>
- </Typography.Text>
+ </p>
</div>
</Panel.Content>
</Panel>
diff --git a/studio/components/interfaces/Database/Pooling/DownloadCertificate.tsx b/studio/components/interfaces/Database/Pooling/DownloadCertificate.tsx
index d0c2ac6c628..9f435fe9c91 100644
--- a/studio/components/interfaces/Database/Pooling/DownloadCertificate.tsx
+++ b/studio/components/interfaces/Database/Pooling/DownloadCertificate.tsx
@@ -1,5 +1,5 @@
import { FC } from 'react'
-import { Button, Typography, IconDownload } from '@supabase/ui'
+import { Button, IconDownload } from '@supabase/ui'
interface Props {
createdAt: string
@@ -9,14 +9,15 @@ const DownloadCertificate: FC<Props> = ({ createdAt }) => {
// instances before 3 : 08 pm sgt 29th April don't have certs installed
if (new Date(createdAt) < new Date('2021-04-30')) return null
const env = process.env.NEXT_PUBLIC_ENVIRONMENT === 'prod' ? 'prod' : 'staging'
+
return (
<div className="w-full flex items-center justify-between">
<div>
- <Typography.Text className="block">SSL Connection</Typography.Text>
+ <p className="block">SSL Connection</p>
<div>
- <Typography.Text type="secondary" className="opacity-50">
+ <p className="text-sm text-scale-1100">
Use this certificate to prevent snooping and man-in-the-middle attacks.
- </Typography.Text>
+ </p>
</div>
</div>
<Button type="default" icon={<IconDownload />}>
diff --git a/studio/components/interfaces/Database/Pooling/PgBouncerConfig.tsx b/studio/components/interfaces/Database/Pooling/PgBouncerConfig.tsx
index 91e66bcb5e0..387d8f82fe3 100644
--- a/studio/components/interfaces/Database/Pooling/PgBouncerConfig.tsx
+++ b/studio/components/interfaces/Database/Pooling/PgBouncerConfig.tsx
@@ -103,17 +103,18 @@ const PgbouncerConfig: FC<Props> = ({ projectRef, config }) => {
errorMessage="You must select one of the three options"
/>
<div className="flex !mt-1" style={{ marginLeft: 'calc(33% + 0.5rem)' }}>
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-900">
Specify when a connection can be returned to the pool. To find out the most
suitable mode for your use case,{' '}
- <Typography.Link
+ <a
+ className="text-green-900"
target="_blank"
href="https://supabase.com/docs/guides/database/connecting-to-postgres#connection-pool"
>
click here
- </Typography.Link>
+ </a>
.
- </Typography.Text>
+ </p>
</div>
<Divider light />
{/* <AutoField
diff --git a/studio/components/interfaces/Database/Roles/RolesList.tsx b/studio/components/interfaces/Database/Roles/RolesList.tsx
index c2478ebe932..e950a83b764 100644
--- a/studio/components/interfaces/Database/Roles/RolesList.tsx
+++ b/studio/components/interfaces/Database/Roles/RolesList.tsx
@@ -39,7 +39,7 @@ const RolesList: FC<Props> = ({ onSelectRole = () => {} }) => {
<SparkBar
max={x.connection_limit}
value={x.active_connections}
- barClass={'bg-green-500'}
+ barClass={'bg-green-800'}
/>
</div>
</Table.td>
diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsx
index 634a89c454b..e381e0f631f 100644
--- a/studio/components/interfaces/Home/ProjectUsage.tsx
+++ b/studio/components/interfaces/Home/ProjectUsage.tsx
@@ -311,15 +311,13 @@ const PanelHeader = (props: any) => {
<Tag href={props.href}>
<div
className={
- 'flex items-center space-x-3 opacity-80 ' +
- (props.href ? 'cursor-pointer hover:opacity-100 hover:text-green-500' : '')
+ 'flex items-center space-x-3 opacity-80 transition ' +
+ (props.href ? 'cursor-pointer hover:opacity-100 hover:text-gray-1200' : '')
}
>
<Typography.Text>{props.icon}</Typography.Text>
<span className="flex items-center space-x-1">
- <Typography.Title level={4} className="mb-0">
- {props.title}
- </Typography.Title>
+ <h4 className="mb-0 text-lg">{props.title}</h4>
</span>
</div>
</Tag>
diff --git a/studio/components/interfaces/Organization/BillingSettings/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettings/TaxID.tsx
index 29f42357b27..ecd4fbe3a5c 100644
--- a/studio/components/interfaces/Organization/BillingSettings/TaxID.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/TaxID.tsx
@@ -31,7 +31,7 @@ const TaxID: FC<Props> = ({ loading, taxIds, redirectToPortal }) => {
{loading && taxIds.length === 0 ? (
<div className="flex items-center space-x-4">
<IconLoader className="animate-spin" size={14} />
- <p>Retrieving tax information</p>
+ <p className="text-sm">Retrieving tax information</p>
</div>
) : taxIds.length >= 1 ? (
<div className="w-full space-y-2">
diff --git a/studio/components/interfaces/TableGridEditor/EmptyState.tsx b/studio/components/interfaces/TableGridEditor/EmptyState.tsx
index a39629a8329..c245ca3d7f3 100644
--- a/studio/components/interfaces/TableGridEditor/EmptyState.tsx
+++ b/studio/components/interfaces/TableGridEditor/EmptyState.tsx
@@ -1,5 +1,5 @@
import { FC } from 'react'
-import { Button, Typography } from '@supabase/ui'
+import { Button } from '@supabase/ui'
import { PostgresTable } from '@supabase/postgres-meta'
import { useStore } from 'hooks'
@@ -15,7 +15,7 @@ const EmptyState: FC<Props> = ({ selectedSchema, onAddTable }) => {
const renderNoTablesCTA = () => {
return (
<div className="flex flex-col items-center justify-center space-y-4">
- <Typography.Text>There are no tables available in this schema</Typography.Text>
+ <p className="text-sm">There are no tables available in this schema</p>
{selectedSchema === 'public' && <Button onClick={onAddTable}>Create a new table</Button>}
</div>
)
@@ -27,7 +27,7 @@ const EmptyState: FC<Props> = ({ selectedSchema, onAddTable }) => {
renderNoTablesCTA()
) : (
<div className="flex flex-col items-center space-y-4">
- <Typography.Text>Select a table or create a new one</Typography.Text>
+ <p className="text-sm">Select a table or create a new one</p>
<Button onClick={onAddTable}>Create a new table</Button>
</div>
)}
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
index f7886773def..6e5c87a8d84 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
@@ -69,9 +69,11 @@ const FeedbackWidget = ({ onClose, feedback, setFeedback, category, setCategory
<p className="text-xs text-scale-1000">
Have a technical issue? Contact{' '}
<Link href="/support/new">
- <span className="cursor-pointer transition-colors text-brand-900 hover:text-brand-1200">
- Supabase Support
- </span>
+ <a>
+ <span className="cursor-pointer transition-colors text-brand-900 hover:text-brand-1200">
+ Supabase support
+ </span>
+ </a>
</Link>{' '}
or{' '}
<a href="https://supabase.com/docs" target="_blank">
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index b0ca15e62c8..c9c3218672a 100644
--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -120,8 +120,8 @@ const TableEditorMenu: FC<Props> = ({
</>
}
>
- <span className="text-scale-900">schema</span>{' '}
- <span className="text-scale-1200">{schema.name}</span>
+ <span className="text-sm text-scale-900">schema</span>{' '}
+ <span className="text-sm text-scale-1200">{schema.name}</span>
</Listbox.Option>
))}
</Listbox>
@@ -151,7 +151,6 @@ const TableEditorMenu: FC<Props> = ({
{/* Table search input */}
<div className="block mb-2 px-3">
<Input
- // layout="vertical"
className="border-none"
icon={
<div className="text-scale-900">
diff --git a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
index a01167d2099..ff4da97216d 100644
--- a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
+++ b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
@@ -327,7 +327,7 @@ const SizeToggleButton = observer(() => {
size="tiny"
shadow={false}
onClick={maximizeEditor}
- icon={<IconChevronDown className="text-gray-400" size="tiny" strokeWidth={2} />}
+ icon={<IconChevronDown className="text-gray-1100" size="tiny" strokeWidth={2} />}
tooltip={{
title: 'Maximize editor',
position: 'top',
@@ -340,7 +340,7 @@ const SizeToggleButton = observer(() => {
size="tiny"
shadow={false}
onClick={restorePanelSize}
- icon={<IconChevronUp className="text-gray-400" size="tiny" strokeWidth={2} />}
+ icon={<IconChevronUp className="text-gray-1100" size="tiny" strokeWidth={2} />}
tooltip={{
title: 'Restore panel size',
position: 'top',
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.js
index 0a2fd53df1e..1fe5b5c22b6 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.js
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.js
@@ -8,10 +8,10 @@ const FileExplorerHeaderSelection = ({
onUnselectAllItems = () => {},
}) => {
return (
- <div className="px-1 py-1 rounded-t-md bg-green-500 flex items-center shadow z-10 h-[40px]">
+ <div className="px-1 py-1 rounded-t-md bg-green-600 flex items-center shadow z-10 h-[40px]">
<Button
icon={<IconX size={16} strokeWidth={2} />}
- type="primary"
+ type="text"
shadow={false}
onClick={onUnselectAllItems}
/>
@@ -29,7 +29,7 @@ const FileExplorerHeaderSelection = ({
>
Download
</Button>
- <div className="border-r border-green-700 py-3 opacity-50" />
+ <div className="border-r border-green-800 py-3 opacity-50" />
<Button
icon={<IconTrash2 size={16} strokeWidth={2} />}
type="primary"
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js
index 2360378e63b..7c4ed36deed 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js
@@ -236,21 +236,11 @@ const FileExplorerRow = ({
<p className="text-sm w-full truncate">{item.name}</p>
) : (
<>
- <p className="text-sm truncate" style={{ width: '30%', minWidth: '250px' }}>
- {item.name}
- </p>
- <p className="text-sm truncate" style={{ width: '15%', minWidth: '100px' }}>
- {size}
- </p>
- <p className="text-sm truncate" style={{ width: '15%', minWidth: '100px' }}>
- {mimeType}
- </p>
- <p className="text-sm truncate" style={{ width: '20%', minWidth: '180px' }}>
- {createdAt}
- </p>
- <p className="text-sm truncate" style={{ width: '20%', minWidth: '175px' }}>
- {updatedAt}
- </p>
+ <p className="text-sm truncate w-[30%] min-w-[250px]">{item.name}</p>
+ <p className="text-sm truncate w-[15%] min-w-[100px]">{size}</p>
+ <p className="text-sm truncate w-[15%] min-w-[100px]">{mimeType}</p>
+ <p className="text-sm truncate w-[20%] min-w-[180px]">{createdAt}</p>
+ <p className="text-sm truncate w-[20%] min-w-[175px]">{updatedAt}</p>
{/* The 175px here is intentional due to the irregular width of the header checkbox and row icon */}
</>
)}
diff --git a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
index 10808c96c28..a88aa4a1cf0 100644
--- a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
+++ b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
@@ -52,7 +52,7 @@ export default function SchemaFormPanel({
hasChanged ? 'opacity-100' : 'opacity-0 cursor-default'
}`}
>
- <Button onClick={onClickCancel} type="secondary" disabled={!hasChanged}>
+ <Button onClick={onClickCancel} type="default" disabled={!hasChanged}>
{cancelLabel || 'Cancel'}
</Button>
<Button
diff --git a/studio/pages/project/[ref]/auth/policies.tsx b/studio/pages/project/[ref]/auth/policies.tsx
index abeedd20362..2bbabbbdf7f 100644
--- a/studio/pages/project/[ref]/auth/policies.tsx
+++ b/studio/pages/project/[ref]/auth/policies.tsx
@@ -86,7 +86,7 @@ const AuthPolicies = observer(() => {
<div className="flex justify-between items-center">
<div>
<Input
- size="tiny"
+ size="small"
placeholder="Filter tables"
className="block w-full text-sm placeholder-gray-400"
value={PageState.policiesFilter}
diff --git a/studio/pages/project/[ref]/index.tsx b/studio/pages/project/[ref]/index.tsx
index e265233b566..076d15751ff 100644
--- a/studio/pages/project/[ref]/index.tsx
+++ b/studio/pages/project/[ref]/index.tsx
@@ -50,7 +50,7 @@ const Home: NextPage = () => {
{isUndefined(usage) ? (
<div className="w-full flex justify-center items-center space-x-2">
<IconLoader className="animate-spin" size={14} />
- <Typography.Text>Retrieving project usage statistics</Typography.Text>
+ <p className="text-sm">Retrieving project usage statistics</p>
</div>
) : !usage.error && hasProjectData ? (
<ProjectUsage project={project} />
diff --git a/studio/styles/main.scss b/studio/styles/main.scss
index f59668f77c5..cfe8c1eec35 100644
--- a/studio/styles/main.scss
+++ b/studio/styles/main.scss
@@ -110,6 +110,11 @@ input.form-control,
filter: invert(0.8);
}
+select {
+ // [Joshen] Color is hard-coded - I can't figure out how to use the UI library colors
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='transparent' stroke='gray' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 11 9 16 14 11'></polyline></svg>");
+}
+
select option {
@apply text-bg-primary-dark;
}