-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from pixiv/mimo/tailwind-config-documents-scr…
…eens tailwind-configのbreak points (screen) docs追加
- Loading branch information
Showing
3 changed files
with
37 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
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,24 @@ | ||
import { config } from '@charcoal-ui/tailwind-config' | ||
|
||
const { | ||
theme: { screens }, | ||
} = config | ||
|
||
export const Screens: React.FC = () => { | ||
return ( | ||
<div className="space-y-40"> | ||
{Object.entries(screens!!).map( | ||
([screenName, value]) => | ||
typeof value === 'string' && ( | ||
<div key={screenName}> | ||
<p className="typography-14 text-text2">{screenName}</p> | ||
<div className="bg-surface4 h-64" style={{ width: value }}></div> | ||
<p className="typography-12 text-text3"> | ||
@media (<span className="text-text2">min-width: {value}</span>) | ||
</p> | ||
</div> | ||
) | ||
)} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { NextPage } from 'next' | ||
import { Screens } from '../../../components/tailwind-config/screens/Screens' | ||
|
||
const ScreenPage: NextPage = () => ( | ||
<div className="w-full m-16"> | ||
<Screens /> | ||
</div> | ||
) | ||
export default ScreenPage |