-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
122 lines (119 loc) · 3.11 KB
/
tailwind.config.cjs
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
const theme = require('tailwindcss/defaultTheme')
const defaultTheme = require('tailwindcss/defaultTheme')
const PREFIX = '--ms'
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx,mdx}"],
safelist: [
{
pattern: /font-*/
},
{
pattern: /ms-*/
},
{
pattern: /text-*/
},
{
pattern: /mb-*/
},
{
pattern: /bg-*/
}
],
theme: {
colors: {
black: '#000000',
white: '#FFFFFF',
inherit: 'inherit',
transparent: 'transparent',
'heading-color': 'var(--ms-heading-color)',
'subtitle-color': 'var(--ms-subtitle-color)',
'paragraph-color': 'var(--ms-paragraph-color)',
tertiary: `var(${PREFIX}-tertiary)`,
ghost: `var(${PREFIX}-ghost)`,
// default: `var(${PREFIX}-default)`,
disabled: `var(${PREFIX}-disabled)`,
placeholder: `var(${PREFIX}-placeholder)`,
},
screens: {
xs: '320px',
sm: '490px',
md: '744px',
lg: '960px',
xl: '1440px',
'2xl': '1920px',
},
boxShadow: {
lg: '0px 32px 62px -16px rgba(0, 0, 0, 0.08)',
DEFAULT: '0px 16px 22px -8px rgba(0, 0, 0, 0.1)',
sm: '0px 4px 6px 0px rgba(0, 0, 0, 0.1)'
},
extend: {
spacing: {
'4px': '0.25rem',
'8px': '0.5rem',
'16px': '1rem',
'24px': '1.5rem',
'32px': '2rem',
'48px': '3rem',
'64px': '4rem',
xs: '0.25rem',
sm: '0.5rem',
md: '1rem',
lg: '1.5rem',
xl: '2rem',
'2xl': '3rem',
'3xl': '4rem',
},
height: {
'4.5': '1.125rem',
},
translate: {
'4.5': '1.125rem',
},
opacity: {
2: '0.02'
},
borderRadius: {
btn: `var(${PREFIX}-btn-border-radius)`
},
borderWidth: {
'1/2': '0.5px'
},
fontSize: {
'heading-lg': [`var(${PREFIX}-heading-1)`, {lineHeight: '96px'}],
'heading-md': [`var(${PREFIX}-heading-2)`, {lineHeight: '75px'}],
'heading-sm': [`var(${PREFIX}-heading-3)`, {lineHeight: '54px'}],
'subtitle-lg': [
`var(${PREFIX}-subtitle-lg)`,
{lineHeight: theme.lineHeight['9']}
],
'subtitle-md': [`var(${PREFIX}-subtitle-md)`, {lineHeight: '30px'}],
'subtitle-sm': [`var(${PREFIX}-subtitle-sm)`, {lineHeight: '27px'}],
'paragraph-lg': [
`var(${PREFIX}-paragraph-lg)`,
{lineHeight: theme.lineHeight['6']}
],
'paragraph-md': [`var(${PREFIX}-paragraph-md)`, {lineHeight: '21px'}],
'paragraph-sm': [`var(${PREFIX}-paragraph-sm)`, {lineHeight: '21px'}],
},
fontFamily: {
'sans': ['IBM Plex Sans Arabic', ...defaultTheme.fontFamily.sans],
},
animation: {
'animate-pulse': 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;'
},
keyframes: {
pulse: {
'0%, 100%': {opacity: 0.5},
'50%': {opacity: 0.15}
}
}
}
},
plugins: [
require('@tailwindcss/typography'),
require('tailwindcss-react-aria-components'),
],
}