-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtailwind.config.js
More file actions
131 lines (130 loc) · 3.8 KB
/
tailwind.config.js
File metadata and controls
131 lines (130 loc) · 3.8 KB
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
width: {
'144': '36rem',
},
fontSize: {
'xxs': '0.625rem',
},
fontFamily: {
'system': [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'sans-serif'
],
},
colors: {
'neutral-70': '#6B7280',
'ana': {
'blue': {
'bg': '#EFF6FF', // bg-blue-100
'text': '#1E40AF', // text-blue-800
'border': '#BFDBFE' // border-blue-200
},
'amber': {
'bg': '#FEF3C7', // bg-amber-100
'text': '#B45309', // text-amber-700
'border': '#FDE68A' // border-amber-200
},
'gray': {
'text': {
'primary': '#374151', // text-gray-700
'secondary': '#6B7280', // text-gray-500
'tertiary': '#9CA3AF' // text-gray-400
},
'border': {
'light': '#D1D5DB', // border-gray-300
'hover': '#111827' // border-black on hover
}
}
}
},
fontWeight: {
'extralight': 200,
'light': 300,
'normal': 400,
},
},
},
plugins: [
function({ addComponents, addUtilities }) {
addComponents({
'.ana-heading-1': {
'@apply font-system text-[3.25em] leading-[1.3] font-extralight': {}
},
'.ana-heading-2': {
'@apply font-system text-[2.5em] leading-[1.3] font-extralight': {}
},
'.ana-heading-3': {
'@apply font-system text-2xl leading-[1.3] font-extralight': {}
},
'.ana-heading-4': {
'@apply font-system text-base leading-[1.3] font-light': {}
},
'.ana-heading-5': {
'@apply font-system text-lg font-extralight text-neutral-70': {}
},
'.ana-body': {
'@apply font-system text-base font-normal': {}
},
'.ana-body-small': {
'@apply font-system text-sm font-normal': {}
},
'.ana-body-xs': {
'@apply font-system text-xs font-normal': {}
},
'.ana-body-xxs': {
'@apply font-system text-xxs font-normal': {}
},
'.ana-button-primary': {
'@apply px-4 py-2 bg-black text-white border border-black hover:bg-gray-800 transition-colors': {}
},
'.ana-button-secondary': {
'@apply px-4 py-2 border border-black hover:bg-gray-100 transition-colors': {}
},
'.ana-button-enterprise': {
'@apply p-2 bg-amber-100 text-amber-700 hover:bg-amber-200 transition-colors border border-amber-200': {}
},
'.ana-input': {
'@apply w-full p-2 border border-gray-300 focus:border-black transition-colors': {}
},
'.ana-card': {
'@apply p-4 border border-gray-300 hover:border-black transition-colors': {}
},
'.ana-badge': {
'@apply px-2 py-0.5 text-xs font-normal': {}
},
'.ana-badge-blue': {
'@apply bg-blue-100 text-blue-800': {}
},
'.ana-badge-amber': {
'@apply bg-amber-100 text-amber-800': {}
},
'.ana-divider': {
'@apply w-144 mx-auto border-t-2 border-gray-300': {}
}
});
addUtilities({
'.scrollbar-hide': {
/* Firefox */
'scrollbar-width': 'none',
/* Safari and Chrome */
'&::-webkit-scrollbar': {
display: 'none'
}
}
});
}
],
};