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"; @import "code.css";
/*! purgecss end ignore */ /*! 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 "tailwindcss/base";
@import "layout.css";
@import "tailwindcss/components"; @import "tailwindcss/components";
@import "admonition.css"; @import "admonition.css";
@import "tailwindcss/utilities"; @import "tailwindcss/utilities";

View File

@ -1,30 +1,15 @@
const colors = require('tailwindcss/colors') const colors = require('tailwindcss/colors')
module.exports = { module.exports = {
darkMode: 'class',
content: [ content: [
'./templates/**/*.html' './templates/**/*.html'
], ],
safelist: [ safelist: [
{ 'lg:grid-cols-3',
pattern: /(-|)(ml|mr)-(4|8|12|16|20|24|28)/, 'md:grid-cols-2',
variants: [ 'grid-cols-1',
'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
}
],
important: true, important: true,
theme: { theme: {