-
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.
Initial NJWDS commit with Button and Icon components
- Loading branch information
Showing
11 changed files
with
4,002 additions
and
276 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,122 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Lit Element Simple Starter Kit</title> | ||
</head> | ||
<body> | ||
<my-element></my-element> | ||
<script type="module" src="/src/my-element.ts"></script> | ||
</body> | ||
</html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>New Jersey Web Design System</title> | ||
<!-- <link href="./dist/assets/button.css" rel="stylesheet" /> --> | ||
<style> | ||
*, | ||
::after, | ||
::before { | ||
box-sizing: border-box; | ||
} | ||
</style> | ||
</head> | ||
<body style="padding: 12px; font-family: sans-serif"> | ||
<h1>NJWDS Lit Components</h1> | ||
<h2>Button</h2> | ||
<div style="margin-bottom: 12px; display: flex; align-items: center"> | ||
<nj-button variant="primary">Primary Light</nj-button> | ||
<nj-button variant="secondary">Secondary Light</nj-button> | ||
<nj-button variant="link">Link Light</nj-button> | ||
</div> | ||
<div style="margin-bottom: 12px; display: flex; align-items: center"> | ||
<nj-button variant="primary" icon-name="add" icon-position="leading" | ||
>Primary Light</nj-button | ||
> | ||
<nj-button variant="primary" icon-name="add" icon-position="trailing" | ||
>Primary Light</nj-button | ||
> | ||
<nj-button | ||
variant="primary" | ||
icon-name="add" | ||
icon-position="icon-only" | ||
icon-title="Add" | ||
></nj-button> | ||
<nj-button variant="link" icon-name="add" icon-position="trailing" | ||
>Link Light</nj-button | ||
> | ||
<nj-button variant="link" icon-name="add" icon-position="leading" | ||
>Link Light</nj-button | ||
> | ||
</div> | ||
<div style="margin-bottom: 12px; display: flex; align-items: center"> | ||
<nj-button variant="secondary" icon-name="add" icon-position="leading" | ||
>Secondary Light</nj-button | ||
> | ||
<nj-button variant="secondary" icon-name="add" icon-position="trailing" | ||
>Secondary Light</nj-button | ||
> | ||
<nj-button | ||
variant="secondary" | ||
icon-name="add" | ||
icon-position="icon-only" | ||
icon-title="Add" | ||
></nj-button> | ||
</div> | ||
<div | ||
style=" | ||
margin-bottom: 12px; | ||
background-color: black; | ||
padding: 12px; | ||
display: flex; | ||
align-items: center; | ||
" | ||
> | ||
<nj-button variant="primary" mode="dark">Primary Dark</nj-button> | ||
<nj-button variant="secondary" mode="dark">Secondary Dark</nj-button> | ||
<nj-button variant="link" mode="dark">Link Dark</nj-button> | ||
</div> | ||
<div | ||
style=" | ||
margin-bottom: 12px; | ||
background-color: black; | ||
padding: 12px; | ||
display: flex; | ||
align-items: center; | ||
" | ||
> | ||
<nj-button | ||
variant="primary" | ||
mode="dark" | ||
icon-name="add" | ||
icon-position="leading" | ||
>Primary Dark</nj-button | ||
> | ||
<nj-button | ||
variant="secondary" | ||
mode="dark" | ||
icon-name="add" | ||
icon-position="trailing" | ||
>Secondary Dark</nj-button | ||
> | ||
<nj-button | ||
variant="secondary" | ||
icon-name="add" | ||
icon-position="icon-only" | ||
icon-title="Add" | ||
></nj-button> | ||
</div> | ||
<div style="margin-bottom: 12px; display: flex; align-items: center"> | ||
<nj-button variant="primary" mode="danger">Primary Danger</nj-button> | ||
<nj-button variant="secondary" mode="danger">Secondary Danger</nj-button> | ||
<nj-button variant="link" mode="danger">Link Danger</nj-button> | ||
</div> | ||
|
||
<h2>Icon</h2> | ||
<div style="margin-bottom: 12px"> | ||
<nj-icon icon-name="info" size="scale" decorative="true"></nj-icon> | ||
<nj-icon icon-name="info" size="3" decorative="true"></nj-icon> | ||
<nj-icon icon-name="info" size="4" decorative="true"></nj-icon> | ||
<nj-icon icon-name="info" size="5" decorative="true"></nj-icon> | ||
</div> | ||
|
||
<script | ||
type="module" | ||
src="./dist/components/nj-button/nj-button.mjs" | ||
></script> | ||
<script type="module" src="./dist/components/nj-icon/nj-icon.mjs"></script> | ||
</body> | ||
</html> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
declare module "*.css?inline"; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.