The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update auto API docs
Jonathan Summers-Muire9af634b9bac
diff --git a/studio/components/to-be-cleaned/DisplayProjectSettings.tsx b/studio/components/to-be-cleaned/DisplayProjectSettings.tsxindex d44d2715005..6ab1f91e4a4 100644--- a/studio/components/to-be-cleaned/DisplayProjectSettings.tsx+++ b/studio/components/to-be-cleaned/DisplayProjectSettings.tsx@@ -2,8 +2,8 @@ import useSWR from 'swr'import { FC } from 'react'import { useRouter } from 'next/router'import { get } from 'lib/common/fetch'+import { Badge, IconAlertCircle, Input, Loading, Typography } from '@supabase/ui'import { JwtSecretUpdateStatus, ProjectEvents } from '@supabase/shared-types/out/events'-import { IconAlertCircle, Input, Loading, Typography } from '@supabase/ui'import { useJwtSecretUpdateStatus } from 'hooks'import { API_URL } from 'lib/constants'@@ -71,15 +71,17 @@ export const DisplayApiSettings = () => {label={<>{x.tags?.split(',').map((x: any, i: number) => (- <code key={`${x}${i}`} className="text-xs bg-gray-500 text-white px-2">+ <code key={`${x}${i}`} className="text-xs text-white px-2">{x}</code>))}{x.tags === 'service_role' && (- <code className="text-xs bg-red-500 px-2 ml-1 text-white">{'secret'}</code>+ <>+ <code className="text-xs bg-red-900 px-2 ml-1 text-white">{'secret'}</code>+ </>)}{x.tags === 'anon' && (- <code className="text-xs bg-gray-500 text-white px-2 ml-1">{'public'}</code>+ <code className="text-xs text-white px-2 ml-1">{'public'}</code>)}</>}diff --git a/studio/components/to-be-cleaned/Docs/Description.js b/studio/components/to-be-cleaned/Docs/Description.jsindex 67bec22310c..a6258425d14 100644--- a/studio/components/to-be-cleaned/Docs/Description.js+++ b/studio/components/to-be-cleaned/Docs/Description.js@@ -1,6 +1,6 @@import { useState } from 'react'import { useRouter } from 'next/router'-import { IconLoader } from '@supabase/ui'+import { Button, IconLoader } from '@supabase/ui'import { useStore } from 'hooks'import AutoTextArea from 'components/to-be-cleaned/forms/AutoTextArea'@@ -70,31 +70,27 @@ export default function Description({ content, metadata, onChange = () => {} })onChange={(e) => setValue(e.target.value)}/><div- className={`flex ${+ className={`flex items-center gap-2 ${hasChanged ? 'opacity-100' : 'opacity-0 cursor-default h-0'} ${animateCss}`}>- <button+ <Button+ type="default"disabled={!hasChanged}- className={`${secondaryCss} ${hasChanged ? '' : ' cursor-default'} mr-2`}onClick={() => {setValue(contentText)setIsUpdating(false)}}>Cancel- </button>- <button- disabled={!hasChanged}- className={`${primaryCss} ${hasChanged ? '' : ' cursor-default'} mr-2`}- onClick={updateDescription}- >+ </Button>+ <Button disabled={!hasChanged} onClick={updateDescription}>{isUpdating ? (<IconLoader className="animate-spin mx-auto" size={14} strokeWidth={2} />) : (<span>Save</span>)}- </button>+ </Button></div></div>)diff --git a/studio/components/to-be-cleaned/Docs/Pages/Authentication.js b/studio/components/to-be-cleaned/Docs/Pages/Authentication.jsindex 94313c915bd..41f1f55c63e 100644--- a/studio/components/to-be-cleaned/Docs/Pages/Authentication.js+++ b/studio/components/to-be-cleaned/Docs/Pages/Authentication.js@@ -42,9 +42,10 @@ export default function Authentication({ autoApiService, selectedLang }) {</p><h4 className="mt-8">Realtime Security</h4><p>- Realtime server broadcasts database changes to authorized users depending on your Row Level Security (RLS) policies.- We recommend that you enable row level security and set row security policies on tables that you add to the publication.- However, you may choose to disable RLS on a table and have changes broadcast to all connected clients.+ Realtime server broadcasts database changes to authorized users depending on your Row+ Level Security (RLS) policies. We recommend that you enable row level security and set+ row security policies on tables that you add to the publication. However, you may choose+ to disable RLS on a table and have changes broadcast to all connected clients.</p><p>You can get started by running{' '}@@ -53,8 +54,8 @@ export default function Authentication({ autoApiService, selectedLang }) {supabase_realtime; commit;</code>. This creates a publication which is not subscribed to any table and completely- disables Realtime on the Supabase client. Then, you can add any table from your `public` schema and- changes will be broadcast accordingly.+ disables Realtime on the Supabase client. Then, you can add any table from your `public`+ schema and changes will be broadcast accordingly.</p></article><article className="code">diff --git a/studio/components/to-be-cleaned/Docs/Param.js b/studio/components/to-be-cleaned/Docs/Param.jsindex ecdd172b5ca..c78e6a18345 100644--- a/studio/components/to-be-cleaned/Docs/Param.js+++ b/studio/components/to-be-cleaned/Docs/Param.js@@ -1,3 +1,4 @@+import { Badge } from '@supabase/ui'import Description from './Description'const Param = ({@@ -12,22 +13,19 @@ const Param = ({return (<><div className="flex justify-between items-center mb-4 ">- <code className="inline-block px-4 inline-block">- {name}: {type}- </code>- <span className="text-gray-400 text-xs uppercase mx-4 inline-block">- {required ? 'required' : 'optional'}- </span>+ <code className="px-4 inline-block">{name}</code>+ <Badge color={required ? 'amber' : 'scale'}>{required ? 'Required' : 'Optional'}</Badge></div>{format && format != type && (- <div className="mb-4">- <h5 className="uppercase text-xs font-medium text-gray-400">Format</h5>- <code className="p-0 text-sm bg-white dark:bg-gray-700">{format}</code>+ <div className="mb-4 flex items-center gap-2">+ <label className="uppercase text-xs font-mono text-scale-900">Format:</label>+ <code className="p-0">{format}</code>+ {type}</div>)}{description !== false && (<>- <h5 className="uppercase text-xs font-medium text-gray-400">Description</h5>+ <label className="uppercase text-xs font-mono text-scale-900">Description</label><Description content={description} metadata={metadata} onChange={onDesciptionUpdated} /></>diff --git a/studio/components/to-be-cleaned/SimpleCodeBlock.tsx b/studio/components/to-be-cleaned/SimpleCodeBlock.tsxindex 45082b9dba0..a22de412035 100644--- a/studio/components/to-be-cleaned/SimpleCodeBlock.tsx+++ b/studio/components/to-be-cleaned/SimpleCodeBlock.tsx@@ -74,7 +74,7 @@ const SimpleCodeBlock: FC<any> = ({ children, className: languageClassName, meta>{({ className, style, tokens, getLineProps, getTokenProps }) => {return (- <div className="Code codeBlockWrapper">+ <div className="Code codeBlockWrapper group"><pre ref={target} className={`codeBlock ${className}`}>{tokens.map((line, i) => {const lineProps = getLineProps({ line, key: i })@@ -92,13 +92,16 @@ const SimpleCodeBlock: FC<any> = ({ children, className: languageClassName, meta)})}</pre>- <Button- type="secondary"- onClick={() => handleCopyCode(children)}- style={{ padding: '2px 5px' }}- >- {showCopied ? 'Copied' : 'Copy'}- </Button>+ <div className="invisible opacity-0 group-hover:visible group-hover:opacity-100 transition-opacity absolute right-0 top-0">+ <Button+ size="tiny"+ type="default"+ onClick={() => handleCopyCode(children)}+ // style={{ padding: '2px 5px' }}+ >+ {showCopied ? 'Copied' : 'Copy'}+ </Button>+ </div></div>)}}diff --git a/studio/components/to-be-cleaned/forms/AutoTextArea.js b/studio/components/to-be-cleaned/forms/AutoTextArea.jsindex b67408e9fbd..01aed57c14f 100644--- a/studio/components/to-be-cleaned/forms/AutoTextArea.js+++ b/studio/components/to-be-cleaned/forms/AutoTextArea.js@@ -1,3 +1,4 @@+import { Input } from '@supabase/ui'import React, { useState, useEffect, useRef } from 'react'const AutoTextArea = (props) => {@@ -6,20 +7,20 @@ const AutoTextArea = (props) => {const [textAreaHeight, setTextAreaHeight] = useState('auto')const [parentHeight, setParentHeight] = useState('auto')- useEffect(() => {- setParentHeight(`${textAreaRef?.current.scrollHeight}px`)- setTextAreaHeight(`${textAreaRef?.current.scrollHeight}px`)- }, [text])+ // useEffect(() => {+ // setParentHeight(`${textAreaRef?.current.scrollHeight}px`)+ // setTextAreaHeight(`${textAreaRef?.current.scrollHeight}px`)+ // }, [text])- const onChangeHandler = (event) => {- setTextAreaHeight('auto')- setParentHeight(`${textAreaRef?.current.scrollHeight}px`)- setText(event.target.value)+ // const onChangeHandler = (event) => {+ // setTextAreaHeight('auto')+ // setParentHeight(`${textAreaRef?.current.scrollHeight}px`)+ // setText(event.target.value)- if (props.onChange) {- props.onChange(event)- }- }+ // if (props.onChange) {+ // props.onChange(event)+ // }+ // }return (<div@@ -27,16 +28,18 @@ const AutoTextArea = (props) => {minHeight: parentHeight,}}>- <textarea+ <Input.TextArea{...props}- ref={textAreaRef}+ label={props.label}+ size="small"+ // ref={textAreaRef}rows={1}style={{height: textAreaHeight,overflow: 'hidden',resize: 'none',}}- onChange={onChangeHandler}+ // onChange={onChangeHandler}/></div>)diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsxindex c6c2895b69e..725c2ec4d05 100644--- a/studio/pages/project/[ref]/api/index.tsx+++ b/studio/pages/project/[ref]/api/index.tsx@@ -1,6 +1,6 @@import useSWR, { mutate } from 'swr'import { useRouter } from 'next/router'-import { Typography } from '@supabase/ui'+import { Button, Dropdown, IconKey, Typography } from '@supabase/ui'import { FC, createContext, useContext, useEffect, useState } from 'react'import { observer, useLocalObservable } from 'mobx-react-lite'@@ -67,11 +67,13 @@ const PageConfig = () => {}export default withAuth(observer(PageConfig))+const DEFAULT_KEY = { name: 'hide', key: 'SUPABASE_KEY' }+const DocView: FC<any> = observer(({}) => {const PageState: any = useContext(PageContext)const router = useRouter()const [selectedLang, setSelectedLang] = useState<any>('js')- const [showApiKey, setShowApiKey] = useState<any>('')+ const [showApiKey, setShowApiKey] = useState<any>(DEFAULT_KEY)const { data, error }: any = useSWR(`${API_URL}/props/project/${PageState.projectRef}/api`, get)const API_KEY = data?.autoApiService?.internalApiKey@@ -129,19 +131,16 @@ const DocView: FC<any> = observer(({}) => {<div className="Docs h-full w-full overflow-y-auto" key={PAGE_KEY}><div className="Docs--inner-wrapper"><div className="sticky top-0 w-full flex flex-row-reverse z-40 ">- <div- className="border-b border-gray-200 dark:border-gray-500 bg-white dark:bg-gray-700"- style={{ width: '50%' }}- >+ <div className="bg-scale-100 dark:bg-scale-300" style={{ width: '50%' }}><div className="z-0 flex "><buttontype="button"onClick={() => setSelectedLang('js')}className={`${selectedLang == 'js'- ? 'text-gray-600 dark:text-gray-300'- : 'text-gray-300 dark:text-gray-400'- } relative inline-flex items-center p-1 px-2 bg-coolGray-100 dark:bg-gray-600 border-r border-gray-200 dark:border-gray-500 text-sm font-medium hover:text-gray-600 dark:hover:text-gray-300 focus:z-10 focus:outline-none focus:border-blue-300 focus:ring-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150`}+ ? 'text-scale-1200 font-medium bg-scale-300 dark:bg-scale-200'+ : 'text-scale-900 bg-scale-100 dark:bg-scale-100'+ } relative inline-flex items-center p-1 px-2 border-r border-scale-200 text-sm hover:text-scale-1200 focus:outline-none transition`}>JavaScript</button>@@ -150,24 +149,52 @@ const DocView: FC<any> = observer(({}) => {onClick={() => setSelectedLang('bash')}className={`${selectedLang == 'bash'- ? 'text-gray-600 dark:text-gray-300'- : 'text-gray-300 dark:text-gray-400'- } relative inline-flex items-center p-1 px-2 bg-coolGray-100 dark:bg-gray-600 border-r border-gray-200 dark:border-gray-500 text-sm font-medium hover:text-gray-600 dark:hover:text-gray-300 focus:z-10 focus:outline-none focus:border-blue-300 focus:ring-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150`}+ ? 'text-scale-1200 font-medium bg-scale-300 dark:bg-scale-200'+ : 'text-scale-900 bg-scale-100 dark:bg-scale-100'+ } relative inline-flex items-center p-1 px-2 border-r border-scale-200 text-sm hover:text-scale-1200 focus:outline-none transition`}>Bash</button>{selectedLang == 'bash' && (<div className="flex">- <span className="text-sm text-gray-600 dark:text-gray-300 p-1 pl-2">Key:</span>- <select- className="text-sm text-gray-600 dark:text-gray-300 border-none cursor-pointer p-0 pl-2 pr-8"- value={showApiKey}- onChange={(e) => setShowApiKey(e.target.value)}+ <div className="flex items-center gap-2 text-xs text-scale-900 p-1 pl-2">+ <IconKey size={12} strokeWidth={1.5} />+ <span>Project API key :</span>+ </div>+ <Dropdown+ align="end"+ side="bottom"+ className="text-sm text-scale-900 border-none cursor-pointer p-0 pl-2 pr-8 bg-transparent"+ overlay={+ <>+ <Dropdown.Item onClick={() => setShowApiKey(DEFAULT_KEY)}>+ hide+ </Dropdown.Item>+ <Dropdown.Item+ onClick={() =>+ setShowApiKey({+ key: autoApiService?.defaultApiKey,+ name: 'anon (public)',+ })+ }+ >+ anon (public)+ </Dropdown.Item>+ <Dropdown.Item+ onClick={() =>+ setShowApiKey({+ key: autoApiService?.serviceApiKey,+ name: 'service_role (secret)',+ })+ }+ >+ service_role (secret)+ </Dropdown.Item>+ </>+ }>- <option value="">Hide</option>- <option value={autoApiService?.defaultApiKey}>{'anon key'}</option>- <option value={autoApiService?.serviceApiKey}>{'service key'}</option>- </select>+ <Button type="default">{showApiKey.name}</Button>+ </Dropdown></div>)}</div>@@ -182,7 +209,7 @@ const DocView: FC<any> = observer(({}) => {resources={PageState.resources}definitions={definitions}paths={paths}- showApiKey={showApiKey}+ showApiKey={showApiKey.key}refreshDocs={refreshDocs}/>) : rpc ? (@@ -192,14 +219,14 @@ const DocView: FC<any> = observer(({}) => {rpcId={rpc}paths={paths}rpcs={PageState.rpcs}- showApiKey={showApiKey}+ showApiKey={showApiKey.key}refreshDocs={refreshDocs}/>) : (<GeneralContentautoApiService={autoApiService}selectedLang={selectedLang}- showApiKey={showApiKey}+ showApiKey={showApiKey.key}page={page}/>)}@@ -267,8 +294,8 @@ const RpcContent = ({const paramList = rpcParams.map((x) => x.type).join(', ')return (<>- <h2 className="text-white mt-0">- <code className="text-lg px-4 py-2">{meta.id}</code>+ <h2 className="text-scale-1200 mt-0">+ <span className="text-2xl px-6">{meta.id}</span></h2><div className="doc-section">@@ -295,7 +322,7 @@ const RpcContent = ({</div>{rpcParams.length > 0 && (<div>- <h2 className="text-white capitalize mt-0">Function Arguments</h2>+ <h3 className="text-scale-1200 capitalize mt-0 px-6">Function Arguments</h3>{rpcParams.map((x) => {return (<div className="doc-section">@@ -345,8 +372,8 @@ const ResourceContent = ({return (<>- <h2 className="text-black dark:text-white mt-0">- <code className="text-lg px-4 py-2">{resourceId}</code>+ <h2 className="text-scale-1200mt-0">+ <span className="text-2xl px-6 py-2">{resourceId}</span></h2><div className="doc-section">@@ -361,10 +388,10 @@ const ResourceContent = ({</div>{properties.length > 0 && (<div>- <h2 className="text-white capitalize mt-0">Fields</h2>+ {/* <h2 className="text-white capitalize mt-0 px-6">Fields</h2> */}{properties.map((x) => (- <div className="doc-section" key={x.id}>- <article className="text ">+ <div className="doc-section py-4" key={x.id}>+ <article className="text"><Paramkey={x.id}name={x.id}@@ -397,7 +424,7 @@ const ResourceContent = ({)}{methods.includes('GET') && (<>- <h2 className="text-white mt-0">Read rows</h2>+ <h3 className="text-scale-1200 px-6 mt-4">Read rows</h3><div className="doc-section"><article className="text "><p>@@ -453,7 +480,7 @@ const ResourceContent = ({)}{methods.includes('POST') && (<>- <h2 className="text-white mt-0">Insert rows</h2>+ <h3 className="text-scale-1200 px-6 mt-4">Insert rows</h3><div className="doc-section"><article className="text "><p>@@ -488,7 +515,7 @@ const ResourceContent = ({)}{methods.includes('PATCH') && (<>- <h2 className="text-white mt-0">Update rows</h2>+ <h3 className="text-scale-1200 px-6 mt-4">Update rows</h3><div className="doc-section"><article className="text "><p>@@ -516,7 +543,7 @@ const ResourceContent = ({)}{methods.includes('DELETE') && (<>- <h2 className="text-white mt-0">Delete rows</h2>+ <h3 className="text-scale-1200 px-6 mt-4">Delete rows</h3><div className="doc-section"><article className="text "><p>@@ -539,7 +566,7 @@ const ResourceContent = ({</>)}<>- <h2 className="text-white mt-0">Subscribe to changes</h2>+ <h3 className="text-scale-1200 px-6 mt-4">Subscribe to changes</h3><div className="doc-section"><article className="text "><p>@@ -582,8 +609,8 @@ const ResourceContent = ({</div></><>- <h2 className="text-white mt-0">Much more</h2>- <div className="doc-section">+ <h3 className="text-scale-1200 px-6 mt-4">Much more</h3>+ <div className="doc-section py-4"><article className="text "><p>These docs are a work in progress! See our{' '}diff --git a/studio/styles/code.scss b/studio/styles/code.scssindex bcdd667927b..e98880bd3bc 100644--- a/studio/styles/code.scss+++ b/studio/styles/code.scss@@ -16,13 +16,13 @@.token.imports,.token.property-access {- @apply text-blueGray-500 dark:text-blueGray-300 #{!important};+ @apply text-scale-900 #{!important};}.token.keyword.module,.token.function {font-style: normal !important;- @apply text-gray-600 dark:text-gray-300 #{!important};+ @apply text-scale-900 #{!important};}.token.plain,@@ -35,37 +35,37 @@.token.doc-comment.parameter.punctuation,.token.doc-comment.optional-parameter.punctuation {font-style: normal !important;- @apply text-gray-600 dark:text-gray-300 #{!important};+ @apply text-scale-1100 #{!important};}.token.keyword,.token.doc-comment.keyword {font-style: normal !important;- @apply text-blue-600 dark:text-blue-300 #{!important};+ @apply text-blue-900 #{!important};}.token.string {font-style: normal !important;- @apply text-green-500 #{!important};+ @apply text-brand-900 #{!important};}.token.constant {font-style: normal !important;- @apply text-blue-600 dark:text-blue-300 #{!important};+ @apply text-blue-900 #{!important};}.token.comment {font-style: normal !important;- @apply text-gray-300 dark:text-gray-400 #{!important};+ @apply text-scale-900 #{!important};}.token.number {- @apply text-green-600 dark:text-green-200 #{!important};+ @apply text-brand-900 #{!important};}.token.boolean,.token.doc-comment.class-name {- @apply text-green-500 dark:text-green-500;+ @apply text-brand-900;}.codeBlock {@@ -131,7 +131,7 @@}.code-header {- @apply bg-gray-600;+ // @apply bg-gray-600;color: #ccc;padding: 5px 15px;border-radius: 4px 4px 0 0;diff --git a/studio/styles/main.scss b/studio/styles/main.scssindex c017c5f4886..f59668f77c5 100644--- a/studio/styles/main.scss+++ b/studio/styles/main.scss@@ -56,22 +56,19 @@ body,.form-group select,input.form-control,.form-control input,-.form-control textarea-{- @apply block ;- @apply box-border ;+.form-control textarea {+ @apply block;+ @apply box-border;// @apply w-full ;- @apply rounded-md ;- @apply shadow-sm ;- @apply transition-all;- @apply text-scale-1200 ;- @apply border;- @apply focus:shadow-md;-- @apply focus:border-scale-900;- @apply focus:ring-scale-400;-+ @apply rounded-md;+ @apply shadow-sm;+ @apply transition-all;+ @apply text-scale-1200;+ @apply border;+ @apply focus:shadow-md;+ @apply focus:border-scale-900;+ @apply focus:ring-scale-400;@apply bg-scale-200 dark:bg-scale-200;@apply border border-scale-700;@@ -102,8 +99,7 @@ input.form-control,.form-group input[multiple]:focus,.form-group textarea:focus,.form-group select:focus,-.form-group input:focus-.form-control:focus{+.form-group input:focus .form-control:focus {box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.1);}@@ -120,7 +116,7 @@ select option {input.is-invalid {@apply bg-red-100;- @apply border border-red-700 ;+ @apply border border-red-700;@apply focus:ring-red-500;@apply placeholder:text-red-600;}@@ -167,7 +163,8 @@ input[type='radio'] {}code {- @apply p-1 m-0 font-mono text-sm bg-gray-100 dark:bg-gray-600 rounded;+ // use supabase-ui code style+ @apply text-code;}div[data-radix-portal]:not(.portal--toast) {diff --git a/studio/tailwind.config.js b/studio/tailwind.config.jsindex cba210c3d2c..443e4b1a190 100644--- a/studio/tailwind.config.js+++ b/studio/tailwind.config.js@@ -76,6 +76,50 @@ module.exports = ui({dark: 'var(--colors-scale2)',}),extend: {+ typography: ({ theme }) => ({+ docs: {+ css: {+ '--tw-prose-body': theme('colors.scale[1100]'),+ '--tw-prose-headings': theme('colors.scale[1200]'),+ '--tw-prose-lead': theme('colors.scale[1100]'),+ '--tw-prose-links': theme('colors.brand[900]'),+ '--tw-prose-bold': theme('colors.scale[1100]'),+ '--tw-prose-counters': theme('colors.scale[1100]'),+ '--tw-prose-bullets': theme('colors.scale[900]'),+ '--tw-prose-hr': theme('colors.scale[500]'),+ '--tw-prose-quotes': theme('colors.scale[1100]'),+ '--tw-prose-quote-borders': theme('colors.scale[500]'),+ '--tw-prose-captions': theme('colors.scale[700]'),+ '--tw-prose-code': theme('colors.scale[1200]'),+ '--tw-prose-pre-code': theme('colors.scale[900]'),+ '--tw-prose-pre-bg': theme('colors.scale[400]'),+ '--tw-prose-th-borders': theme('colors.scale[500]'),+ '--tw-prose-td-borders': theme('colors.scale[200]'),+ '--tw-prose-invert-body': theme('colors.scale[200]'),+ '--tw-prose-invert-headings': theme('colors.white'),+ '--tw-prose-invert-lead': theme('colors.scale[500]'),+ '--tw-prose-invert-links': theme('colors.white'),+ '--tw-prose-invert-bold': theme('colors.white'),+ '--tw-prose-invert-counters': theme('colors.scale[400]'),+ '--tw-prose-invert-bullets': theme('colors.scale[600]'),+ '--tw-prose-invert-hr': theme('colors.scale[700]'),+ '--tw-prose-invert-quotes': theme('colors.scale[100]'),+ '--tw-prose-invert-quote-borders': theme('colors.scale[700]'),+ '--tw-prose-invert-captions': theme('colors.scale[400]'),+ // the following are typography overrides+ // examples can be seen here —> https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js+ // reset all header font weights+ 'h1, h2, h3, h4, h5': {+ fontWeight: '400',+ },+ // '--tw-prose-invert-code': theme('colors.white'),+ // '--tw-prose-invert-pre-code': theme('colors.scale[900]'),+ // '--tw-prose-invert-pre-bg': 'rgb(0 0 0 / 50%)',+ // '--tw-prose-invert-th-borders': theme('colors.scale[600]'),+ // '--tw-prose-invert-td-borders': theme('colors.scale[700]'),+ },+ },+ }),colors: {// gray: { ...gray },// green: { ...green },@@ -233,5 +277,8 @@ module.exports = ui({variants: {extend: {},},- // plugins: [],+ plugins: [+ require('@tailwindcss/typography'),+ // ...+ ],})