Skip to content

Commit

Permalink
fix: shadcn theme interop (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 10, 2024
1 parent 5b5cebc commit ab0b99f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/docs/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Config } from "tailwindcss";
import { createPreset } from "fumadocs-ui/tailwind-plugin";
import assistantuiPlugin from "@assistant-ui/react-ui/tailwindcss";

const config = {
darkMode: ["class"],
Expand Down Expand Up @@ -78,7 +79,8 @@ const config = {
presets: [createPreset()],
plugins: [
require("tailwindcss-animate"),
require("@assistant-ui/react-ui/tailwindcss")({
assistantuiPlugin({
shadcn: true,
components: ["thread", "assistant-modal", "markdown"],
}),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ui/src/tailwindcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(
}
},
({ shadcn = false } = {}) => {
const prefix = shadcn ? "--aui-" : "--";
const prefix = !shadcn ? "--aui-" : "--";
return {
theme: {
extend: {
Expand Down

0 comments on commit ab0b99f

Please sign in to comment.