diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 1c5a349fc..d35ef0407 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,4 +1,4 @@ -import Mermaid from "@theme/Mermaid"; +import tailwindPlugin from "./plugins/tailwind-config.cjs"; /** * Copyright (c) 2017-present, Facebook, Inc. @@ -6,7 +6,7 @@ import Mermaid from "@theme/Mermaid"; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -let baseUrl +let baseUrl; if (process.env.CI_MERGE_REQUEST_IID) { if (process.env.CI_PROJECT_DIR == "dev") { baseUrl = "/"; @@ -1159,6 +1159,7 @@ const config = { gtm: "GTM-PLXD79N", }, ], + tailwindPlugin, ], stylesheets: [ { diff --git a/package.json b/package.json index 548d6d742..d307a7a5a 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "slick-carousel": "^1.8.1", "stackdriver-errors-js": "^0.12.0", "tailwind-merge": "^3.2.0", - "tailwindcss": "^4.1.3", + "tailwindcss": "^4.1.10", "turndown": "^7.2.0" }, "browserslist": { @@ -87,9 +87,12 @@ ] }, "devDependencies": { + "autoprefixer": "^10.4.21", "cross-env": "^7.0.3", "husky": "^8.0.2", "lint-staged": "^13.0.3", + "postcss": "^8.5.6", + "postcss-import": "^16.1.1", "prettier": "2.7.1", "rimraf": "^3.0.2", "run-script-os": "^1.1.6", diff --git a/plugins/tailwind-config.cjs b/plugins/tailwind-config.cjs new file mode 100644 index 000000000..453208064 --- /dev/null +++ b/plugins/tailwind-config.cjs @@ -0,0 +1,15 @@ +function tailwindPlugin(context, options) { + return { + name: "tailwind-plugin", + configurePostCss(postcssOptions) { + postcssOptions.plugins = [ + require("postcss-import"), + require("@tailwindcss/postcss"), + require("autoprefixer"), + ]; + return postcssOptions; + }, + }; +} + +module.exports = tailwindPlugin; diff --git a/src/components/AceternityUI/PartnerTools.js b/src/components/AceternityUI/PartnerTools.js index 46a44f19a..91dbc34d2 100644 --- a/src/components/AceternityUI/PartnerTools.js +++ b/src/components/AceternityUI/PartnerTools.js @@ -91,7 +91,10 @@ const Feature = ({ buttonClass, title, description, logo, index, cta }) => {