-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 83b8172
Showing
6 changed files
with
714 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# tailwindcss-frosted | ||
A TailwindCSS plugin that provides a set of `frosted` classes to create a modern illusion of layering for modals and slide-over elements. | ||
|
||
|
||
```html | ||
<section class="p-5 shadow frosted"> | ||
<span> | ||
<!-- Modal or slide-over content --> | ||
</span> | ||
</section> | ||
``` | ||
|
||
## Installation | ||
|
||
Install the plugin from npm: | ||
|
||
```sh | ||
# Using npm | ||
npm install @mjwebs/tailwindcss-frosted | ||
|
||
|
||
Then add the plugin to your `tailwind.config.js` file: | ||
|
||
```js | ||
// tailwind.config.js | ||
module.exports = { | ||
theme: { | ||
// ... | ||
}, | ||
plugins: [ | ||
require('@mjwebs/tailwindcss-frosted'), | ||
// ... | ||
], | ||
} | ||
``` |
Oops, something went wrong.