UI/typograhy: init typography extension
This commit is contained in:
20
pkgs/webview-ui/app/tailwind/core-plugin.ts
Normal file
20
pkgs/webview-ui/app/tailwind/core-plugin.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import plugin from "tailwindcss/plugin";
|
||||
import { typography } from "./typography";
|
||||
import theme from "tailwindcss/defaultTheme";
|
||||
|
||||
export default plugin.withOptions(
|
||||
(_options = {}) =>
|
||||
() => {
|
||||
// add more base styles
|
||||
},
|
||||
// add configuration which is merged with the final config
|
||||
() => ({
|
||||
corePlugins: {
|
||||
// we are using our own preflight (see above)
|
||||
preflight: false,
|
||||
},
|
||||
theme: {
|
||||
...typography,
|
||||
},
|
||||
}),
|
||||
);
|
||||
Reference in New Issue
Block a user