-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
58 lines (57 loc) · 1.73 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
const plugin = require('tailwindcss/plugin')
// const defaultTheme = require('tailwindcss/defaultTheme')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{vue,ts}'],
theme: {
extend: {
colors: {
blue: "#30B1FD",
black: "#232020",
offBlack: "#363B3E",
white: "#FFF",
offWhite: "#FFF4F3",
yellow: "#EBEA67",
red: "#F7766A",
green: "#00B689",
grey: "#747C81",
silver: "#B8B8B8"
},
screens: {
'2xl': { 'max': '1535px' },
// => @media (max-width: 1535px) { ... }
'xl': { 'min': '1600px', 'max': '3840px' },
// => @media (max-width: 1279px) { ... }
'lg': { 'max': '1100px' },
// => @media (max-width: 1023px) { ... }
'sm': { 'max': '400px' },
// => @media (max-width: 639px) { ... }
'md': { 'max': '865px' },
// => @media (max-width: 767px) { ... }
'm_lg': '1440px',
'm_lg1': '1920px',
'm_md': '865px',
'm_sm': '393px',
},
},
},
plugins: [
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
plugin(function ({ addVariant, e, postcss }) {
addVariant('firefox', ({ container, separator }) => {
const isFirefoxRule = postcss.atRule({
name: '-moz-document',
params: 'url-prefix()',
})
isFirefoxRule.append(container.nodes)
container.append(isFirefoxRule)
isFirefoxRule.walkRules((rule) => {
rule.selector = `.${e(`firefox${separator}${rule.selector.slice(1)}`)}`
})
})
}),
],
}