-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update Tailwind CSS configuration and localization in NovaShield
#3 - Remove unused Tailwind CSS base styles - Add localization support for NovaShield components - Update Tailwind CSS configuration to generate colors dynamically
- Loading branch information
Showing
9 changed files
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
// import novaTailwind from "../../../vendor/laravel/nova/tailwind.config.js"; | ||
const path = require("path"); | ||
const novaTailwind = require(path.resolve( | ||
__dirname, | ||
"../../vendor/laravel/nova/tailwind.config.js" | ||
)); | ||
|
||
import { generateTailwindColors } from '../../vendor/laravel/nova/generators' | ||
// import NovaConfig from '../../vendor/laravel/nova/tailwind.config' | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
prefix: "ns-", | ||
content: ["./resources/**/*{js,vue,blade.php}"], | ||
darkMode: ["class"], | ||
theme: { | ||
colors: novaTailwind.theme.colors, | ||
extend: {}, | ||
}, | ||
plugins: [require("tailwindcss-animated")], | ||
}; | ||
content: ['./resources/**/*.{js,vue}'], | ||
darkMode: ['class', '[class*="dark"]'], | ||
prefix: 'ns-', | ||
corePlugins: { | ||
preflight: false, | ||
}, | ||
theme: { | ||
colors: generateTailwindColors(), | ||
extend: {}, | ||
}, | ||
plugins: [require("tailwindcss-animated")], | ||
} |