Skip to content

Commit 1ba094a

Browse files
committed
release v0.1.0
1 parent f830a05 commit 1ba094a

7 files changed

Lines changed: 77 additions & 12 deletions

File tree

dist/README.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,39 @@
33
(Forked [Oat UI](https://github.com/knadh/oat))
44
See [CHANGELOG](CHANGELOG.md) for changes and updates.
55

6-
> Semantic, minimal, zero dependencies. ~10KB CSS and JS.
6+
> Semantic, minimal, zero dependencies. ~11KB CSS and JS.
77
8-
Oat Glassed is an ultra-lightweight HTML + CSS, semantic UI component library with zero dependencies. No framework, build, or dev complexity. Just include the tiny CSS and JS files and you are good to go building decent looking web applications with most commonly needed components and elements.
8+
Oat Glassed is an ultra-lightweight HTML + CSS, semantic UI component library with zero dependencies. No framework, build, or dev complexity. Just include the tiny CSS and JS files and you are good to go building decent looking web applications with most commonly needed components and elements. Forked from Oat UI, it is now built with a glassmorphism design and has a few new components.
99

1010
Semantic tags and attributes are styled contextually out of the box without classes, forcing best practices, and reducing markup class pollution. A few dynamic components are WebComponents and use minimal JavaScript.
1111

12-
I wrote this to use in my own projects after getting sick of the ridiculous bloat, dependencies, and rug-pulls in Javascript UI/component libraries.
13-
1412
See live demo and docs at [**https://good-lly.github.io/oat-glassed**](https://good-lly.github.io/oat-glassed)
1513

16-
**IMPORTANT:** The lib is currently sub v1 and is likely to have breaking changes until it hits v1.
17-
1814
---
1915

20-
<img width="739" height="735" alt="image" src="https://github.com/user-attachments/assets/b0a2f55c-659d-4aab-922c-b13d89eeab36" />
16+
<img width="739" alt="image" src="https://github.com/good-lly/oat-glassed/blob/main/docs/static/screenshot.png?raw=true" />
17+
18+
## Installation
19+
20+
### CDN
21+
22+
```html
23+
<link
24+
rel="stylesheet"
25+
href="https://cdn.jsdelivr.net/npm/oat-glassed@1.0.0/dist/oat-glassed.min.css"
26+
/>
27+
<script src="https://cdn.jsdelivr.net/npm/oat-glassed@1.0.0/dist/oat-glassed.min.js"></script>
28+
```
29+
30+
### NPM
31+
32+
```bash
33+
npm install oat-glassed
34+
```
35+
36+
```js
37+
import "oat-glassed/dist/oat-glassed.min.css";
38+
import "oat-glassed/dist/oat-glassed.min.js";
39+
```
40+
41+
## License is licensed under [MIT](LICENSE).

dist/css/card.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,13 @@
99
padding: var(--space-6);
1010
overflow: hidden;
1111
contain: paint;
12+
13+
> * + * {
14+
margin-block-start: var(--space-4);
15+
}
16+
17+
> header > * + * {
18+
margin-block-start: var(--space-2);
19+
}
1220
}
1321
}

dist/css/dialog.css

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,50 @@
1111
background-image: var(--glass-highlight);
1212
border: 1px solid var(--glass-border);
1313
border-radius: var(--radius-large);
14-
box-shadow: var(--shadow-large);
14+
box-shadow: var(--glass-edge), var(--shadow-large);
1515
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
1616
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
17-
will-change: transform;
17+
will-change: transform, opacity;
1818
contain: layout style paint;
19+
opacity: 0;
20+
transform: translateY(8px) scale(0.97);
21+
transition:
22+
opacity 250ms cubic-bezier(0.175, 0.885, 0.32, 1.075),
23+
transform 250ms cubic-bezier(0.175, 0.885, 0.32, 1.075),
24+
display 250ms allow-discrete,
25+
overlay 250ms allow-discrete;
26+
27+
&[open] {
28+
opacity: 1;
29+
transform: translateY(0) scale(1);
30+
}
31+
32+
@starting-style {
33+
&[open] {
34+
opacity: 0;
35+
transform: translateY(8px) scale(0.97);
36+
}
37+
}
1938

2039
&::backdrop {
2140
background-color: light-dark(rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.45));
2241
backdrop-filter: blur(6px) saturate(var(--glass-saturate));
2342
-webkit-backdrop-filter: blur(6px) saturate(var(--glass-saturate));
43+
opacity: 0;
44+
transition:
45+
opacity 250ms ease,
46+
display 250ms allow-discrete,
47+
overlay 250ms allow-discrete;
48+
}
49+
50+
&[open]::backdrop {
51+
opacity: 1;
52+
}
53+
54+
@starting-style {
55+
&[open]::backdrop {
56+
opacity: 0;
57+
}
2458
}
2559

2660
& > header,

dist/css/dropdown.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
position: fixed;
55
margin: 0;
66
min-width: 12rem;
7-
background-color: var(--card);
7+
background-color: light-dark(rgb(255 255 255 / 0.72), rgb(17 24 39 / 0.65));
88
background-image: var(--glass-highlight);
9-
border: 1px solid var(--glass-border);
9+
backdrop-filter: blur(16px) saturate(140%);
10+
-webkit-backdrop-filter: blur(16px) saturate(140%);
11+
border: 1px solid light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.12));
1012
border-radius: var(--radius-medium);
1113
box-shadow: var(--glass-edge), var(--shadow-large);
1214
will-change: transform, opacity;

dist/oat-glassed.min.css.gz

0 Bytes
Binary file not shown.

dist/oat-glassed.min.js.gz

0 Bytes
Binary file not shown.

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oat-glassed",
3-
"version": "",
3+
"version": "0.1.0",
44
"license": "MIT",
55
"author": "good-lly | Originally created by Kailash Nadh @kailashnadh",
66
"homepage": "https://github.com/good-lly/oat-glassed",

0 commit comments

Comments
 (0)