-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
118 lines (109 loc) · 3.42 KB
/
tailwind.config.mjs
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
/* eslint-disable no-undef */
/**
* This is a minimal config.
*
* If you need the full config, get it from here:
* https://unpkg.com/browse/tailwindcss@latest/stubs/defaultConfig.stub.js
*/
import aspectRatio from "@tailwindcss/aspect-ratio"
import lineClamp from "@tailwindcss/line-clamp"
import typography from "@tailwindcss/typography"
import daisyui from "daisyui"
import { bumblebee } from "daisyui/src/theming/themes"
const basedir = "totem"
// Creme
// CMYK: 3, 3, 7, 0 RGB: 243, 241, 233 HEX: F3F1E9
// Yellow
// CMYK: 3, 11, 56, 0 RGB: 244, 220, 146 HEX: F4DC92
// Mauve
// CMYK: 41, 58, 9, 0 RGB: 152, 122, 165 HEX: 987AA5
// Slate
// CMYK: 81, 67, 56, 57 RGB: 38, 47, 55 HEX: 262F37
// Deep gray
// CMYK: 63, 57, 58, 36 RGB: 81, 79, 77
// HEX: 514F4D
// Blue
// CMYK: 41, 12, 4, 0 RGB: 155, 192, 221 HEX: 9BC0DD
// Blue tint
// CMYK: 75, 45, 30, 5 RGB: 85, 119, 143 HEX: 55778F
// Pink
// CMYK: 7, 49, 15, 0 RGB: 217, 153, 170 HEX: D999AA
// Pink tint
// CMYK: 38, 77, 45, 14 RGB: 139, 83, 99 HEX: 8B5363
const totemColors = {
creme: "#F3F1E9",
yellow: "#F4DC92",
mauve: "#987AA5",
slate: "#262F37",
deepGray: "#514F4D",
blue: "#9BC0DD",
blueTint: "#55778F",
pink: "#D999AA",
pinkTint: "#8B5363",
}
export default {
content: [
/**
* HTML. Paths to Django template files that will contain Tailwind CSS classes.
*/
/* Templates within theme app (<tailwind_app_name>/templates), e.g. base.html. */
`${basedir}/templates/**/*.html`,
/*
* Main templates directory of the project (BASE_DIR/templates).
* Adjust the following line to match your project structure.
*/
"./*/templates/**/*.html",
/*
* Templates in other django apps (BASE_DIR/<any_app_name>/templates).
* Adjust the following line to match your project structure.
*/
`${basedir}/**/templates/**/*.html`,
// Javascript files
"./assets/js/**/*.js",
"./assets/js/**/*.jsx",
"./assets/js/**/*.tsx",
// '../../**/*.py'
],
theme: {
extend: {
colors: {
tcreme: totemColors.creme,
tyellow: totemColors.yellow,
tmauve: totemColors.mauve,
tslate: totemColors.slate,
tdeepgray: totemColors.deepGray,
tblue: totemColors.blue,
tblueTint: totemColors.blueTint,
tpink: totemColors.pink,
tpinkTint: totemColors.pinkTint,
},
backgroundColor: {
primary: totemColors.creme,
tcreme: totemColors.creme,
tyellow: totemColors.yellow,
tmauve: totemColors.mauve,
tslate: totemColors.slate,
},
fontFamily: {
serif: ["Erode", "serif"],
sans: ["Montserrat", "sans-serif"],
},
},
},
plugins: [typography, lineClamp, aspectRatio, daisyui],
daisyui: {
themes: [
{
mytheme: {
...bumblebee,
primary: totemColors.mauve,
},
},
], // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
base: false, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: false, // Shows info about daisyUI version and used config in the console when building your CSS
},
}