* initial implementation of search modal * added hit and search suggestions * added support for multiple indices * updated sample env * added close when click outside dropdown * test for mobile * added mobile design * added shortcut * dark mode fixes * added search to docs * added plugins filter * added React import * moved filters to configurations * handled error on page load * change suggestion text * removed hits limit * handle select all * open link in current tab * change highlight colors * added support for shortcuts + auto focus * change header and footer * redesigned search ui
36 lines
811 B
JavaScript
36 lines
811 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
import coreConfig from "../tailwind.config"
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
...coreConfig,
|
|
// prefix: "tw-",
|
|
corePlugins: {
|
|
preflight: false, // disable Tailwind's reset
|
|
},
|
|
content: [
|
|
"./src/**/*.{js,jsx,ts,tsx}",
|
|
"../../docs/content/**/*.{mdx,md}",
|
|
"docusaurus.config.js",
|
|
"sidebars.js",
|
|
],
|
|
theme: {
|
|
...coreConfig.theme,
|
|
extend: {
|
|
...coreConfig.theme.extend,
|
|
screens: {
|
|
...coreConfig.theme.screens,
|
|
xs: "576px",
|
|
lg: "996px",
|
|
xl: "1419px",
|
|
xxl: "1440px",
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
require("tailwindcss/plugin")(({ addVariant }) => {
|
|
addVariant("search-cancel", "&::-webkit-search-cancel-button")
|
|
}),
|
|
],
|
|
}
|