Skip to content

Commit 9ca242f

Browse files
committed
Update for tailwind v3
1 parent 057021e commit 9ca242f

File tree

3 files changed

+6
-38
lines changed

3 files changed

+6
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tailwind CSS Breakpoints Inspector
22
A Tailwind CSS plugin that shows the currently 'active' responsive breakpoint.
33

4-
<img src="https://github.com/Hounddd/tailwindcss-breakpoints-inscpector/blob/962344e219947fdd65d972683effbb3f3d723e89/screenshot.gif" width="100%">
4+
<img src="https://github.com/Hounddd/tailwindcss-breakpoints-inscpector/raw/master/screenshot.gif" width="100%">
55

66
## Install
77

index.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
/*
2-
export default function({addBase, theme}) {
3-
if (process.env.NODE_ENV === "production") return
4-
5-
const screens = theme('screens', {})
6-
const breakpoints = Object.keys(screens)
7-
8-
addBase({
9-
'body::after': {
10-
content: `"Current breakpoint default (< ${screens[breakpoints[0]]})"`,
11-
position: 'fixed',
12-
right: '.5rem', // could replace with theme('spacing.2', '.5rem'), same for most of the other values
13-
bottom: '.5rem',
14-
padding: '.5rem .5rem .5rem 2rem',
15-
background: 'no-repeat .5rem center / 1.25rem url(https://tailwindcss.com/favicon-32x32.png), #edf2f7',
16-
border: '1px solid #cbd5e0',
17-
color: '#d53f8c',
18-
fontSize: '.875rem',
19-
fontWeight: '600',
20-
zIndex: '99999',
21-
},
22-
...breakpoints.reduce((acc, current) => {
23-
acc[`@media (min-width: ${screens[current]})`] = {
24-
'body::after': {
25-
content: `"Current breakpoint ${current}"`
26-
}
27-
}
28-
return acc
29-
}, {})
30-
})
31-
}
32-
*/
331

342
module.exports = function ({
353
addComponents,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "tailwindcss-breakpoints-inscpector",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "A Tailwind CSS component that shows the currently active breakpoint.",
55
"main": "index.js",
66
"author": "Damien MATHIEU",
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/hounddd/tailwindcss-breakpoint-inscpector.git"
10+
"url": "https://github.com/Hounddd/tailwindcss-breakpoint-inscpector.git"
1111
},
12-
"homepage": "https://github.com/hounddd/tailwindcss-breakpoint-inscpector",
13-
"bugs": "https://github.com/hounddd/tailwindcss-breakpoint-inscpector/issues",
12+
"homepage": "https://github.com/Hounddd/tailwindcss-breakpoint-inscpector",
13+
"bugs": "https://github.com/Hounddd/tailwindcss-breakpoint-inscpector/issues",
1414
"peerDependencies": {
15-
"tailwindcss": "^1.0 || ^2.0"
15+
"tailwindcss": "^1.0 || ^2.0 || ^3.0"
1616
}
1717
}

0 commit comments

Comments
 (0)