Skip to content

Commit

Permalink
fix: fix tw config
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Nov 23, 2024
1 parent 0dfae13 commit 9bf7440
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/resources/stubs/laravel/tailwind.config.laravel.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/** @type {import('tailwindcss').Config} */
import { fontFamily } from 'tailwindcss/defaultTheme'
import { withTV } from 'tailwind-variants/transformer'

const config = withTV({
const config = {
darkMode: ['class'],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
Expand Down Expand Up @@ -81,6 +80,6 @@ const config = withTV({
require('tailwindcss-animate'),
require('tailwindcss-react-aria-components')
]
})
}

export default config
4 changes: 2 additions & 2 deletions src/resources/stubs/next/tailwind.config.next.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('tailwindcss').Config} */
import { withTV } from 'tailwind-variants/transformer'

const config = withTV({
const config = {
darkMode: ['class'],
content: [ "./pages/**/*.{js,ts,jsx,tsx,mdx}", "./components/**/*.{js,ts,jsx,tsx,mdx}", "./app/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
Expand Down Expand Up @@ -72,6 +72,6 @@ const config = withTV({
require('tailwindcss-animate'),
require('tailwindcss-react-aria-components')
]
})
}

export default config
5 changes: 2 additions & 3 deletions src/resources/stubs/next/tailwind.config.src.next.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('tailwindcss').Config} */
import { withTV } from 'tailwind-variants/transformer'

const config = withTV({
const config = {
darkMode: ['class'],
content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ],
theme: {
Expand Down Expand Up @@ -72,6 +71,6 @@ const config = withTV({
require('tailwindcss-animate'),
require('tailwindcss-react-aria-components')
]
})
}

export default config
5 changes: 2 additions & 3 deletions src/resources/stubs/vite/tailwind.config.vite.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('tailwindcss').Config} */
import { withTV } from 'tailwind-variants/transformer'

const config = withTV({
const config = {
darkMode: ['class'],
content: ['./components/**/*.{ts,tsx,js,jsx}', './src/**/*.{ts,tsx,js,jsx}'],
theme: {
Expand Down Expand Up @@ -72,6 +71,6 @@ const config = withTV({
require('tailwindcss-animate'),
require('tailwindcss-react-aria-components')
]
})
}

export default config

0 comments on commit 9bf7440

Please sign in to comment.