-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
69 lines (68 loc) · 2.06 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
//const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
const colors = require("tailwindcss/colors");
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class", // or 'media' or 'class', also darkMode increases bundle size noticeably
theme: {
textIndent: {
none: "0rem",
xs: "1rem",
sm: "2rem",
md: "3rem",
lg: "4rem",
},
textShadow: {
default: "0 2px 5px rgba(0, 0, 0, 0.5)",
lg: "0 2px 10px rgba(0, 0, 0, 0.5)",
},
extend: {
screens: {
xs: "360px",
xsh: { raw: `(min-height: 360px)` },
smh: { raw: `(min-height: 600px)` },
mdh: { raw: `(min-height: 960px)` },
lgh: { raw: `(min-height: 1280px)` },
xlh: { raw: `(min-height: 1920px)` },
},
colors: {
primary: colors.sky,
secondary: colors.amber,
accent: colors.indigo,
background: colors.gray,
},
},
},
plugins: [
require("tailwindcss-typography")({
// https://www.npmjs.com/package/tailwindcss-typography
// all these options default to the values specified here
ellipsis: true, // whether to generate ellipsis utilities
hyphens: true, // whether to generate hyphenation utilities
kerning: true, // whether to generate kerning utilities
textUnset: true, // whether to generate utilities to unset text properties
//componentPrefix: "c-", // the prefix to use for text style classes
}),
require("tailwindcss-rtl"),
// Add custom plugins as such:
plugin(({ addUtilities }) => {
const extendTextTransform = {
".uppercase-first": {
"&::first-letter": {
textTransform: "uppercase",
},
},
".uppercase-firstOnly": {
textTransform: "lowercase",
"&::first-letter": {
textTransform: "uppercase",
},
},
};
addUtilities(extendTextTransform, ["responsive"]);
}),
],
};