forked from p2-inc/phasetwo-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
70 lines (69 loc) · 1.75 KB
/
tailwind.config.js
File metadata and controls
70 lines (69 loc) · 1.75 KB
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
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
corePlugins: { preflight: false },
darkMode: ["class", '[data-theme="dark"]'],
theme: {
extend: {
/**
* Responsive breakpoints (site-wide)
* Matches the breakpoint tokens in `src/css/custom.css`
* (`--breakpoint-small-down` / `--breakpoint-medium-down`).
*/
screens: {
"bp-600": { max: "600px" },
"bp-767": { max: "767px" },
},
colors: {
p2blue: {
200: "#ebf5fc",
300: "#58ade7",
400: "#65b4e9",
500: "#3fa1e3",
600: "#2695df",
700: "#1f8dd7",
800: "#1a74b1",
},
secondary: {
400: "#d252b5",
500: "#d252b5",
600: "#c03da3",
},
},
fontFamily: {
sans: ['"Manrope"', "system-ui", "-apple-system", "sans-serif"],
},
fontWeight: {
normal: "400",
medium: "500",
},
},
},
plugins: [
plugin(function({ addComponents, theme }) {
addComponents({
// Link styles
'.link-primary': {
lineHeight: '1.5',
fontWeight: '500',
fontFamily: theme('fontFamily.sans'),
color: theme('colors.white'),
'&:hover': {
color: theme('colors.p2blue.400'),
},
},
'.link-secondary': {
fontSize: '14px',
lineHeight: '1.5',
fontWeight: '500',
fontFamily: theme('fontFamily.sans'),
color: theme('colors.white'),
'&:hover': {
color: theme('colors.secondary.400'),
},
},
});
}),
],
};