Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jan 16, 2025
1 parent 43fbaba commit fbc9ad4
Show file tree
Hide file tree
Showing 4 changed files with 2,474 additions and 13 deletions.
12 changes: 3 additions & 9 deletions apps/admin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "../../tsconfig",
"include": [
"src"
],
"include": ["src"],
"references": [
{
"path": "../../../packages/app-admin/tsconfig.build.json"
Expand All @@ -11,12 +9,8 @@
"compilerOptions": {
"composite": false,
"paths": {
"~/*": [
"./src/*"
],
"@webiny/app-admin/*": [
"../../../packages/app-admin/src/*"
]
"~/*": ["./src/*"],
"@webiny/app-admin/*": ["../../../packages/app-admin/src/*"]
},
"baseUrl": "."
}
Expand Down
9 changes: 7 additions & 2 deletions packages/admin-ui/scripts/importFromFigma.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const fs = require("fs");
const { green } = require("chalk");
const path = require("path");
const { normalizeFigmaExport } = require("./importFromFigma/normalizeFigmaExport");
const { normalizePrimitivesFigmaExport } = require("./importFromFigma/normalizePrimitivesFigmaExport");
const {
normalizePrimitivesFigmaExport
} = require("./importFromFigma/normalizePrimitivesFigmaExport");
const { createTailwindConfigTheme } = require("./importFromFigma/createTailwindConfigTheme");
const { createThemeScss } = require("./importFromFigma/createThemeScss");
const { formatCode } = require("./importFromFigma/formatCode");
Expand All @@ -21,7 +23,10 @@ const saveFileAndFormat = async (filePath, content) => {
const paths = {
cwd: process.cwd(),
normalizedFigmaExport: path.join(__dirname, "../.normalizedFigmaExport.json"),
normalizedPrimitivesFigmaExport: path.join(__dirname, "../.normalizedPrimitivesFigmaExport.json"),
normalizedPrimitivesFigmaExport: path.join(
__dirname,
"../.normalizedPrimitivesFigmaExport.json"
),
createTailwindConfigTheme: path.join(__dirname, "../tailwind.config.theme.js"),
stylesScss: path.join(__dirname, "../src/theme.scss")
};
Expand Down
2,465 changes: 2,464 additions & 1 deletion packages/admin-ui/scripts/importFromFigma/exports/Primitives.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const normalizePrimitivesFigmaExport = () => {
return null;
}


const type = getVariableType(variable.name);

if (isColorWithAlpha(variantName)) {
Expand Down

0 comments on commit fbc9ad4

Please sign in to comment.