forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
128 lines (125 loc) · 3.26 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
// Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
const colors = require('tailwindcss/colors')
const formKitTailwind = require('@formkit/themes/tailwindcss')
const plugin = require('tailwindcss/plugin')
const path = require('path')
// Add the moment we can use one tailwind config for the mobile app, but later we need to check
// how this works with different apps.
module.exports = {
content: [`${path.resolve(__dirname)}/app/frontend/**/*.{js,jsx,ts,tsx,vue}`],
theme: {
fontFamily: {
sans: [
'"Fira Sans"',
'"Helvetica Neue"',
'Helvetica',
'Arial',
'sans-serif',
],
},
colors: {
transparent: 'transparent',
current: 'currentColor',
black: {
DEFAULT: '#191919',
full: colors.black,
},
white: colors.white,
gray: {
DEFAULT: '#999999',
100: '#D1D1D1',
150: '#D8D8D8',
200: '#656567',
300: '#4C4C4D',
400: '#323234',
500: '#282829',
600: '#262627',
highlight: '#99999926',
light: '#25262D99',
},
blue: {
DEFAULT: '#23A2CD',
dark: '#045972',
highlight: '#23A2CD19',
},
yellow: {
DEFAULT: '#FFCE33',
highlight: '#FFCE331A',
inactive: '#A38629',
},
red: {
DEFAULT: '#E54011',
highlight: '#E540111A',
bright: '#FF4008',
dark: '#261F1D',
},
green: {
DEFAULT: '#36AF6A',
highlight: '#38AD691A',
},
pink: '#EA4D84',
'dark-blue': '#045972',
orange: '#F39804',
},
minWidth: {
'1/2': '50%',
},
},
plugins: [
formKitTailwind,
plugin(({ addVariant, matchUtilities, theme }) => {
matchUtilities(
{
'pb-safe': (value) => ({
paddingBottom: `calc(var(--safe-bottom, 0) + ${value})`,
}),
'mb-safe': (value) => ({
marginBottom: `calc(var(--safe-bottom, 0) + ${value})`,
}),
},
{ values: theme('padding') },
)
addVariant('formkit-populated', [
'&[data-populated]',
'[data-populated] &',
'[data-populated]&',
])
addVariant('formkit-required', [
'&[data-required]',
'[data-required] &',
'[data-required]&',
])
addVariant('formkit-dirty', [
'&[data-dirty]',
'[data-dirty] &',
'[data-dirty]&',
])
addVariant('formkit-is-checked', [
'&[data-is-checked]',
'[data-is-checked] &',
'[data-is-checked]&',
])
addVariant('formkit-label-hidden', [
'&[data-label-hidden]',
'[data-label-hidden] &',
'[data-label-hidden]&',
])
addVariant('formkit-variant-primary', [
'[data-variant="primary"] &',
'[data-variant="primary"]&',
])
addVariant('formkit-variant-secondary', [
'[data-variant="secondary"] &',
'[data-variant="secondary"]&',
])
addVariant('formkit-variant-submit', [
'[data-variant="submit"] &',
'[data-variant="submit"]&',
])
addVariant('formkit-variant-danger', [
'[data-variant="danger"] &',
'[data-variant="danger"]&',
])
}),
],
}