-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
48 lines (48 loc) · 1.5 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
42
43
44
45
46
47
48
module.exports = {
content: {
files: ["./app/**/*.elm", "./src/**/*.elm", "./content/index.html"],
extract: {
elm: (contenido) => {
let matchado = contenido.match(/.*"\s*tw\s([a-z0-9-].+?)"/);
let regresa = matchado ? matchado[1].split(" ") : [];
if (regresa.length>0) {console.log("elm: " + regresa)};
return regresa;
},
html: (contenido) => {
let matchado = contenido.match(/class\s?=\s?"(.+?)"/);
let regresa = matchado ? matchado[1].split(" ") : [];
// if (regresa.length>0) {console.log("html: " + regresa)};
return regresa;
}
},
},
theme: {
extend: {
fontFamily: {
sans: [
"Fira Sans",
"system-ui",
"-apple-system",
"BlinkMacSystemFont",
'"Segoe UI"',
"Roboto",
'"Helvetica Neue"',
"Arial",
'"Noto Sans"',
"sans-serif",
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
serif: ["Roboto Slab", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("@tailwindcss/line-clamp"),
require("@tailwindcss/aspect-ratio"),
],
};