Skip to content

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

updated scripts so it copies figma tokens over each time

Jonathan Summers-Muir2738cb1ac0a9
diff --git a/package-lock.json b/package-lock.json
index 56fb7b87795..e8330caece1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13451,7 +13451,6 @@
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
- "dev": true,
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
@@ -13872,6 +13871,43 @@
"toggle-selection": "^1.0.6"
}
},
+ "node_modules/copyfiles": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/copyfiles/-/copyfiles-2.4.1.tgz",
+ "integrity": "sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==",
+ "dependencies": {
+ "glob": "^7.0.5",
+ "minimatch": "^3.0.3",
+ "mkdirp": "^1.0.4",
+ "noms": "0.0.0",
+ "through2": "^2.0.1",
+ "untildify": "^4.0.0",
+ "yargs": "^16.1.0"
+ },
+ "bin": {
+ "copyfiles": "copyfiles",
+ "copyup": "copyfiles"
+ }
+ },
+ "node_modules/copyfiles/node_modules/mkdirp": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/copyfiles/node_modules/untildify": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
+ "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/core-js": {
"version": "3.26.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.1.tgz",
@@ -18461,7 +18497,6 @@
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "dev": true,
"engines": {
"node": "6.* || 8.* || >= 10.*"
}
@@ -26071,6 +26106,36 @@
"node": ">=6.0.0"
}
},
+ "node_modules/noms": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/noms/-/noms-0.0.0.tgz",
+ "integrity": "sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "readable-stream": "~1.0.31"
+ }
+ },
+ "node_modules/noms/node_modules/isarray": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
+ "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="
+ },
+ "node_modules/noms/node_modules/readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "node_modules/noms/node_modules/string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="
+ },
"node_modules/non-layered-tidy-tree-layout": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/non-layered-tidy-tree-layout/-/non-layered-tidy-tree-layout-2.0.2.tgz",
@@ -32027,7 +32092,6 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
- "dev": true,
"engines": {
"node": ">=0.10.0"
}
@@ -37054,7 +37118,6 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
- "dev": true,
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
@@ -37164,7 +37227,6 @@
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
- "dev": true,
"engines": {
"node": ">=10"
}
@@ -37194,7 +37256,6 @@
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
- "dev": true,
"dependencies": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
@@ -37212,7 +37273,6 @@
"version": "20.2.9",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
- "dev": true,
"engines": {
"node": ">=10"
}
@@ -37367,6 +37427,7 @@
"@tailwindcss/forms": "^0.4.0",
"@tailwindcss/typography": "^0.5.0",
"autoprefixer": "^10.4.2",
+ "copyfiles": "^2.4.1",
"deepmerge": "^4.2.2",
"formik": "^2.2.9",
"lodash": "^4.17.20",
@@ -47699,7 +47760,6 @@
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
- "dev": true,
"requires": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
@@ -48083,6 +48143,32 @@
"toggle-selection": "^1.0.6"
}
},
+ "copyfiles": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/copyfiles/-/copyfiles-2.4.1.tgz",
+ "integrity": "sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==",
+ "requires": {
+ "glob": "^7.0.5",
+ "minimatch": "^3.0.3",
+ "mkdirp": "^1.0.4",
+ "noms": "0.0.0",
+ "through2": "^2.0.1",
+ "untildify": "^4.0.0",
+ "yargs": "^16.1.0"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="
+ },
+ "untildify": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
+ "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw=="
+ }
+ }
+ },
"core-js": {
"version": "3.26.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.1.tgz",
@@ -52202,8 +52288,7 @@
"get-caller-file": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "dev": true
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
},
"get-intrinsic": {
"version": "1.1.3",
@@ -57920,6 +58005,38 @@
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.8.0.tgz",
"integrity": "sha512-EjYvSmHzekz6VNkNd12aUqAco+bOkRe3Of5jVhltqKhEsjw/y0PYPJfp83+s9Wzh1dspYAkUW/YNQ350NATbSQ=="
},
+ "noms": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/noms/-/noms-0.0.0.tgz",
+ "integrity": "sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==",
+ "requires": {
+ "inherits": "^2.0.1",
+ "readable-stream": "~1.0.31"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
+ "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="
+ },
+ "readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="
+ }
+ }
+ },
"non-layered-tidy-tree-layout": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/non-layered-tidy-tree-layout/-/non-layered-tidy-tree-layout-2.0.2.tgz",
@@ -62255,8 +62372,7 @@
"require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
- "dev": true
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="
},
"require-from-string": {
"version": "2.0.2",
@@ -64994,6 +65110,7 @@
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"autoprefixer": "^10.4.2",
+ "copyfiles": "^2.4.1",
"deepmerge": "^4.2.2",
"formik": "^2.2.9",
"lodash": "^4.17.20",
@@ -66787,7 +66904,6 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
- "dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
@@ -67034,8 +67150,7 @@
"y18n": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
- "dev": true
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="
},
"yaeti": {
"version": "0.0.6",
@@ -67056,7 +67171,6 @@
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
- "dev": true,
"requires": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
@@ -67070,8 +67184,7 @@
"yargs-parser": {
"version": "20.2.9",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
- "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
- "dev": true
+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="
},
"yn": {
"version": "3.1.1",
diff --git a/packages/ui/copy-tokens.js b/packages/ui/copy-tokens.js
new file mode 100644
index 00000000000..b0454e9114e
--- /dev/null
+++ b/packages/ui/copy-tokens.js
@@ -0,0 +1,6 @@
+const url = 'https://raw.githubusercontent.com/MildTomato/figma-tokens-supabase/main/tokens.json'
+
+const https = require('https')
+const fs = require('fs')
+
+https.get(url, (resp) => resp.pipe(fs.createWriteStream(`./tokens.json`)))
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 63d70bf5277..7580838f852 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -6,12 +6,13 @@
"license": "MIT",
"scripts": {
"build:icons": "node --experimental-modules internals/populate-icons.js",
- "build-transform-global": "npx token-transformer tokens.json styles/tokens/global.json global",
- "build-transform-light": "npx token-transformer tokens.json styles/tokens/light.json global,light,theme --resolveReferences=false",
- "build-transform-dark": "npx token-transformer tokens.json styles/tokens/dark.json global,dark,theme --resolveReferences=false",
+ "build-transform-global": "npx token-transformer https://raw.githubusercontent.com/MildTomato/figma-tokens-supabase/main/tokens.json styles/tokens/global.json global",
+ "build-transform-light": "npx token-transformer https://raw.githubusercontent.com/MildTomato/figma-tokens-supabase/main/tokens.json styles/tokens/light.json global,light,theme --resolveReferences=false",
+ "build-transform-dark": "npx token-transformer https://raw.githubusercontent.com/MildTomato/figma-tokens-supabase/main/tokens.json styles/tokens/dark.json global,dark,theme --resolveReferences=false",
"build-transform": "npm run build-transform-global && npm run build-transform-light && npm run build-transform-dark",
"build-tailwind": "node style-token.js",
- "build-styles": "npm run build-transform && node style-token.js"
+ "copy-tokens": "node copy-tokens.js",
+ "build-styles": "npm run copy-tokens && npm run build-transform && node style-token.js"
},
"dependencies": {
"@headlessui/react": "^1.0.0",
@@ -38,9 +39,10 @@
"tailwindcss-radix": "^1.6.0"
},
"devDependencies": {
- "style-dictionary": "^3.7.1",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
+ "style-dictionary": "^3.7.1",
+ "copyfiles": "^2.4.1",
"typescript": "4.3.4"
}
}
diff --git a/packages/ui/style-token.js b/packages/ui/style-token.js
index a7b9bb4cab9..c2b700e4089 100644
--- a/packages/ui/style-token.js
+++ b/packages/ui/style-token.js
@@ -4,9 +4,7 @@ const global = require('./styles/tokens/global.json')
const light = require('./styles/tokens/light.json')
const dark = require('./styles/tokens/dark.json')
-const supportedTokenTypeList = [
- 'color',
-]
+const supportedTokenTypeList = ['color']
const formatValue = (tokenType, value) => {
let formattedValue
@@ -49,17 +47,13 @@ StyleDictionaryPackage.registerFormat({
name: 'tw/css-variables',
formatter({ dictionary }) {
return (
- 'module.exports = '
- + `{\n${
- dictionary.allProperties
- .map((token) => {
- const value = formatValue(token.type, token.value)
- return ` "${token.path
- .slice(1)
- .join('-')}": "var(--${token.name}, ${value});"`
- })
- .join(',\n')
- }\n}`
+ 'module.exports = ' +
+ `{\n${dictionary.allProperties
+ .map((token) => {
+ const value = formatValue(token.type, token.value)
+ return ` "${token.path.slice(1).join('-')}": "var(--${token.name}, ${value});"`
+ })
+ .join(',\n')}\n}`
)
},
})
@@ -87,9 +81,7 @@ function getStyleDictionaryConfig(tokensConfig = {}) {
let configTailwindFilesByType = []
if (buildTailwindFiles) {
- configTailwindFilesByType = getConfigTailwindFilesByType(
- supportedTokenTypeList,
- )
+ configTailwindFilesByType = getConfigTailwindFilesByType(supportedTokenTypeList)
}
return {
@@ -125,13 +117,15 @@ const configs = [
{
brand: 'dark',
buildTailwindFiles: false,
- selectorName: '[data-theme="dark"]',
+ // selectorName: '[data-theme="dark"]',
+ selectorName: '.dark',
tokens: dark,
},
{
brand: 'light',
buildTailwindFiles: true,
- selectorName: '[data-theme="light"]',
+ // selectorName: '[data-theme="light"]',
+ selectorName: ':root',
tokens: light,
},
]
@@ -140,9 +134,7 @@ configs.map((config) => {
console.log('\n==============================================')
console.log(`\nProcessing: [Web] [${config.brand}]`)
- const StyleDictionary = StyleDictionaryPackage.extend(
- getStyleDictionaryConfig(config),
- )
+ const StyleDictionary = StyleDictionaryPackage.extend(getStyleDictionaryConfig(config))
StyleDictionary.buildPlatform('web')
diff --git a/packages/ui/styles/dark-variables.css b/packages/ui/styles/dark-variables.css
index ddbe0120673..e3af76aff3c 100644
--- a/packages/ui/styles/dark-variables.css
+++ b/packages/ui/styles/dark-variables.css
@@ -1,6 +1,5 @@
-/* [data-theme="dark"] { */
-.dark-ui {
- --ui-variables-form-input-error-bg: #1f1315;
+.dark {
+ --ui-variables-form-input-error-bg: #1f1315;
--ui-variables-form-input-error-border: #822025;
--ui-variables-form-input-bg: var(--ui-colors-gray-dark-alpha-2, #ffffff08);
--ui-variables-form-input-border: var(--ui-colors-gray-dark-7, #3e3e3e);
@@ -12,27 +11,19 @@
--ui-variables-text-secondary: $colors.Gray.Dark.11;
--ui-variables-text-light: $colors.Gray.Dark.9;
--ui-variables-text-link: $variables.colors.brand.primary;
- --ui-variables-text-gradient: linear-gradient(
- 90deg,
- rgba($colors.Gray.Light.1, 1) 0%,
- rgba($colors.Gray.Light.1, 0.5) 100%
- );
- --ui-variables-text-green-gradient: linear-gradient(45deg, #34b97d 0%, #3ecf8e 100%);
+ --ui-variables-text-gradient: linear-gradient(90deg, rgba($colors.Gray.Light.1, 1) 0%, rgba($colors.Gray.Light.1, 0.5) 100%);
+ --ui-variables-text-green-gradient: linear-gradient(45deg, #34B97D 0%, #3ECF8E 100%);
--ui-variables-panel-bg: var(--ui-colors-gray-dark-3, #232323);
--ui-variables-panel-border: var(--ui-colors-gray-dark-4, #282828);
--ui-variables-panel-bg-alt: var(--ui-colors-gray-dark-4, #282828);
--ui-variables-panel-border-alt: $colors.Gray.Dark.5;
--ui-variables-panel-bg-accent: #262626;
- --ui-variables-panel-divider: linear-gradient(
- 90deg,
- rgba($colors.Gray.Dark.1, 0.5) 0%,
- rgba($colors.Gray.Dark.8, 1) 100%
- );
+ --ui-variables-panel-divider: linear-gradient(90deg, rgba($colors.Gray.Dark.1, 0.5) 0%, rgba($colors.Gray.Dark.8, 1) 100%);
--ui-variables-panel-warning-bg: #ffb224;
--ui-variables-panel-warning-text: #271700;
--ui-variables-panel-warning-text-secondary: #824e00;
--ui-variables-panel-danger-bg: #e5484d;
- --ui-variables-panel-danger-text: #fffcfc;
+ --ui-variables-panel-danger-text: #FFFCFC;
--ui-variables-panel-danger-text-secondary: #f9c6c6;
--ui-variables-background-primary: var(--ui-colors-gray-dark-2, #1c1c1c);
--ui-variables-background-border: $colors.Gray.Dark.4;
@@ -62,11 +53,7 @@
--ui-variables-illustration-dialog-box-light: var(--ui-colors-gray-dark-4, #282828);
--ui-variables-illustration-dialog-box-2: var(--ui-colors-gray-dark-4, #282828);
--ui-variables-illustration-dialog-box-1: var(--ui-colors-gray-dark-5, #2e2e2e);
- --ui-variables-illustration-gradient-line: linear-gradient(
- 90deg,
- $variables.illustration.background 0%,
- $variables.illustration.text 100%
- );
+ --ui-variables-illustration-gradient-line: linear-gradient(90deg, $variables.illustration.background 0%, $variables.illustration.text 100%);
--ui-variables-icon-background: var(--ui-colors-gray-dark-3, #232323);
--ui-variables-icon-outline: var(--ui-colors-gray-dark-9, #707070);
--ui-variables-icon-fill-1: var(--ui-colors-gray-dark-2, #1c1c1c);
@@ -74,15 +61,11 @@
--ui-variables-icon-outline-green: #4cc38a;
--ui-variables-icon-fill-1-green: #133929;
--ui-variables-icon-fill-2-green: #1b543a;
- --ui-variables-icon-negative-icons: linear-gradient(
- 45deg,
- rgba($colors.Gray.Dark.12, 0.5) 0%,
- rgba($colors.Gray.Dark.Alpha.5, 1) 100%
- );
- --ui-variables-code-highlight1: #98c1fe;
- --ui-variables-code-highlight2: #f2afe3;
+ --ui-variables-icon-negative-icons: linear-gradient(45deg, rgba($colors.Gray.Dark.12, 0.5) 0%, rgba($colors.Gray.Dark.Alpha.5, 1) 100%);
+ --ui-variables-code-highlight1: #98C1FE;
+ --ui-variables-code-highlight2: #F2AFE3;
--ui-variables-code-highlight3: $variables.colors.brand.primary;
- --ui-variables-code-highlight4: #d4d4d4;
+ --ui-variables-code-highlight4: #D4D4D4;
--ui-variables-charts-primary: #cbf5ff;
--ui-variables-charts-warning: #ffa600db;
--ui-variables-charts-danger: #e5484d;
@@ -93,44 +76,16 @@
--ui-variables-badge-secondary-background: var(--ui-colors-gray-dark-5, #2e2e2e);
--ui-variables-badge-secondary-text: var(--ui-colors-gray-dark-9, #707070);
--ui-variables-card-alt-background: #121212;
- --ui-variables-card-border: linear-gradient(
- 30deg,
- rgba($colors.Gray.Dark.5, 1) 0%,
- rgba($colors.Gray.Dark.3, 1) 100%
- );
- --ui-variables-card-border-active: linear-gradient(
- 30deg,
- rgba($colors.Gray.Dark.7, 1) 0%,
- rgba($colors.Gray.Dark.3, 1) 100%
- );
+ --ui-variables-card-border: linear-gradient(30deg, rgba($colors.Gray.Dark.5, 1) 0%, rgba($colors.Gray.Dark.3, 1) 100%);
+ --ui-variables-card-border-active: linear-gradient(30deg, rgba($colors.Gray.Dark.7, 1) 0%, rgba($colors.Gray.Dark.3, 1) 100%);
--ui-variables-card-background-active: var(--ui-colors-gray-dark-3, #232323);
- --ui-variables-card-text: linear-gradient(45deg, #ffffff 0%, #ccebd7 100%);
- --ui-variables-card-pill-label: linear-gradient(
- 90deg,
- rgba(#343232, 0.1) 0%,
- rgba(#d0d0d0, 0.1) 100%
- );
- --ui-variables-card-pill-label-border: linear-gradient(
- 90deg,
- rgba(#343232, 0.1) 0%,
- rgba(#ffffff, 0) 100%
- );
- --ui-variables-card-lw6-illustration-dark-fill: linear-gradient(
- 60deg,
- rgba(#121212, 1) 0%,
- rgba(#232323, 1) 100%
- );
- --ui-variables-card-lw6-illustration-border-highlight: linear-gradient(
- 45deg,
- rgba(#232323, 1) 50%,
- rgba(#3fcfb5, 0, 5) 100%
- );
- --ui-variables-card-lw6-illustration-teal-fill: linear-gradient(
- 45deg,
- rgba(#121212, 0) 0%,
- rgba(#08b8b2, 0.3) 100%
- );
- --ui-variables-card-lw6-illustration-accent-color: #4da08b;
+ --ui-variables-card-text: linear-gradient(45deg, #ffffff 0%, #CCEBD7 100%);
+ --ui-variables-card-pill-label: linear-gradient(90deg, rgba(#343232, 0.1) 0%, rgba(#D0D0D0, 0.1) 100%);
+ --ui-variables-card-pill-label-border: linear-gradient(90deg, rgba(#343232, 0.1) 0%, rgba(#ffffff, 0) 100%);
+ --ui-variables-card-lw6-illustration-dark-fill: linear-gradient(60deg, rgba(#121212, 1) 0%, rgba(#232323, 1) 100%);
+ --ui-variables-card-lw6-illustration-border-highlight: linear-gradient(45deg, rgba(#232323, 1) 50%, rgba(#3FCFB5, 0,5) 100%);
+ --ui-variables-card-lw6-illustration-teal-fill: linear-gradient(45deg, rgba(#121212, 0) 0%, rgba(#08B8B2, 0.3) 100%);
+ --ui-variables-card-lw6-illustration-accent-color: #4DA08B;
--ui-variables-colors-brand-primary: #3ecf8e;
--ui-variables-colors-brand-accent: #34b97d;
--ui-164430: #164430;
@@ -272,7 +227,7 @@
--ui-line-heights-lg: $base * 1.75;
--ui-line-heights-xl: $base * 1.75;
--ui-line-heights-2xl: $base * 2;
- --ui-line-heights-3xl: $base * 2.25;
+ --ui-line-heights-3xl: $base *2.25;
--ui-line-heights-4xl: $base * 2.5;
--ui-line-heights-5xl: $base * 3;
--ui-line-heights-6xl: $base * 3.75;
@@ -332,7 +287,7 @@
--ui-input-sm-height: 28;
--ui-panel2: var(--ui-border-radius-sm, 4);
--ui-base: 16;
- --ui-xxl: var(--ui-spacing-xl, 4 * 2 * 2 * 2 * 2 * 2);
+ --ui-xxl: var(--ui-spacing-xl, 4 * 2 * 2 * 2 * 2*2);
--ui-action-bar-vertical: 21;
--ui-action-bar-horizontal: 32;
--ui-table-header-horizontal: 32;
@@ -340,4 +295,4 @@
--ui-content-vertical: var(--ui-spacing-lg, 4 * 2 * 2 * 2);
--ui-content-horizontal: var(--ui-spacing-lg, 4 * 2 * 2 * 2);
--ui-controller-vertical: var(--ui-spacing-md, 4 * 2 * 2);
-}
+ }
\ No newline at end of file
diff --git a/packages/ui/styles/light-variables.css b/packages/ui/styles/light-variables.css
index ce9ffd0b1da..43e7679de0d 100644
--- a/packages/ui/styles/light-variables.css
+++ b/packages/ui/styles/light-variables.css
@@ -1,6 +1,5 @@
-/* [data-theme="light"] { */
:root {
- --ui-variables-form-input-error-bg: #fffcfc;
+ --ui-variables-form-input-error-bg: #FFFCFC;
--ui-variables-form-input-error-border: #f3aeaf;
--ui-variables-form-input-bg: var(--ui-colors-slate-light-1, #fbfcfd);
--ui-variables-form-input-border: var(--ui-colors-slate-light-7, #d7dbdf);
@@ -12,27 +11,19 @@
--ui-variables-text-secondary: $colors.Slate.Light.10;
--ui-variables-text-light: $colors.Slate.Light.9;
--ui-variables-text-link: #4cc38a;
- --ui-variables-text-gradient: linear-gradient(
- 90deg,
- rgba($colors.Gray.Dark.1, 1) 0%,
- rgba($colors.Gray.Dark.1, 0.5) 100%
- );
+ --ui-variables-text-gradient: linear-gradient(90deg, rgba($colors.Gray.Dark.1, 1) 0%, rgba($colors.Gray.Dark.1, 0.5) 100%);
--ui-variables-text-green-gradient: linear-gradient(45deg, #3cb179 0%, #62ffb3bd 100%);
--ui-variables-panel-bg: var(--ui-colors-slate-light-1, #fbfcfd);
--ui-variables-panel-border: var(--ui-colors-slate-light-4, #eceef0);
--ui-variables-panel-bg-alt: $colors.Gray.Light.2;
--ui-variables-panel-border-alt: $colors.Slate.Light.6;
- --ui-variables-panel-divider: linear-gradient(
- 90deg,
- rgba($colors.Gray.Dark.12, 0.5) 0%,
- rgba($colors.Gray.Dark.3, 1) 100%
- );
+ --ui-variables-panel-divider: linear-gradient(90deg, rgba($colors.Gray.Dark.12, 0.5) 0%, rgba($colors.Gray.Dark.3, 1) 100%);
--ui-variables-panel-warning-bg: #ffb224;
--ui-variables-panel-warning-text: #4e2009;
--ui-variables-panel-warning-bg-alt: #ffecbc;
--ui-variables-panel-danger-bg: #dc3d43;
--ui-variables-panel-danger-bg-alt: #eb9091;
- --ui-variables-panel-danger-text: #fffcfc;
+ --ui-variables-panel-danger-text: #FFFCFC;
--ui-variables-background-primary: var(--ui-colors-slate-light-2, #f8f9fa);
--ui-variables-background-border: $colors.Slate.Light.5;
--ui-variables-background-alt: var(--ui-colors-white, #ffffff);
@@ -68,36 +59,16 @@
--ui-variables-icon-outline-green: #299764;
--ui-variables-icon-fill-1-green: #92ceac;
--ui-variables-icon-fill-2-green: #92ceac;
- --ui-variables-icon-negative-icons: linear-gradient(
- 45deg,
- rgba($colors.Gray.Light.12, 0.5) 0%,
- rgba($colors.Gray.Light.Alpha.5, 1) 100%
- );
+ --ui-variables-icon-negative-icons: linear-gradient(45deg, rgba($colors.Gray.Light.12, 0.5) 0%, rgba($colors.Gray.Light.Alpha.5, 1) 100%);
--ui-variables-badge-text: #4cc38a;
--ui-variables-badge-background: #ddf3e4;
--ui-variables-card-alt-background: var(--ui-colors-white, #ffffff);
- --ui-variables-card-pill-label: linear-gradient(
- 90deg,
- rgba(#343232, 0.1) 0%,
- rgba(#d0d0d0, 0.1) 100%
- );
- --ui-variables-card-text: linear-gradient(45deg, #000000 0%, #82978d 100%);
- --ui-variables-card-lw6-illustration-dark-fill: linear-gradient(
- 60deg,
- rgba(#ffffff, 0.1) 0%,
- rgba(#08b8b2, 0.3) 100%
- );
- --ui-variables-card-lw6-illustration-border-highlight: linear-gradient(
- 45deg,
- rgba(#404040, 0.1) 50%,
- rgba(#3fcfb5, 1) 100%
- );
- --ui-variables-card-lw6-illustration-teal-fill: linear-gradient(
- 45deg,
- rgba(#ffffff, 0.5) 0%,
- rgba(#08b8b2, 0.3) 100%
- );
- --ui-variables-card-lw6-illustration-accent-color: #249c95;
+ --ui-variables-card-pill-label: linear-gradient(90deg, rgba(#343232, 0.1) 0%, rgba(#D0D0D0, 0.1) 100%);
+ --ui-variables-card-text: linear-gradient(45deg, #000000 0%, #82978D 100%);
+ --ui-variables-card-lw6-illustration-dark-fill: linear-gradient(60deg, rgba(#ffffff, 0.1) 0%, rgba(#08B8B2, 0.3) 100%);
+ --ui-variables-card-lw6-illustration-border-highlight: linear-gradient(45deg, rgba(#404040, 0.1) 50%, rgba(#3FCFB5, 1) 100%);
+ --ui-variables-card-lw6-illustration-teal-fill: linear-gradient(45deg, rgba(#ffffff, 0.5) 0%, rgba(#08B8B2, 0.3) 100%);
+ --ui-variables-card-lw6-illustration-accent-color: #249C95;
--ui-variables-colors-brand-primary: #3ecf8e;
--ui-variables-colors-brand-accent: #34b97d;
--ui-button-default-shadow: var(--ui-colors-slate-dark-6, [object Object]);
@@ -238,7 +209,7 @@
--ui-line-heights-lg: $base * 1.75;
--ui-line-heights-xl: $base * 1.75;
--ui-line-heights-2xl: $base * 2;
- --ui-line-heights-3xl: $base * 2.25;
+ --ui-line-heights-3xl: $base *2.25;
--ui-line-heights-4xl: $base * 2.5;
--ui-line-heights-5xl: $base * 3;
--ui-line-heights-6xl: $base * 3.75;
@@ -298,7 +269,7 @@
--ui-input-sm-height: 28;
--ui-panel2: var(--ui-border-radius-sm, 4);
--ui-base: 16;
- --ui-xxl: var(--ui-spacing-xl, 4 * 2 * 2 * 2 * 2 * 2);
+ --ui-xxl: var(--ui-spacing-xl, 4 * 2 * 2 * 2 * 2*2);
--ui-action-bar-vertical: 21;
--ui-action-bar-horizontal: 32;
--ui-table-header-horizontal: 32;
@@ -306,4 +277,4 @@
--ui-content-vertical: var(--ui-spacing-lg, 4 * 2 * 2 * 2);
--ui-content-horizontal: var(--ui-spacing-lg, 4 * 2 * 2 * 2);
--ui-controller-vertical: var(--ui-spacing-md, 4 * 2 * 2);
-}
+ }
\ No newline at end of file
diff --git a/packages/ui/tokens.json b/packages/ui/tokens.json
index b20bf90b7d2..624baf54751 100644
--- a/packages/ui/tokens.json
+++ b/packages/ui/tokens.json
@@ -2695,4 +2695,4 @@
"experimental/dark"
]
}
-}
+}
\ No newline at end of file