-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
132 lines (125 loc) · 3.81 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
import { Card, CardVariants } from "@/components/core/Cards";
const config = require('./next.config.mjs');
console.log(config.basePath)
console.log(config.default.basePath)
const basePathTailwind = config.default.basePath;
// const basePathTailwind = process.env.BASE_PATH || '';
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx,css,scss,sass}",
"./components/**/*.{js,ts,jsx,tsx,mdx,css,scss,sass}",
"./app/**/*.{js,ts,jsx,tsx,mdx,css,scss,sass}",
"./app/**/**/*.{js,ts,jsx,tsx,mdx,css,scss,sass}",
"./src/**/*.{js,ts,jsx,tsx,mdx,css,scss,sass}",
],
theme: {
extend: {
fontFamily: {
"title": ['var(--font-inter)', 'sans-serif'],
"main": ['var(--font-sourceSans)', 'sans-serif'],
},
fontSize: {
'2xs': ['0.625rem', { lineHeight: '1.4' }], /* 10px */
'xs': ['0.75rem', { lineHeight: '1.4' }], /* 12px */
'sm': ['0.875rem', { lineHeight: '1.4' }], /* 14px */
'base': ['1rem', { lineHeight: '1.5' }], /* 16px body */
'18': ['1.125rem', { lineHeight: '1.5' }],
'20': ['1.25rem', { lineHeight: '1.4' }],
'24': ['1.5rem', { lineHeight: '1.4' }],
'28': ['1.75rem', { lineHeight: '1.4' }],
'32': ['2rem', { lineHeight: '1.4' }],
'36': ['2.25rem', { lineHeight: '1.4' }],
'40': ['2.5rem', { lineHeight: '1.4' }],
'48': ['3rem', { lineHeight: '1.4' }],
'56': ['3.5rem', { lineHeight: '1.4' }],
'64': ['4rem', { lineHeight: '1.4' }],
},
colors: {
// whiteFull: "#ffffff",
snow: "#EFF7FB",
black: "#0D0D1C",
primary: { // azul genérico
DEFAULT: "#056dc1",
900: "#0e406c",
800: "#094b83",
700: "#05589f",
600: "#056dc1",
500: "#118de6",
400: "#3ba8f5",
300: "#7fc5fa",
200: "#bbdffc",
100: "#e0effe",
50: "#f0f7ff",
foreground: "#FFFFFF",
},
secondary: {
DEFAULT: "#9ca3af",
700: "#374151",
600: "#4b5563",
500: "#6b7280",
400: "#9ca3af",
300: "#d1d5db",
200: "#e5e7eb",
100: "#f3f4f6",
50: "#f9fafb",
foreground: "#ffffff"
},
accent: { // morado
DEFAULT: "#62388E",
// 300: "#FF9900",
// 200: "#FFBD1B",
// 100: "#FFE685",
},
background: {
DEFAULT:"#f7f7ef",
400: "#EFF7FB",
300: "#EFF7FB"
},
ring: {
DEFAULT: "#cbe0ed",
},
shadow: {
DEFAULT:"#cbd5e1",
},
title: {
DEFAULT:"#323232"
},
text: {
DEFAULT:"#323232"
}
},
},
screens: {
'xs': '420px',
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
},
backgroundImage: {
'main': `url('${basePathTailwind}/assets/fondos/background_banner.png')`,
}
},
plugins: [
plugin(function({ addBase, theme }) {
addBase({
'h1': { fontFamily: theme('fontFamily.inter') },
'h2': { fontFamily: theme('fontFamily.inter') },
'h3': { fontFamily: theme('fontFamily.inter') },
'h4': { fontFamily: theme('fontFamily.inter') },
'h5': { fontFamily: theme('fontFamily.inter') },
'h6': { fontFamily: theme('fontFamily.inter') },
'p': { fontFamily: theme('fontFamily.sourceSans') },
'a': { fontFamily: theme('fontFamily.sourceSans') },
'button': { fontFamily: theme('fontFamily.sourceSans') },
})
})
],
// corePlugins: {
// preflight: false,
// },
};
// export default config;