fix tailwind cong

This commit is contained in:
Ehab Hassan 2025-05-25 16:39:48 +03:00
parent 17a12bf583
commit 018e7cc082
2 changed files with 6 additions and 32 deletions

View File

@ -3,19 +3,8 @@
@import "code.css";
/*! purgecss end ignore */
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
/* .btn-primary {
@apply py-1.5 px-3 text-center bg-blue-700 rounded-md text-white;
} */
}
@import "tailwindcss/base";
@import "layout.css";
@import "tailwindcss/components";
@import "admonition.css";
@import "tailwindcss/utilities";

View File

@ -1,29 +1,14 @@
const colors = require('tailwindcss/colors')
module.exports = {
darkMode: 'class',
content: [
'./templates/**/*.html'
],
safelist: [
{
pattern: /(-|)(ml|mr)-(4|8|12|16|20|24|28)/,
variants: [
'sm', 'md', 'lg',
'first', 'first:sm', 'first:md', 'first:lg',
'last', 'last:sm', 'last:md', 'last:lg'
],
},
{
pattern: /(pt|pb)-(0)/,
variants: [
'!', 'lg',
'first', 'first:sm', 'first:md', 'first:lg',
'last', 'last:sm', 'last:md', 'last:lg'
],
},
{
pattern: /bg-teal-(50|100|200|300|400|500|600|700|800|900)/, // Added teal color safelist
}
'lg:grid-cols-3',
'md:grid-cols-2',
'grid-cols-1',
],
important: true,