* 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
34 lines
1.2 KiB
JavaScript
34 lines
1.2 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
import coreConfig from "../tailwind.config"
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
...coreConfig,
|
|
content: [
|
|
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./layouts/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./providers/**/*.{js,ts,jsx,tsx,mdx}",
|
|
],
|
|
theme: {
|
|
...coreConfig.theme,
|
|
backgroundImage: {
|
|
...coreConfig.theme.backgroundImage,
|
|
"search-hit": "url('/images/search-hit-light.svg')",
|
|
"search-hit-dark": "url('/images/search-hit.svg')",
|
|
"search-arrow": "url('/images/search-hit-arrow-light.svg')",
|
|
"search-arrow-dark": "url('/images/search-hit-arrow.svg')",
|
|
"search-no-result": "url('/images/search-no-result-light.svg')",
|
|
"search-no-result-dark": "url('/images/search-no-result.svg')",
|
|
"magnifying-glass": "url('/images/magnifying-glass.svg')",
|
|
"magnifying-glass-dark": "url('/images/magnifying-glass-dark.svg')",
|
|
},
|
|
},
|
|
plugins: [
|
|
require("tailwindcss/plugin")(({ addVariant }) => {
|
|
addVariant("search-cancel", "&::-webkit-search-cancel-button")
|
|
}),
|
|
],
|
|
}
|