-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
36 lines (33 loc) · 1015 Bytes
/
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
const path = require("path")
// Get the `main` file listed in the theme's package.json.
// This should (hopefully) find the right directory with node_modules,
// as well as with the yarn berry unpacking approach.
const themeMainFile = require.resolve(
`@thepolicylab-projectportals/gatsby-theme-project-portal`
)
// Get the path to the theme's directory, without a trailing slash
const themeDirectory = path.dirname(themeMainFile)
module.exports = {
presets: [
require("@thepolicylab-projectportals/gatsby-theme-project-portal/src/styles/tailwind.presets"),
],
content: [
// The theme components
themeDirectory + "/src/**/*.{js,jsx,ts,tsx,html}",
// The local src components
"./src/**/*.{js,jsx,ts,tsx,html}",
],
theme: {
extend: {
colors: {
navbar: "#edf3ec",
bottombanner: "#ffffff",
footer: "#eef3ec",
footertext: "#194009",
primary: "#186d00",
primarydark: "#174009",
topics: "#82e773",
},
},
},
}