-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
41 lines (36 loc) · 1.2 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const fs = require('fs');
function findAllRsExtensions(dir) {
const files = fs.readdirSync(dir);
const extensions = [];
files.forEach(file => {
const filePath = `${dir}/${file}`;
const stat = fs.statSync(filePath);
if (stat.isDirectory()) {
extensions.push(...findAllRsExtensions(filePath));
} else if (file.endsWith('.rs')) {
extensions.push(filePath);
}
});
return extensions;
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.rs"], //, "./dist/**/*.html"
//mode: "all",
theme: {
container: { center: true, }
//extend: { data: { checked: true } },
},
plugins: [
//require('@tailwindcss/forms'),
//require('tailwindcss-children'),
//require('@tailwindcss/typography'),
//require('@tailwindcss/aspect-ratio'),
//require('@tailwindcss/line-clamp'),
require('tw-elements/plugin.cjs'), // npm install tw-elements -D
],
//presets: [ require('@acmecorp/tailwind-base') ],
// https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js
// npm install tailwindcss -D #-g // npx tailwindcss init #--full
// npx tailwindcss -i tailwind_base.css -o dist/tailwind.css -w #-m
}