Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
603 changes: 348 additions & 255 deletions example/index.html

Large diffs are not rendered by default.

1,122 changes: 1,122 additions & 0 deletions example/src/output.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions example/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@tailwind components;
@tailwind utilities;

* {
scroll-behavior: smooth;
}

/* Dragging states */
.dragging {
@apply opacity-50 cursor-grabbing;
Expand Down
164 changes: 164 additions & 0 deletions example/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Helvetica Neue', Helvetica, Arial;
font-weight: 300;
}
body {
background-color: rgb(244, 215, 201);
padding: 20px;
color: #212529;
}
body .container {
max-width: 1140px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 0 auto;
}

.logo {
display: flex;
align-items: center;
flex-direction: column;
}
.logo .image {
width: 200px;
height: 100px;
background-color: green;
}

.logo h3 {
font-weight: 300;
font-size: 40px;
}

.desc {
font-weight: normal;
}

#features_examples_plugins {
width: 45%;
max-width: 720px;
padding: 30px;
height: auto;
border: 1px solid #444;
background-color: rgb(255, 255, 255, 0.5);
margin-top: 20px;
}
#features_examples_plugins > div {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

#features_examples_plugins > div > h3 {
margin-bottom: 10px;
font-weight: 300;
}
#features_examples_plugins > div > a {
display: block;
color: #007bff;
text-decoration: none;
font-weight: 300;
margin-bottom: 8px;
}

#features {
width: 100%;
margin-top: 20px;
}

#features > h3 {
padding: 0 0 10px 0;
font-size: 32px;
}
#features .feature h3 {
padding: 20px 10px;
font-size: 24px;
border-top: 1px solid rgba(0, 0, 0, 0.125);
}
#features .feature .feature_desc {
padding: 0px 0 20px 10px;
}

#features .feature .double {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}

#features .feature > div > p {
font-size: 20px;
}

#features .feature ul {
width: 100%;
list-style-type: none;
border-radius: 5px;
overflow: hidden;
}
#features .feature ul li {
width: full;
background-color: white;
padding: 15px;
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
display: flex;
align-items: center;
gap: 8px;
}
#features .feature ul.exampleRight li {
background-color: #fff6b2;
}
#features .feature .code {
padding: 5px 20px;
margin: 10px 0;
border-left: 1px solid #888;
display: flex;
flex-direction: column;
gap: 12px;
}
#features .feature .code .style,
#features .feature .code {
font-size: 14px;
color: #000000;
}

#features .feature .code .new,
#features .feature .code .group {
color: #000088;
}
#features .feature .code .class {
color: #660066;
}
#features .feature .code .symbol {
color: #660;
}
#features .feature .code .style_num {
color: #006666;
}
#features .feature .code .comment {
color: #800;
}
#features .feature .code .style_str {
color: #008800;
}
#features .feature .code .style_bool {
color: #000088;
}
#features .feature .code .style {
padding: 5px 0px 0 20px;
}
#features .feature ul li button {
width: 24px;
height: 24px;
background-color: red;
border: 0;
display: flex;
align-items: center;
justify-content: center;
}
11 changes: 0 additions & 11 deletions example/tailwind.config.js

This file was deleted.

10 changes: 0 additions & 10 deletions example/tsconfig.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build": "vite build && rollup -c",
"preview": "vite preview",
"clean": "rimraf dist",
"example": "npm run build && vite example"
"example": "npm run build && vite example",
"styles": "npx tailwindcss -i ./example/src/style.css -o ./example/src/output.css -w"
},
"devDependencies": {
"@rollup/plugin-typescript": "^12.1.2",
Expand Down
File renamed without changes.
16 changes: 16 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./example/*.html', './example/**/*.html'],
theme: {
extend: {
colors: {
style_str: '#008800',
style_blue: '#000088',
style_num: '#006666',
style_class: '#660066',
style_comment: '#800',
},
},
},
plugins: [],
};