-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(markdown): usage without tailwindcss (#496)
- Loading branch information
Showing
5 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@assistant-ui/react-markdown": patch | ||
--- | ||
|
||
feat(markdown): usage without tailwindcss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** @type {import('postcss-load-config').Config} */ | ||
const config = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
"@assistant-ui/tailwindcss-transformer": {}, | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import type { Config } from "tailwindcss"; | ||
import animatePlugin from "tailwindcss-animate"; | ||
|
||
const config = { | ||
content: ["./src/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}"], | ||
corePlugins: { | ||
backgroundOpacity: false, | ||
touchAction: false, | ||
scrollSnapType: false, | ||
gradientColorStops: false, | ||
fontVariantNumeric: false, | ||
ringOffsetWidth: false, | ||
ringOffsetColor: false, | ||
ringOpacity: false, | ||
boxShadowColor: false, | ||
blur: false, | ||
brightness: false, | ||
contrast: false, | ||
grayscale: false, | ||
hueRotate: false, | ||
invert: false, | ||
saturate: false, | ||
sepia: false, | ||
dropShadow: false, | ||
backdropBlur: false, | ||
backdropBrightness: false, | ||
backdropContrast: false, | ||
backdropGrayscale: false, | ||
backdropHueRotate: false, | ||
backdropInvert: false, | ||
backdropOpacity: false, | ||
backdropSaturate: false, | ||
backdropSepia: false, | ||
container: false, | ||
}, | ||
theme: { | ||
container: { | ||
center: true, | ||
padding: "2rem", | ||
screens: { | ||
"2xl": "1400px", | ||
}, | ||
}, | ||
extend: { | ||
borderRadius: { | ||
lg: "var(--aui-radius)", | ||
md: "calc(var(--aui-radius) - 2px)", | ||
sm: "calc(var(--aui-radius) - 4px)", | ||
}, | ||
}, | ||
}, | ||
plugins: [ | ||
animatePlugin, | ||
require("@assistant-ui/react/tailwindcss")({ components: [] }), | ||
], | ||
} satisfies Config; | ||
|
||
export default config; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.