-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
61 lines (55 loc) · 1.59 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
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
theme: {
extend: {
colors: {
// TODO: Refactor at some point?
primary: colors.blue,
secondary: colors.pink,
brandBlue: '#9db0c2',
brandYellow: '#eaba5d',
brandGrey:'#4b555c'
},
// TODO: Parameter
dropShadow: {
lg: '0 10px 8px #9db0c2',
},
fontFamily: {
// TODO: Shame it has to be this way…
sans: ["Bitter", ...defaultTheme.fontFamily.sans],
serif: ["Bitter", ...defaultTheme.fontFamily.sans],
// serif:
btn: ["Albert Sans"],
// TODO: Can I do it this way?
// TODO: Whay can I not get bold?
heading: ["Albert Sans"],
subheading: ["Albert Sans"],
},
},
},
plugins: [require('@tailwindcss/typography')],
darkMode: 'class',
};
/*
Alternative tailwind.config.js
NOTE: Add this fonts to <head>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700&display=swap" rel="stylesheet" />
*/
// module.exports = {
// content: ["./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}"],
// theme: {
// extend: {
// colors: {
// primary: colors.cyan,
// secondary: colors.lime,
// },
// fontFamily: {
// sans: ["'Nunito'", ...defaultTheme.fontFamily.sans],
// },
// },
// },
// plugins: [require("@tailwindcss/typography")],
// darkMode: "class",
// };