You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leverage the CSS `clamp` function in your [Tailwind CSS](https://tailwindcss.com/) project.
3
+
**Fluid interfaces. From mobile to desktop.**
4
+
5
+
[Tailwind CSS](https://tailwindcss.com/) plugin to build responsive interfaces that scale smoothly using CSS `clamp()` without breakpoint micromanagement.
4
6
5
7
## Features
6
8
@@ -28,7 +30,7 @@ npm i tailwind-clamp
28
30
Add the plugin in your main CSS file:
29
31
30
32
```css
31
-
@import'tailwindcss';
33
+
@import"tailwindcss";
32
34
@plugin "tailwind-clamp";
33
35
```
34
36
@@ -44,10 +46,10 @@ The plugin allows two configuration options:
44
46
Value should be a css length (`px`, `rem`, `em`). The unit for both options need to match.
45
47
46
48
```css
47
-
@import'tailwindcss';
49
+
@import"tailwindcss";
48
50
@plugin "tailwind-clamp" {
49
-
minsize: 25rem;
50
-
maxsize: 80rem;
51
+
minSize: 25rem;
52
+
maxSize: 80rem;
51
53
}
52
54
```
53
55
@@ -87,8 +89,7 @@ All spacing and sizing properties (`p`, `m`, `w`, etc.) accept unitless numbers
87
89
88
90
```html
89
91
<div class="clamp-[p,1,2]">
90
-
This will generate a `padding` value of `1rem` at `minSize` and `2rem` at
91
-
`maxSize`.
92
+
This will generate a `padding` value of `1rem` at `minSize` and `2rem` at `maxSize`.
Leverage the the CSS `clamp` function in your [Tailwind CSS](https://tailwindcss.com/) project.
3
+
**Fluid interfaces. From mobile to desktop.**
4
+
5
+
[Tailwind CSS](https://tailwindcss.com/) plugin to build responsive interfaces that scale smoothly using CSS `clamp()` without breakpoint micromanagement.
0 commit comments