frutjam 0.10.0-beta.2 → 0.12.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +2 -1
- package/src/components/card.css +49 -0
- package/src/components/header.css +11 -6
- package/src/components/sidebar.css +2 -2
- package/src/main.css +5 -2
- package/src/theme/jams/darkberry.css +1 -0
- package/src/theme/jams/snowberry.css +1 -0
- package/src/utilities/headings.css +16 -4
- package/src/utilities/para.css +22 -0
- /package/src/{components → utilities}/surface.css +0 -0
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
With a wide selection of prebuilt components and themes, Frutjam makes it easy to hit the ground running or fully customize your design system.
|
|
13
13
|
|
|
14
|
+
[](https://ko-fi.com/nezanuha)
|
|
15
|
+
|
|
14
16
|
---
|
|
15
17
|
|
|
16
18
|
### ✨ Features
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frutjam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-beta.0",
|
|
4
4
|
"description": "A utility-first CSS framework UI Library",
|
|
5
|
+
"funding": "https://ko-fi.com/nezanuha",
|
|
5
6
|
"main": "./dist/frutjam.css",
|
|
6
7
|
"browser": "dist/frutjam.css",
|
|
7
8
|
"style": "./dist/frutjam.css",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@utility card-outline {
|
|
2
|
+
border: 1px solid light-dark(
|
|
3
|
+
var(--input-700),
|
|
4
|
+
var(--input-800)
|
|
5
|
+
);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@utility card-dashed {
|
|
9
|
+
border: 1px dashed light-dark(
|
|
10
|
+
var(--input-700),
|
|
11
|
+
var(--input-800)
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* card size */
|
|
16
|
+
|
|
17
|
+
@utility card {
|
|
18
|
+
@apply relative flex flex-col;
|
|
19
|
+
border-radius: var(--radius-card);
|
|
20
|
+
|
|
21
|
+
&:where(figure:first-child) {
|
|
22
|
+
@apply overflow-hidden;
|
|
23
|
+
border-start-start-radius: inherit;
|
|
24
|
+
border-start-end-radius: inherit;
|
|
25
|
+
border-end-start-radius: unset;
|
|
26
|
+
border-end-end-radius: unset;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:where(figure:last-child) {
|
|
30
|
+
@apply overflow-hidden;
|
|
31
|
+
border-start-start-radius: unset;
|
|
32
|
+
border-start-end-radius: unset;
|
|
33
|
+
border-end-start-radius: inherit;
|
|
34
|
+
border-end-end-radius: inherit;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@utility card-body {
|
|
39
|
+
@apply flex flex-auto flex-col gap-2;
|
|
40
|
+
padding: 1.5rem;
|
|
41
|
+
|
|
42
|
+
&:where(p){
|
|
43
|
+
@apply text-base grow;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@utility card-title {
|
|
48
|
+
@apply flex items-center gap-2 font-semibold text-lg;
|
|
49
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
@import "./container.css";
|
|
2
|
+
|
|
1
3
|
@utility header {
|
|
2
|
-
|
|
4
|
+
background-color: light-dark(var(--core-0), var(--core-1000));
|
|
5
|
+
color: light-dark(var(--core-900), var(--core-50));
|
|
6
|
+
border-bottom: 1px solid light-dark(var(--core-200), var(--core-800));
|
|
7
|
+
top: 0;
|
|
8
|
+
z-index: 999;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@utility header-body {
|
|
12
|
+
@apply gap-3 py-2 container;
|
|
3
13
|
display: flex;
|
|
4
14
|
justify-content: space-between;
|
|
5
15
|
align-items:center;
|
|
6
16
|
margin-left: auto;
|
|
7
17
|
margin-right: auto;
|
|
8
|
-
background-color: light-dark(var(--core-50), var(--core-950));
|
|
9
|
-
color: light-dark(var(--core-900), var(--core-50));
|
|
10
|
-
border-bottom: 1px solid light-dark(var(--core-200), var(--core-800));
|
|
11
|
-
top: 0;
|
|
12
|
-
z-index: 999;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
@utility header-sticky {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@utility sidebar {
|
|
2
2
|
@apply p-6 border-x border-core-200 dark:border-core-900 max-h-dvh sticky overflow-y-auto gap-y-8;
|
|
3
3
|
background-color: light-dark(
|
|
4
|
-
var(--core-0)
|
|
5
|
-
var(--core-1000)
|
|
4
|
+
var(--core-0),
|
|
5
|
+
var(--core-1000)
|
|
6
6
|
);
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
package/src/main.css
CHANGED
|
@@ -7,9 +7,12 @@
|
|
|
7
7
|
@import "./components/drawer.css";
|
|
8
8
|
@import "./components/checkbox.css";
|
|
9
9
|
@import "./components/accordion.css";
|
|
10
|
-
@import "./components/surface.css";
|
|
11
10
|
/* @import "./components/popover.css"; */
|
|
12
11
|
@import "./components/dropdown.css";
|
|
13
12
|
@import "./components/divider.css";
|
|
14
13
|
@import "./components/nav.css";
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
/* utilities */
|
|
16
|
+
@import "./utilities/headings.css";
|
|
17
|
+
@import "./utilities/para.css";
|
|
18
|
+
@import "./utilities/surface.css";
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
@utility heading
|
|
1
|
+
@utility core-heading {
|
|
2
2
|
@apply font-bold text-balance;
|
|
3
3
|
color:light-dark(
|
|
4
|
-
var(--core-
|
|
5
|
-
var(--core-
|
|
4
|
+
var(--core-900),
|
|
5
|
+
var(--core-100)
|
|
6
6
|
);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility heading-* {
|
|
10
|
+
@apply core-heading;
|
|
7
11
|
font-size: --value(--text-*);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility heading {
|
|
15
|
+
@apply core-heading;
|
|
16
|
+
font-size: var(--text-base);
|
|
17
|
+
}
|
|
8
18
|
|
|
9
|
-
|
|
19
|
+
@utility heading-md {
|
|
20
|
+
@apply core-heading;
|
|
21
|
+
font-size: var(--text-base);
|
|
10
22
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@utility core-para {
|
|
2
|
+
text-wrap: balance;
|
|
3
|
+
color:light-dark(
|
|
4
|
+
var(--core-900),
|
|
5
|
+
var(--core-300)
|
|
6
|
+
);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility para-* {
|
|
10
|
+
@apply core-para;
|
|
11
|
+
font-size: --value(--text-*);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility para {
|
|
15
|
+
@apply core-para;
|
|
16
|
+
font-size: var(--text-base);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@utility para-md {
|
|
20
|
+
@apply core-para;
|
|
21
|
+
font-size: var(--text-base);
|
|
22
|
+
}
|
|
File without changes
|