Skip to content

Instantly share code, notes, and snippets.

@iam-rohid
Last active August 1, 2022 06:03
Show Gist options
  • Save iam-rohid/077ffc4f45e1bcc6625c703f537b532e to your computer and use it in GitHub Desktop.
Save iam-rohid/077ffc4f45e1bcc6625c703f537b532e to your computer and use it in GitHub Desktop.
TailwindCSS CSS Import
@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;
}
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