Skip to content

Commit c767070

Browse files
SaxonFjoshenlim
andauthored
basic typography classes (supabase#37613)
* basic typography classes * Clean up classes for where we use h1 tags * Clean up classes for where we use h2, h3, h4 * Clean up classes for where we use h6 --------- Co-authored-by: Joshen Lim <[email protected]>
1 parent 492568b commit c767070

File tree

50 files changed

+155
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+155
-102
lines changed

apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const FilterPopoverPrimitive = ({
109109
))}
110110
{localFilters.length == 0 && (
111111
<div className="space-y-1 px-3">
112-
<h5 className="text-sm text-foreground-light">No filters applied to this view</h5>
112+
<h5 className="text-foreground-light">No filters applied to this view</h5>
113113
<p className="text-xs text-foreground-lighter">
114114
Add a column below to filter the view
115115
</p>

apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const SortPopoverPrimitive = ({
185185
))}
186186
{localSorts.length === 0 && (
187187
<div className="space-y-1 px-3">
188-
<h5 className="text-sm text-foreground-light">No sorts applied to this view</h5>
188+
<h5 className="text-foreground-light">No sorts applied to this view</h5>
189189
<p className="text-xs text-foreground-lighter">Add a column below to sort the view</p>
190190
</div>
191191
)}

apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const SpamValidation = ({ validationResult }: SpamValidationProps) => {
2525
)}
2626
</div>
2727
<div className="flex flex-col gap-2">
28-
<h5 className="text-sm">
28+
<h5>
2929
{hasSpamWarning
3030
? 'Email has a high probability of being marked as spam - review issues below to improve deliverability.'
3131
: 'Email content is unlikely to be marked as spam'}

apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const TemplatePreview = ({ selectedTemplate }: TemplatePreviewProps) => {
1515
<div className="my-5 h-full space-y-6 px-6">
1616
<div className="space-y-2">
1717
<div className="flex flex-col space-y-2">
18-
<h3 className="text-foreground text-base">{templateName}</h3>
18+
<h3>{templateName}</h3>
1919
<p className="text-foreground-light text-sm">{description}</p>
2020
</div>
2121
</div>

apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const EnableExtensionModal = ({ visible, extension, onCancel }: EnableExtensionM
122122
size="small"
123123
header={
124124
<div className="flex items-baseline gap-2">
125-
<h5 className="text-sm text-foreground">Confirm to enable</h5>
125+
<h5 className="text-foreground">Confirm to enable</h5>
126126
<code className="text-xs">{extension.name}</code>
127127
</div>
128128
}

apps/studio/components/interfaces/Home/AdvisorWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const AdvisorWidget = () => {
8181
let titleContent: React.ReactNode
8282

8383
if (totalIssues === 0) {
84-
titleContent = <h2 className="text-xl">No issues available</h2>
84+
titleContent = <h2>No issues available</h2>
8585
} else {
8686
const issuesText = totalIssues === 1 ? 'issue' : 'issues'
8787
const numberDisplay = totalIssues.toString()
@@ -94,7 +94,7 @@ export const AdvisorWidget = () => {
9494
}
9595

9696
titleContent = (
97-
<h2 className="text-xl">
97+
<h2>
9898
{numberDisplay} {issuesText} need
9999
{totalIssues === 1 ? 's' : ''} <span className={attentionClassName}>attention</span>
100100
</h2>

apps/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const NewProjectPanel = () => {
2525
<div className="flex flex-col space-y-12 md:space-y-20">
2626
<div className="flex h-full flex-col justify-between">
2727
<div className="space-y-2">
28-
<h3 className="text-xl text-foreground">Welcome to your new project</h3>
28+
<h2>Welcome to your new project</h2>
2929
<p className="text-base text-foreground-light">
3030
Your project has been deployed on its own instance, with its own API all set up and
3131
ready to use.
@@ -36,9 +36,7 @@ const NewProjectPanel = () => {
3636
<div className="grid grid-cols-12 gap-4">
3737
<div className="col-span-12 flex flex-col justify-center space-y-8 lg:col-span-7">
3838
<div className="space-y-2">
39-
<h3 className="text-xl text-foreground">
40-
Get started by building out your database
41-
</h3>
39+
<h2>Get started by building out your database</h2>
4240
<p className="text-base text-foreground-light">
4341
Start building your app by creating tables and inserting data. Our Table Editor
4442
makes Postgres as easy to use as a spreadsheet, but there's also our SQL Editor if
@@ -71,7 +69,7 @@ const NewProjectPanel = () => {
7169
{authEnabled && edgeFunctionsEnabled && storageEnabled && (
7270
<div className="flex h-full flex-col justify-between space-y-6">
7371
<div className="max-w-2xl space-y-2">
74-
<h3 className="text-xl text-foreground">Explore our other products</h3>
72+
<h2>Explore our other products</h2>
7573
<p className="text-base text-foreground-light">
7674
Supabase provides all the backend features you need to build a product. You can
7775
use it completely, or just the features you need.
@@ -228,7 +226,7 @@ const NewProjectPanel = () => {
228226
<div className="col-span-12 lg:col-span-4">
229227
<div className="space-y-6">
230228
<div className="space-y-2">
231-
<h3 className="text-xl text-foreground">Connecting to your new project</h3>
229+
<h2>Connecting to your new project</h2>
232230
<p className="text-base text-foreground-light lg:max-w-sm">
233231
Interact with your database through the{' '}
234232
<Link href="https://supabase.com/docs/reference" className="text-brand">

apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ export const GraphiQLTab = () => {
9191
<div className="flex flex-col items-center justify-center flex-1 px-4">
9292
<div className="w-full max-w-md">
9393
<div className="mb-6">
94-
<h1 className="mt-8 mb-2 text-2xl">Enable the GraphQL Extension</h1>
95-
<h2 className="text-sm text-foreground-light">
94+
<h1 className="mt-8 mb-2">Enable the GraphQL Extension</h1>
95+
<p className="text-sm text-foreground-light">
9696
Toggle the switch below to enable the GraphQL extension. You can then use the GraphQL
9797
API with your Supabase Database.
98-
</h2>
98+
</p>
9999
</div>
100100

101101
<ExtensionCard extension={pgGraphqlExtension} />

apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export default function JWTSecretKeysTable() {
258258

259259
<div className="flex flex-col gap-4">
260260
<div className="flex flex-col gap-2">
261-
<h2 className="text-xl">Previously used keys</h2>
261+
<h2>Previously used keys</h2>
262262
<p className="text-sm text-foreground-lighter">
263263
These JWT signing keys are still used to{' '}
264264
<em className="text-brand not-italic">verify tokens</em> that are yet to expire.
@@ -326,7 +326,7 @@ export default function JWTSecretKeysTable() {
326326
{revokedKeys.length > 0 && (
327327
<div className="flex flex-col gap-4">
328328
<div className="flex flex-col gap-2">
329-
<h2 className="text-xl">Revoked keys</h2>
329+
<h2>Revoked keys</h2>
330330
<p className="text-sm text-foreground-lighter">
331331
These keys are no longer used to verify or sign JWTs.
332332
</p>

apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { z } from 'zod'
88
import { useParams } from 'common'
99
import { LogDrainData, useLogDrainsQuery } from 'data/log-drains/log-drains-query'
1010

11+
import { DocsButton } from 'components/ui/DocsButton'
1112
import {
1213
Button,
1314
Form_Shadcn_,
@@ -38,7 +39,6 @@ import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
3839
import { InfoTooltip } from 'ui-patterns/info-tooltip'
3940
import { urlRegex } from '../Auth/Auth.constants'
4041
import { DATADOG_REGIONS, LOG_DRAIN_TYPES, LogDrainType } from './LogDrains.constants'
41-
import { DocsButton } from 'components/ui/DocsButton'
4242

4343
const FORM_ID = 'log-drain-destination-form'
4444

@@ -456,7 +456,7 @@ export function LogDrainDestinationSheetForm({
456456
<>
457457
<div className="border-t mt-4">
458458
<div className="px-content pt-2 pb-3 border-b bg-background-alternative-200">
459-
<h2 className="text-sm text-foreground">Custom Headers</h2>
459+
<h2 className="text-sm">Custom Headers</h2>
460460
<p className="text-xs text-foreground-lighter">
461461
{getHeadersSectionDescription()}
462462
</p>

0 commit comments

Comments
 (0)