Skip to content

Commit

Permalink
Add test #33
Browse files Browse the repository at this point in the history
  • Loading branch information
qrac committed Mar 15, 2021
1 parent 36b7f2b commit 3f69187
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
},
"scripts": {
"build": "node ./src",
"test": "node ./test",
"prepublishOnly": "npm run build",
"clean": "trash ./dist"
},
Expand Down
35 changes: 35 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="ja">
<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>Shitaji.CSS Test</title>
<link rel="stylesheet" href="../src/index.css" />
<style>
:root {
--theme-tx-1: #292929;
--theme-bg-1: #ffffff;
}
@media (prefers-color-scheme: dark) {
:root {
--theme-tx-1: #f0f0f0;
--theme-bg-1: #282a37;
}
}
body {
max-width: 800px;
margin: 0 auto;
padding: 16px;
background-color: var(--theme-bg-1);
color: var(--theme-tx-1);
}
main {
overflow: hidden;
}
</style>
</head>
<body>
<main></main>
</body>
</html>

0 comments on commit 3f69187

Please sign in to comment.