The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: more style fixes
Jonathan Summers-Muir8efcf3f76a83
diff --git a/studio/components/interfaces/Authentication/Users/UsersPagination.tsx b/studio/components/interfaces/Authentication/Users/UsersPagination.tsxindex 6d12f0974ea..51629e18e6b 100644--- a/studio/components/interfaces/Authentication/Users/UsersPagination.tsx+++ b/studio/components/interfaces/Authentication/Users/UsersPagination.tsx@@ -18,13 +18,13 @@ const UsersPagination = () => {return (<nav className="flex items-center justify-between overflow-hidden" aria-label="Pagination"><div className="hidden sm:block">- <p className="text-xs text-gray-400">+ <p className="text-xs text-scale-900">Showing- <span className="px-1 font-medium text-gray-400">{PageState.fromRow}</span>+ <span className="px-1 font-medium text-scale-1100">{PageState.fromRow}</span>to- <span className="px-1 font-medium text-gray-400">{PageState.toRow}</span>+ <span className="px-1 font-medium text-scale-1100">{PageState.toRow}</span>of- <span className="px-1 font-medium text-gray-400">{PageState.totalUsers}</span>+ <span className="px-1 font-medium text-scale-1100">{PageState.totalUsers}</span>results</p></div>diff --git a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsxindex 4cb7e7ba1a8..96f1d3a6311 100644--- a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx+++ b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx@@ -1,6 +1,6 @@import { FC } from 'react'import Link from 'next/link'-import { Button, IconAlertCircle, Typography } from '@supabase/ui'+import { Badge, Button, IconAlertCircle, Typography } from '@supabase/ui'import { PostgresTable } from '@supabase/postgres-meta'import { useStore } from 'hooks'@@ -18,20 +18,9 @@ const GridHeaderActions: FC<Props> = ({ table }) => {<div className="space-x-3 flex items-center">{!table.rls_enabled && (<Link href={urlToRLSPolicies}>- <div className="flex items-center space-x-2">- <div- className="- px-2 py-1- border border-yellow-400 border-opacity-10- bg-yellow-400 bg-opacity-10 rounded-md flex items-center- text-yellow-400 space-x-2 hover:bg-opacity-20- transition-opacity- cursor-pointer"- >- <IconAlertCircle strokeWidth={2} size={16} />- <span className="text-xs">RLS not enabled</span>- </div>- </div>+ <Button type="warning" icon={<IconAlertCircle strokeWidth={2} size={14} />}>+ RLS not enabled+ </Button></Link>)}{/* <Button type="text">diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsxindex b706caaabf9..4504af603f0 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx@@ -3,7 +3,16 @@ import Link from 'next/link'import { observer } from 'mobx-react-lite'import { useRouter } from 'next/router'import { isUndefined } from 'lodash'-import { Button, Divider, IconHome, Dropdown, IconUser, Select, Typography } from '@supabase/ui'+import {+ Button,+ Divider,+ IconHome,+ Dropdown,+ IconUser,+ Select,+ Typography,+ IconSettings,+} from '@supabase/ui'import { IS_PLATFORM } from 'lib/constants'import { useStore } from 'hooks'@@ -53,7 +62,7 @@ const NavigationBar: FC<Props> = ({}) => {link: `/project/${projectRef}`,}}/>- <Divider light />+ <div className="h-px w-full bg-scale-500"></div>{productRoutes.map((route) => (<NavigationIconButtonkey={route.key}@@ -61,7 +70,7 @@ const NavigationBar: FC<Props> = ({}) => {isActive={activeRoute === route.key}/>))}- <Divider light />+ <div className="h-px w-full bg-scale-500"></div>{otherRoutes.map((route) => (<NavigationIconButtonkey={route.key}@@ -74,33 +83,30 @@ const NavigationBar: FC<Props> = ({}) => {<Dropdownside="right"align="start"- overlay={[- ...(IS_PLATFORM- ? [- <Dropdown.Item key="header">- <Link href="/account/me">- <a className="block">- <Typography.Text>Account Preferences</Typography.Text>- </a>- </Link>- </Dropdown.Item>,- ]- : []),- <Divider key="d1" light />,- <Dropdown.Misc key="theme">- <div className="w-[240px] py-1 flex items-center justify-between">- <Typography.Text>Theme</Typography.Text>- <Select- value={ui.themeOption}- onChange={(e: any) => ui.onThemeOptionChange(e.target.value)}- >- <Select.Option value="system">System default</Select.Option>- <Select.Option value="dark">Dark</Select.Option>- <Select.Option value="light">Light</Select.Option>- </Select>- </div>- </Dropdown.Misc>,- ]}+ overlay={+ <>+ {IS_PLATFORM && (+ <>+ <Link href="/account/me">+ <Dropdown.Item key="header" icon={<IconSettings size={14} strokeWidth={1.5} />}>+ Account Preferences+ </Dropdown.Item>+ </Link>+ <Dropdown.Seperator />+ </>+ )}+ <Dropdown.Label>Theme</Dropdown.Label>+ <Dropdown.RadioGroup+ key="theme"+ value={ui.themeOption}+ onChange={(e: any) => ui.onThemeOptionChange(e)}+ >+ <Dropdown.Radio value="system">System default</Dropdown.Radio>+ <Dropdown.Radio value="dark">Dark</Dropdown.Radio>+ <Dropdown.Radio value="light">Light</Dropdown.Radio>+ </Dropdown.RadioGroup>+ </>+ }><Button as="span" type="text" size="tiny"><div className="py-1">diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsxindex 2a81fbcd7cc..8ce73246e20 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx@@ -1,6 +1,5 @@import { FC } from 'react'import Link from 'next/link'-import { Typography } from '@supabase/ui'import * as Tooltip from '@radix-ui/react-tooltip'import { Route } from 'components/ui/ui.types'@@ -19,9 +18,9 @@ const NavigationIconButton: FC<Props> = ({ route, isActive = false }) => {className={['transition-all','flex items-center justify-center h-10 w-10 rounded', // Layout- 'bg-scale-200 hover:bg-scale-100', // Light mode- 'text-scale-900 hover:text-scale-1100 ', // Dark mode- `${isActive ? 'bg-scale-1200 shadow-sm hover:bg-scale-1200 text-scale-100' : ''}`,+ 'bg-scale-200 hover:bg-scale-500', // Light mode+ 'text-scale-900 hover:text-scale-1200 ', // Dark mode+ `${isActive ? 'bg-scale-500 shadow-sm hover:bg-scale-1200 text-scale-1200' : ''}`,].join(' ')}>{route.icon}diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsxindex 4495125d1fe..b0ca15e62c8 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx@@ -3,7 +3,6 @@ import { useRouter } from 'next/router'import Link from 'next/link'import {Button,- Divider,Dropdown,Typography,Listbox,@@ -14,17 +13,17 @@ import {IconEdit,IconTrash,IconSearch,- IconPlus,- IconDatabase,IconX,IconLoader,IconRefreshCw,+ Alert,} from '@supabase/ui'import { PostgresSchema, PostgresTable } from '@supabase/postgres-meta'import Base64 from 'lib/base64'import { useStore } from 'hooks'import { SchemaView } from './TableEditorLayout.types'+import ProductMenuItem from 'components/ui/ProductMenu/ProductMenuItem'interface Props {selectedSchema?: string@@ -82,31 +81,28 @@ const TableEditorMenu: FC<Props> = ({const schemaTables =searchText.length === 0? tables- : tables.filter((table) => table.name.toLowerCase().includes(searchText.toLowerCase()))+ : // @ts-ignore+ tables.filter((table) => table.name.toLowerCase().includes(searchText.toLowerCase()))const filteredSchemaViews =searchText.length === 0? schemaViews: schemaViews.filter((view) => view.name.includes(searchText))- // Temp fix - Ideally we'd just take up all the remaining space but- // can't seem to figure that out immediately- const maxScrollHeight = schemaViews.length > 0 ? 270 : 515-return (- <div className="my-6 flex flex-col flex-grow">+ <div className="my-6 mx-4 flex flex-col flex-grow space-y-6">{/* Schema selection dropdown */}- <div className="mx-4">- {!meta.schemas.isInitialized ? (+ <div className="px-3">+ {meta.schemas.isLoading ? (<div className="h-[30px] border border-gray-500 px-3 rounded flex items-center space-x-3">- <IconLoader className="animate-spin" size={14} />- <Typography.Text small>Loading schemas...</Typography.Text>+ <IconLoader className="animate-spin" size={12} />+ <span className="text-xs text-scale-900">Loading schemas...</span></div>) : (<Listbox- icon={<IconDatabase size={16} />}size="tiny"value={selectedSchema}+ // @ts-ignoreonChange={(name: string) => {setSearchText('')setSchemaViews([])@@ -114,157 +110,178 @@ const TableEditorMenu: FC<Props> = ({}}>{schemas.map((schema) => (- <Listbox.Option key={schema.id} value={schema.name} label={schema.name}>- {schema.name}+ <Listbox.Option+ key={schema.id}+ value={schema.name}+ // @ts-ignore+ label={+ <>+ <span className="text-scale-900">schema</span> <span>{schema.name}</span>+ </>+ }+ >+ <span className="text-scale-900">schema</span>{' '}+ <span className="text-scale-1200">{schema.name}</span></Listbox.Option>))}</Listbox>)}</div>- <div className="mx-4 my-4 space-y-1">- {/* Add new table button */}+ <div className="space-y-1">{selectedSchema === 'public' && (- <Button- block- icon={<IconPlus />}- type="text"- style={{ justifyContent: 'start' }}- onClick={onAddTable}- >- New table- </Button>+ <div className="px-3">+ {/* Add new table button */}+ <Button+ block+ size="tiny"+ icon={+ <div className="text-scale-900">+ <IconEdit size={14} strokeWidth={1.5} />+ </div>+ }+ type="default"+ style={{ justifyContent: 'start' }}+ onClick={onAddTable}+ >+ New table+ </Button>+ </div>)}-{/* Table search input */}- <Input- layout="vertical"- icon={<IconSearch size="tiny" />}- className="sbui-input-no-border"- placeholder="Search for a table"- onChange={(e) => setSearchText(e.target.value)}- value={searchText}- size="tiny"- actions={- searchText && (- <IconX- size={'tiny'}- className="cursor-pointer mx-1"- onClick={() => setSearchText('')}- />- )- }- />+ <div className="block mb-2 px-3">+ <Input+ // layout="vertical"+ className="border-none"+ icon={+ <div className="text-scale-900">+ <IconSearch size={12} strokeWidth={1.5} />+ </div>+ }+ placeholder="Filter tables"+ onChange={(e) => setSearchText(e.target.value)}+ value={searchText}+ size="tiny"+ actions={+ searchText && (+ <Button size="tiny" type="text" onClick={() => setSearchText('')}>+ <IconX size={12} strokeWidth={2} />+ </Button>+ )+ }+ />+ </div></div>{/* List of tables belonging to selected schema */}{schemaTables.length > 0 && (- <div className="mx-2 mt-6 space-y-2">- <div className="px-4 w-full flex items-center justify-between">- <Typography.Text type="secondary" small>- All tables- </Typography.Text>- <div className="cursor-pointer" onClick={refreshTables}>- <Typography.Text type="secondary">- <IconRefreshCw className={isRefreshing ? 'animate-spin' : ''} size={14} />- </Typography.Text>- </div>- </div>- <div className="overflow-y-auto space-y-1" style={{ maxHeight: maxScrollHeight }}>+ <Menu type="pills">+ <Menu.Group+ // @ts-ignore+ title={+ <>+ <div className="w-full flex items-center justify-between">+ <span>All tables</span>+ <button className="cursor-pointer" onClick={refreshTables}>+ <IconRefreshCw className={isRefreshing ? 'animate-spin' : ''} size={14} />+ </button>+ </div>+ </>+ }+ />++ <div>{schemaTables.map((table) => {const isActive = Number(id) === table.idreturn (- <Link key={table.name} href={`/project/${projectRef}/editor/${table.id}`}>- <a className="block editor-product-menu">- <Menu.Item rounded active={isActive}>- <div className="flex justify-between py-[2px]">- <Typography.Text className="truncate flex items-center">- {table.name}- </Typography.Text>- {isActive && (- <Dropdown- side="bottom"- align="start"- overlay={[- <Dropdown.Item- key="edit-table"- icon={<IconEdit size="tiny" />}- onClick={() => onEditTable(table)}- >- Edit Table- </Dropdown.Item>,- <Dropdown.Item- key="duplicate-table"- icon={<IconCopy size="tiny" />}- onClick={() => onDuplicateTable(table)}- >- Duplicate Table- </Dropdown.Item>,- <Divider key="divider" light />,- <Dropdown.Item- key="delete-table"- icon={<IconTrash size="tiny" />}- onClick={() => onDeleteTable(table)}- >- Delete Table- </Dropdown.Item>,- ]}+ <ProductMenuItem+ key={table.name}+ url={`/project/${projectRef}/editor/${table.id}`}+ name={table.name}+ isActive={isActive}+ action={+ isActive && (+ <Dropdown+ size="small"+ side="bottom"+ align="start"+ overlay={[+ <Dropdown.Item+ key="edit-table"+ icon={<IconEdit size="tiny" />}+ onClick={() => onEditTable(table)}+ >+ Edit Table+ </Dropdown.Item>,+ <Dropdown.Item+ key="duplicate-table"+ icon={<IconCopy size="tiny" />}+ onClick={() => onDuplicateTable(table)}>- <Button- as="span"- type="text"- icon={<IconChevronDown />}- style={{ padding: '3px' }}- />- </Dropdown>- )}- </div>- </Menu.Item>- </a>- </Link>+ Duplicate Table+ </Dropdown.Item>,+ <Dropdown.Seperator />,+ <Dropdown.Item+ key="delete-table"+ icon={<IconTrash size="tiny" />}+ onClick={() => onDeleteTable(table)}+ >+ Delete Table+ </Dropdown.Item>,+ ]}+ >+ <div className="text-scale-900 transition-colors hover:text-scale-1200">+ <IconChevronDown size={14} strokeWidth={2} />+ </div>+ </Dropdown>+ )+ }+ />)})}</div>- </div>+ </Menu>)}{/* List of views belonging to selected schema */}{filteredSchemaViews.length > 0 && (- <div className="mx-2 mt-6 space-y-2">- <div className="px-4 w-full flex items-center justify-between">- <Typography.Text type="secondary" small>- All Views- </Typography.Text>- </div>- <div className="overflow-y-auto space-y-1" style={{ maxHeight: maxScrollHeight }}>- {schemaViews.map((view: SchemaView) => {- const viewId = Base64.encode(JSON.stringify(view))- const isActive = id === viewId- return (- <Link key={viewId} href={`/project/${projectRef}/editor/${viewId}`}>- <div className="dash-product-menu">- <Menu.Item key={viewId} rounded active={isActive}>- <div className="flex justify-between">- <Typography.Text className="truncate">{view.name}</Typography.Text>- </div>- </Menu.Item>+ <Menu type="pills">+ <Menu.Group+ // @ts-ignore+ title={+ <>+ <div className="w-full flex items-center justify-between">+ <span>All views</span>+ </div>+ </>+ }+ />++ {schemaViews.map((view: SchemaView) => {+ const viewId = Base64.encode(JSON.stringify(view))+ const isActive = id === viewId+ return (+ <Link key={viewId} href={`/project/${projectRef}/editor/${viewId}`}>+ <Menu.Item key={viewId} rounded active={isActive}>+ <div className="flex justify-between">+ <Typography.Text className="truncate">{view.name}</Typography.Text></div>- </Link>- )- })}- </div>- </div>+ </Menu.Item>+ </Link>+ )+ })}+ </Menu>)}{searchText.length > 0 && schemaTables.length === 0 && filteredSchemaViews.length === 0 && (- <div className="my-2 mx-6">- <Typography.Text type="secondary">No tables or views found</Typography.Text>+ <div className="px-3">+ <Alert title="No tables or views found">This schema has no tables or views</Alert></div>)}{searchText.length === 0 && schemaTables.length === 0 && filteredSchemaViews.length === 0 && (- <div className="my-2 mx-6">- <Typography.Text type="secondary">No tables available</Typography.Text>+ <div className="px-3">+ <Alert title="No tables available">There are no tables in this schema</Alert></div>)}</div>diff --git a/studio/components/to-be-cleaned/forms/SecretField.tsx b/studio/components/to-be-cleaned/forms/SecretField.tsxindex eca6d96435c..602a4c408b9 100644--- a/studio/components/to-be-cleaned/forms/SecretField.tsx+++ b/studio/components/to-be-cleaned/forms/SecretField.tsx@@ -37,9 +37,9 @@ const SecretField: React.FC = (props: any) => {/><div className="px-2" onClick={onToggleVisible}>{visible ? (- <IconEye className="text-gray-400" />+ <IconEye className="text-scale-900" />) : (- <IconEyeOff className="text-gray-400" />+ <IconEyeOff className="text-scale-900" />)}</div></div>diff --git a/studio/components/ui/ProductMenu/ProductMenu.tsx b/studio/components/ui/ProductMenu/ProductMenu.tsxindex 7256bf868e1..e6ab18109bd 100644--- a/studio/components/ui/ProductMenu/ProductMenu.tsx+++ b/studio/components/ui/ProductMenu/ProductMenu.tsx@@ -10,12 +10,12 @@ interface Props {const ProductMenu: FC<Props> = ({ page, menu }) => {return (- <div className="my-3 flex flex-col space-y-8 overflow-y-auto">+ <div className="flex flex-col space-y-8 overflow-y-auto"><Menu type="pills">{menu.map((group: ProductMenuGroup, idx: number) => (<>- <div key={group.title} className="space-y-8 mb-4">- <div className="mx-4">+ <div key={group.title} className="space-y-8 my-6">+ <div className="mx-3"><Menu.Group//@ts-ignoretitle={diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsxindex 2abc230c309..1c30b333eb8 100644--- a/studio/pages/project/[ref]/auth/settings.tsx+++ b/studio/pages/project/[ref]/auth/settings.tsx@@ -490,7 +490,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_APPLE_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://developer.apple.com/account/resources/identifiers/add/bundleId"target="_blank">@@ -519,7 +519,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_AZURE_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app"target="_blank">@@ -548,7 +548,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_BITBUCKET_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/"target="_blank">@@ -577,7 +577,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_DISCORD_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://discord.com/developers/applications#top"target="_blank">@@ -606,7 +606,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_FACEBOOK_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://developers.facebook.com/apps/"target="_blank">@@ -635,7 +635,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_GITHUB_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://github.com/settings/applications/new"target="_blank">@@ -664,7 +664,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_GITLAB_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://gitlab.com/oauth/applications"target="_blank">@@ -693,7 +693,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_GOOGLE_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://console.developers.google.com/apis/credentials"target="_blank">@@ -780,7 +780,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_TWITCH_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://dev.twitch.tv/console"target="_blank">@@ -809,7 +809,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_TWITTER_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://developer.twitter.com/en/portal/dashboard"target="_blank">@@ -837,7 +837,11 @@ const Settings = () => {name="EXTERNAL_SLACK_ENABLED"addOns={externalProvidersModel.EXTERNAL_SLACK_ENABLED && (- <a className="pl-4 text-gray-400" href="https://api.slack.com/apps" target="_blank">+ <a+ className="pl-4 text-scale-900"+ href="https://api.slack.com/apps"+ target="_blank"+ >Create new credentials</a>)@@ -863,7 +867,7 @@ const Settings = () => {addOns={externalProvidersModel.EXTERNAL_SPOTIFY_ENABLED && (<a- className="pl-4 text-gray-400"+ className="pl-4 text-scale-900"href="https://developer.spotify.com/dashboard/"target="_blank">@@ -942,7 +946,7 @@ const AuditLog = ({ interval, projectRef }: any) => {</Typography.Title><div className="flex-1 text-right"><Button- type="outline"+ type="default"className="hover:border-gray-400"disabled={isLoading}loading={isLoading}diff --git a/studio/styles/main.scss b/studio/styles/main.scssindex 70056bbc212..c017c5f4886 100644--- a/studio/styles/main.scss+++ b/studio/styles/main.scss@@ -33,27 +33,34 @@ body,box-sizing: border-box;}-// input,-// input[type='text'],-// input[type='email'],-// input[type='url'],-// input[type='password'],-// input[type='number'],-// input[type='date'],-// input[type='datetime-local'],-// input[type='month'],-// input[type='search'],-// input[type='tel'],-// input[type='time'],-// input[type='week'],-// input[multiple],-// textarea,-// select-.form-control+.form-group .form-text,+.Form .form-text {+ @apply text-scale-900;+}++.form-group input,+.form-group input[type='text'],+.form-group input[type='email'],+.form-group input[type='url'],+.form-group input[type='password'],+.form-group input[type='number'],+.form-group input[type='date'],+.form-group input[type='datetime-local'],+.form-group input[type='month'],+.form-group input[type='search'],+.form-group input[type='tel'],+.form-group input[type='time'],+.form-group input[type='week'],+.form-group input[multiple],+.form-group textarea,+.form-group select,+input.form-control,+.form-control input,+.form-control textarea{@apply block ;@apply box-border ;- @apply w-full ;+ // @apply w-full ;@apply rounded-md ;@apply shadow-sm ;@apply transition-all;@@ -73,40 +80,39 @@ body,@apply focus:ring-current focus:ring-2;}-// input,-// select,-// textarea {-// @apply px-4 py-2;-// }--// input:focus,-// input[type='text']:focus,-// input[type='email']:focus,-// input[type='url']:focus,-// input[type='password']:focus,-// input[type='number']:focus,-// input[type='date']:focus,-// input[type='datetime-local']:focus,-// input[type='month']:focus,-// input[type='search']:focus,-// input[type='tel']:focus,-// input[type='time']:focus,-// input[type='week']:focus,-// input[multiple]:focus,-// textarea:focus,-// select:focus,-// input:focus-+.form-group input,+.form-group select,+.form-group textarea {+ @apply px-4 py-2;+}++.form-group input:focus,+.form-group input[type='text']:focus,+.form-group input[type='email']:focus,+.form-group input[type='url']:focus,+.form-group input[type='password']:focus,+.form-group input[type='number']:focus,+.form-group input[type='date']:focus,+.form-group input[type='datetime-local']:focus,+.form-group input[type='month']:focus,+.form-group input[type='search']:focus,+.form-group input[type='tel']:focus,+.form-group input[type='time']:focus,+.form-group input[type='week']:focus,+.form-group input[multiple]:focus,+.form-group textarea:focus,+.form-group select:focus,+.form-group input:focus.form-control:focus{box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.1);}// icons in date / time inputs-// .dark input[type='date']::-webkit-calendar-picker-indicator,-// .dark input[type='datetime-local']::-webkit-calendar-picker-indicator,-// .dark input[type='time']::-webkit-calendar-picker-indicator {-// filter: invert(0.8);-// }+.dark input[type='date']::-webkit-calendar-picker-indicator,+.dark input[type='datetime-local']::-webkit-calendar-picker-indicator,+.dark input[type='time']::-webkit-calendar-picker-indicator {+ filter: invert(0.8);+}select option {@apply text-bg-primary-dark;@@ -127,9 +133,9 @@ input[type='submit']:hover {@apply btn-primary-hover;}-// input::placeholder {-// @apply text-input-placeholder-light dark:text-input-placeholder-dark;-// }+.form-group input::placeholder {+ @apply text-scale-900;+}.billing-input-fixed {@apply shadow appearance-none border rounded w-full py-2 px-3 text-gray-300 leading-tight bg-gray-700;diff --git a/studio/styles/ui.scss b/studio/styles/ui.scssindex 062b6145e52..590d9e06a31 100644--- a/studio/styles/ui.scss+++ b/studio/styles/ui.scss@@ -67,7 +67,7 @@.Form .form-text,.Form .form-error {- @apply block text-sm text-gray-400 my-1;+ @apply block text-sm text-scale-900 my-1;display: block;margin-left: calc(33% + 0.5rem);width: 100%;diff --git a/studio/tailwind.config.js b/studio/tailwind.config.jsindex f3a4c14acc4..cba210c3d2c 100644--- a/studio/tailwind.config.js+++ b/studio/tailwind.config.js@@ -161,8 +161,8 @@ module.exports = ui({dark: 'var(--colors-scale4)', // '#1a1a1a',},'table-border': {- light: 'var(--colors-scale3)', // gray[100],- dark: 'var(--colors-scale5)', // '#1a1a1a',+ light: 'var(--colors-scale4)', // gray[100],+ dark: 'var(--colors-scale4)', // '#1a1a1a',},/* Panels */