Last active
August 1, 2022 06:03
-
-
Save iam-rohid/077ffc4f45e1bcc6625c703f537b532e to your computer and use it in GitHub Desktop.
TailwindCSS CSS Import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
body { | |
@apply bg-white text-gray-900 dark:bg-gray-900 dark:text-gray-100; | |
} | |
html { | |
scroll-padding-top: 2rem; | |
scroll-padding-bottom: 2rem; | |
scroll-behavior: smooth; | |
} | |
.dark { | |
color-scheme: dark; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = require("tailwindcss/colors"); | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
darkMode: "class", | |
content: ["src/**/*.{js,jsx,ts,tsx}"], | |
theme: { | |
extend: { | |
colors: { | |
gray: colors.zinc, | |
}, | |
}, | |
}, | |
plugins: [], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment