Skip to content

Commit a56d89b

Browse files
committed
Initial commit (v1.0.0)
0 parents  commit a56d89b

69 files changed

Lines changed: 1720 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Production builds
8+
/build
9+
/dist
10+
/.next
11+
12+
# Environment variables
13+
.env
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
# IDE files
20+
.vscode/
21+
.idea/
22+
*.swp
23+
*.swo
24+
25+
# OS generated files
26+
.DS_Store
27+
.DS_Store?
28+
._*
29+
.Spotlight-V100
30+
.Trashes
31+
ehthumbs.db
32+
Thumbs.db
33+
34+
# Logs
35+
logs
36+
*.log
37+
38+
# Runtime data
39+
pids
40+
*.pid
41+
*.seed
42+
*.pid.lock
43+
44+
# Coverage directory used by tools like istanbul
45+
coverage/
46+
.nyc_output
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Microbundle cache
58+
.rpt2_cache/
59+
.rts2_cache_cjs/
60+
.rts2_cache_es/
61+
.rts2_cache_umd/
62+
63+
# Optional REPL history
64+
.node_repl_history
65+
66+
# Output of 'npm pack'
67+
*.tgz
68+
69+
# Yarn Integrity file
70+
.yarn-integrity
71+
72+
# parcel-bundler cache (https://parceljs.org/)
73+
.cache
74+
.parcel-cache
75+
76+
# Storybook build outputs
77+
.out
78+
.storybook-out

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# mc.css
2+
mc.css lets you use Minecraft's design system in pure CSS, with extra features included with React.
3+
4+
## Installation
5+
For just CSS, you can use a CDN:
6+
```css
7+
@import url("https://unpkg.com/@klashdevelopment/mc.css/styles/index.css");
8+
```
9+
```html
10+
<link rel="stylesheet" href="https://unpkg.com/@klashdevelopment/mc.css/styles/index.css" />
11+
```
12+
13+
For CSS or React, you can use the NPM package:
14+
```sh
15+
npm install @klashdevelopment/mc.css
16+
```
17+
18+
Then, import the react components:
19+
```tsx
20+
import { ... } from "@klashdevelopment/mc.css";
21+
```

demo.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
html, body {
2+
background: #ccc;
3+
color: black;
4+
width: 100%;
5+
height: 100vh;
6+
padding: 0;
7+
margin: 0;
8+
font-family: 'Minecraft', sans-serif;
9+
letter-spacing: -0.5px;
10+
}
11+
12+
h1, h2, h3, h4, h5, h6 {
13+
margin: 0;
14+
padding: 5px 0;
15+
}
16+
17+
main {
18+
width: 100%;
19+
min-height: 100vh;
20+
padding: 20px;
21+
box-sizing: border-box;
22+
display: flex;
23+
flex-direction: column;
24+
gap: 5px;
25+
}
26+
27+
.mc-container, .mc-button, .mc-input, .mc-tooltip {
28+
width: fit-content;
29+
}
30+
.mc-window-content {
31+
padding: 10px;
32+
}
33+
.mc-window-content img {
34+
scale: 1.25;
35+
}
36+
.docs-item {
37+
width: 100%;
38+
display: flex;
39+
flex-direction: column;
40+
gap: 5px;
41+
}
42+
.docs-item.row {
43+
flex-direction: row;
44+
}
45+
.docs-item.row.end {
46+
align-items: end;
47+
}
48+
49+
.docs-grid { /* grid for 64x64 items with 8px gap */
50+
display: grid;
51+
grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
52+
gap: 8px;
53+
}

0 commit comments

Comments
 (0)