|
|
@@ -48,16 +48,40 @@ npm install -D tailwindcss postcss autoprefixer
|
|
|
npx tailwindcss init -p
|
|
|
```
|
|
|
|
|
|
-2. Add the template file to tailwind.config.js.
|
|
|
+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).
|
|
|
|
|
|
```javascript
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
|
-export default {
|
|
|
- content: ['./index.html', './src/**/*.{js,ts,svelte}'],
|
|
|
+module.exports = {
|
|
|
+ // ...
|
|
|
+ content: ['./index.html', './src/**/*.{html,js,svelte}', './node_modules/stdf/src/**/*.svelte'],
|
|
|
theme: {
|
|
|
- extend: {},
|
|
|
+ colors: {
|
|
|
+ primary: '#0B24FB',
|
|
|
+ dark: '#FFC043',
|
|
|
+ purple: '#7356BF',
|
|
|
+ green: '#05944F',
|
|
|
+ orange: '#FF6937',
|
|
|
+ black: '#000000',
|
|
|
+ gray1: '#23262B',
|
|
|
+ gray2: '#2A2B2F',
|
|
|
+ gray3: '#303239',
|
|
|
+ gray4: '#373940',
|
|
|
+ gray5: '#414249',
|
|
|
+ gray6: '#747B84',
|
|
|
+ gray7: '#DADEE3',
|
|
|
+ gray8: '#EBEEF2',
|
|
|
+ gray9: '#F4F6F9',
|
|
|
+ gray10: '#FAFAFB',
|
|
|
+ success: '#11BB8D',
|
|
|
+ warning: '#B95000',
|
|
|
+ error: '#DA1414',
|
|
|
+ info: '#2E5AAC',
|
|
|
+ transparent: 'transparent',
|
|
|
+ },
|
|
|
},
|
|
|
- plugins: [],
|
|
|
+ darkMode: 'class',
|
|
|
+ // ...
|
|
|
};
|
|
|
```
|
|
|
|