Fix tailwind css setup (#768)

* Fix tailwind css setup

* Install as dev dep

* Uninstall primeui tailwind
This commit is contained in:
Chenlei Hu
2024-09-09 16:56:32 +09:00
committed by GitHub
parent 534ea17816
commit a41de30dc5
5 changed files with 16 additions and 13 deletions

View File

@@ -1,3 +1,10 @@
@layer primevue, tailwind-utilities;
@layer tailwind-utilities {
@tailwind components;
@tailwind utilities;
}
:root {
--fg-color: #000;
--bg-color: #fff;

View File

@@ -144,11 +144,6 @@ const tabValue = computed(() =>
</script>
<style>
/* Remove after we have tailwind setup */
.border-none {
border: none !important;
}
.settings-tab-panels {
padding-top: 0px !important;
}

View File

@@ -26,7 +26,10 @@ app
preset: ComfyUIPreset,
options: {
prefix: 'p',
cssLayer: false,
cssLayer: {
name: 'primevue',
order: 'primevue, tailwind-utilities'
},
// This is a workaround for the issue with the dark mode selector
// https://github.com/primefaces/primevue/issues/5515
darkModeSelector: '.dark-theme, :root:has(.dark-theme)'