danswer/web/tailwind.config.js

16 lines
533 B
JavaScript
Raw Permalink Normal View History

2024-04-07 21:36:17 -07:00
var merge = require("lodash/merge");
// Use relative paths for imports
2024-04-07 21:36:17 -07:00
const baseThemes = require("./tailwind-themes/tailwind.config.js");
const customThemes = process.env.NEXT_PUBLIC_THEME
? require(
process.env.NEXT_PUBLIC_THEME
? `./tailwind-themes/custom/${process.env.NEXT_PUBLIC_THEME}/tailwind.config.js`
: "./tailwind-themes/custom/default/tailwind.config.js"
)
: null;
2024-04-07 21:36:17 -07:00
/** @type {import('tailwindcss').Config} */
module.exports = customThemes ? merge(baseThemes, customThemes) : baseThemes;