Skip to content

Commit

Permalink
dark mode 🎁
Browse files Browse the repository at this point in the history
  • Loading branch information
imrofayel committed Dec 24, 2024
1 parent 2f4d918 commit 059e387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ onMounted(() => {
editorProps: {
attributes: {
class: 'dark:text-white/90 p-6 leading-loose py-2 !text-[#393939] text-[19px] min-h-[150px] w-full h-full overflow-auto border-none bg-transparent placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 !opacity-100 geist',
class: 'dark:text-white/90 p-6 leading-loose py-2 text-[19px] min-h-[150px] w-full h-full overflow-auto border-none bg-transparent placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 !opacity-100 geist',
},
},
extensions: [
Expand Down
3 changes: 1 addition & 2 deletions components/ui/bottomSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const emit = defineEmits(['close'])
const selectedFont = ref('')
const searchQuery = ref('')
const colorPicker = ref(null)
const currentColor = ref('#000000')
const currentColor = computed(() => useColorMode().value === 'dark' ? '#FFFFFF' : '#000000')
const fonts = [
'Geist',
Expand Down Expand Up @@ -223,7 +223,6 @@ const updateColor = (event) => {
}
const resetColor = () => {
currentColor.value = '#000000'
props.editor.chain().focus().unsetColor().run()
}
Expand Down

0 comments on commit 059e387

Please sign in to comment.