-
Notifications
You must be signed in to change notification settings - Fork 14
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
Showing
2 changed files
with
82 additions
and
10 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,25 @@ | ||
### Summary | ||
|
||
This library exports **Tailwind** flavoured [atomic classes](https://css-tricks.com/lets-define-exactly-atomic-css/) for dealing with spacing within components. | ||
|
||
Here's a guide on how to use them: | ||
|
||
- [https://night-tailwindcss.vercel.app/docs/display](https://night-tailwindcss.vercel.app/docs/display) | ||
|
||
The avalible properties are: | ||
|
||
- `.{displayProperty}` | ||
- `.{s|m|l|xl}:{displayProperty}` | ||
|
||
### Examples | ||
|
||
```tsx static | ||
// Some examples | ||
|
||
<> | ||
<div className="hidden m:block">I am hidden at mobile but visible on desktop</div> | ||
<div className="hidden m:block l:hidden">I am hidden at mobile but visible on tablet and hidden on desktop</div> | ||
<div className="flex">I am a flexible div</div> | ||
<div className="hidden m:flex">I am hidden at mobile but a flexible div at tablet and desktop</div> | ||
</> | ||
``` |
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