Skip to content

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

now working again :D

Jonathan Summers-Muir3bc255f1a321
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index 1659af3f171..5ca9f3c92e1 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -1,5 +1,5 @@
-import '../../../packages/ui/styles/themes/light.css'
-import '../../../packages/ui/styles/themes/dark.css'
+import '../../../packages/ui/build/css/themes/light.css'
+import '../../../packages/ui/build/css/themes/dark.css'
import '../styles/index.css'
diff --git a/packages/config/package.json b/packages/config/package.json
index 8825df50bd6..aa33aeb7224 100644
--- a/packages/config/package.json
+++ b/packages/config/package.json
@@ -16,5 +16,8 @@
"eslint-plugin-react": "7.28.0",
"tailwindcss-radix": "^2.0.0",
"@tailwindcss/typography": "^0.5.2"
+ },
+ "devDependencies": {
+ "glob": "^8.1.0"
}
}
diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.js
index bfd82dbb6f1..1dcd31537df 100644
--- a/packages/config/tailwind.config.js
+++ b/packages/config/tailwind.config.js
@@ -1,7 +1,7 @@
const ui = require('./ui.config.js')
const deepMerge = require('deepmerge')
-const color = require('./../ui/styles/tw-extend/color')
+const color = require('./../ui/build/css/tw-extend/color')
function generateTwColorClasses(globalKey, twAttributes) {
let classes = {}
@@ -17,8 +17,6 @@ function generateTwColorClasses(globalKey, twAttributes) {
return classes
}
-console.log(generateTwColorClasses('borderColor', color))
-
const uiConfig = ui({
mode: 'JIT',
darkMode: 'class',
diff --git a/packages/ui/build-tokens.js b/packages/ui/build-tokens.js
index 6f48e807e37..af445710ac1 100644
--- a/packages/ui/build-tokens.js
+++ b/packages/ui/build-tokens.js
@@ -1,34 +1,184 @@
+const glob = require('glob')
+
+const configFiles = glob.sync(`tokens/config/**/*.json`)
+const sourceFiles = glob.sync(`tokens/source/**/*.json`)
+const themeFiles = glob.sync(`tokens/themes/**/*.json`)
+const semanticFiles = glob.sync(`tokens/semantic/**/*.json`)
+
const { registerTransforms } = require('@tokens-studio/sd-transforms')
const StyleDictionary = require('style-dictionary')
+const supportedTokenTypeList = [
+ 'spacing',
+ 'sizing',
+ 'borderRadius',
+ 'borderWidth',
+ 'color',
+ 'opacity',
+ 'fontFamilies',
+ 'lineHeights',
+ 'letterSpacing',
+ 'paragraphSpacing',
+ 'fontWeights',
+ 'fontSizes',
+ 'textCase',
+ 'textDecoration',
+]
+
+// old one
+
+// registerTransforms(StyleDictionary)
+
+// const sd = StyleDictionary.extend({
+// source: 'tokens/%themeTokenSets%',
+// platforms: {
+// css: {
+// transformGroup: 'tokens-studio',
+// prefix: 'sd',
+// buildPath: 'build/css/',
+// files: [
+// {
+// destination: '_variables-%theme%.css',
+// format: 'css/variables',
+// },
+// ],
+// },
+// js: {
+// transformGroup: 'tokens-studio',
+// buildPath: 'build/js/',
+// files: [
+// {
+// destination: 'variables-%theme%.js',
+// format: 'javascript/es6',
+// },
+// ],
+// },
+// },
+// })
+
+// sd.cleanAllPlatforms()
+// sd.buildAllPlatforms()
+
registerTransforms(StyleDictionary)
-const sd = StyleDictionary.extend({
- source: ['tokens/*.json'],
- platforms: {
- css: {
- transformGroup: 'tokens-studio',
- prefix: 'sd',
- buildPath: 'build/css/',
- files: [
- {
- destination: '_variables-%theme%.css',
- format: 'css/variables',
- },
- ],
- },
- js: {
- transformGroup: 'tokens-studio',
- buildPath: 'build/js/',
- files: [
- {
- destination: 'variables-%theme%.js',
- format: 'javascript/es6',
- },
- ],
- },
+const formatTailwindValue = (tokenType, value) => {
+ let formattedValue
+ switch (tokenType) {
+ case 'color':
+ default:
+ formattedValue = value
+ }
+ return formattedValue
+}
+
+/**
+ * Custom format that generate tailwind color config based on css variables
+ */
+StyleDictionary.registerFormat({
+ name: 'tw/css-variables',
+ formatter({ dictionary }) {
+ // console.log('dictionary', dictionary)
+ return (
+ 'module.exports = ' +
+ `{\n${dictionary.allProperties
+ .map((token) => {
+ const value = formatTailwindValue(token.type, token.value)
+ return `"${token.path.slice(0).join('-')}": "var(--${token.name}, ${value});"`
+ })
+ .join(',\n')}\n}`
+ )
},
})
-sd.cleanAllPlatforms()
-sd.buildAllPlatforms()
+/**
+ * Returns the files configuration
+ * for generating separated tailwind files.
+ */
+function getConfigTailwindFilesByType(typeList) {
+ console.log('\n')
+ console.log('tailwind typeList', typeList)
+ return typeList.map((typeName) => {
+ return {
+ destination: `tw-extend/${typeName}.js`,
+ format: 'tw/css-variables',
+ filter: {
+ type: typeName,
+ },
+ }
+ })
+}
+
+function getStyleDictionaryConfig(
+ sourceFiles,
+ fileName,
+ type,
+ buildTailwindFiles = false,
+ rootTheme = false
+) {
+ console.log(sourceFiles)
+
+ let configTailwindFilesByType = []
+
+ if (buildTailwindFiles) {
+ console.log(`\n`)
+ console.log(`Generating Tailwind Props ✨`)
+ configTailwindFilesByType = getConfigTailwindFilesByType(supportedTokenTypeList)
+ }
+
+ return {
+ source: sourceFiles,
+ platforms: {
+ css: {
+ transformGroup: 'tokens-studio',
+ buildPath: 'build/css/',
+ files: [
+ {
+ destination: `${type}/${fileName}.css`,
+ format: 'css/variables',
+ options: {
+ selector: rootTheme ? ':root' : `.${fileName}`,
+ outputReferences: true,
+ },
+ // filter: (token) =>
+ // [sourceFiles.slice(-1)[0], ...semanticFiles, ...sourceFiles].includes(token.filePath),
+ },
+ ...configTailwindFilesByType,
+ ],
+ },
+ },
+ }
+}
+
+function fileNameCleaner(fileName) {
+ return fileName.split('/').pop().replace('.json', '')
+}
+
+sourceFiles.map(function (filePath) {
+ const fileName = fileNameCleaner(filePath)
+ const SD = StyleDictionary.extend(
+ getStyleDictionaryConfig([filePath], fileName, 'source', true, true)
+ )
+ SD.buildAllPlatforms()
+})
+
+// semanticFiles.map(function (file) {
+// const SD = StyleDictionary.extend(getStyleDictionaryConfig(file, 'semantic', false))
+// SD.buildAllPlatforms()
+// })
+
+themeFiles.map(function (filePath, i) {
+ const buildTailwindFiles = filePath.includes('root') // i === 0
+ const fileName = fileNameCleaner(filePath)
+ const rootTheme = filePath.includes('root')
+ const SD = StyleDictionary.extend(
+ getStyleDictionaryConfig(
+ // determine wether to include the root theme properties with each theme
+ rootTheme ? [filePath] : ['tokens/themes/root.json', filePath],
+ rootTheme ? 'darkasdsd' : fileName,
+ 'themes',
+ buildTailwindFiles,
+ false
+ )
+ )
+ SD.buildAllPlatforms()
+})
diff --git a/packages/ui/build/css/_variables-%theme%.css b/packages/ui/build/css/_variables-%theme%.css
deleted file mode 100644
index bc2d662094a..00000000000
--- a/packages/ui/build/css/_variables-%theme%.css
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * Do not edit directly
- * Generated on Sat, 06 May 2023 07:45:48 GMT
- */
-
-:root {
- --sdThemeVariablesBrand: #2b825b;
- --sdThemeVariablesBackground: #232323; /* og color is colors.Gray.Dark.3 */
- --sdThemeVariablesBackgroundBody: #1c1c1c; /* og color is colors.Gray.Dark.2 */
- --sdThemeVariablesBackgroundBodyAlt: #161616; /* og color is colors.Gray.Dark.1 */
- --sdThemeVariablesTextBody: #ededed; /* og color is colors.Gray.Dark.12 */
- --sdMenuItemSection: 5px;
- --sdContextMenu: 6px;
- --sdDropShadowContextMenu: 0 2px 5px 3px rgba(0,0,0,0.1);
- --sdSpacingScale: 2px;
- --sdSpacingXs: 4px;
- --sdSpacingSm: 8px;
- --sdSpacingMd: 16px;
- --sdSpacingLg: 32px;
- --sdSpacingXl: 64px;
- --sdSizingScale: 1.5px;
- --sdSizingXs: 4px;
- --sdSizingSm: 6px;
- --sdSizingMd: 9px;
- --sdSizingLg: 13.5px;
- --sdSizingXl: 20.25px;
- --sdBorderRadiusSm: 4px;
- --sdBorderRadiusLg: 8px;
- --sdBorderRadiusXl: 16px;
- --sdBorderRadiusXs: 2px;
- --sdBorderRadiusTableHeader: 4px;
- --sdBorderWidthNone: 0;
- --sdBorderWidthXs: 1px;
- --sdBorderWidthSm: 2px;
- --sdBorderWidthMd: 4px;
- --sdBorderWidthLg: 8px;
- --sdOpacityLow: 0.1;
- --sdOpacityMd: 0.5;
- --sdOpacityHigh: 0.9;
- --sdFontFamiliesHeading: Inter;
- --sdFontFamiliesBody: Circular Std;
- --sdFontFamiliesRoboto: Roboto;
- --sdFontFamiliesBody2: Circular Std;
- --sdFontFamiliesMono: Office Code Pro;
- --sdLineHeights0: 1.1;
- --sdLineHeightsHeading: 1.1;
- --sdLineHeightsBase: 24;
- --sdLineHeightsXs: 16;
- --sdLineHeightsSm: 20;
- --sdLineHeightsLg: 28;
- --sdLineHeightsXl: 28;
- --sdLineHeights2xl: 32;
- --sdLineHeights3xl: 16 *2.25;
- --sdLineHeights4xl: 40;
- --sdLineHeights5xl: 48;
- --sdLineHeights6xl: 60;
- --sdLineHeights7xl: 72;
- --sdLineHeights8xl: 96;
- --sdLineHeights9xl: 128;
- --sdLetterSpacing0: 0em;
- --sdLetterSpacing1: -0.02em;
- --sdLetterSpacingDefault: 0;
- --sdLetterSpacingIncreased: 0.1em;
- --sdLetterSpacingDecreased: -0.05em;
- --sdLetterSpacing8: 0.08em;
- --sdParagraphSpacing0: 26;
- --sdParagraphSpacing1: 32;
- --sdParagraphSpacingH1: 32;
- --sdParagraphSpacingH2: 26;
- --sdFontWeightsHeadingRegular: 400;
- --sdFontWeightsHeadingBold: 700;
- --sdFontWeightsBodyRegular: 400;
- --sdFontWeightsBodyBold: 700;
- --sdFontWeightsRoboto0: 400;
- --sdFontWeightsInter1: 500;
- --sdFontWeightsInter2: Book;
- --sdFontWeightsHeadingMono: 500;
- --sdFontSizes5xl: 48;
- --sdFontSizes4xl: 36;
- --sdFontSizes3xl: 30;
- --sdFontSizes2xl: 24;
- --sdFontSizesXl: 20;
- --sdFontSizesLg: 18;
- --sdFontSizesBase: 16;
- --sdFontSizesSm: 14;
- --sdFontSizesXs: 12;
- --sdFontSizes6xl: 60;
- --sdFontSizes7xl: 72;
- --sdFontSizes8xl: 96;
- --sdFontSizes9xl: 128;
- --sdInnerShadowLabelCopy: inset 0 1px 1px 0 #858585;
- --sdInnerShadowTextNew: inset 0 0.5px 0.5px 0 #00000026;
- --sdFontSize0: 14px;
- --sdFontSize1: 39.063px;
- --sdFontSize2: 48.829px;
- --sdTextCaseNone: none;
- --sdTextCaseUppercase: uppercase;
- --sdTextDecorationNone: none;
- --sdIconXs: 12px;
- --sdIconSm: 16px;
- --sdIconMd: 18px;
- --sdIconBg: 0.15; /* Transuclent bg of icons */
- --sdIconWidthDefault: 1px;
- --sdFormInputDisabled: 0.33;
- --sdModalDropShadow: 1px 4px 4px 4px rgba(0,0,0,0.15);
- --sdPanel: 2px;
- --sdDatatableHeadericon: 16px;
- --sdDatatableRowheight: 28px; /* Height of datatable rows */
- --sdOptionsIcon: 18px; /* Size of product/dropdown icons icons */
- --sdInputSmHeight: 28px;
- --sdPanel2: 4px;
- --sdBase: 16;
- --sdXxl: 128px;
- --sdActionBarVertical: 21px;
- --sdActionBarHorizontal: 32px;
- --sdTableHeaderHorizontal: 32px;
- --sdTabsHorizontal: 16px;
- --sdContentVertical: 32px;
- --sdContentHorizontal: 32px;
- --sdContentWidthScreenXl: 1128px;
- --sdControllerVertical: 16px;
- --sdLightenDefault: 0.1;
- --sdLightenSoft: 0.05;
- --sdLightenHard: 0.3;
- --sdLightenHarder: 0.5;
- --sdLightenHardest: 0.65;
- --sdDarkenPercentage: 0.2;
- --sdUtilityMixPositive: #fff;
- --sdUtilityMixNegative: #000;
- --sdUtilityGithubBackground: #ffffff;
- --sdTextOverrideLightenStrength: 0;
- --sdTextDefault: #ededed;
- --sdTextBodyLight: lch(65.6 0 0);
- --sdTextBodyLighter: lch(46.9 0 0);
- --sdTextBodyLightest: lch(32.8 0 0);
- --sdBackgroundColorDefault: #232323; /* Default background color for any container. */
- --sdBackgroundColorBody: #1c1c1c; /* Background color used for the main page body. */
- --sdBackgroundColorBodyAlt: #161616;
- --sdBackgroundColorSelection: lch(18 0 0);
- --sdBackgroundColorControl: lch(9.6 0 0);
- --sdBorderColorDefault: lch(18 0 0); /* Default border color */
- --sdBorderColorBody: lch(14.8 0 0);
- --sdBorderColorControl: lch(22.1 0 0);
- --sdTypographyH1Bold: 500 48px/48 Circular Std;
- --sdTypographyH1Regular: Book 48px/48 Circular Std;
- --sdTypographyH2Bold: 500 36px/40 Circular Std;
- --sdTypographyH2Regular: Book 36px/40 Circular Std;
- --sdTypographyH3Bold: 500 30px/16 *2.25 Circular Std;
- --sdTypographyH3Regular: Book 30px/16 *2.25 Circular Std;
- --sdTypographyH4Bold: 500 24px/32 Circular Std;
- --sdTypographyH4Regular: Book 24px/32 Circular Std;
- --sdTypographyH4Mono: 500 24px/32 Office Code Pro;
- --sdTypographyH5Bold: 500 20px/28 Circular Std;
- --sdTypographyH5Regular: Book 20px/28 Circular Std;
- --sdTypographyBodyBaseNormal: Book 16px/24 Circular Std;
- --sdTypographyBodyBaseMono: 500 14px/32 Office Code Pro;
- --sdTypographyBodyLgNormal: Book 18px/28 Circular Std;
- --sdTypographyBodyXsNormal: Book 12px/16 Circular Std;
- --sdTypographyBodyXsCodeHeader: 500 12px/20 Office Code Pro;
- --sdTypographyBodyXssCode: 500 9px/9 Circular Std;
- --sdTypographyBodySmNormal: Book 14px/20 Circular Std;
- --sdTypographyBodySmCodeHeader: 400 14px/20 Office Code Pro;
- --sdTypographyBodySmCodeNormal: 400 14px/20 Office Code Pro;
- --sdTypographyBodySmBulletPoints: Book 14px/20 Circular Std;
- --sdTypographyButtonXs: Book 12px/16 Circular Std;
- --sdTypographyButtonSm: Book 14px/20 Circular Std;
- --sdTypographyFormLabel: Book 14px/20 Circular Std;
- --sdTypographyFormLabelSecondary: Book 14px/20 Circular Std;
- --sdTypographyTableHeader: Book 12px/20 Circular Std;
-}
diff --git a/packages/ui/build/css/source/global-two.css b/packages/ui/build/css/source/global-two.css
new file mode 100644
index 00000000000..4696905caff
--- /dev/null
+++ b/packages/ui/build/css/source/global-two.css
@@ -0,0 +1,10 @@
+/**
+ * Do not edit directly
+ * Generated on Sat, 06 May 2023 10:29:24 GMT
+ */
+
+:root {
+ --dropShadowContextMenu: 0 2px 5px 3px rgba(0,0,0,0.1);
+ --contextMenu: 6px;
+ --menuItemSection: 5px;
+}
diff --git a/packages/ui/build/css/source/global.css b/packages/ui/build/css/source/global.css
new file mode 100644
index 00000000000..e975804be9b
--- /dev/null
+++ b/packages/ui/build/css/source/global.css
@@ -0,0 +1,114 @@
+/**
+ * Do not edit directly
+ * Generated on Sat, 06 May 2023 10:29:24 GMT
+ */
+
+:root {
+ --contentWidthScreenXl: 1128px;
+ --tableHeaderHorizontal: 32px;
+ --actionBarHorizontal: 32px;
+ --actionBarVertical: 21px;
+ --base: 16;
+ --inputSmHeight: 28px;
+ --datatableRowheight: 28px; /* Height of datatable rows */
+ --modalDropShadow: 1px 4px 4px 4px rgba(0,0,0,0.15);
+ --formInputDisabled: 0.33;
+ --iconWidthDefault: 1px;
+ --iconBg: 0.15; /* Transuclent bg of icons */
+ --iconMd: 18px;
+ --iconSm: 16px;
+ --iconXs: 12px;
+ --textDecorationNone: none;
+ --textCaseUppercase: uppercase;
+ --textCaseNone: none;
+ --fontSize2: 48.829px;
+ --fontSize1: 39.063px;
+ --fontSize0: 14px;
+ --innerShadowTextNew: inset 0 0.5px 0.5px 0 #00000026;
+ --innerShadowLabelCopy: inset 0 1px 1px 0 #858585;
+ --fontWeightsHeadingMono: 500;
+ --fontWeightsInter2: Book;
+ --fontWeightsInter1: 500;
+ --fontWeightsRoboto0: 400;
+ --fontWeightsBodyBold: 700;
+ --fontWeightsBodyRegular: 400;
+ --fontWeightsHeadingBold: 700;
+ --fontWeightsHeadingRegular: 400;
+ --paragraphSpacingH2: 26;
+ --paragraphSpacingH1: 32;
+ --paragraphSpacing1: 32;
+ --paragraphSpacing0: 26;
+ --letterSpacing8: 0.08em;
+ --letterSpacingDecreased: -0.05em;
+ --letterSpacingIncreased: 0.1em;
+ --letterSpacingDefault: 0;
+ --letterSpacing1: -0.02em;
+ --letterSpacing0: 0em;
+ --lineHeightsHeading: 1.1;
+ --lineHeights0: 1.1;
+ --fontFamiliesMono: Office Code Pro;
+ --fontFamiliesBody2: Circular Std;
+ --fontFamiliesRoboto: Roboto;
+ --fontFamiliesBody: Circular Std;
+ --fontFamiliesHeading: Inter;
+ --opacityHigh: 0.9;
+ --opacityMd: 0.5;
+ --opacityLow: 0.1;
+ --borderWidthLg: 8px;
+ --borderWidthMd: 4px;
+ --borderWidthSm: 2px;
+ --borderWidthXs: 1px;
+ --borderWidthNone: 0;
+ --borderRadiusXs: 2px;
+ --borderRadiusXl: 16px;
+ --borderRadiusLg: 8px;
+ --borderRadiusSm: 4px;
+ --sizingXs: 4px;
+ --sizingScale: 1.5px;
+ --spacingXs: 4px;
+ --spacingScale: 2px;
+ --panel2: var(--borderRadiusSm);
+ --optionsIcon: var(--iconMd); /* Size of product/dropdown icons icons */
+ --datatableHeadericon: var(--iconSm);
+ --panel: var(--borderRadiusXs);
+ --fontSizes9xl: 128;
+ --fontSizes8xl: 96;
+ --fontSizes7xl: 72;
+ --fontSizes6xl: 60;
+ --fontSizesXs: 12;
+ --fontSizesSm: 14;
+ --fontSizesBase: var(--base);
+ --fontSizesLg: 18;
+ --fontSizesXl: 20;
+ --fontSizes2xl: 24;
+ --fontSizes3xl: 30;
+ --fontSizes4xl: 36;
+ --fontSizes5xl: 48;
+ --lineHeights9xl: 128;
+ --lineHeights8xl: 96;
+ --lineHeights7xl: 72;
+ --lineHeights6xl: 60;
+ --lineHeights5xl: 48;
+ --lineHeights4xl: 40;
+ --lineHeights3xl: var(--base) *2.25;
+ --lineHeights2xl: 32;
+ --lineHeightsXl: 28;
+ --lineHeightsLg: 28;
+ --lineHeightsSm: 20;
+ --lineHeightsXs: var(--base);
+ --lineHeightsBase: 24;
+ --borderRadiusTableHeader: var(--borderRadiusSm);
+ --sizingSm: 6px;
+ --spacingSm: 8px;
+ --sizingMd: 9px;
+ --spacingMd: 16px;
+ --controllerVertical: var(--spacingMd);
+ --tabsHorizontal: var(--spacingMd);
+ --sizingLg: 13.5px;
+ --spacingLg: 3var(--spacingScale);
+ --contentHorizontal: var(--spacingLg);
+ --contentVertical: var(--spacingLg);
+ --sizingXl: 20.25px;
+ --spacingXl: 64px;
+ --xxl: 128px;
+}
diff --git a/packages/ui/build/css/themes/dark.css b/packages/ui/build/css/themes/dark.css
new file mode 100644
index 00000000000..2174f046970
--- /dev/null
+++ b/packages/ui/build/css/themes/dark.css
@@ -0,0 +1,33 @@
+/**
+ * Do not edit directly
+ * Generated on Sat, 06 May 2023 10:28:49 GMT
+ */
+
+.dark {
+ --utilityMixNegative: #000;
+ --utilityMixPositive: #fff;
+ --darkenPercentage: 0.2;
+ --lightenHardest: 0.65;
+ --lightenHarder: 0.5;
+ --lightenHard: 0.3;
+ --lightenSoft: 0.05;
+ --lightenDefault: 0.1;
+ --textOverrideLightenStrength: 0;
+ --themeVariablesTextBody: #ededed; /* og color is colors.Gray.Dark.12 */
+ --themeVariablesBackgroundBodyAlt: #161616; /* og color is colors.Gray.Dark.1 */
+ --themeVariablesBackgroundBody: #1c1c1c; /* og color is colors.Gray.Dark.2 */
+ --themeVariablesBackground: #232323; /* og color is colors.Gray.Dark.3 */
+ --themeVariablesBrand: #2b825b;
+ --textDefault: var(--themeVariablesTextBody);
+ --backgroundColorBodyAlt: var(--themeVariablesBackgroundBodyAlt);
+ --backgroundColorBody: var(--themeVariablesBackgroundBody); /* Background color used for the main page body. */
+ --backgroundColorDefault: var(--themeVariablesBackground); /* Default background color for any container. */
+ --textBodyLightest: lch(32.8 0 0);
+ --textBodyLighter: lch(46.9 0 0);
+ --textBodyLight: lch(65.6 0 0);
+ --borderColorBody: lch(14.8 0 0);
+ --borderColorDefault: lch(18 0 0); /* Default border color */
+ --backgroundColorControl: lch(9.6 0 0);
+ --backgroundColorSelection: lch(18 0 0);
+ --borderColorControl: lch(22.1 0 0);
+}
diff --git a/packages/ui/build/css/themes/darkasdsd.css b/packages/ui/build/css/themes/darkasdsd.css
new file mode 100644
index 00000000000..038fce079d0
--- /dev/null
+++ b/packages/ui/build/css/themes/darkasdsd.css
@@ -0,0 +1,33 @@
+/**
+ * Do not edit directly
+ * Generated on Sat, 06 May 2023 10:29:24 GMT
+ */
+
+.darkasdsd {
+ --utilityMixNegative: #000;
+ --utilityMixPositive: #fff;
+ --darkenPercentage: 0.2;
+ --lightenHardest: 0.65;
+ --lightenHarder: 0.5;
+ --lightenHard: 0.3;
+ --lightenSoft: 0.05;
+ --lightenDefault: 0.1;
+ --textOverrideLightenStrength: 0;
+ --themeVariablesTextBody: #ededed; /* og color is colors.Gray.Dark.12 */
+ --themeVariablesBackgroundBodyAlt: #161616; /* og color is colors.Gray.Dark.1 */
+ --themeVariablesBackgroundBody: #1c1c1c; /* og color is colors.Gray.Dark.2 */
+ --themeVariablesBackground: #232323; /* og color is colors.Gray.Dark.3 */
+ --themeVariablesBrand: #2b825b;
+ --textDefault: var(--themeVariablesTextBody);
+ --backgroundColorBodyAlt: var(--themeVariablesBackgroundBodyAlt);
+ --backgroundColorBody: var(--themeVariablesBackgroundBody); /* Background color used for the main page body. */
+ --backgroundColorDefault: var(--themeVariablesBackground); /* Default background color for any container. */
+ --textBodyLightest: lch(32.8 0 0);
+ --textBodyLighter: lch(46.9 0 0);
+ --textBodyLight: lch(65.6 0 0);
+ --borderColorBody: lch(14.8 0 0);
+ --borderColorDefault: lch(18 0 0); /* Default border color */
+ --backgroundColorControl: lch(9.6 0 0);
+ --backgroundColorSelection: lch(18 0 0);
+ --borderColorControl: lch(22.1 0 0);
+}
diff --git a/packages/ui/build/css/themes/darker-dark.css b/packages/ui/build/css/themes/darker-dark.css
new file mode 100644
index 00000000000..baedc9fb580
--- /dev/null
+++ b/packages/ui/build/css/themes/darker-dark.css
@@ -0,0 +1,33 @@
+/**
+ * Do not edit directly
+ * Generated on Sat, 06 May 2023 10:29:24 GMT
+ */
+
+.darker-dark {
+ --utilityMixNegative: #000;
+ --utilityMixPositive: #fff;
+ --darkenPercentage: 0.2;
+ --lightenHardest: 0.65;
+ --lightenHarder: 0.5;
+ --lightenHard: 0.3;
+ --lightenSoft: 0.05;
+ --lightenDefault: 0.1;
+ --textOverrideLightenStrength: 0;
+ --themeVariablesTextBody: #ebebeb; /* $colors.Gray.Dark.12 */
+ --themeVariablesBackgroundBodyAlt: #161616; /* $colors.Gray.Dark.1 */
+ --themeVariablesBackgroundBody: #000; /* $colors.Gray.Dark.2 */
+ --themeVariablesBackground: #141414; /* $colors.Gray.Dark.3 */
+ --themeVariablesBrand: #d626dc;
+ --textDefault: var(--themeVariablesTextBody);
+ --backgroundColorBodyAlt: var(--themeVariablesBackgroundBodyAlt);
+ --backgroundColorBody: var(--themeVariablesBackgroundBody); /* Background color used for the main page body. */
+ --backgroundColorDefault: var(--themeVariablesBackground); /* Default background color for any container. */
+ --textBodyLightest: lch(32.6 0 0);
+ --textBodyLighter: lch(46.5 0 0);
+ --textBodyLight: lch(65.1 0 0);
+ --borderColorBody: lch(5 0 0);
+ --borderColorDefault: lch(11 0 0); /* Default border color */
+ --backgroundColorControl: lch(4.42 0 0);
+ --backgroundColorSelection: lch(11 0 0);
+ --borderColorControl: lch(15.4 0 0);
+}
diff --git a/packages/ui/build/css/themes/light.css b/packages/ui/build/css/themes/light.css
new file mode 100644
index 00000000000..c5ed39c1d3c
--- /dev/null
+++ b/packages/ui/build/css/themes/light.css
@@ -0,0 +1,34 @@
+/**
+ * Do not edit directly
+ * Generated on Sat, 06 May 2023 10:29:24 GMT
+ */
+
+.light {
+ --utilityGithubBackground: #ffffff;
+ --utilityMixNegative: #fff;
+ --utilityMixPositive: #000;
+ --darkenPercentage: 0.2;
+ --lightenHardest: 0.65;
+ --lightenHarder: 0.5;
+ --lightenHard: 0.3;
+ --lightenSoft: 0.035;
+ --lightenDefault: 0.1;
+ --textOverrideLightenStrength: 5;
+ --themeVariablesTextBody: #1a1d1e; /* og color is colors.Slate.Dark.2 */
+ --themeVariablesBackgroundBodyAlt: #fff; /* og color is colors.Gray.Dark.1 */
+ --themeVariablesBackgroundBody: #f8f9fa; /* og color is colors.Slate.Light.2 */
+ --themeVariablesBackground: #fbfcfd; /* og color is colors.Slate.Light.1 */
+ --themeVariablesBrand: #2b825b;
+ --textDefault: var(--themeVariablesTextBody);
+ --backgroundColorBodyAlt: var(--themeVariablesBackgroundBodyAlt);
+ --backgroundColorBody: var(--themeVariablesBackgroundBody); /* Background color used for the main page body. */
+ --backgroundColorDefault: var(--themeVariablesBackground); /* Default background color for any container. */
+ --textBodyLightest: lch(68.7 0.61 224);
+ --textBodyLighter: lch(55.2 0.87 224);
+ --textBodyLight: lch(37.3 1.22 224);
+ --borderColorBody: lch(94.4 0.62 251);
+ --borderColorDefault: lch(95.4 0.62 251); /* Default border color */
+ --backgroundColorControl: lch(99.2 0.45 251);
+ --backgroundColorSelection: lch(95.4 0.62 251);
+ --borderColorControl: lch(92.1 0.6 251);
+}
diff --git a/packages/ui/build/css/tw-extend/borderRadius.js b/packages/ui/build/css/tw-extend/borderRadius.js
new file mode 100644
index 00000000000..0fa10a251de
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/borderRadius.js
@@ -0,0 +1,9 @@
+module.exports = {
+"borderRadius-sm": "var(--borderRadiusSm, 4px);",
+"borderRadius-lg": "var(--borderRadiusLg, 8px);",
+"borderRadius-xl": "var(--borderRadiusXl, 16px);",
+"borderRadius-xs": "var(--borderRadiusXs, 2px);",
+"borderRadius-tableHeader": "var(--borderRadiusTableHeader, 4px);",
+"panel": "var(--panel, 2px);",
+"panel2": "var(--panel2, 4px);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/borderWidth.js b/packages/ui/build/css/tw-extend/borderWidth.js
new file mode 100644
index 00000000000..51e9992e01a
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/borderWidth.js
@@ -0,0 +1,8 @@
+module.exports = {
+"borderWidth-none": "var(--borderWidthNone, 0);",
+"borderWidth-xs": "var(--borderWidthXs, 1px);",
+"borderWidth-sm": "var(--borderWidthSm, 2px);",
+"borderWidth-md": "var(--borderWidthMd, 4px);",
+"borderWidth-lg": "var(--borderWidthLg, 8px);",
+"iconWidth-default": "var(--iconWidthDefault, 1px);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/color.js b/packages/ui/build/css/tw-extend/color.js
new file mode 100644
index 00000000000..678fb7ba81f
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/color.js
@@ -0,0 +1,21 @@
+module.exports = {
+"theme-variables-brand": "var(--themeVariablesBrand, #2b825b);",
+"theme-variables-background": "var(--themeVariablesBackground, #232323);",
+"theme-variables-background-body": "var(--themeVariablesBackgroundBody, #1c1c1c);",
+"theme-variables-background-body-alt": "var(--themeVariablesBackgroundBodyAlt, #161616);",
+"theme-variables-text-body": "var(--themeVariablesTextBody, #ededed);",
+"backgroundColor-DEFAULT": "var(--backgroundColorDefault, #232323);",
+"backgroundColor-body": "var(--backgroundColorBody, #1c1c1c);",
+"backgroundColor-body-alt": "var(--backgroundColorBodyAlt, #161616);",
+"backgroundColor-selection": "var(--backgroundColorSelection, lch(18 0 0));",
+"backgroundColor-control": "var(--backgroundColorControl, lch(9.6 0 0));",
+"borderColor-DEFAULT": "var(--borderColorDefault, lch(18 0 0));",
+"borderColor-body": "var(--borderColorBody, lch(14.8 0 0));",
+"borderColor-control": "var(--borderColorControl, lch(22.1 0 0));",
+"text-DEFAULT": "var(--textDefault, #ededed);",
+"text-body-light": "var(--textBodyLight, lch(65.6 0 0));",
+"text-body-lighter": "var(--textBodyLighter, lch(46.9 0 0));",
+"text-body-lightest": "var(--textBodyLightest, lch(32.8 0 0));",
+"utility-mix-positive": "var(--utilityMixPositive, #fff);",
+"utility-mix-negative": "var(--utilityMixNegative, #000);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/fontFamilies.js b/packages/ui/build/css/tw-extend/fontFamilies.js
new file mode 100644
index 00000000000..da2c4d28de9
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/fontFamilies.js
@@ -0,0 +1,7 @@
+module.exports = {
+"fontFamilies-heading": "var(--fontFamiliesHeading, Inter);",
+"fontFamilies-body": "var(--fontFamiliesBody, Circular Std);",
+"fontFamilies-roboto": "var(--fontFamiliesRoboto, Roboto);",
+"fontFamilies-body2": "var(--fontFamiliesBody2, Circular Std);",
+"fontFamilies-mono": "var(--fontFamiliesMono, Office Code Pro);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/fontSizes.js b/packages/ui/build/css/tw-extend/fontSizes.js
new file mode 100644
index 00000000000..949be64aaa4
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/fontSizes.js
@@ -0,0 +1,18 @@
+module.exports = {
+"fontSizes-5xl": "var(--fontSizes5xl, 48);",
+"fontSizes-4xl": "var(--fontSizes4xl, 36);",
+"fontSizes-3xl": "var(--fontSizes3xl, 30);",
+"fontSizes-2xl": "var(--fontSizes2xl, 24);",
+"fontSizes-xl": "var(--fontSizesXl, 20);",
+"fontSizes-lg": "var(--fontSizesLg, 18);",
+"fontSizes-base": "var(--fontSizesBase, 16);",
+"fontSizes-sm": "var(--fontSizesSm, 14);",
+"fontSizes-xs": "var(--fontSizesXs, 12);",
+"fontSizes-6xl": "var(--fontSizes6xl, 60);",
+"fontSizes-7xl": "var(--fontSizes7xl, 72);",
+"fontSizes-8xl": "var(--fontSizes8xl, 96);",
+"fontSizes-9xl": "var(--fontSizes9xl, 128);",
+"fontSize-0": "var(--fontSize0, 14px);",
+"fontSize-1": "var(--fontSize1, 39.063px);",
+"fontSize-2": "var(--fontSize2, 48.829px);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/fontWeights.js b/packages/ui/build/css/tw-extend/fontWeights.js
new file mode 100644
index 00000000000..a31706362eb
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/fontWeights.js
@@ -0,0 +1,10 @@
+module.exports = {
+"fontWeights-headingRegular": "var(--fontWeightsHeadingRegular, 400);",
+"fontWeights-headingBold": "var(--fontWeightsHeadingBold, 700);",
+"fontWeights-bodyRegular": "var(--fontWeightsBodyRegular, 400);",
+"fontWeights-bodyBold": "var(--fontWeightsBodyBold, 700);",
+"fontWeights-roboto-0": "var(--fontWeightsRoboto0, 400);",
+"fontWeights-inter-1": "var(--fontWeightsInter1, 500);",
+"fontWeights-inter-2": "var(--fontWeightsInter2, Book);",
+"fontWeights-heading-mono": "var(--fontWeightsHeadingMono, 500);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/letterSpacing.js b/packages/ui/build/css/tw-extend/letterSpacing.js
new file mode 100644
index 00000000000..435cfd88d1f
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/letterSpacing.js
@@ -0,0 +1,8 @@
+module.exports = {
+"letterSpacing-0": "var(--letterSpacing0, 0em);",
+"letterSpacing-1": "var(--letterSpacing1, -0.02em);",
+"letterSpacing-default": "var(--letterSpacingDefault, 0);",
+"letterSpacing-increased": "var(--letterSpacingIncreased, 0.1em);",
+"letterSpacing-decreased": "var(--letterSpacingDecreased, -0.05em);",
+"letterSpacing-+8": "var(--letterSpacing8, 0.08em);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/lineHeights.js b/packages/ui/build/css/tw-extend/lineHeights.js
new file mode 100644
index 00000000000..b342b8158f1
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/lineHeights.js
@@ -0,0 +1,17 @@
+module.exports = {
+"lineHeights-0": "var(--lineHeights0, 1.1);",
+"lineHeights-heading": "var(--lineHeightsHeading, 1.1);",
+"lineHeights-base": "var(--lineHeightsBase, 24);",
+"lineHeights-xs": "var(--lineHeightsXs, 16);",
+"lineHeights-sm": "var(--lineHeightsSm, 20);",
+"lineHeights-lg": "var(--lineHeightsLg, 28);",
+"lineHeights-xl": "var(--lineHeightsXl, 28);",
+"lineHeights-2xl": "var(--lineHeights2xl, 32);",
+"lineHeights-3xl": "var(--lineHeights3xl, 16 *2.25);",
+"lineHeights-4xl": "var(--lineHeights4xl, 40);",
+"lineHeights-5xl": "var(--lineHeights5xl, 48);",
+"lineHeights-6xl": "var(--lineHeights6xl, 60);",
+"lineHeights-7xl": "var(--lineHeights7xl, 72);",
+"lineHeights-8xl": "var(--lineHeights8xl, 96);",
+"lineHeights-9xl": "var(--lineHeights9xl, 128);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/opacity.js b/packages/ui/build/css/tw-extend/opacity.js
new file mode 100644
index 00000000000..667f3d33f6f
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/opacity.js
@@ -0,0 +1,7 @@
+module.exports = {
+"opacity-low": "var(--opacityLow, 0.1);",
+"opacity-md": "var(--opacityMd, 0.5);",
+"opacity-high": "var(--opacityHigh, 0.9);",
+"icon-bg": "var(--iconBg, 0.15);",
+"form-input-disabled": "var(--formInputDisabled, 0.33);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/paragraphSpacing.js b/packages/ui/build/css/tw-extend/paragraphSpacing.js
new file mode 100644
index 00000000000..2c9ec0ff478
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/paragraphSpacing.js
@@ -0,0 +1,6 @@
+module.exports = {
+"paragraphSpacing-0": "var(--paragraphSpacing0, 26);",
+"paragraphSpacing-1": "var(--paragraphSpacing1, 32);",
+"paragraphSpacing-h1": "var(--paragraphSpacingH1, 32);",
+"paragraphSpacing-h2": "var(--paragraphSpacingH2, 26);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/sizing.js b/packages/ui/build/css/tw-extend/sizing.js
new file mode 100644
index 00000000000..231442eb281
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/sizing.js
@@ -0,0 +1,16 @@
+module.exports = {
+"sizing-scale": "var(--sizingScale, 1.5px);",
+"sizing-xs": "var(--sizingXs, 4px);",
+"sizing-sm": "var(--sizingSm, 6px);",
+"sizing-md": "var(--sizingMd, 9px);",
+"sizing-lg": "var(--sizingLg, 13.5px);",
+"sizing-xl": "var(--sizingXl, 20.25px);",
+"icon-xs": "var(--iconXs, 12px);",
+"icon-sm": "var(--iconSm, 16px);",
+"icon-md": "var(--iconMd, 18px);",
+"datatable-headericon": "var(--datatableHeadericon, 16px);",
+"datatable-rowheight": "var(--datatableRowheight, 28px);",
+"options-icon": "var(--optionsIcon, 18px);",
+"input-sm-height": "var(--inputSmHeight, 28px);",
+"content-width-screen-xl": "var(--contentWidthScreenXl, 1128px);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/spacing.js b/packages/ui/build/css/tw-extend/spacing.js
new file mode 100644
index 00000000000..3e939efd8c9
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/spacing.js
@@ -0,0 +1,16 @@
+module.exports = {
+"spacing-scale": "var(--spacingScale, 2px);",
+"spacing-xs": "var(--spacingXs, 4px);",
+"spacing-sm": "var(--spacingSm, 8px);",
+"spacing-md": "var(--spacingMd, 16px);",
+"spacing-lg": "var(--spacingLg, 32px);",
+"spacing-xl": "var(--spacingXl, 64px);",
+"xxl": "var(--xxl, 128px);",
+"actionBar-vertical": "var(--actionBarVertical, 21px);",
+"actionBar-horizontal": "var(--actionBarHorizontal, 32px);",
+"table-header-horizontal": "var(--tableHeaderHorizontal, 32px);",
+"tabs-horizontal": "var(--tabsHorizontal, 16px);",
+"content-vertical": "var(--contentVertical, 32px);",
+"content-horizontal": "var(--contentHorizontal, 32px);",
+"controller-vertical": "var(--controllerVertical, 16px);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/textCase.js b/packages/ui/build/css/tw-extend/textCase.js
new file mode 100644
index 00000000000..b2be83eaf9e
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/textCase.js
@@ -0,0 +1,4 @@
+module.exports = {
+"textCase-none": "var(--textCaseNone, none);",
+"textCase-uppercase": "var(--textCaseUppercase, uppercase);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/css/tw-extend/textDecoration.js b/packages/ui/build/css/tw-extend/textDecoration.js
new file mode 100644
index 00000000000..83d1c3bfe49
--- /dev/null
+++ b/packages/ui/build/css/tw-extend/textDecoration.js
@@ -0,0 +1,3 @@
+module.exports = {
+"textDecoration-none": "var(--textDecorationNone, none);"
+}
\ No newline at end of file
diff --git a/packages/ui/build/js/variables-%theme%.js b/packages/ui/build/js/variables-%theme%.js
deleted file mode 100644
index 9a40f2e5d03..00000000000
--- a/packages/ui/build/js/variables-%theme%.js
+++ /dev/null
@@ -1,168 +0,0 @@
-/**
- * Do not edit directly
- * Generated on Sat, 06 May 2023 07:45:48 GMT
- */
-
-export const themeVariablesBrand = "#2b825b";
-export const themeVariablesBackground = "#232323"; // og color is colors.Gray.Dark.3
-export const themeVariablesBackgroundBody = "#1c1c1c"; // og color is colors.Gray.Dark.2
-export const themeVariablesBackgroundBodyAlt = "#161616"; // og color is colors.Gray.Dark.1
-export const themeVariablesTextBody = "#ededed"; // og color is colors.Gray.Dark.12
-export const menuItemSection = "5px";
-export const contextMenu = "6px";
-export const dropShadowContextMenu = "0 2px 5px 3px rgba(0,0,0,0.1)";
-export const spacingScale = "2px";
-export const spacingXs = "4px";
-export const spacingSm = "8px";
-export const spacingMd = "16px";
-export const spacingLg = "32px";
-export const spacingXl = "64px";
-export const sizingScale = "1.5px";
-export const sizingXs = "4px";
-export const sizingSm = "6px";
-export const sizingMd = "9px";
-export const sizingLg = "13.5px";
-export const sizingXl = "20.25px";
-export const borderRadiusSm = "4px";
-export const borderRadiusLg = "8px";
-export const borderRadiusXl = "16px";
-export const borderRadiusXs = "2px";
-export const borderRadiusTableHeader = "4px";
-export const borderWidthNone = "0";
-export const borderWidthXs = "1px";
-export const borderWidthSm = "2px";
-export const borderWidthMd = "4px";
-export const borderWidthLg = "8px";
-export const opacityLow = "0.1";
-export const opacityMd = "0.5";
-export const opacityHigh = "0.9";
-export const fontFamiliesHeading = "Inter";
-export const fontFamiliesBody = "Circular Std";
-export const fontFamiliesRoboto = "Roboto";
-export const fontFamiliesBody2 = "Circular Std";
-export const fontFamiliesMono = "Office Code Pro";
-export const lineHeights0 = "1.1";
-export const lineHeightsHeading = "1.1";
-export const lineHeightsBase = "24";
-export const lineHeightsXs = "16";
-export const lineHeightsSm = "20";
-export const lineHeightsLg = "28";
-export const lineHeightsXl = "28";
-export const lineHeights2xl = "32";
-export const lineHeights3xl = "16 *2.25";
-export const lineHeights4xl = "40";
-export const lineHeights5xl = "48";
-export const lineHeights6xl = "60";
-export const lineHeights7xl = "72";
-export const lineHeights8xl = "96";
-export const lineHeights9xl = "128";
-export const letterSpacing0 = "0em";
-export const letterSpacing1 = "-0.02em";
-export const letterSpacingDefault = "0";
-export const letterSpacingIncreased = "0.1em";
-export const letterSpacingDecreased = "-0.05em";
-export const letterSpacing8 = "0.08em";
-export const paragraphSpacing0 = "26";
-export const paragraphSpacing1 = "32";
-export const paragraphSpacingH1 = "32";
-export const paragraphSpacingH2 = "26";
-export const fontWeightsHeadingRegular = "400";
-export const fontWeightsHeadingBold = "700";
-export const fontWeightsBodyRegular = "400";
-export const fontWeightsBodyBold = "700";
-export const fontWeightsRoboto0 = "400";
-export const fontWeightsInter1 = "500";
-export const fontWeightsInter2 = "Book";
-export const fontWeightsHeadingMono = "500";
-export const fontSizes5xl = "48";
-export const fontSizes4xl = "36";
-export const fontSizes3xl = "30";
-export const fontSizes2xl = "24";
-export const fontSizesXl = "20";
-export const fontSizesLg = "18";
-export const fontSizesBase = "16";
-export const fontSizesSm = "14";
-export const fontSizesXs = "12";
-export const fontSizes6xl = "60";
-export const fontSizes7xl = "72";
-export const fontSizes8xl = "96";
-export const fontSizes9xl = "128";
-export const innerShadowLabelCopy = "inset 0 1px 1px 0 #858585";
-export const innerShadowTextNew = "inset 0 0.5px 0.5px 0 #00000026";
-export const fontSize0 = "14px";
-export const fontSize1 = "39.063px";
-export const fontSize2 = "48.829px";
-export const textCaseNone = "none";
-export const textCaseUppercase = "uppercase";
-export const textDecorationNone = "none";
-export const iconXs = "12px";
-export const iconSm = "16px";
-export const iconMd = "18px";
-export const iconBg = "0.15"; // Transuclent bg of icons
-export const iconWidthDefault = "1px";
-export const formInputDisabled = "0.33";
-export const modalDropShadow = "1px 4px 4px 4px rgba(0,0,0,0.15)";
-export const panel = "2px";
-export const datatableHeadericon = "16px";
-export const datatableRowheight = "28px"; // Height of datatable rows
-export const optionsIcon = "18px"; // Size of product/dropdown icons icons
-export const inputSmHeight = "28px";
-export const panel2 = "4px";
-export const base = "16";
-export const xxl = "128px";
-export const actionBarVertical = "21px";
-export const actionBarHorizontal = "32px";
-export const tableHeaderHorizontal = "32px";
-export const tabsHorizontal = "16px";
-export const contentVertical = "32px";
-export const contentHorizontal = "32px";
-export const contentWidthScreenXl = "1128px";
-export const controllerVertical = "16px";
-export const lightenDefault = "0.1";
-export const lightenSoft = "0.05";
-export const lightenHard = "0.3";
-export const lightenHarder = "0.5";
-export const lightenHardest = "0.65";
-export const darkenPercentage = "0.2";
-export const utilityMixPositive = "#fff";
-export const utilityMixNegative = "#000";
-export const utilityGithubBackground = "#ffffff";
-export const textOverrideLightenStrength = "0";
-export const textDefault = "#ededed";
-export const textBodyLight = "lch(65.6 0 0)";
-export const textBodyLighter = "lch(46.9 0 0)";
-export const textBodyLightest = "lch(32.8 0 0)";
-export const backgroundColorDefault = "#232323"; // Default background color for any container.
-export const backgroundColorBody = "#1c1c1c"; // Background color used for the main page body.
-export const backgroundColorBodyAlt = "#161616";
-export const backgroundColorSelection = "lch(18 0 0)";
-export const backgroundColorControl = "lch(9.6 0 0)";
-export const borderColorDefault = "lch(18 0 0)"; // Default border color
-export const borderColorBody = "lch(14.8 0 0)";
-export const borderColorControl = "lch(22.1 0 0)";
-export const typographyH1Bold = "500 48px/48 Circular Std";
-export const typographyH1Regular = "Book 48px/48 Circular Std";
-export const typographyH2Bold = "500 36px/40 Circular Std";
-export const typographyH2Regular = "Book 36px/40 Circular Std";
-export const typographyH3Bold = "500 30px/16 *2.25 Circular Std";
-export const typographyH3Regular = "Book 30px/16 *2.25 Circular Std";
-export const typographyH4Bold = "500 24px/32 Circular Std";
-export const typographyH4Regular = "Book 24px/32 Circular Std";
-export const typographyH4Mono = "500 24px/32 Office Code Pro";
-export const typographyH5Bold = "500 20px/28 Circular Std";
-export const typographyH5Regular = "Book 20px/28 Circular Std";
-export const typographyBodyBaseNormal = "Book 16px/24 Circular Std";
-export const typographyBodyBaseMono = "500 14px/32 Office Code Pro";
-export const typographyBodyLgNormal = "Book 18px/28 Circular Std";
-export const typographyBodyXsNormal = "Book 12px/16 Circular Std";
-export const typographyBodyXsCodeHeader = "500 12px/20 Office Code Pro";
-export const typographyBodyXssCode = "500 9px/9 Circular Std";
-export const typographyBodySmNormal = "Book 14px/20 Circular Std";
-export const typographyBodySmCodeHeader = "400 14px/20 Office Code Pro";
-export const typographyBodySmCodeNormal = "400 14px/20 Office Code Pro";
-export const typographyBodySmBulletPoints = "Book 14px/20 Circular Std";
-export const typographyButtonXs = "Book 12px/16 Circular Std";
-export const typographyButtonSm = "Book 14px/20 Circular Std";
-export const typographyFormLabel = "Book 14px/20 Circular Std";
-export const typographyFormLabelSecondary = "Book 14px/20 Circular Std";
-export const typographyTableHeader = "Book 12px/20 Circular Std";
\ No newline at end of file
diff --git a/packages/ui/copy-tokens.js b/packages/ui/copy-tokens.js
index 482f762dec4..2b9e1433fea 100644
--- a/packages/ui/copy-tokens.js
+++ b/packages/ui/copy-tokens.js
@@ -1,44 +1,55 @@
const https = require('https')
const fs = require('fs')
-// using Math.random() in a param as GitHub caches raw content
-// const url = `https://raw.githubusercontent.com/MildTomato/supabase-design-tokens/${branch}/tokens.json?e=${Math.random()}`
-const baseUrl = `https://raw.githubusercontent.com/MildTomato/supabase-design-tokens/${branch}/tokens/`
-
/*
* Branch to target in GitHub repo
*/
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?e=${Math.random()}`
+const baseUrl = `https://raw.githubusercontent.com/MildTomato/supabase-design-tokens/${branch}/tokens/`
/*
* Files that need to be copied over from Tokens repo
*/
-const urls = [
+const TOKEN_FILES_METADATA = [
// figma tokens misc config files
- baseUrl + '$metadata.json',
- baseUrl + '$themes.json',
+ { fileName: '$metadata.json', type: 'config' },
+ { fileName: '$themes.json', type: 'config' },
// source files
- baseUrl + 'global.json',
- baseUrl + 'global-two.json',
- baseUrl + 'typography.json',
- // root theme
- baseUrl + 'root.json',
+ { fileName: 'global.json', type: 'source' },
+ { fileName: 'global-two.json', type: 'source' },
+ // semantic
+ { fileName: 'typography.json', type: 'semantic' },
// themes
- baseUrl + 'light.json',
- baseUrl + 'darker-dark.json',
+ { fileName: 'root.json', type: 'theme' }, // root theme
+ { fileName: 'light.json', type: 'theme' },
+ { fileName: 'darker-dark.json', type: 'theme' },
]
+const PATHS = {
+ config: 'config/',
+ source: 'source/',
+ theme: 'themes/',
+ semantic: 'semantic/',
+}
+
async function getTokensFile() {
- const promises = urls.map((url, i) => {
+ const promises = TOKEN_FILES_METADATA.map((tokenMetadata, i) => {
return new Promise((resolve, reject) => {
https
- .get(url, (res) => {
+ .get(baseUrl + tokenMetadata.fileName, (res) => {
let data = ''
res.on('data', (chunk) => {
data += chunk
})
res.on('end', () => {
- fs.writeFile(`./tokens/${url.replace(baseUrl, '')}`, data, 'utf8', () => {})
+ fs.writeFile(
+ `./tokens/${PATHS[tokenMetadata.type]}${tokenMetadata.fileName}`,
+ data,
+ 'utf8',
+ () => {}
+ )
resolve(data)
})
})
diff --git a/packages/ui/tokens/$metadata.json b/packages/ui/tokens/config/$metadata.json
similarity index 100%
rename from packages/ui/tokens/$metadata.json
rename to packages/ui/tokens/config/$metadata.json
diff --git a/packages/ui/tokens/$themes.json b/packages/ui/tokens/config/$themes.json
similarity index 100%
rename from packages/ui/tokens/$themes.json
rename to packages/ui/tokens/config/$themes.json
diff --git a/packages/ui/tokens/typography.json b/packages/ui/tokens/semantic/typography.json
similarity index 100%
rename from packages/ui/tokens/typography.json
rename to packages/ui/tokens/semantic/typography.json
diff --git a/packages/ui/tokens/global-two.json b/packages/ui/tokens/source/global-two.json
similarity index 100%
rename from packages/ui/tokens/global-two.json
rename to packages/ui/tokens/source/global-two.json
diff --git a/packages/ui/tokens/global.json b/packages/ui/tokens/source/global.json
similarity index 100%
rename from packages/ui/tokens/global.json
rename to packages/ui/tokens/source/global.json
diff --git a/packages/ui/tokens/darker-dark.json b/packages/ui/tokens/themes/darker-dark.json
similarity index 100%
rename from packages/ui/tokens/darker-dark.json
rename to packages/ui/tokens/themes/darker-dark.json
diff --git a/packages/ui/tokens/light.json b/packages/ui/tokens/themes/light.json
similarity index 100%
rename from packages/ui/tokens/light.json
rename to packages/ui/tokens/themes/light.json
diff --git a/packages/ui/tokens/root.json b/packages/ui/tokens/themes/root.json
similarity index 100%
rename from packages/ui/tokens/root.json
rename to packages/ui/tokens/themes/root.json