This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.base.js
136 lines (131 loc) · 3.09 KB
/
tailwind.base.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
129
130
131
132
133
134
135
136
const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
// Our tailwind rtl utilities are originally based off of tailwindcss-rtl.
const rtl = plugin(({ addUtilities, matchUtilities, theme }) => {
// https://github.com/20lives/tailwindcss-rtl
matchUtilities(
{
ps: (value) => ({
paddingInlineStart: value,
}),
pe: (value) => ({
paddingInlineEnd: value,
}),
},
{
supportsNegativeValues: true,
values: theme('padding'),
}
);
matchUtilities(
{
ms: (value) => ({
marginInlineStart: value,
}),
me: (value) => ({
marginInlineEnd: value,
}),
},
{
supportsNegativeValues: true,
values: theme('margin'),
}
);
matchUtilities(
{
start: (value) => ({
'[dir="rtl"] &, &[dir="rtl"]': {
right: value,
},
'[dir="ltr"] &, &[dir="ltr"]': {
left: value,
},
}),
end: (value) => ({
'[dir="rtl"] &, &[dir="rtl"]': {
left: value,
},
'[dir="ltr"] &, &[dir="ltr"]': {
right: value,
},
}),
},
{
supportsNegativeValues: true,
values: theme('inset'),
}
);
addUtilities({
'[dir="rtl"] .text-start': { 'text-align': 'right' },
'[dir="rtl"] .text-end': { 'text-align': 'left' },
'[dir="ltr"] .text-end': { 'text-align': 'right' },
'[dir="ltr"] .text-start': { 'text-align': 'left' },
});
});
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
fontFamily: {
sans: ['"Noto Sans"', ...defaultTheme.fontFamily.sans],
hebrew: ['"SBL-Hebrew"', ...defaultTheme.fontFamily.sans],
greek: ['"SBL-Greek"', ...defaultTheme.fontFamily.sans],
mixed: [
'"SBL-Greek"',
'"SBL-Hebrew"',
'"Noto Sans"',
...defaultTheme.fontFamily.sans,
],
},
},
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.stone,
red: colors.red,
green: {
50: '#F3FAF8',
100: '#D8EFEB',
200: '#B2DDD7',
300: '#83C5BE',
400: '#59A8A2',
500: '#3F8D88',
600: '#31706E',
700: '#2A5B5A',
800: '#254A49',
900: '#233E3E',
950: '#0C0A09',
},
blue: {
50: '#F0FFFD',
100: '#C7FFFB',
200: '#8AFEF9',
300: '#55F6EE',
400: '#13ECE8',
500: '#01D0D0',
600: '#01A5A7',
700: '#018084',
800: '#066F74',
900: '#0A5457',
950: '#002E33',
},
brown: {
50: '#F8F7EE',
100: '#F0EDD9',
200: '#DED6AA',
300: '#CBBA79',
400: '#BBA154',
500: '#AC8E46',
600: '#93733B',
700: '#775731',
800: '#64492F',
900: '#573E2C',
950: '#312117',
},
},
},
plugins: [rtl, require('@headlessui/tailwindcss')],
};