autobrr/web/tailwind.config.js
stacksmash76 e842a7bd42
enhancement(web): ui overhaul (#1155)
* Various WebUI changes and fixes.

* feat(tooltip): make tooltip display upwards

* fix(tooltip): place tooltip to the right

* fix(web): add missing ml-px to SwitchGroup header

current: https://i.imgur.com/2WXstPV.png
new: https://i.imgur.com/QGQ49mP.png

* fix(web): collapse sections

* fix(web):  improve freeleech section

* fix(web): rename action to action_components

Renamed the 'action' folder to 'action_components' to resolve import issues due to case sensitivity.

* fix(web): align CollapsibleSection

Old Advanced tab: https://i.imgur.com/MXaJ5eJ.png
New Advanced tab: https://i.imgur.com/4nPJJRw.png
Music tab for comparison: https://i.imgur.com/I59X7ot.png

* fix(web): remove invalid CSS class

* revert: vertical padding on switchgroup

added py-0 on the freeleech part instead

* feat(settings): add back log files

* fix(settings): irc channels and font sizes

* fix(components): radio select roundness

* fix(styling): various minor changes

* fix(filters): remove jitter fields

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
Co-authored-by: soup <soup@r4tio.dev>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-11-18 14:46:16 +01:00

61 lines
1.5 KiB
JavaScript

import { lerpColors } from "tailwind-lerp-colors";
import plugin from "tailwindcss/plugin";
const extendedColors = lerpColors();
module.exports = {
content: [
"./src/**/*.{tsx,ts,html,css}",
],
safelist: [
"col-span-1",
"col-span-2",
"col-span-3",
"col-span-4",
"col-span-5",
"col-span-6",
"col-span-7",
"col-span-8",
"col-span-9",
"col-span-10",
"col-span-11",
"col-span-12",
],
// purge: false,
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {
colors: {
...extendedColors,
gray: {
...extendedColors.zinc,
815: "#232427"
}
},
margin: { // for the checkmarks used for regex validation in Filters/Advanced
"2.5": "0.625rem", // 10px, between mb-2 (8px) and mb-3 (12px)
},
textShadow: {
DEFAULT: "0 2px 4px var(--tw-shadow-color)"
},
boxShadow: {
table: "rgba(0, 0, 0, 0.1) 0px 4px 16px 0px"
}
},
},
variants: {
extend: {},
},
plugins: [
require("@tailwindcss/forms"),
plugin(function ({ matchUtilities, theme }) {
// Pipe --tw-shadow-color (i.e. shadow-cyan-500/50) to our new text-shadow
// Credits: https://www.hyperui.dev/blog/text-shadow-with-tailwindcss
// Use it like: text-shadow shadow-cyan-500/50
matchUtilities(
{ "text-shadow": (value) => ({ textShadow: value }) },
{ values: theme("textShadow") }
);
}),
],
}