-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathtailwind.config.js
91 lines (90 loc) · 2.63 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
const defaultTheme = require('daisyui/src/theming/themes.js')['[data-theme=light]']
const defaultTailwindTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: [
'./app/views/**/*.html.erb',
'./app/components/**/*',
'./app/helpers/**/*.rb',
'./app/assets/stylesheets/**/*.css',
'./app/javascript/**/*.js',
'./config/initializers/heroicon.rb'
],
theme: {
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '1rem'
// lg: "4rem",
// xl: "5rem",
// "2xl": "6rem",
}
},
fontFamily: {
sans: ['Inter', ...defaultTailwindTheme.fontFamily.sans],
serif: ['Nunito', ...defaultTailwindTheme.fontFamily.serif]
},
extend: {
fontSize: {
xs: ['0.75rem', { lineHeight: '1rem' }],
sm: ['0.875rem', { lineHeight: 'rfs(1.25rem)' }],
base: ['rfs(1rem)', { lineHeight: 'rfs(1.5rem)' }],
lg: ['rfs(1.125rem)', { lineHeight: 'rfs(1.75rem)' }],
xl: ['rfs(1.25rem)', { lineHeight: 'rfs(1.75rem)' }],
'2xl': ['rfs(1.5rem)', { lineHeight: 'rfs(2rem)' }],
'3xl': ['rfs(1.875rem)', { lineHeight: 'rfs(2.25rem)' }],
'4xl': ['rfs(2.25rem)', { lineHeight: 'rfs(2.5rem)' }],
'5xl': ['rfs(3rem)', { lineHeight: '1' }],
'6xl': ['rfs(3.75rem)', { lineHeight: '1' }],
'7xl': ['rfs(4.5rem)', { lineHeight: '1' }],
'8xl': ['rfs(6rem)', { lineHeight: '1' }],
'9xl': ['rfs(8rem)', { lineHeight: '1' }]
},
keyframes: {
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' }
},
'fade-out': {
'0%': { opacity: '1' },
'100%': { opacity: '0' }
}
}
}
},
safelist: [
{ pattern: /grid-cols-(1|2|3|4|5|6|7|8|9|10)/ },
{ pattern: /col-span-(1|2|3|4|5|6|7|8|9|10)/ }
],
daisyui: {
logs: false,
themes: [
{
rubyvideoLight: {
...defaultTheme,
'--btn-text-case': 'none',
primary: '#DC143C',
'primary-content': '#ffffff',
secondary: '#7A4EC2',
'secondary-content': '#ffffff',
accent: '#1DA1F2',
'accent-content': '#ffffff',
neutral: '#261B23',
'neutral-content': '#ffffff',
'base-100': '#F8F9FA'
// 'base-200': '#FFFFFF',
// 'base-content': '#2F2F2F'
// 'base-100': '#ffffff',
// info: '#3abff8',
// success: '#36d399',
// warning: '#fbbd23',
// error: '#f87272'
}
}
]
},
plugins: [
require('@tailwindcss/typography'),
require('daisyui')
]
}