|
|
@@ -58,7 +58,7 @@ npm install -D tailwindcss postcss autoprefixer
|
|
|
npx tailwindcss init -p
|
|
|
```
|
|
|
|
|
|
-2. Add a template file within the `tailwind.config.js` file. Note that `./node_modules/stdf/src/**/*.svelte` is added in content, which is the component location of STDF.The colors of theme can be modified according to its own needs. Reference [STDF Guide - Color](/#/Guide?nav=color).
|
|
|
+2. Add a template file within the `tailwind.config.js` file. Note that `./node_modules/stdf/dist/**/*.svelte` is added in content, which is the component location of STDF.The colors of theme can be modified according to its own needs. Reference [STDF Guide - Color](/#/Guide?nav=color).
|
|
|
|
|
|
Note: The 'content' in the Tailwind configuration file represents all files that may use Tailwind, please do not omit any files. Please set darkMode to 'class' to match STDF's dark mode.
|
|
|
|
|
|
@@ -66,7 +66,7 @@ Note: The 'content' in the Tailwind configuration file represents all files that
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
|
module.exports = {
|
|
|
// ...
|
|
|
- content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/src/**/*.svelte'],
|
|
|
+ content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/dist/**/*.svelte'],
|
|
|
theme: {
|
|
|
colors: {
|
|
|
// Theme Color
|