Skip to content

Commit a9c8998

Browse files
committed
Add custom colors and screens on tailwind config js
1 parent b569353 commit a9c8998

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

tailwind/Example2/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Tailwind Demo</title>
6+
<title>Tailwind Landing Page</title>
77
<link href="./styles.css" rel="stylesheet">
88
</head>
99
<body>

tailwind/Example2/tailwind.config.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
module.exports = {
33
content: ["./dist/*.{html,js}"],
44
theme: {
5-
extend: {},
5+
screens: {
6+
sm:'480px',
7+
md:'768px',
8+
lg:'976px',
9+
xl:'1440px',
10+
},
11+
extend: {
12+
colors: {
13+
brightRed: 'hsl(12, 88%, 59%)',
14+
brightRedLight: 'hsl(12, 88%, 69%)',
15+
brightRedSupLight: 'hsl(12, 88%, 95%)',
16+
darkBlue: 'hsl(228, 39%, 23%)',
17+
darkGrayishBlue: 'hsl(227, 12%, 61%)',
18+
veryDarkBlue: 'hsl(233, 12%, 13%)',
19+
veryPaleRed: 'hsl(13, 100%, 96%)',
20+
veryLightGray: 'hsl(0, 0%, 98%)',
21+
}
22+
},
623
},
724
plugins: [],
825
}

0 commit comments

Comments
 (0)