-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
80 lines (72 loc) · 2.38 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
// See the Tailwind default theme values here:
// https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
const colors = require('tailwindcss/colors')
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: [
'./app/controllers/**/*.rb',
'./app/models/**/*.rb',
'./app/helpers/**/*.rb',
'./app/javascript/**/*.js',
'./app/assets/stylesheets/**/*.{scss,sass,css}',
'./app/views/**/*.{erb,haml,html,slim,jbuilder}',
'./config/initializers/heroicon.rb',
'./app/components/**/*.{rb,erb,haml,html,slim}',
// locales i18n rails
'./config/locales/**/*.{rb,yml}',
],
theme: {
container: {
padding: {
DEFAULT: '2rem'
},
},
extend: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans]
},
ringOffsetWidth: {
'2': '2px',
'4': '4px',
'8': '8px',
},
screens: {
'sm': '640px',
// => @media (min-width: 640px) { ... }
'md': '768px',
// => @media (min-width: 768px) { ... }
'lg': '1024px',
// => @media (min-width: 1024px) { ... }
'xl': '1280px',
// => @media (min-width: 1280px) { ... }
'2xl': '1536px',
// => @media (min-width: 1536px) { ... }
},
// Create your own at: https://javisperez.github.io/tailwindcolorshades
colors: {
primary: colors.green,
danger: colors.rose,
info: colors.blue,
warning: colors.amber,
success: colors.emerald,
secondary: colors.gray,
"code-400": "#fefcf9",
"code-600": "#3c455b",
"document-preview": "#E7E8EB"
},
margin: {
'1px': '1px',
}
},
},
variants: {
...defaultTheme.variants,
borderWidth: ['responsive', 'last', 'hover', 'focus']
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/typography'),
require('@tailwindcss/line-clamp')
]
}