The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
updated with new tokens
Jonathan Summers-Muirca9c81441796
diff --git a/packages/ui/copy-tokens.js b/packages/ui/copy-tokens.jsindex 4fce9c4ed2e..97e755305bf 100644--- a/packages/ui/copy-tokens.js+++ b/packages/ui/copy-tokens.js@@ -1,5 +1,6 @@-const branch = process.env.npm_config_branch || 'main'-const url = `https://raw.githubusercontent.com/MildTomato/supabase-design-tokens/${branch}/tokens.json`+const branch = 'feat/new-components'+// using Math.random() in a param as GitHub caches raw content+const url = `https://raw.githubusercontent.com/MildTomato/supabase-design-tokens/${branch}/tokens.json?v=${Math.random()}`console.log('branch to pull is:', branch)diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 69a67c3d46f..b026df6719f 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -7,12 +7,12 @@"scripts": {"build:icons": "node --experimental-modules internals/populate-icons.js","build-transform-global": "npx token-transformer tokens.json styles/tokens/01_base/global.json global",- "build-transform-dark": "npx token-transformer tokens.json styles/tokens/02_themes/dark.json global,exported/dark,theme global",- "build-transform-light": "npx token-transformer tokens.json styles/tokens/02_themes/light.json global,exported/light,theme global",+ "build-transform-dark": "npx token-transformer tokens.json styles/tokens/02_themes/dark.json exported/root",+ "build-transform-light": "npx token-transformer tokens.json styles/tokens/02_themes/light.json exported/root,exported/light","build-transform-typography": "npx token-transformer tokens.json styles/tokens/03_semantic/typography.json global,typography global --resolveReferences=false","build-transform": "npm run build-transform-dark && npm run build-transform-light","build-tailwind": "node style-token.js",- "copy-tokens": "node copy-tokens.js --branch process.env.branch",+ "copy-tokens": "node copy-tokens.js","build-styles": "npm run copy-tokens && npm run build-transform && node style-token.js"},"dependencies": {diff --git a/packages/ui/styles/themes/dark.css b/packages/ui/styles/themes/dark.cssindex e5c39f3f3d7..85e4ba0e1c8 100644--- a/packages/ui/styles/themes/dark.css+++ b/packages/ui/styles/themes/dark.css@@ -1,6 +1,27 @@.dark {+ --theme-variables-background: #232323;+ --theme-variables-background-body: #1c1c1c;+ --theme-variables-background-body-alt: #161616;+ --theme-variables-text-body: #ededed;--background-color-default: #232323;--background-color-body: #1c1c1c;- --border-color-default: #282828;- --border-color-body: #282828;+ --background-color-body-alt: #161616;+ --background-color-selection: #353535;+ --background-color-control: #151515;+ --border-color-default: #353535;+ --border-color-body: #2e2e2e;+ --border-color-control: #3e3e3e;+ --text-default: #ededed;+ --text-body-light: #6c6c6c;+ --text-body-lighter: #383838;+ --text-body-lightest: #1e1e1e;+ --text-override-lighten-strength: 0;+ --lighten-default: 0.1;+ --lighten-soft: 0.05;+ --lighten-hard: 0.3;+ --lighten-harder: 0.5;+ --lighten-hardest: 0.65;+ --darken-percentage: 0.2;+ --utility-mix-positive: #fff;+ --utility-mix-negative: #000;}\ No newline at end of filediff --git a/packages/ui/styles/themes/light.css b/packages/ui/styles/themes/light.cssindex 4f757374f10..779e52048f2 100644--- a/packages/ui/styles/themes/light.css+++ b/packages/ui/styles/themes/light.css@@ -1,6 +1,28 @@:root {- --background-color-default: #fbfcfd;- --background-color-body: #f8f9fa;- --border-color-default: #eceef0;- --border-color-body: #e6e8eb;+ --theme-variables-background: #fff;+ --theme-variables-background-body: #fbfcfd;+ --theme-variables-background-body-alt: #fff;+ --theme-variables-text-body: #1a1d1e;+ --lighten-default: 0.1;+ --lighten-soft: 0.035;+ --lighten-hard: 0.3;+ --lighten-harder: 0.5;+ --lighten-hardest: 0.65;+ --darken-percentage: 0.2;+ --utility-mix-positive: #000;+ --utility-mix-negative: #fff;+ --utility-github-background: #ffffff;+ --text-override-lighten-strength: 5;+ --text-default: #1a1d1e;+ --text-body-light: #858787;+ --text-body-lighter: #bfc0c0;+ --text-body-lightest: #dfe0e0;+ --background-color-default: #fff;+ --background-color-body: #fbfcfd;+ --background-color-body-alt: #fff;+ --background-color-selection: #ebebeb;+ --background-color-control: #fff;+ --border-color-default: #ebebeb;+ --border-color-body: #fbfcfd;+ --border-color-control: #e2e2e2;}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/borderRadius.js b/packages/ui/styles/tw-extend/borderRadius.jsnew file mode 100644index 00000000000..26d4e8d3672--- /dev/null+++ b/packages/ui/styles/tw-extend/borderRadius.js@@ -0,0 +1,9 @@+module.exports = {+"borderRadius-sm": "var(--border-radius-sm, 4px);",+"borderRadius-lg": "var(--border-radius-lg, 8px);",+"borderRadius-xl": "var(--border-radius-xl, 16px);",+"borderRadius-xs": "var(--border-radius-xs, 2px);",+"borderRadius-tableHeader": "var(--border-radius-table-header, 4px);",+"panel": "var(--panel, 2px);",+"panel2": "var(--panel2, 4px);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/borderWidth.js b/packages/ui/styles/tw-extend/borderWidth.jsnew file mode 100644index 00000000000..aa75769ea6d--- /dev/null+++ b/packages/ui/styles/tw-extend/borderWidth.js@@ -0,0 +1,8 @@+module.exports = {+"borderWidth-none": "var(--border-width-none, 0);",+"borderWidth-xs": "var(--border-width-xs, 1);",+"borderWidth-sm": "var(--border-width-sm, 2);",+"borderWidth-md": "var(--border-width-md, 4);",+"borderWidth-lg": "var(--border-width-lg, 8);",+"iconWidth-default": "var(--icon-width-default, 1);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/color.js b/packages/ui/styles/tw-extend/color.jsindex 1ca9ea944d0..b07077330ee 100644--- a/packages/ui/styles/tw-extend/color.js+++ b/packages/ui/styles/tw-extend/color.js@@ -1,6 +1,20 @@module.exports = {+"theme-variables-background": "var(--theme-variables-background, #232323);",+"theme-variables-background-body": "var(--theme-variables-background-body, #1c1c1c);",+"theme-variables-background-body-alt": "var(--theme-variables-background-body-alt, #161616);",+"theme-variables-text-body": "var(--theme-variables-text-body, #ededed);","backgroundColor-DEFAULT": "var(--background-color-default, #232323);","backgroundColor-body": "var(--background-color-body, #1c1c1c);",-"borderColor-DEFAULT": "var(--border-color-default, #282828);",-"borderColor-body": "var(--border-color-body, #282828);"+"backgroundColor-body-alt": "var(--background-color-body-alt, #161616);",+"backgroundColor-selection": "var(--background-color-selection, #353535);",+"backgroundColor-control": "var(--background-color-control, #151515);",+"borderColor-DEFAULT": "var(--border-color-default, #353535);",+"borderColor-body": "var(--border-color-body, #2e2e2e);",+"borderColor-control": "var(--border-color-control, #3e3e3e);",+"text-DEFAULT": "var(--text-default, #ededed);",+"text-body-light": "var(--text-body-light, #6c6c6c);",+"text-body-lighter": "var(--text-body-lighter, #383838);",+"text-body-lightest": "var(--text-body-lightest, #1e1e1e);",+"utility-mix-positive": "var(--utility-mix-positive, #fff);",+"utility-mix-negative": "var(--utility-mix-negative, #000);"}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/fontFamilies.js b/packages/ui/styles/tw-extend/fontFamilies.jsnew file mode 100644index 00000000000..514586aaaba--- /dev/null+++ b/packages/ui/styles/tw-extend/fontFamilies.js@@ -0,0 +1,7 @@+module.exports = {+"fontFamilies-heading": "var(--font-families-heading, Inter);",+"fontFamilies-body": "var(--font-families-body, Circular Std);",+"fontFamilies-roboto": "var(--font-families-roboto, Roboto);",+"fontFamilies-body2": "var(--font-families-body2, Circular Std);",+"fontFamilies-mono": "var(--font-families-mono, Office Code Pro);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/fontSizes.js b/packages/ui/styles/tw-extend/fontSizes.jsnew file mode 100644index 00000000000..bd7bc7e5c84--- /dev/null+++ b/packages/ui/styles/tw-extend/fontSizes.js@@ -0,0 +1,18 @@+module.exports = {+"fontSizes-5xl": "var(--font-sizes-5xl, 48px);",+"fontSizes-4xl": "var(--font-sizes-4xl, 36px);",+"fontSizes-3xl": "var(--font-sizes-3xl, 30px);",+"fontSizes-2xl": "var(--font-sizes-2xl, 24px);",+"fontSizes-xl": "var(--font-sizes-xl, 20px);",+"fontSizes-lg": "var(--font-sizes-lg, 18px);",+"fontSizes-base": "var(--font-sizes-base, 16px);",+"fontSizes-sm": "var(--font-sizes-sm, 14px);",+"fontSizes-xs": "var(--font-sizes-xs, 12px);",+"fontSizes-6xl": "var(--font-sizes-6xl, 60px);",+"fontSizes-7xl": "var(--font-sizes-7xl, 72px);",+"fontSizes-8xl": "var(--font-sizes-8xl, 96px);",+"fontSizes-9xl": "var(--font-sizes-9xl, 128px);",+"fontSize-0": "var(--font-size-0, 14px);",+"fontSize-1": "var(--font-size-1, 39.063px);",+"fontSize-2": "var(--font-size-2, 48.829px);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/fontWeights.js b/packages/ui/styles/tw-extend/fontWeights.jsnew file mode 100644index 00000000000..58c5f495ef3--- /dev/null+++ b/packages/ui/styles/tw-extend/fontWeights.js@@ -0,0 +1,10 @@+module.exports = {+"fontWeights-headingRegular": "var(--font-weights-heading-regular, 400);",+"fontWeights-headingBold": "var(--font-weights-heading-bold, 700);",+"fontWeights-bodyRegular": "var(--font-weights-body-regular, 400);",+"fontWeights-bodyBold": "var(--font-weights-body-bold, 700);",+"fontWeights-roboto-0": "var(--font-weights-roboto-0, 400);",+"fontWeights-inter-1": "var(--font-weights-inter-1, 500);",+"fontWeights-inter-2": "var(--font-weights-inter-2, 400);",+"fontWeights-heading-mono": "var(--font-weights-heading-mono, 500);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/letterSpacing.js b/packages/ui/styles/tw-extend/letterSpacing.jsnew file mode 100644index 00000000000..2a9e8b42bec--- /dev/null+++ b/packages/ui/styles/tw-extend/letterSpacing.js@@ -0,0 +1,8 @@+module.exports = {+"letterSpacing-0": "var(--letter-spacing-0, 0em);",+"letterSpacing-1": "var(--letter-spacing-1, -0.02em);",+"letterSpacing-default": "var(--letter-spacing-default, 0);",+"letterSpacing-increased": "var(--letter-spacing-increased, 0.1em);",+"letterSpacing-decreased": "var(--letter-spacing-decreased, -0.05em);",+"letterSpacing-+8": "var(--letter-spacing-8, 0.08em);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/lineHeights.js b/packages/ui/styles/tw-extend/lineHeights.jsnew file mode 100644index 00000000000..d6c1a22f2b0--- /dev/null+++ b/packages/ui/styles/tw-extend/lineHeights.js@@ -0,0 +1,17 @@+module.exports = {+"lineHeights-0": "var(--line-heights-0, 110%);",+"lineHeights-heading": "var(--line-heights-heading, 110%);",+"lineHeights-base": "var(--line-heights-base, 24);",+"lineHeights-xs": "var(--line-heights-xs, 16);",+"lineHeights-sm": "var(--line-heights-sm, 20);",+"lineHeights-lg": "var(--line-heights-lg, 28);",+"lineHeights-xl": "var(--line-heights-xl, 28);",+"lineHeights-2xl": "var(--line-heights-2xl, 32);",+"lineHeights-3xl": "var(--line-heights-3xl, 36);",+"lineHeights-4xl": "var(--line-heights-4xl, 40);",+"lineHeights-5xl": "var(--line-heights-5xl, 48);",+"lineHeights-6xl": "var(--line-heights-6xl, 60);",+"lineHeights-7xl": "var(--line-heights-7xl, 72);",+"lineHeights-8xl": "var(--line-heights-8xl, 96);",+"lineHeights-9xl": "var(--line-heights-9xl, 128);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/opacity.js b/packages/ui/styles/tw-extend/opacity.jsnew file mode 100644index 00000000000..a32b005a7ce--- /dev/null+++ b/packages/ui/styles/tw-extend/opacity.js@@ -0,0 +1,7 @@+module.exports = {+"opacity-low": "var(--opacity-low, 10%);",+"opacity-md": "var(--opacity-md, 50%);",+"opacity-high": "var(--opacity-high, 90%);",+"icon-bg": "var(--icon-bg, 0.15);",+"form-input-disabled": "var(--form-input-disabled, 33%);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/paragraphSpacing.js b/packages/ui/styles/tw-extend/paragraphSpacing.jsnew file mode 100644index 00000000000..3063b791ef2--- /dev/null+++ b/packages/ui/styles/tw-extend/paragraphSpacing.js@@ -0,0 +1,6 @@+module.exports = {+"paragraphSpacing-0": "var(--paragraph-spacing-0, 26);",+"paragraphSpacing-1": "var(--paragraph-spacing-1, 32);",+"paragraphSpacing-h1": "var(--paragraph-spacing-h1, 32);",+"paragraphSpacing-h2": "var(--paragraph-spacing-h2, 26);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/sizing.js b/packages/ui/styles/tw-extend/sizing.jsnew file mode 100644index 00000000000..30eea6a28fe--- /dev/null+++ b/packages/ui/styles/tw-extend/sizing.js@@ -0,0 +1,16 @@+module.exports = {+"sizing-scale": "var(--sizing-scale, 1.5);",+"sizing-xs": "var(--sizing-xs, 4);",+"sizing-sm": "var(--sizing-sm, 6);",+"sizing-md": "var(--sizing-md, 9);",+"sizing-lg": "var(--sizing-lg, 13.5);",+"sizing-xl": "var(--sizing-xl, 20.25);",+"icon-xs": "var(--icon-xs, 12);",+"icon-sm": "var(--icon-sm, 16);",+"icon-md": "var(--icon-md, 18);",+"datatable-headericon": "var(--datatable-headericon, 16);",+"datatable-rowheight": "var(--datatable-rowheight, 28);",+"options-icon": "var(--options-icon, 18);",+"input-sm-height": "var(--input-sm-height, 28);",+"content-width-screen-xl": "var(--content-width-screen-xl, 1128);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/spacing.js b/packages/ui/styles/tw-extend/spacing.jsnew file mode 100644index 00000000000..13eee55c31b--- /dev/null+++ b/packages/ui/styles/tw-extend/spacing.js@@ -0,0 +1,16 @@+module.exports = {+"spacing-scale": "var(--spacing-scale, 2px);",+"spacing-xs": "var(--spacing-xs, 4px);",+"spacing-sm": "var(--spacing-sm, 8px);",+"spacing-md": "var(--spacing-md, 16px);",+"spacing-lg": "var(--spacing-lg, 32px);",+"spacing-xl": "var(--spacing-xl, 64px);",+"xxl": "var(--xxl, 128px);",+"actionBar-vertical": "var(--action-bar-vertical, 21px);",+"actionBar-horizontal": "var(--action-bar-horizontal, 32px);",+"table-header-horizontal": "var(--table-header-horizontal, 32px);",+"tabs-horizontal": "var(--tabs-horizontal, 16px);",+"content-vertical": "var(--content-vertical, 32px);",+"content-horizontal": "var(--content-horizontal, 32px);",+"controller-vertical": "var(--controller-vertical, 16px);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/textCase.js b/packages/ui/styles/tw-extend/textCase.jsnew file mode 100644index 00000000000..d9c83c3b5a5--- /dev/null+++ b/packages/ui/styles/tw-extend/textCase.js@@ -0,0 +1,4 @@+module.exports = {+"textCase-none": "var(--text-case-none, none);",+"textCase-uppercase": "var(--text-case-uppercase, uppercase);"+}\ No newline at end of filediff --git a/packages/ui/styles/tw-extend/textDecoration.js b/packages/ui/styles/tw-extend/textDecoration.jsnew file mode 100644index 00000000000..a0bf20c4b4c--- /dev/null+++ b/packages/ui/styles/tw-extend/textDecoration.js@@ -0,0 +1,3 @@+module.exports = {+"textDecoration-none": "var(--text-decoration-none, none);"+}\ No newline at end of file