frutjam 0.11.0-beta.0 → 0.13.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 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
+ [![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](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.11.0-beta.0",
3
+ "version": "0.13.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",
@@ -50,7 +51,7 @@
50
51
  "prettier-plugin-tailwindcss": "^0.6.11",
51
52
  "string-replace-loader": "^3.1.0",
52
53
  "style-loader": "^4.0.0",
53
- "webpack": "^5.99.8",
54
+ "webpack": "^5.99.9",
54
55
  "webpack-cli": "^6.0.1",
55
56
  "webpack-dev-server": "^5.2.1"
56
57
  }
@@ -0,0 +1,54 @@
1
+ @utility card-outline {
2
+ border: 1px solid light-dark(
3
+ var(--core-200),
4
+ var(--core-900)
5
+ );
6
+ }
7
+
8
+ @utility card-dashed {
9
+ border: 1px dashed light-dark(
10
+ var(--core-200),
11
+ var(--core-900)
12
+ );
13
+ }
14
+
15
+ /* card size */
16
+
17
+ @utility card {
18
+ @apply relative flex flex-col;
19
+ border-radius: var(--radius-card);
20
+ overflow:hidden;
21
+ background: light-dark(
22
+ var(--core-50),
23
+ var(--core-900)
24
+ );
25
+
26
+ :where(figure:first-child) {
27
+ overflow: hidden;
28
+ border-start-start-radius: inherit;
29
+ border-start-end-radius: inherit;
30
+ border-end-start-radius: unset;
31
+ border-end-end-radius: unset;
32
+ }
33
+
34
+ :where(figure:last-child) {
35
+ overflow: hidden;
36
+ border-start-start-radius: unset;
37
+ border-start-end-radius: unset;
38
+ border-end-start-radius: inherit;
39
+ border-end-end-radius: inherit;
40
+ }
41
+ }
42
+
43
+ @utility card-body {
44
+ @apply flex flex-auto flex-col gap-2;
45
+ padding: 1.5rem;
46
+
47
+ :where(p){
48
+ @apply text-base grow;
49
+ }
50
+ }
51
+
52
+ @utility card-title {
53
+ @apply flex items-center gap-2 font-semibold text-lg;
54
+ }
package/src/main.css CHANGED
@@ -7,9 +7,13 @@
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
- @import "./utilities/headings.css";
14
+ @import "./components/card.css";
15
+
16
+ /* utilities */
17
+ @import "./utilities/headings.css";
18
+ @import "./utilities/para.css";
19
+ @import "./utilities/surface.css";
@@ -7,6 +7,7 @@
7
7
  --radius-modal: 1rem;
8
8
  --radius-accordion: 0.5rem;
9
9
  --radius-dropdown: 0.5rem;
10
+ --radius-card: 1rem;
10
11
 
11
12
  --core-0: oklch(1 0 0);
12
13
  --core-50: oklch(.985 .001 106.423);
@@ -13,6 +13,7 @@
13
13
  --radius-modal: 1rem;
14
14
  --radius-accordion: 0.5rem;
15
15
  --radius-dropdown: 0.5rem;
16
+ --radius-card: 1rem;
16
17
 
17
18
  --core-0: oklch(1 0 0);
18
19
  --core-50: oklch(.985 .001 106.423);
@@ -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-950)
5
- var(--core-50)
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
- /* todo: make it heading-md instead of heading-base */
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