diff --git a/packages/builder/assets/Inter-Black.woff b/packages/builder/assets/Inter-Black.woff new file mode 100644 index 0000000000..07800f4b74 Binary files /dev/null and b/packages/builder/assets/Inter-Black.woff differ diff --git a/packages/builder/assets/Inter-Black.woff2 b/packages/builder/assets/Inter-Black.woff2 new file mode 100644 index 0000000000..9a615e6e83 Binary files /dev/null and b/packages/builder/assets/Inter-Black.woff2 differ diff --git a/packages/builder/assets/Inter-Bold.woff b/packages/builder/assets/Inter-Bold.woff new file mode 100644 index 0000000000..61e1c25e64 Binary files /dev/null and b/packages/builder/assets/Inter-Bold.woff differ diff --git a/packages/builder/assets/Inter-Bold.woff2 b/packages/builder/assets/Inter-Bold.woff2 new file mode 100644 index 0000000000..6c401bb09b Binary files /dev/null and b/packages/builder/assets/Inter-Bold.woff2 differ diff --git a/packages/builder/assets/Inter-ExtraBold.woff b/packages/builder/assets/Inter-ExtraBold.woff new file mode 100644 index 0000000000..433fb3285c Binary files /dev/null and b/packages/builder/assets/Inter-ExtraBold.woff differ diff --git a/packages/builder/assets/Inter-ExtraBold.woff2 b/packages/builder/assets/Inter-ExtraBold.woff2 new file mode 100644 index 0000000000..5a08b364d5 Binary files /dev/null and b/packages/builder/assets/Inter-ExtraBold.woff2 differ diff --git a/packages/builder/assets/Inter-Medium.woff b/packages/builder/assets/Inter-Medium.woff new file mode 100644 index 0000000000..8c36a6345e Binary files /dev/null and b/packages/builder/assets/Inter-Medium.woff differ diff --git a/packages/builder/assets/Inter-Medium.woff2 b/packages/builder/assets/Inter-Medium.woff2 new file mode 100644 index 0000000000..3b31d3350a Binary files /dev/null and b/packages/builder/assets/Inter-Medium.woff2 differ diff --git a/packages/builder/assets/Inter-Regular.woff b/packages/builder/assets/Inter-Regular.woff new file mode 100644 index 0000000000..7d587c40bf Binary files /dev/null and b/packages/builder/assets/Inter-Regular.woff differ diff --git a/packages/builder/assets/Inter-Regular.woff2 b/packages/builder/assets/Inter-Regular.woff2 new file mode 100644 index 0000000000..d5ffd2a1f1 Binary files /dev/null and b/packages/builder/assets/Inter-Regular.woff2 differ diff --git a/packages/builder/assets/Inter-SemiBold.woff b/packages/builder/assets/Inter-SemiBold.woff new file mode 100644 index 0000000000..99df06cbee Binary files /dev/null and b/packages/builder/assets/Inter-SemiBold.woff differ diff --git a/packages/builder/assets/Inter-SemiBold.woff2 b/packages/builder/assets/Inter-SemiBold.woff2 new file mode 100644 index 0000000000..df746af999 Binary files /dev/null and b/packages/builder/assets/Inter-SemiBold.woff2 differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-300.woff b/packages/builder/assets/roboto-v20-latin-ext_latin-300.woff deleted file mode 100644 index 72f1207930..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-300.woff and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-300.woff2 b/packages/builder/assets/roboto-v20-latin-ext_latin-300.woff2 deleted file mode 100644 index 05fda6ab5c..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-300.woff2 and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-500.woff b/packages/builder/assets/roboto-v20-latin-ext_latin-500.woff deleted file mode 100644 index fb70b7e915..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-500.woff and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-500.woff2 b/packages/builder/assets/roboto-v20-latin-ext_latin-500.woff2 deleted file mode 100644 index 96981bc870..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-500.woff2 and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-700.woff b/packages/builder/assets/roboto-v20-latin-ext_latin-700.woff deleted file mode 100644 index d023f3de32..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-700.woff and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-700.woff2 b/packages/builder/assets/roboto-v20-latin-ext_latin-700.woff2 deleted file mode 100644 index fd49210352..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-700.woff2 and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-900.woff b/packages/builder/assets/roboto-v20-latin-ext_latin-900.woff deleted file mode 100644 index 397450501b..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-900.woff and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-900.woff2 b/packages/builder/assets/roboto-v20-latin-ext_latin-900.woff2 deleted file mode 100644 index 5cd76971f1..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-900.woff2 and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-regular.woff b/packages/builder/assets/roboto-v20-latin-ext_latin-regular.woff deleted file mode 100644 index f9849dfbee..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-regular.woff and /dev/null differ diff --git a/packages/builder/assets/roboto-v20-latin-ext_latin-regular.woff2 b/packages/builder/assets/roboto-v20-latin-ext_latin-regular.woff2 deleted file mode 100644 index 1f7dd5b890..0000000000 Binary files a/packages/builder/assets/roboto-v20-latin-ext_latin-regular.woff2 and /dev/null differ diff --git a/packages/builder/package.json b/packages/builder/package.json index 1d7786a090..80038d3ceb 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -51,7 +51,7 @@ }, "dependencies": { "@beyonk/svelte-notifications": "^2.0.3", - "@budibase/bbui": "^1.8.0", + "@budibase/bbui": "^1.10.1", "@budibase/client": "^0.0.32", "@nx-js/compiler-util": "^2.0.0", "codemirror": "^5.51.0", diff --git a/packages/builder/src/budibase.css b/packages/builder/src/budibase.css index 3d880cbfa2..b40029e230 100644 --- a/packages/builder/src/budibase.css +++ b/packages/builder/src/budibase.css @@ -57,13 +57,14 @@ .budibase__nav-item { cursor: pointer; padding: 0 4px 0 2px; - height: 35px; - margin: 5px 0px 4px 0px; - border-radius: 0 5px 5px 0; + height: 36px; + margin: 0px 0px 0px 0px; + border-radius: 5px; display: flex; align-items: center; font-size: 14px; transition: 0.2s; + border-top: var(--grey-1) .5px solid; } .budibase__nav-item.selected { @@ -72,14 +73,14 @@ } .budibase__nav-item:hover { - background: var(--grey-light); + background: var(--grey-1); } .budibase__input { - height: 35px; + height: 36px; width: 220px; border-radius: 3px; - border: 1px solid var(--grey-dark); + border: 1px solid var(--grey-4); text-align: left; color: var(--ink); font-size: 14px; @@ -100,7 +101,7 @@ } .budibase__table { - border: 1px solid var(--grey-dark); + border: 1px solid var(--grey-4); background: #fff; border-radius: 2px; } @@ -116,12 +117,12 @@ } .budibase__table tr { - border-bottom: 1px solid var(--grey-light); + border-bottom: 1px solid var(--grey-1); } .button--toggled { background: var(--blue-light); - color: var(--ink-light); + color: var(--grey-7); width: 40px; height: 40px; display: flex; diff --git a/packages/builder/src/components/common/ActionButton.svelte b/packages/builder/src/components/common/ActionButton.svelte index 147737b5c6..3af21e4398 100644 --- a/packages/builder/src/components/common/ActionButton.svelte +++ b/packages/builder/src/components/common/ActionButton.svelte @@ -41,7 +41,7 @@ .secondary { color: var(--ink); - border: solid 1px var(--grey-dark); + border: solid 1px var(--grey-4); background: white; } diff --git a/packages/builder/src/components/common/AppNotification.svelte b/packages/builder/src/components/common/AppNotification.svelte index 2e8723ab53..74ea1c1fd4 100644 --- a/packages/builder/src/components/common/AppNotification.svelte +++ b/packages/builder/src/components/common/AppNotification.svelte @@ -55,9 +55,8 @@ } :global(.uk-notification-message-danger) { - background: var(--ink-light) !important; + background: var(--grey-9) !important; color: #fff !important; - font-family: Roboto; font-size: 16px !important; } @@ -72,6 +71,6 @@ } :global(.refresh-page-button):hover { - background: var(--grey-light); + background: var(--grey-1); } diff --git a/packages/builder/src/components/common/Button.svelte b/packages/builder/src/components/common/Button.svelte index 5b8f2fb593..a5fe3752a2 100644 --- a/packages/builder/src/components/common/Button.svelte +++ b/packages/builder/src/components/common/Button.svelte @@ -42,14 +42,14 @@ /* ---- PRIMARY ----*/ .primary { - background-color: var(--primary100); - border-color: var(--primary100); + background-color: var(--blue); + border-color: var(--blue); color: var(--white); } .primary:hover { - background-color: var(--primary75); - border-color: var(--primary75); + background-color: var(--blue); + border-color: var(--blue); } .primary:active { @@ -59,8 +59,8 @@ .primary-outline { background-color: var(--white); - border-color: var(--primary100); - color: var(--primary100); + border-color: var(--blue); + color: var(--blue); } .primary-outline:hover { @@ -74,8 +74,8 @@ /* ---- secondary ----*/ .secondary { - background-color: var(--secondary100); - border-color: var(--secondary100); + background-color: var(--ink); + border-color: var(--ink); color: var(--white); } @@ -91,8 +91,8 @@ .secondary-outline { background-color: var(--white); - border-color: var(--secondary100); - color: var(--secondary100); + border-color: var(--ink); + color: var(--ink); } .secondary-outline:hover { @@ -136,32 +136,36 @@ /* ---- deletion ----*/ .deletion { - background-color: var(--deletion100); - border-color: var(--deletion100); + background-color: var(--red); + border-color: var(--red); color: var(--white); } .deletion:hover { - background-color: var(--deletion75); - border-color: var(--deletion75); + background-color: var(--red-light); + border-color: var(--red); + color: var(--red); } .deletion:pressed { - background-color: var(--deletiondark); - border-color: var(--deletiondark); + background-color: var(--red-dark); + border-color: var(--red-dark); + color: var(--white); } .deletion-outline { background-color: var(--white); - border-color: var(--deletion100); - color: var(--deletion100); + border-color: var(--red); + color: var(--red); } .deletion-outline:hover { - background-color: var(--deletion10); + background-color: var(--red-light); + color: var(--red); } .deletion-outline:pressed { - background-color: var(--deletion25); + background-color: var(--red-dark); + color: var(--white); } diff --git a/packages/builder/src/components/common/CodeArea.svelte b/packages/builder/src/components/common/CodeArea.svelte index e6a4fac030..afa12dfcca 100644 --- a/packages/builder/src/components/common/CodeArea.svelte +++ b/packages/builder/src/components/common/CodeArea.svelte @@ -11,7 +11,7 @@ padding: 10px; margin-top: 5px; margin-bottom: 10px; - background: var(--secondary80); + background: var(--grey-7); color: var(--white); font-family: "Courier New", Courier, monospace; height: 200px; diff --git a/packages/builder/src/components/common/ConfirmDialog.svelte b/packages/builder/src/components/common/ConfirmDialog.svelte index 98524caa18..cd3ffb9b79 100644 --- a/packages/builder/src/components/common/ConfirmDialog.svelte +++ b/packages/builder/src/components/common/ConfirmDialog.svelte @@ -54,7 +54,7 @@ diff --git a/packages/builder/src/components/common/Select.svelte b/packages/builder/src/components/common/Select.svelte index 4bdd2a941e..0eb368dac9 100644 --- a/packages/builder/src/components/common/Select.svelte +++ b/packages/builder/src/components/common/Select.svelte @@ -21,7 +21,7 @@ .select-container { font-size: 14px; position: relative; - border: var(--grey-dark) 1px solid; + border: var(--grey-4) 1px solid; } .adjusted { diff --git a/packages/builder/src/components/common/Switcher.svelte b/packages/builder/src/components/common/Switcher.svelte index 484d52ee07..59c44190af 100644 --- a/packages/builder/src/components/common/Switcher.svelte +++ b/packages/builder/src/components/common/Switcher.svelte @@ -43,7 +43,7 @@ display: flex; flex-direction: column; padding: 20px 20px; - border-left: solid 1px var(--grey); + border-left: solid 1px var(--grey-2); box-sizing: border-box; } @@ -60,10 +60,11 @@ padding: 0; cursor: pointer; font-size: 18px; - font-weight: 700; - color: var(--ink-lighter); + font-weight: 600; + color: var(--grey-5); margin-right: 20px; background: none; + outline: none; } .switcher > .selected { diff --git a/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte b/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte index 8eb6defa8f..69e2011989 100644 --- a/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte +++ b/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte @@ -55,14 +55,12 @@ $: { if ($backendUiStore.selectedView) { - api - .fetchDataForView($backendUiStore.selectedView) - .then(records => { - data = records || [] - headers = Object.keys($backendUiStore.selectedModel.schema).filter( - key => !INTERNAL_HEADERS.includes(key) - ) - }) + api.fetchDataForView($backendUiStore.selectedView).then(records => { + data = records || [] + headers = Object.keys($backendUiStore.selectedModel.schema).filter( + key => !INTERNAL_HEADERS.includes(key) + ) + }) } } @@ -143,7 +141,7 @@ } table { - border: 1px solid var(--grey-dark); + border: 1px solid var(--grey-4); background: #fff; border-radius: 3px; border-collapse: collapse; @@ -151,7 +149,7 @@ thead { background: var(--blue-light); - border: 1px solid var(--grey-dark); + border: 1px solid var(--grey-4); } thead th { @@ -160,18 +158,17 @@ font-weight: 500; font-size: 14px; text-rendering: optimizeLegibility; - letter-spacing: 1px; } tbody tr { - border-bottom: 1px solid var(--grey-dark); + border-bottom: 1px solid var(--grey-4); transition: 0.3s background-color; color: var(--ink); font-size: 14px; } tbody tr:hover { - background: var(--grey-light); + background: var(--grey-1); } .table-controls { diff --git a/packages/builder/src/components/database/ModelDataTable/TablePagination.svelte b/packages/builder/src/components/database/ModelDataTable/TablePagination.svelte index 52a480f224..508ee60b23 100644 --- a/packages/builder/src/components/database/ModelDataTable/TablePagination.svelte +++ b/packages/builder/src/components/database/ModelDataTable/TablePagination.svelte @@ -58,20 +58,19 @@ padding: 10px; margin: 0; background: #fff; - border: 1px solid #ccc; + border: 1px solid var(--grey-4); text-transform: capitalize; border-radius: 3px; - font-family: Roboto; min-width: 20px; transition: 0.3s background-color; } .pagination__buttons button:hover { cursor: pointer; - background-color: #fafafa; + background-color: var(--grey-1); } .selected { - color: var(--button-text); + color: var(--blue); } diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte index b9208b15a3..d50adc2d10 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte @@ -34,7 +34,7 @@ } footer { padding: 20px; - background: #fafafa; + background: var(--grey-1); border-radius: 0.5rem; } diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte index a01acdc68d..6e1a1d564b 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte @@ -130,7 +130,7 @@ } tbody > tr:hover { - background-color: var(--grey-light); + background-color: var(--grey-1); } .table-controls { @@ -156,7 +156,7 @@ } footer { - background-color: var(--grey-light); + background-color: var(--grey-1); margin-top: 40px; padding: 20px 40px 20px 40px; display: flex; diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/FieldView.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/FieldView.svelte index c17a0ac9c8..75f6585298 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/FieldView.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/FieldView.svelte @@ -94,7 +94,7 @@ border-radius: 0 0 5px 5px; bottom: 0; left: 0; - background: var(--grey-light); + background: var(--grey-1); display: flex; align-items: center; justify-content: flex-end; diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte index a97cdc0ca1..7e1eb5fd08 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte @@ -90,7 +90,7 @@ } footer { padding: 20px; - background: #fafafa; + background: var(--grey-1); border-radius: 0.5rem; } diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte index 53cb3e2cc6..c7d3ec8af0 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte @@ -96,7 +96,7 @@ .snippet-selector__heading { margin-right: 20px; font-size: 14px; - color: var(--ink-lighter); + color: var(--grey-5); } .header { @@ -116,7 +116,7 @@ .buttons { display: flex; justify-content: flex-end; - background-color: var(--grey-light); + background-color: var(--grey-1); margin: 0 40px; padding: 20px 0; } diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte index 2587f00ea8..eef38ecfec 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte @@ -69,7 +69,7 @@ .title { font-size: 24px; - font-weight: 700; + font-weight: 600; color: var(--ink); margin-left: 12px; } @@ -84,7 +84,7 @@ align-items: center; justify-content: flex-end; padding: 20px; - background: var(--grey-light); + background: var(--grey-1); border-radius: 0 0 5px 5px; } diff --git a/packages/builder/src/components/database/ModelDataTable/modals/DeleteRecord.svelte b/packages/builder/src/components/database/ModelDataTable/modals/DeleteRecord.svelte index aa192b32eb..f3c32633cc 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/DeleteRecord.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/DeleteRecord.svelte @@ -5,7 +5,6 @@ export let record export let onClosed -
@@ -36,13 +35,13 @@ - -
- {#each colorFormats as text} - onclick(text)} /> - {/each} -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte b/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte index 19d54523b2..3d64c38921 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte @@ -1,17 +1,25 @@ +
+ +
+
+ +
+ - -
- -
\ No newline at end of file diff --git a/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte b/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte index 5989e6b3ed..c50b119e53 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte @@ -1,39 +1,39 @@ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ setHue(hue.detail)} /> + + + setAlpha(alpha.detail)} /> + + +
+
+ +
+ + handleColorInput(event.target.value)} /> +
+
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ setHue(hue.detail)} + on:dragend={dispatchValue} /> + + + setAlpha(alpha.detail, isDrag)} + on:dragend={dispatchValue} /> + + +
+
+ + {#if !disableSwatches} +
+ {#if swatches.length > 0} + {#each swatches as color, idx} + applySwatch(color)} + on:removeswatch={() => removeSwatch(idx)} /> + {/each} + {/if} + {#if swatches.length !== 12} +
+ + +
+ {/if} +
+ {/if} + +
+ + handleColorInput(event.target.value)} + on:change={dispatchInputChange} /> +
+
+ +
+ - -
- -
- -
- -
-
-
- -
- -
-
- setHue(hue.detail)} on:dragend={dispatchValue} /> - - - setAlpha(alpha.detail, isDrag)} - on:dragend={dispatchValue} - /> - - -
-
- - {#if !disableSwatches} -
- {#if swatches.length > 0} - {#each swatches as color, idx} - applySwatch(color)} on:removeswatch={() => removeSwatch(idx)} /> - {/each} - {/if} - {#if swatches.length !== 12} -
- + -
- {/if} -
- {/if} - -
- - handleColorInput(event.target.value)} on:change={dispatchInputChange} /> -
-
- -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte b/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte index 32a5e63ff3..72da43181e 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte @@ -1,152 +1,184 @@
- {#if !errorMsg} - -
- + {#if !errorMsg} + +
+ - {#if open} -
- -
-
open = false} class="overlay">
- {/if} - {:else} -
- × -
+ {#if open} +
+ +
+
(open = false)} class="overlay" /> {/if} + {:else} +
+ × +
+ {/if}
- - diff --git a/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte b/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte index 881f73d134..15bc72fe3c 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte @@ -1,8 +1,10 @@ +
{text}
+ - -
{text}
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Input.svelte b/packages/builder/src/components/userInterface/Colorpicker/Input.svelte index 811a51cea6..c148d6bf30 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Input.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Input.svelte @@ -1,7 +1,14 @@ +
+ +
+
+ +
+ - -
- -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte b/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte index 4763ee86cc..64fac9d9c9 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte @@ -1,42 +1,58 @@ + +
+
+
+ + - - -
-
-
- diff --git a/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte b/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte index edf0888432..906f5f0d6a 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte @@ -1,37 +1,62 @@ +
handleClick(event.clientX)} + class="color-format-slider" + class:hue={type === 'hue'} + class:alpha={type === 'alpha'}> +
handleClick(e.detail)} + class="slider-thumb" + {style} /> +
+
onSliderChange(event.clientX)} + class="color-format-slider" + class:hue={type === 'hue'} + class:alpha={type === 'alpha'}> +
onSliderChange(e.detail, true)} + on:dragend + class="slider-thumb" + {style} /> +
+ - -
onSliderChange(event.clientX)} - class="color-format-slider" - class:hue={type === 'hue'} - class:alpha={type === 'alpha'}> -
onSliderChange(e.detail, true)} - on:dragend - class="slider-thumb" - {style} /> -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Swatch.svelte b/packages/builder/src/components/userInterface/Colorpicker/Swatch.svelte index e602b72d33..2424df2003 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Swatch.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Swatch.svelte @@ -1,27 +1,47 @@ +
+ +
(hovered = true)} + on:mouseleave={() => (hovered = false)}> + {#if hovered} +
dispatch('removeswatch')}> + dispatch('removeswatch')}>× +
+ {/if} +
+
+
+ - -
- -
hovered = true} on:mouseleave={() => hovered = false}> - {#if hovered} -
dispatch("removeswatch")}> - dispatch("removeswatch")}>× -
- {/if} -
-
-
\ No newline at end of file diff --git a/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte b/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte index 0b51b962ba..28dd59c16f 100644 --- a/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte @@ -257,21 +257,21 @@ .menu li:not(.disabled) { cursor: pointer; - color: var(--ink-light); + color: var(--grey-7); } .menu li:not(.disabled):hover { color: var(--ink); - background-color: var(--grey-light); + background-color: var(--grey-1); } .disabled { - color: var(--grey-dark); + color: var(--grey-4); cursor: default; } .hr-style { margin: 8px 0; - color: var(--grey-dark); + color: var(--grey-4); } diff --git a/packages/builder/src/components/userInterface/ComponentSearch.svelte b/packages/builder/src/components/userInterface/ComponentSearch.svelte index b8583075c8..b65a08b5eb 100644 --- a/packages/builder/src/components/userInterface/ComponentSearch.svelte +++ b/packages/builder/src/components/userInterface/ComponentSearch.svelte @@ -38,7 +38,7 @@ padding: 5px; border-style: solid; border-width: 0 0 1px 0; - border-color: var(--lightslate); + border-color: var(--grey-1); cursor: pointer; } @@ -48,12 +48,12 @@ .component > .title { font-size: 13pt; - color: var(--secondary100); + color: var(--ink); } .component > .description { font-size: 10pt; - color: var(--primary75); + color: var(--blue); font-style: italic; } diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte index 041377aedc..1381e66221 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte @@ -77,8 +77,7 @@ } .title { - margin-left: 10px; - margin-top: 2px; + margin-left: 14px; font-size: 14px; font-weight: 400; } @@ -87,9 +86,8 @@ display: inline-block; transition: 0.2s; font-size: 24px; - width: 20px; - margin-top: 2px; - color: var(--ink-light); + width: 18px; + color: var(--grey-7); } .icon:nth-of-type(2) { diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte index 43473a85a3..cb9fa9d8ec 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte @@ -39,7 +39,7 @@
+ style="padding-left: {level * 20 + 40}px"> -
-
- {#if propertyGroupNames.length > 0} - {#each propertyGroupNames as groupName} - - {/each} - {:else} -
- This component does not have any design properties -
- {/if} +
+
+ {#if propertyGroupNames.length > 0} + {#each propertyGroupNames as groupName} + + {/each} + {:else} +
+ This component does not have any design properties +
+ {/if} +
-
diff --git a/packages/builder/src/components/userInterface/FlatButton.svelte b/packages/builder/src/components/userInterface/FlatButton.svelte index 2eff1a6be4..f27a2902ee 100644 --- a/packages/builder/src/components/userInterface/FlatButton.svelte +++ b/packages/builder/src/components/userInterface/FlatButton.svelte @@ -3,20 +3,13 @@ export let value = "" export let text = "" export let icon = "" - export let padding = "8px 5px;" export let onClick = value => {} export let selected = false - export let fontWeight = "" - $: style = buildStyle({ padding, fontWeight }) $: useIcon = !!icon -
onClick(value || text)}> +
onClick(value || text)}> {#if useIcon} {:else} @@ -29,25 +22,27 @@ diff --git a/packages/builder/src/components/userInterface/FlatButtonGroup.svelte b/packages/builder/src/components/userInterface/FlatButtonGroup.svelte index c9523f4d5a..6789ada5aa 100644 --- a/packages/builder/src/components/userInterface/FlatButtonGroup.svelte +++ b/packages/builder/src/components/userInterface/FlatButtonGroup.svelte @@ -46,6 +46,7 @@ diff --git a/packages/builder/src/components/userInterface/LayoutEditor.svelte b/packages/builder/src/components/userInterface/LayoutEditor.svelte index 0f3efaec0a..b36e6aa4a7 100644 --- a/packages/builder/src/components/userInterface/LayoutEditor.svelte +++ b/packages/builder/src/components/userInterface/LayoutEditor.svelte @@ -132,8 +132,8 @@ h3 { text-transform: uppercase; font-size: 13px; - font-weight: 700; - color: #000333; + font-weight: 600; + color: var(--ink); opacity: 0.6; margin-bottom: 10px; } @@ -142,16 +142,15 @@ text-transform: uppercase; font-size: 10px; font-weight: 600; - color: #000333; + color: var(--ink); opacity: 0.4; - letter-spacing: 1px; margin-bottom: 10px; } h5 { font-size: 13px; font-weight: 400; - color: #000333; + color: var(--ink); opacity: 0.8; padding-top: 13px; margin-bottom: 0; diff --git a/packages/builder/src/components/userInterface/LayoutTemplateControls.svelte b/packages/builder/src/components/userInterface/LayoutTemplateControls.svelte index dc1395bf0e..05a92d3e77 100644 --- a/packages/builder/src/components/userInterface/LayoutTemplateControls.svelte +++ b/packages/builder/src/components/userInterface/LayoutTemplateControls.svelte @@ -50,7 +50,7 @@ diff --git a/packages/builder/src/components/userInterface/OptionSelect.svelte b/packages/builder/src/components/userInterface/OptionSelect.svelte index 8a1e3685f6..1c85a06392 100644 --- a/packages/builder/src/components/userInterface/OptionSelect.svelte +++ b/packages/builder/src/components/userInterface/OptionSelect.svelte @@ -142,24 +142,24 @@ position: relative; outline: none; width: 160px; - height: 32px; + height: 36px; cursor: pointer; - font-size: 12px; + font-size: 14px; } .bb-select-anchor { cursor: pointer; display: flex; - padding: 5px 10px; - background-color: #f2f2f2; - border-radius: 2px; - border: 1px solid var(--grey-dark); + padding: 0px 12px; + height: 36px; + background-color: var(--grey-2); + border-radius: 5px; align-items: center; } .bb-select-anchor > span { - color: #565a66; - font-weight: 500; + color: var(--ink); + font-weight: 400; width: 140px; overflow-x: hidden; } @@ -173,8 +173,8 @@ } .selected { - color: #565a66; - font-weight: 500; + color: var(--ink); + font-weight: 400; } .bb-select-menu { @@ -185,15 +185,15 @@ opacity: 0; width: 160px; z-index: 2; - color: #808192; - font-weight: 500; + color: var(--ink); + font-weight: 400; height: fit-content !important; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; - border-right: 1px solid var(--grey-dark); - border-left: 1px solid var(--grey-dark); - border-bottom: 1px solid var(--grey-dark); - background-color: #f2f2f2; + border-right: 1px solid var(--grey-4); + border-left: 1px solid var(--grey-4); + border-bottom: 1px solid var(--grey-4); + background-color: var(--grey-2); transform: scale(0); transition: opacity 0.13s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1); overflow-y: auto; diff --git a/packages/builder/src/components/userInterface/PageLayout.svelte b/packages/builder/src/components/userInterface/PageLayout.svelte index c2ad4b590b..d64ab670ba 100644 --- a/packages/builder/src/components/userInterface/PageLayout.svelte +++ b/packages/builder/src/components/userInterface/PageLayout.svelte @@ -73,12 +73,12 @@ display: inline-block; transition: 0.2s; width: 20px; - color: var(--ink-light); + color: var(--grey-7); } .icon-big { - font-size: 24px; - color: var(--ink-light); + font-size: 20px; + color: var(--grey-7); } :global(svg) { diff --git a/packages/builder/src/components/userInterface/PageView.svelte b/packages/builder/src/components/userInterface/PageView.svelte index c00e7591f4..d60a4082de 100644 --- a/packages/builder/src/components/userInterface/PageView.svelte +++ b/packages/builder/src/components/userInterface/PageView.svelte @@ -59,7 +59,7 @@ padding: 15px; } .help-text { - color: var(--slate); + color: var(--grey-2); font-size: 10pt; } diff --git a/packages/builder/src/components/userInterface/PagesList.svelte b/packages/builder/src/components/userInterface/PagesList.svelte index 5a78ef7121..df8bdf7d99 100644 --- a/packages/builder/src/components/userInterface/PagesList.svelte +++ b/packages/builder/src/components/userInterface/PagesList.svelte @@ -43,22 +43,24 @@ button { cursor: pointer; - padding: 8px 16px; + padding: 0px 16px; + height: 36px; text-align: center; background: #ffffff; - color: var(--ink-light); + color: var(--grey-7); border-radius: 5px; - font-family: Roboto; + font-family: inter; font-size: 14px; font-weight: 400; transition: all 0.3s; text-rendering: optimizeLegibility; border: none !important; transition: 0.2s; + outline: none; } .active { - background: var(--ink-light); - color: var(--white); + background: var(--grey-3); + color: var(--ink); } diff --git a/packages/builder/src/components/userInterface/PropControl.svelte b/packages/builder/src/components/userInterface/PropControl.svelte index 332f039b03..a7053953f4 100644 --- a/packages/builder/src/components/userInterface/PropControl.svelte +++ b/packages/builder/src/components/userInterface/PropControl.svelte @@ -38,7 +38,7 @@ word-wrap: break-word; font-size: 13px; font-weight: 400; - color: #000333; + color: var(--ink); opacity: 0.8; padding-top: 13px; margin-bottom: 0; diff --git a/packages/builder/src/components/userInterface/PropertyControl.svelte b/packages/builder/src/components/userInterface/PropertyControl.svelte index bd68002b98..b79d01fb32 100644 --- a/packages/builder/src/components/userInterface/PropertyControl.svelte +++ b/packages/builder/src/components/userInterface/PropertyControl.svelte @@ -12,7 +12,7 @@ if (v.target) { let val = props.valueKey ? v.target[props.valueKey] : v.target.value onChange(key, val) - }else if(v.detail) { + } else if (v.detail) { onChange(key, v.detail) } else { onChange(key, v) @@ -55,7 +55,6 @@ flex: 0 0 50px; display: flex; align-items: center; - padding: 0px 5px; font-size: 12px; font-weight: 400; text-align: left; diff --git a/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte index d2924675e6..1bf32fd925 100644 --- a/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte +++ b/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte @@ -100,7 +100,7 @@ grid-template-columns: 300px 1fr 300px; height: 100%; width: 100%; - background: #fbfbfb; + background: var(--grey-1); } .ui-nav { @@ -128,23 +128,21 @@ .components-nav-page { font-size: 13px; - color: #000333; + color: var(--ink); text-transform: uppercase; padding-left: 20px; margin-top: 20px; font-weight: 600; opacity: 0.4; - letter-spacing: 1px; } .components-nav-header { font-size: 13px; - color: #000333; + color: var(--ink); text-transform: uppercase; margin-top: 20px; font-weight: 600; opacity: 0.4; - letter-spacing: 1px; } .nav-header { @@ -184,21 +182,20 @@ vertical-align: bottom; grid-column-start: button; cursor: pointer; - color: var(--primary75); + color: var(--blue); } .nav-group-header > div:nth-child(3):hover { - color: var(--primary75); + color: var(--blue); } .navigator-title { font-size: 14px; - color: var(--secondary100); + color: var(--ink); font-weight: 600; text-transform: uppercase; padding: 0 20px 20px 20px; line-height: 1rem !important; - letter-spacing: 1px; } .components-list-container { diff --git a/packages/builder/src/components/userInterface/propertyCategories.js b/packages/builder/src/components/userInterface/propertyCategories.js index d2043289c8..f0228d5f04 100644 --- a/packages/builder/src/components/userInterface/propertyCategories.js +++ b/packages/builder/src/components/userInterface/propertyCategories.js @@ -1,6 +1,5 @@ import Input from "../common/Input.svelte" import OptionSelect from "./OptionSelect.svelte" -import InputGroup from "../common/Inputs/InputGroup.svelte" import FlatButtonGroup from "./FlatButtonGroup.svelte" import Colorpicker from "./Colorpicker" /* @@ -14,7 +13,7 @@ export const layout = [ control: OptionSelect, initialValue: "", options: [ - { label: "", value: "" }, + { label: "N/A ", value: "N/A" }, { label: "Flex", value: "flex" }, { label: "Inline Flex", value: "inline-flex" }, ], @@ -73,27 +72,169 @@ export const layout = [ }, ] -const spacingMeta = [ - { placeholder: "T" }, - { placeholder: "R" }, - { placeholder: "B" }, - { placeholder: "L" }, -] - -export const spacing = [ +export const margin = [ { - label: "Margin", + label: "All sides", key: "margin", - control: InputGroup, - meta: spacingMeta, - defaultValue: ["0", "0", "0", "0"], + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], }, { - label: "Padding", + label: "Top", + key: "margin-top", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Right", + key: "margin-right", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Bottom", + key: "padding-bottom", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Left", + key: "margin-left", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, +] + +export const padding = [ + { + label: "All sides", key: "padding", - control: InputGroup, - meta: spacingMeta, - defaultValue: ["0", "0", "0", "0"], + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Top", + key: "padding-top", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Right", + key: "padding-right", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Bottom", + key: "padding-bottom", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], + }, + { + label: "Left", + key: "padding-left", + control: OptionSelect, + options: [ + { label: "None", value: "0px" }, + { label: "4px", value: "4px" }, + { label: "8px", value: "8px" }, + { label: "16px", value: "16px" }, + { label: "20px", value: "20px" }, + { label: "32px", value: "32px" }, + { label: "64px", value: "64px" }, + { label: "Auto", value: "auto" }, + { label: "100%", value: "100%" }, + ], }, ] @@ -103,7 +244,6 @@ export const size = [ key: "width", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { @@ -111,39 +251,34 @@ export const size = [ key: "height", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { - label: "Min W", + label: "Min Width", key: "min-width", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { - label: "Min H", - key: "min-height", - control: Input, - placeholder: "px", - width: "48px", - textAlign: "center", - }, - { - label: "Max W", + label: "Max Width", key: "max-width", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { - label: "Max H", + label: "Min Height", + key: "min-height", + control: Input, + placeholder: "px", + textAlign: "center", + }, + { + label: "Max Height", key: "max-height", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, ] @@ -153,8 +288,9 @@ export const position = [ label: "Position", key: "position", control: OptionSelect, - initialValue: "Wrap", + initialValue: "None", options: [ + { label: "None", value: "none" }, { label: "Static", value: "static" }, { label: "Relative", value: "relative" }, { label: "Fixed", value: "fixed" }, @@ -167,7 +303,6 @@ export const position = [ key: "top", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { @@ -175,7 +310,6 @@ export const position = [ key: "right", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { @@ -183,7 +317,6 @@ export const position = [ key: "bottom", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { @@ -191,16 +324,13 @@ export const position = [ key: "left", control: Input, placeholder: "px", - width: "48px", textAlign: "center", }, { label: "Z-index", key: "z-index", - control: Input, - placeholder: "num", - width: "48px", - textAlign: "center", + control: OptionSelect, + options: ["-9999", "-3", "-2", "-1", "0", "1", "2", "3", "9999"], }, ] @@ -239,19 +369,28 @@ export const typography = [ { label: "size", key: "font-size", - defaultValue: "", - control: Input, - placeholder: "px", - width: "48px", + control: OptionSelect, + options: [ + "8px", + "10px", + "12px", + "14px", + "16px", + "18px", + "20px", + "24px", + "32px", + "48px", + "60px", + "72px", + ], textAlign: "center", }, { label: "Line H", key: "line-height", - control: Input, - placeholder: "lh", - width: "48px", - textAlign: "center", + control: OptionSelect, + options: ["1", "1.25", "1.5", "1.75", "2", "4"], }, { label: "Color", @@ -275,25 +414,20 @@ export const typography = [ key: "text-transform", control: FlatButtonGroup, buttonProps: [ - { text: "BB", padding: "0px 5px", fontWeight: 500, value: "uppercase" }, - { text: "Bb", padding: "0px 5px", fontWeight: 500, value: "capitalize" }, - { text: "bb", padding: "0px 5px", fontWeight: 500, value: "lowercase" }, - { - text: "×", - padding: "0px 5px", - fontWeight: 500, - value: "none", - }, + { text: "BB", value: "uppercase" }, + { text: "Bb", value: "capitalize" }, + { text: "bb", value: "lowercase" }, + { text: "×", value: "none" }, ], }, { label: "Decoration", key: "text-decoration-line", control: OptionSelect, - defaultValue: "Underline", + defaultValue: "None", options: [ - { label: "Underline", value: "underline" }, { label: "None", value: "none" }, + { label: "Underline", value: "underline" }, { label: "Overline", value: "overline" }, { label: "Line-through", value: "line-through" }, { label: "Under Over", value: "underline overline" }, @@ -308,11 +442,64 @@ export const background = [ control: Colorpicker, defaultValue: "#000", }, + { + label: "Gradient", + key: "background-image", + control: OptionSelect, + defaultValue: "None", + options: [ + { label: "None", value: "None" }, + { + label: "Warm Flame", + value: "linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);", + }, + { + label: "Night Fade", + value: "linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);", + }, + { + label: "Spring Warmth", + value: "linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);", + }, + { + label: "Sunny Morning", + value: "linear-gradient(120deg, #f6d365 0%, #fda085 100%);", + }, + { + label: "Winter Neva", + value: "linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);", + }, + { + label: "Tempting Azure", + value: "linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);", + }, + { + label: "Heavy Rain", + value: "linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);", + }, + { + label: "Deep Blue", + value: "linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);", + }, + { + label: "Near Moon", + value: "linear-gradient(to top, #5ee7df 0%, #b490ca 100%);", + }, + { + label: "Wild Apple", + value: "linear-gradient(to top, #d299c2 0%, #fef9d7 100%);", + }, + { + label: "Plum Plate", + value: "linear-gradient(135deg, #667eea 0%, #764ba2 100%);", + }, + ], + }, { label: "Image", key: "background-image", control: Input, - placeholder: "src", + placeholder: "Src", }, ] @@ -324,11 +511,13 @@ export const border = [ defaultValue: "None", options: [ { label: "None", value: "0" }, - { label: "small", value: "0.125rem" }, - { label: "Medium", value: "0.25rem;" }, - { label: "Large", value: "0.375rem" }, - { label: "Extra large", value: "0.5rem" }, - { label: "Full", value: "5678px" }, + { label: "X Small", value: "0.125rem" }, + { label: "Small", value: "0.25rem" }, + { label: "Medium", value: "0.5rem" }, + { label: "Large", value: "1rem" }, + { label: "X Large", value: "2rem" }, + { label: "XX Large", value: "4rem" }, + { label: "Round", value: "5678px" }, ], }, { @@ -338,11 +527,11 @@ export const border = [ defaultValue: "None", options: [ { label: "None", value: "0" }, - { label: "Extra small", value: "0.5px" }, + { label: "X Small", value: "0.5px" }, { label: "Small", value: "1px" }, { label: "Medium", value: "2px" }, { label: "Large", value: "4px" }, - { label: "Extra large", value: "8px" }, + { label: "X large", value: "8px" }, ], }, { @@ -357,16 +546,16 @@ export const border = [ control: OptionSelect, defaultValue: "None", options: [ - "none", - "hidden", - "dotted", - "dashed", - "solid", - "double", - "groove", - "ridge", - "inset", - "outset", + "None", + "Hidden", + "Dotted", + "Dashed", + "Solid", + "Double", + "Groove", + "Ridge", + "Inset", + "Outset", ], }, ] @@ -375,28 +564,27 @@ export const effects = [ { label: "Opacity", key: "opacity", - control: Input, - width: "48px", + control: OptionSelect, textAlign: "center", - placeholder: "%", + options: ["0", "0.2", "0.4", "0.6", "0.8", "1"], }, { label: "Rotate", - key: "transform-rotate", + key: "transform", control: OptionSelect, defaultValue: "0", options: [ - "0", - "45deg", - "90deg", - "90deg", - "135deg", - "180deg", - "225deg", - "270deg", - "315dev", + { label: "None", value: "0" }, + { label: "45 deg", value: "rotate(45deg)" }, + { label: "90 deg", value: "rotate(90deg)" }, + { label: "135 deg", value: "rotate(135deg)" }, + { label: "180 deg", value: "rotate(180deg)" }, + { label: "225 deg", value: "rotate(225deg)" }, + { label: "270 deg", value: "rotate(270deg)" }, + { label: "315 deg", value: "rotate(315deg)" }, + { label: "360 deg", value: "rotate(360deg)" }, ], - }, //needs special control + }, { label: "Shadow", key: "box-shadow", @@ -404,7 +592,7 @@ export const effects = [ defaultValue: "None", options: [ { label: "None", value: "none" }, - { label: "Extra small", value: "0 1px 2px 0 rgba(0, 0, 0, 0.05)" }, + { label: "X Small", value: "0 1px 2px 0 rgba(0, 0, 0, 0.05)" }, { label: "Small", value: @@ -421,7 +609,7 @@ export const effects = [ "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", }, { - label: "Extra large", + label: "X Large", value: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", }, @@ -453,10 +641,10 @@ export const transitions = [ { label: "Duration", key: "transition-duration", - control: Input, - width: "48px", + control: OptionSelect, textAlign: "center", placeholder: "sec", + options: ["0.2ms", "0.4ms", "0.8ms", "1s", "2s", "4s"], }, { label: "Ease", @@ -468,7 +656,8 @@ export const transitions = [ export const all = { layout, - spacing, + margin, + padding, size, position, typography, diff --git a/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte b/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte index 4eed82bf25..c84117b475 100644 --- a/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte @@ -41,7 +41,7 @@ diff --git a/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte b/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte index 2ef2b8c462..626a890b69 100644 --- a/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte +++ b/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte @@ -35,7 +35,7 @@ border-radius: 5px; transition: 0.3s all; box-shadow: 0 4px 30px 0 rgba(57, 60, 68, 0.08); - background-color: var(--font); + background-color: var(--ink); font-size: 16px; color: var(--white); } @@ -54,17 +54,17 @@ .ACTION { background-color: var(--white); - color: var(--font); + color: var(--ink); } .TRIGGER { - background-color: var(--font); + background-color: var(--ink); color: var(--white); } .LOGIC { background-color: var(--secondary); - color: var(--font); + color: var(--ink); } div:hover { diff --git a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte index b70fe93640..3a071ad00f 100644 --- a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte +++ b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte @@ -52,29 +52,31 @@ diff --git a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte index 95e29cbf91..1882f91b7a 100644 --- a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte +++ b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte @@ -30,19 +30,34 @@ diff --git a/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte b/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte index 315332890f..97100b6626 100644 --- a/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte +++ b/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte @@ -41,7 +41,7 @@ diff --git a/packages/builder/src/pages/[application]/workflow/_layout.svelte b/packages/builder/src/pages/[application]/workflow/_layout.svelte index 96a0dcbb2f..1b84a255ba 100644 --- a/packages/builder/src/pages/[application]/workflow/_layout.svelte +++ b/packages/builder/src/pages/[application]/workflow/_layout.svelte @@ -22,13 +22,13 @@ diff --git a/packages/builder/src/pages/index.svelte b/packages/builder/src/pages/index.svelte index e54102db1e..0d2f76a007 100644 --- a/packages/builder/src/pages/index.svelte +++ b/packages/builder/src/pages/index.svelte @@ -73,7 +73,7 @@ .welcome { font-size: 42px; color: var(--ink); - font-weight: 900; + font-weight: 700; margin: 40px 0px 0px 80px; } @@ -136,7 +136,7 @@ .banner-button:hover { background-color: var(--white); color: var(--ink); - border: var(--grey-dark) 1px solid; + border: var(--grey-4) 1px solid; } .app-section-header { @@ -149,7 +149,7 @@ .app-section-title { font-size: 20px; color: var(--ink); - font-weight: 700; + font-weight: 600; margin-bottom: 20px; } diff --git a/packages/server/builder/assets/Inter-Black.woff b/packages/server/builder/assets/Inter-Black.woff new file mode 100644 index 0000000000..07800f4b74 Binary files /dev/null and b/packages/server/builder/assets/Inter-Black.woff differ diff --git a/packages/server/builder/assets/Inter-Black.woff2 b/packages/server/builder/assets/Inter-Black.woff2 new file mode 100644 index 0000000000..9a615e6e83 Binary files /dev/null and b/packages/server/builder/assets/Inter-Black.woff2 differ diff --git a/packages/server/builder/assets/Inter-Bold.woff b/packages/server/builder/assets/Inter-Bold.woff new file mode 100644 index 0000000000..61e1c25e64 Binary files /dev/null and b/packages/server/builder/assets/Inter-Bold.woff differ diff --git a/packages/server/builder/assets/Inter-Bold.woff2 b/packages/server/builder/assets/Inter-Bold.woff2 new file mode 100644 index 0000000000..6c401bb09b Binary files /dev/null and b/packages/server/builder/assets/Inter-Bold.woff2 differ diff --git a/packages/server/builder/assets/Inter-ExtraBold.woff b/packages/server/builder/assets/Inter-ExtraBold.woff new file mode 100644 index 0000000000..433fb3285c Binary files /dev/null and b/packages/server/builder/assets/Inter-ExtraBold.woff differ diff --git a/packages/server/builder/assets/Inter-ExtraBold.woff2 b/packages/server/builder/assets/Inter-ExtraBold.woff2 new file mode 100644 index 0000000000..5a08b364d5 Binary files /dev/null and b/packages/server/builder/assets/Inter-ExtraBold.woff2 differ diff --git a/packages/server/builder/assets/Inter-Medium.woff b/packages/server/builder/assets/Inter-Medium.woff new file mode 100644 index 0000000000..8c36a6345e Binary files /dev/null and b/packages/server/builder/assets/Inter-Medium.woff differ diff --git a/packages/server/builder/assets/Inter-Medium.woff2 b/packages/server/builder/assets/Inter-Medium.woff2 new file mode 100644 index 0000000000..3b31d3350a Binary files /dev/null and b/packages/server/builder/assets/Inter-Medium.woff2 differ diff --git a/packages/server/builder/assets/Inter-Regular.woff b/packages/server/builder/assets/Inter-Regular.woff new file mode 100644 index 0000000000..7d587c40bf Binary files /dev/null and b/packages/server/builder/assets/Inter-Regular.woff differ diff --git a/packages/server/builder/assets/Inter-Regular.woff2 b/packages/server/builder/assets/Inter-Regular.woff2 new file mode 100644 index 0000000000..d5ffd2a1f1 Binary files /dev/null and b/packages/server/builder/assets/Inter-Regular.woff2 differ diff --git a/packages/server/builder/assets/Inter-SemiBold.woff b/packages/server/builder/assets/Inter-SemiBold.woff new file mode 100644 index 0000000000..99df06cbee Binary files /dev/null and b/packages/server/builder/assets/Inter-SemiBold.woff differ diff --git a/packages/server/builder/assets/Inter-SemiBold.woff2 b/packages/server/builder/assets/Inter-SemiBold.woff2 new file mode 100644 index 0000000000..df746af999 Binary files /dev/null and b/packages/server/builder/assets/Inter-SemiBold.woff2 differ diff --git a/packages/server/src/utilities/builder/index.template.html b/packages/server/src/utilities/builder/index.template.html index a21219de9b..91b33cb284 100644 --- a/packages/server/src/utilities/builder/index.template.html +++ b/packages/server/src/utilities/builder/index.template.html @@ -11,7 +11,7 @@ diff --git a/packages/standard-components/src/List.svelte b/packages/standard-components/src/List.svelte index 9e4ddd6c99..8207ef47ee 100644 --- a/packages/standard-components/src/List.svelte +++ b/packages/standard-components/src/List.svelte @@ -41,7 +41,7 @@ .list { display: flex; flex-direction: column; - font-family: Roboto; + font-family: Inter; } .grid { diff --git a/packages/standard-components/src/Login.svelte b/packages/standard-components/src/Login.svelte index 0675c65f46..e9d7adb843 100644 --- a/packages/standard-components/src/Login.svelte +++ b/packages/standard-components/src/Login.svelte @@ -23,7 +23,10 @@ const login = async () => { loading = true - const response = await _bb.api.post("/api/authenticate", { username, password }) + const response = await _bb.api.post("/api/authenticate", { + username, + password, + }) if (response.status === 200) { const json = await response.json() localStorage.setItem("budibase:token", json.token) @@ -36,47 +39,39 @@ } -
-
- {#if logo} -
- logo -
- {/if} +
+
+
+ {#if logo} +
+ logo +
+ {/if} -

Log in to {name}

- -
-
- + -
- -
+ {#if error} +
+ Incorrect username or password +
+ {/if}
- - - - {#if error} -
Incorrect username or password
- {/if}