Skip to content

Commit 13d0e89

Browse files
Merge pull request #249 from frappe/fix-update-frappe-ui-colors
2 parents f7da69e + 1bda26a commit 13d0e89

30 files changed

+137
-362
lines changed

frontend/espresso_colors.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ace-builds": "^1.22.0",
2525
"autoprefixer": "^10.4.2",
2626
"feather-icons": "^4.28.0",
27-
"frappe-ui": "^0.1.43",
27+
"frappe-ui": "0.1.80",
2828
"opentype.js": "^1.3.4",
2929
"pinia": "^2.0.28",
3030
"postcss": "^8.4.5",

frontend/src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const isDark = useDark({
5252
[id^="headlessui-dialog-panel"] > div > div > div > div.mb-6.flex.items-center.justify-between > button {
5353
@apply bg-surface-gray-1;
5454
@apply hover:bg-surface-gray-3;
55-
@apply stroke-text-icons-gray-8;
56-
@apply hover:stroke-text-icons-gray-9;
55+
@apply stroke-ink-gray-8;
56+
@apply hover:stroke-ink-gray-9;
5757
> svg {
5858
@apply stroke-[0.2px];
5959
@apply h-[14px];
@@ -63,7 +63,7 @@ const isDark = useDark({
6363
[id^="headlessui-dialog-panel"] > div,
6464
[id^="headlessui-dialog-panel"] .space-y-4 > p {
6565
@apply bg-surface-white;
66-
@apply text-text-icons-gray-8;
66+
@apply text-ink-gray-8;
6767
}
6868
6969
[id^="headlessui-dialog-panel"] header h3 {
@@ -82,7 +82,7 @@ const isDark = useDark({
8282
[id^="headlessui-combobox-options"] {
8383
@apply bg-surface-white;
8484
@apply dark:bg-surface-gray-1;
85-
@apply text-text-icons-gray-7;
85+
@apply text-ink-gray-7;
8686
8787
@apply overflow-y-auto;
8888
-ms-overflow-style: none; /* IE and Edge */

frontend/src/colors.css

Lines changed: 0 additions & 152 deletions
This file was deleted.

frontend/src/components/BlockLayers.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
:data-block-layer-id="element.blockId"
1515
:title="element.blockId"
1616
@contextmenu.prevent.stop="onContextMenu"
17-
class="min-w-24 cursor-pointer overflow-hidden rounded border border-transparent bg-surface-white bg-opacity-50 text-base text-text-icons-gray-7"
17+
class="min-w-24 cursor-pointer overflow-hidden rounded border border-transparent bg-surface-white bg-opacity-50 text-base text-ink-gray-7"
1818
@click.stop="
1919
store.activeCanvas?.history.pause();
2020
store.selectBlock(element, $event, false, true);
@@ -30,7 +30,7 @@
3030
}">
3131
<FeatherIcon
3232
:name="isExpanded(element) ? 'chevron-down' : 'chevron-right'"
33-
class="ml-[-18px] h-3 w-3 text-text-icons-gray-4"
33+
class="ml-[-18px] h-3 w-3 text-ink-gray-4"
3434
v-if="element.children && element.children.length && !element.isRoot()"
3535
@click.stop="toggleExpanded(element)" />
3636
<FeatherIcon
@@ -67,7 +67,7 @@
6767
:name="element.isVisible() ? 'eye' : 'eye-off'"
6868
class="ml-auto mr-2 hidden h-3 w-3 group-hover:block"
6969
@click.stop="element.toggleVisibility()" />
70-
<span v-if="element.isRoot()" class="ml-auto mr-2 text-sm capitalize text-text-icons-gray-5">
70+
<span v-if="element.isRoot()" class="ml-auto mr-2 text-sm capitalize text-ink-gray-5">
7171
{{ store.activeBreakpoint }}
7272
</span>
7373
</span>

frontend/src/components/BuilderBlockTemplates.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}">
3535
<img :src="blockTemplate.preview" />
3636
</div>
37-
<p class="text-sm text-text-icons-gray-6">
37+
<p class="text-sm text-ink-gray-6">
3838
{{ blockTemplate.template_name }}
3939
</p>
4040
</div>

frontend/src/components/BuilderCanvas.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="overlay absolute" id="overlay" ref="overlay" />
55
<Transition name="fade">
66
<div
7-
class="absolute bottom-0 left-0 right-0 top-0 z-[19] grid w-full place-items-center bg-surface-gray-1 p-10 text-text-icons-gray-5"
7+
class="absolute bottom-0 left-0 right-0 top-0 z-[19] grid w-full place-items-center bg-surface-gray-1 p-10 text-ink-gray-5"
88
v-show="store.settingPage">
99
<LoadingIcon></LoadingIcon>
1010
</div>
@@ -31,8 +31,8 @@
3131
:name="breakpoint.icon"
3232
class="h-8 w-6"
3333
:class="{
34-
'text-text-icons-gray-8': breakpoint.visible,
35-
'text-text-icons-gray-3': !breakpoint.visible,
34+
'text-ink-gray-8': breakpoint.visible,
35+
'text-ink-gray-3': !breakpoint.visible,
3636
}" />
3737
</div>
3838
</div>

frontend/src/components/BuilderLeftPanel.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<button
55
v-for="option of leftPanelOptions"
66
:key="option.value"
7-
class="flex size-8 items-center justify-center rounded text-text-icons-gray-7 hover:bg-surface-gray-2 focus:!bg-surface-gray-3"
7+
class="flex size-8 items-center justify-center rounded text-ink-gray-7 hover:bg-surface-gray-2 focus:!bg-surface-gray-3"
88
:class="{
9-
'bg-surface-gray-3 text-text-icons-gray-9': store.leftPanelActiveTab === option.value,
9+
'bg-surface-gray-3 text-ink-gray-9': store.leftPanelActiveTab === option.value,
1010
}"
1111
@click.stop="setActiveTab(option.value as LeftSidebarTabOption)"
1212
:title="option.label">
@@ -71,6 +71,7 @@
7171
import ComponentIcon from "@/components/Icons/Component.vue";
7272
import LayersIcon from "@/components/Icons/Layers.vue";
7373
import PlusIcon from "@/components/Icons/Plus.vue";
74+
import PageScript from "@/components/PageScript.vue";
7475
import Block from "@/utils/block";
7576
import convertHTMLToBlocks from "@/utils/convertHTMLToBlocks";
7677
import { createResource } from "frappe-ui";
@@ -81,7 +82,6 @@ import BuilderAssets from "./BuilderAssets.vue";
8182
import BuilderBlockTemplates from "./BuilderBlockTemplates.vue";
8283
import BuilderCanvas from "./BuilderCanvas.vue";
8384
import PanelResizer from "./PanelResizer.vue";
84-
import PageScript from "@/components/PageScript.vue";
8585
8686
const pageCanvas = inject("pageCanvas") as Ref<InstanceType<typeof BuilderCanvas> | null>;
8787
const fragmentCanvas = inject("fragmentCanvas") as Ref<InstanceType<typeof BuilderCanvas> | null>;

0 commit comments

Comments
 (0)