@liftkit-vue/theme-css 0.1.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 ADDED
@@ -0,0 +1,85 @@
1
+ # @liftkit-vue/theme-css
2
+
3
+ Pure CSS theme package for LiftKit — use with Tailwind v4 or any CSS framework. No JavaScript required.
4
+
5
+ **[日本語版はこちら](#日本語)**
6
+
7
+ ## Installation
8
+
9
+ > **Note**: npm package is not yet published. Currently available via the monorepo workspace only.
10
+
11
+ ## Usage
12
+
13
+ Import in your CSS or Tailwind config:
14
+
15
+ ```css
16
+ @import '@liftkit-vue/theme-css';
17
+ ```
18
+
19
+ This gives you access to all LiftKit CSS custom properties:
20
+
21
+ ```css
22
+ .my-element {
23
+ color: var(--lk-primary);
24
+ padding: var(--lk-size-md);
25
+ border-radius: var(--lk-size-xs);
26
+ }
27
+ ```
28
+
29
+ ## What's Included
30
+
31
+ - **Color tokens**: `--lk-primary`, `--lk-secondary`, `--lk-error`, `--lk-surface`, etc.
32
+ - **Sizing scale**: `--lk-size-3xs` through `--lk-size-4xl` (golden ratio based)
33
+ - **Typography**: Font size and line-height tokens
34
+ - **Light/Dark variants**: `--light__*_lkv` and `--dark__*_lkv` variables
35
+
36
+ ## Use Cases
37
+
38
+ - Tailwind v4 projects that want LiftKit tokens without Vue components
39
+ - Projects using Tailwind-dependent UI frameworks (e.g., Nuxt UI, daisyUI) that need LiftKit design tokens alongside their existing Tailwind setup
40
+ - Static sites or non-Vue frameworks
41
+ - Custom CSS-only builds
42
+
43
+ ---
44
+
45
+ <a id="日本語"></a>
46
+
47
+ # @liftkit-vue/theme-css(日本語)
48
+
49
+ LiftKit の純粋 CSS テーマパッケージです。Tailwind v4 や任意の CSS フレームワークと組み合わせて使用できます。JavaScript 不要。
50
+
51
+ ## インストール
52
+
53
+ > **注意**: npm パッケージは未公開です。現在はモノレポのワークスペース経由でのみ利用可能です。
54
+
55
+ ## 使い方
56
+
57
+ CSS または Tailwind 設定でインポート:
58
+
59
+ ```css
60
+ @import '@liftkit-vue/theme-css';
61
+ ```
62
+
63
+ LiftKit の全 CSS カスタムプロパティが利用可能になります:
64
+
65
+ ```css
66
+ .my-element {
67
+ color: var(--lk-primary);
68
+ padding: var(--lk-size-md);
69
+ border-radius: var(--lk-size-xs);
70
+ }
71
+ ```
72
+
73
+ ## 含まれるもの
74
+
75
+ - **カラートークン**: `--lk-primary`、`--lk-secondary`、`--lk-error`、`--lk-surface` など
76
+ - **サイジングスケール**: `--lk-size-3xs` 〜 `--lk-size-4xl`(黄金比ベース)
77
+ - **タイポグラフィ**: フォントサイズとラインハイトのトークン
78
+ - **ライト/ダークバリアント**: `--light__*_lkv` および `--dark__*_lkv` 変数
79
+
80
+ ## ユースケース
81
+
82
+ - Vue コンポーネント不要で LiftKit トークンだけ使いたい Tailwind v4 プロジェクト
83
+ - Tailwind 必須の UI フレームワーク(Nuxt UI、daisyUI など)を使用しつつ、LiftKit のデザイントークンも併用したい場合
84
+ - 静的サイトや Vue 以外のフレームワーク
85
+ - CSS のみのカスタムビルド
@@ -0,0 +1,21 @@
1
+ /* Item Alignment */
2
+
3
+ .items-stretch {
4
+ align-items: stretch;
5
+ }
6
+
7
+ .items-center {
8
+ align-items: center;
9
+ }
10
+
11
+ .items-start {
12
+ align-items: flex-start;
13
+ }
14
+
15
+ .items-end {
16
+ align-items: flex-end;
17
+ }
18
+
19
+ .items-baseline {
20
+ align-items: baseline;
21
+ }
@@ -0,0 +1,24 @@
1
+ .self-auto {
2
+ align-self: auto;
3
+ }
4
+
5
+ .self-start {
6
+ align-self: start;
7
+ }
8
+
9
+ .self-end {
10
+ align-self: end;
11
+ }
12
+
13
+ .self-center {
14
+ align-self: center;
15
+ }
16
+
17
+ .self-stretch {
18
+ align-self: stretch;
19
+ }
20
+
21
+ .self-baseline {
22
+ align-self: baseline;
23
+ }
24
+
@@ -0,0 +1,35 @@
1
+ /*How to use
2
+
3
+ the aspect-ratio property maintains the proportion of width to height.
4
+ For it to work, either the width or the height of the element must be set
5
+ to a value besides "auto." It can be fixed-width or responsive, but it must be set.
6
+
7
+ Either width or height must be set to auto in order for aspect-ratio to work.
8
+
9
+ Template: aspect-ratio: width / height;
10
+
11
+ */
12
+
13
+ .aspect-16x9 {
14
+ aspect-ratio: 16 / 9;
15
+ }
16
+
17
+ .aspect-4x3 {
18
+ aspect-ratio: 4 / 3;
19
+ }
20
+
21
+ .aspect-3x2 {
22
+ aspect-ratio: 3 / 2;
23
+ }
24
+
25
+ .aspect-9x16 {
26
+ aspect-ratio: 9 / 16;
27
+ }
28
+
29
+ .aspect-1x1 {
30
+ aspect-ratio: 1;
31
+ }
32
+
33
+ .aspect-2x1 {
34
+ aspect-ratio: 2 / 1;
35
+ }