2022-08-31 06:26:32 +12:00
|
|
|
const colors = require("tailwindcss/colors");
|
2022-03-26 10:17:01 +13:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: "jit",
|
2023-01-13 17:52:58 +13:00
|
|
|
content: [
|
|
|
|
"./js/**/*.js",
|
|
|
|
"../lib/*_web/**/*.*ex",
|
|
|
|
"../deps/sunflower_ui/**/*.ex",
|
|
|
|
"../priv/blog/**/*.md",
|
|
|
|
"../deps/ash_authentication_phoenix/**/*.ex"
|
|
|
|
],
|
2022-03-26 10:17:01 +13:00
|
|
|
darkMode: "class",
|
|
|
|
theme: {
|
|
|
|
extend: {
|
2022-08-05 09:06:52 +12:00
|
|
|
typography: {
|
|
|
|
DEFAULT: {
|
|
|
|
css: {
|
2022-08-31 06:26:32 +12:00
|
|
|
"code::before": {
|
|
|
|
content: '""',
|
2022-08-05 09:06:52 +12:00
|
|
|
},
|
2022-08-31 06:26:32 +12:00
|
|
|
"code::after": {
|
|
|
|
content: '""',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-08-05 09:06:52 +12:00
|
|
|
},
|
2022-10-12 08:19:19 +13:00
|
|
|
colors: require("./tailwind.colors.json")
|
2022-03-26 10:17:01 +13:00
|
|
|
},
|
|
|
|
},
|
|
|
|
variants: {
|
|
|
|
extend: {
|
2022-08-31 06:26:32 +12:00
|
|
|
display: ["dark"],
|
2022-03-26 10:17:01 +13:00
|
|
|
},
|
|
|
|
},
|
2022-03-29 08:47:43 +13:00
|
|
|
plugins: [
|
2022-08-31 06:26:32 +12:00
|
|
|
require("@tailwindcss/typography"),
|
|
|
|
require("@tailwindcss/forms"),
|
|
|
|
require("@tailwindcss/line-clamp"),
|
2022-03-29 08:47:43 +13:00
|
|
|
],
|
2023-01-24 02:12:29 +13:00
|
|
|
safelist: [
|
|
|
|
// Used in Table of Contents generation, which is stored in the DB and cannot be
|
|
|
|
// checked at build time.
|
|
|
|
"m-0",
|
2023-01-25 03:02:46 +13:00
|
|
|
"md:w-[20em]",
|
|
|
|
"md:p-4",
|
|
|
|
"md:float-right",
|
2023-01-24 02:12:29 +13:00
|
|
|
"list-[lower-alpha]",
|
2023-01-25 03:02:46 +13:00
|
|
|
"md:border",
|
|
|
|
"md:border-base-light-300",
|
|
|
|
"md:dark:border-base-dark-600",
|
|
|
|
"md:ml-8",
|
2023-01-25 20:39:48 +13:00
|
|
|
"md:mb-8",
|
2023-01-25 03:02:46 +13:00
|
|
|
"text-ellipsis",
|
|
|
|
"overflow-hidden",
|
2023-01-24 02:12:29 +13:00
|
|
|
],
|
2022-03-26 10:17:01 +13:00
|
|
|
};
|