Skip to content

Instantly share code, notes, and snippets.

@olygood
Last active August 14, 2023 08:27
Show Gist options
  • Save olygood/2a1dc5af465822310ece7776c6598672 to your computer and use it in GitHub Desktop.
Save olygood/2a1dc5af465822310ece7776c6598672 to your computer and use it in GitHub Desktop.
all.config //tailwind, vite etc....config.js
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./pages/**/*.{js,ts,jsx,tsx}", "./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
gridTemplateColumns: {
"auto-fill-200-300": "repeat(auto-fill, minmax(200px, 1fr))",
},
textColor: {
skin: {
primary: "rgb(var(--color-text-primary) / <alpha-value>)",
secondary: "rgb(var(--color-text-secondary) / <alpha-value>)",
},
},
colors: {
background: "rgb(var(--color-background) / <alpha-value>)",
paper: "rgb(var(--color-paper) / <alpha-value>)",
primary: "rgb(var(--color-primary) / <alpha-value>)",
secondary: "rgb(var(--color-secondary) / <alpha-value>)",
},
},
},
plugins: [],
};
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment