@kjaniec-dev/design 0.4.1 → 0.5.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/package.json +1 -1
- package/src/theme.css +11 -0
- package/tokens.json +15 -1
package/package.json
CHANGED
package/src/theme.css
CHANGED
|
@@ -61,6 +61,17 @@
|
|
|
61
61
|
--kj-shadow-md: 0 8px 30px rgb(15 23 42 / 0.08);
|
|
62
62
|
--kj-shadow-lg: 0 20px 60px rgb(15 23 42 / 0.12);
|
|
63
63
|
--kj-shadow-glow: 0 0 0 1px rgb(245 158 11 / 0.16), 0 16px 48px rgb(245 158 11 / 0.18);
|
|
64
|
+
--kj-density-default: 1.0;
|
|
65
|
+
--kj-density-compact: 0.82;
|
|
66
|
+
--kj-density-comfortable: 1.18;
|
|
67
|
+
--kj-density: var(--kj-density-default);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-density="compact"] {
|
|
71
|
+
--kj-density: var(--kj-density-compact);
|
|
72
|
+
}
|
|
73
|
+
[data-density="comfortable"] {
|
|
74
|
+
--kj-density: var(--kj-density-comfortable);
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
.dark {
|
package/tokens.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://design-tokens.github.io/community-group/format/",
|
|
3
3
|
"name": "KJ Product Kit",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"description": "Personal product design system tokens for KJ apps, portfolio, dashboards and SaaS tools.",
|
|
6
6
|
"color": {
|
|
7
7
|
"primitive": {
|
|
@@ -550,5 +550,19 @@
|
|
|
550
550
|
"$type": "shadow",
|
|
551
551
|
"$value": "0 0 0 1px rgb(245 158 11 / 0.16), 0 16px 48px rgb(245 158 11 / 0.18)"
|
|
552
552
|
}
|
|
553
|
+
},
|
|
554
|
+
"density": {
|
|
555
|
+
"default": {
|
|
556
|
+
"$type": "dimension",
|
|
557
|
+
"$value": "1.0"
|
|
558
|
+
},
|
|
559
|
+
"compact": {
|
|
560
|
+
"$type": "dimension",
|
|
561
|
+
"$value": "0.82"
|
|
562
|
+
},
|
|
563
|
+
"comfortable": {
|
|
564
|
+
"$type": "dimension",
|
|
565
|
+
"$value": "1.18"
|
|
566
|
+
}
|
|
553
567
|
}
|
|
554
568
|
}
|