From 018e7cc08262b174fecd568c9523bd3cb782764f Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Sun, 25 May 2025 16:39:48 +0300 Subject: [PATCH] fix tailwind cong --- css/index.css | 13 +------------ tailwind.config.js | 25 +++++-------------------- 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/css/index.css b/css/index.css index 03d6724..3e1c791 100644 --- a/css/index.css +++ b/css/index.css @@ -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"; diff --git a/tailwind.config.js b/tailwind.config.js index 1c659e7..eb65f68 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,30 +1,15 @@ 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, theme: {