@naeil/ui 0.2.0 → 0.4.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.
Files changed (109) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/DESIGN.md +194 -0
  3. package/LICENSE +21 -0
  4. package/README.md +77 -53
  5. package/THIRD_PARTY_NOTICES.md +51 -0
  6. package/dist/{chunk-SYI3IKIC.js → chunk-QKVN6Q6C.js} +102 -19
  7. package/dist/components/index.d.ts +17 -8
  8. package/dist/components/index.js +1278 -251
  9. package/dist/components/ui/index.d.ts +27 -5
  10. package/dist/components/ui/index.js +288 -33
  11. package/dist/source/components/brand-artwork.generated.d.ts +162 -0
  12. package/dist/source/components/brand-artwork.generated.js +1103 -0
  13. package/dist/source/components/footer.d.ts +15 -0
  14. package/dist/source/components/footer.js +128 -0
  15. package/dist/source/components/index.d.ts +11 -0
  16. package/dist/source/components/index.js +26 -0
  17. package/dist/source/components/locale-switcher.d.ts +17 -0
  18. package/dist/source/components/locale-switcher.js +66 -0
  19. package/dist/source/components/logo.d.ts +18 -0
  20. package/dist/source/components/logo.js +91 -0
  21. package/dist/source/components/nav.d.ts +39 -0
  22. package/dist/source/components/nav.js +375 -0
  23. package/dist/source/components/theme-provider.d.ts +6 -0
  24. package/dist/source/components/theme-provider.js +45 -0
  25. package/dist/source/components/theme-toggle-icon.d.ts +5 -0
  26. package/dist/source/components/theme-toggle-icon.js +62 -0
  27. package/dist/source/components/theme-toggle.d.ts +5 -0
  28. package/dist/source/components/theme-toggle.js +34 -0
  29. package/dist/source/components/typography.d.ts +12 -0
  30. package/dist/source/components/typography.js +49 -0
  31. package/dist/source/components/ui/avatar.d.ts +14 -0
  32. package/dist/source/components/ui/avatar.js +137 -0
  33. package/dist/source/components/ui/badge.d.ts +13 -0
  34. package/dist/source/components/ui/badge.js +76 -0
  35. package/dist/source/components/ui/button.d.ts +14 -0
  36. package/dist/source/components/ui/button.js +88 -0
  37. package/dist/source/components/ui/card.d.ts +13 -0
  38. package/dist/source/components/ui/card.js +135 -0
  39. package/dist/source/components/ui/checkbox.d.ts +7 -0
  40. package/dist/source/components/ui/checkbox.js +58 -0
  41. package/dist/source/components/ui/dialog.d.ts +20 -0
  42. package/dist/source/components/ui/dialog.js +182 -0
  43. package/dist/source/components/ui/dropdown-menu.d.ts +28 -0
  44. package/dist/source/components/ui/dropdown-menu.js +282 -0
  45. package/dist/source/components/ui/index.d.ts +19 -0
  46. package/dist/source/components/ui/index.js +131 -0
  47. package/dist/source/components/ui/input.d.ts +6 -0
  48. package/dist/source/components/ui/input.js +49 -0
  49. package/dist/source/components/ui/select.d.ts +16 -0
  50. package/dist/source/components/ui/select.js +197 -0
  51. package/dist/source/components/ui/sonner.d.ts +6 -0
  52. package/dist/source/components/ui/sonner.js +80 -0
  53. package/dist/source/components/ui/switch.d.ts +7 -0
  54. package/dist/source/components/ui/switch.js +54 -0
  55. package/dist/source/components/ui/tabs.d.ts +10 -0
  56. package/dist/source/components/ui/tabs.js +57 -0
  57. package/dist/source/components/ui/textarea.d.ts +6 -0
  58. package/dist/source/components/ui/textarea.js +46 -0
  59. package/dist/source/i18n/config.d.ts +6 -0
  60. package/dist/source/i18n/config.js +12 -0
  61. package/dist/source/i18n/routing.d.ts +371 -0
  62. package/dist/source/i18n/routing.js +17 -0
  63. package/dist/source/lib/design/modal-inert.d.ts +6 -0
  64. package/dist/source/lib/design/modal-inert.js +73 -0
  65. package/dist/source/lib/utils.d.ts +5 -0
  66. package/dist/source/lib/utils.js +8 -0
  67. package/dist/tokens.ts +217 -0
  68. package/docs/components/README.md +21 -0
  69. package/docs/components/avatar.md +47 -0
  70. package/docs/components/badge.md +29 -0
  71. package/docs/components/button.md +39 -0
  72. package/docs/components/card.md +32 -0
  73. package/docs/components/checkbox.md +35 -0
  74. package/docs/components/common.md +31 -0
  75. package/docs/components/composition.md +68 -0
  76. package/docs/components/dialog.md +41 -0
  77. package/docs/components/dropdown-menu.md +38 -0
  78. package/docs/components/input.md +32 -0
  79. package/docs/components/select.md +39 -0
  80. package/docs/components/sonner.md +37 -0
  81. package/docs/components/switch.md +33 -0
  82. package/docs/components/tabs.md +40 -0
  83. package/docs/components/textarea.md +35 -0
  84. package/docs/design/component-demand.md +30 -0
  85. package/docs/design/public-ui-final-verification.md +96 -0
  86. package/docs/design/public-ui-release-validation.md +86 -0
  87. package/docs/design/public-ui-stage3-verification.md +98 -0
  88. package/docs/design/public-ui-stage4-verification.md +129 -0
  89. package/docs/design/public-ui-support.md +42 -0
  90. package/docs/design/v2-migration.md +229 -0
  91. package/docs/package-release.md +108 -0
  92. package/licenses/Lato-OFL.txt +93 -0
  93. package/licenses/Noto-Sans-JP-OFL.txt +93 -0
  94. package/licenses/Nunito-Sans-OFL.txt +93 -0
  95. package/licenses/Pretendard-OFL.txt +94 -0
  96. package/licenses/React-MIT.txt +21 -0
  97. package/licenses/Storybook-MIT.txt +21 -0
  98. package/licenses/popper-MIT.txt +25 -0
  99. package/licenses/react-remove-scroll-bar-MIT.txt +21 -0
  100. package/licenses/store2-MIT.txt +22 -0
  101. package/licenses/toggle-selection-MIT.txt +21 -0
  102. package/package.json +184 -34
  103. package/src/styles/components.css +276 -0
  104. package/src/styles/globals.css +18 -0
  105. package/src/styles/theme.css +185 -98
  106. package/messages/en.json +0 -221
  107. package/messages/ja.json +0 -221
  108. package/messages/ko.json +0 -221
  109. package/src/app/globals.css +0 -32
package/package.json CHANGED
@@ -1,68 +1,185 @@
1
1
  {
2
2
  "name": "@naeil/ui",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.css"
8
+ ],
7
9
  "exports": {
8
10
  ".": {
9
- "import": "./dist/components/index.js",
10
- "types": "./dist/components/index.d.ts"
11
+ "types": "./dist/components/index.d.ts",
12
+ "import": "./dist/components/index.js"
11
13
  },
12
14
  "./ui": {
13
- "import": "./dist/components/ui/index.js",
14
- "types": "./dist/components/ui/index.d.ts"
15
+ "types": "./dist/components/ui/index.d.ts",
16
+ "import": "./dist/components/ui/index.js"
15
17
  },
16
18
  "./utils": {
17
- "import": "./dist/lib/utils.js",
18
- "types": "./dist/lib/utils.d.ts"
19
+ "types": "./dist/lib/utils.d.ts",
20
+ "import": "./dist/lib/utils.js"
19
21
  },
20
22
  "./theme.css": "./src/styles/theme.css",
21
- "./globals.css": "./src/app/globals.css",
22
- "./components/*": "./src/components/*.tsx",
23
- "./lib/*": "./src/lib/*.ts",
24
- "./i18n/*": "./src/i18n/*.ts"
23
+ "./globals.css": "./src/styles/globals.css",
24
+ "./components.css": "./src/styles/components.css",
25
+ "./components/index": {
26
+ "types": "./dist/source/components/index.d.ts",
27
+ "import": "./dist/source/components/index.js"
28
+ },
29
+ "./components/ui/index": {
30
+ "types": "./dist/source/components/ui/index.d.ts",
31
+ "import": "./dist/source/components/ui/index.js"
32
+ },
33
+ "./components/ui/avatar": {
34
+ "types": "./dist/source/components/ui/avatar.d.ts",
35
+ "import": "./dist/source/components/ui/avatar.js"
36
+ },
37
+ "./components/ui/badge": {
38
+ "types": "./dist/source/components/ui/badge.d.ts",
39
+ "import": "./dist/source/components/ui/badge.js"
40
+ },
41
+ "./components/ui/button": {
42
+ "types": "./dist/source/components/ui/button.d.ts",
43
+ "import": "./dist/source/components/ui/button.js"
44
+ },
45
+ "./components/ui/card": {
46
+ "types": "./dist/source/components/ui/card.d.ts",
47
+ "import": "./dist/source/components/ui/card.js"
48
+ },
49
+ "./components/ui/checkbox": {
50
+ "types": "./dist/source/components/ui/checkbox.d.ts",
51
+ "import": "./dist/source/components/ui/checkbox.js"
52
+ },
53
+ "./components/ui/dialog": {
54
+ "types": "./dist/source/components/ui/dialog.d.ts",
55
+ "import": "./dist/source/components/ui/dialog.js"
56
+ },
57
+ "./components/ui/dropdown-menu": {
58
+ "types": "./dist/source/components/ui/dropdown-menu.d.ts",
59
+ "import": "./dist/source/components/ui/dropdown-menu.js"
60
+ },
61
+ "./components/ui/input": {
62
+ "types": "./dist/source/components/ui/input.d.ts",
63
+ "import": "./dist/source/components/ui/input.js"
64
+ },
65
+ "./components/ui/select": {
66
+ "types": "./dist/source/components/ui/select.d.ts",
67
+ "import": "./dist/source/components/ui/select.js"
68
+ },
69
+ "./components/ui/sonner": {
70
+ "types": "./dist/source/components/ui/sonner.d.ts",
71
+ "import": "./dist/source/components/ui/sonner.js"
72
+ },
73
+ "./components/ui/switch": {
74
+ "types": "./dist/source/components/ui/switch.d.ts",
75
+ "import": "./dist/source/components/ui/switch.js"
76
+ },
77
+ "./components/nav": {
78
+ "types": "./dist/source/components/nav.d.ts",
79
+ "import": "./dist/source/components/nav.js"
80
+ },
81
+ "./components/footer": {
82
+ "types": "./dist/source/components/footer.d.ts",
83
+ "import": "./dist/source/components/footer.js"
84
+ },
85
+ "./components/logo": {
86
+ "types": "./dist/source/components/logo.d.ts",
87
+ "import": "./dist/source/components/logo.js"
88
+ },
89
+ "./components/locale-switcher": {
90
+ "types": "./dist/source/components/locale-switcher.d.ts",
91
+ "import": "./dist/source/components/locale-switcher.js"
92
+ },
93
+ "./components/theme-provider": {
94
+ "types": "./dist/source/components/theme-provider.d.ts",
95
+ "import": "./dist/source/components/theme-provider.js"
96
+ },
97
+ "./components/theme-toggle": {
98
+ "types": "./dist/source/components/theme-toggle.d.ts",
99
+ "import": "./dist/source/components/theme-toggle.js"
100
+ },
101
+ "./components/theme-toggle-icon": {
102
+ "types": "./dist/source/components/theme-toggle-icon.d.ts",
103
+ "import": "./dist/source/components/theme-toggle-icon.js"
104
+ },
105
+ "./components/typography": {
106
+ "types": "./dist/source/components/typography.d.ts",
107
+ "import": "./dist/source/components/typography.js"
108
+ },
109
+ "./lib/utils": {
110
+ "types": "./dist/source/lib/utils.d.ts",
111
+ "import": "./dist/source/lib/utils.js"
112
+ },
113
+ "./i18n/config": {
114
+ "types": "./dist/source/i18n/config.d.ts",
115
+ "import": "./dist/source/i18n/config.js"
116
+ },
117
+ "./i18n/routing": {
118
+ "types": "./dist/source/i18n/routing.d.ts",
119
+ "import": "./dist/source/i18n/routing.js"
120
+ },
121
+ "./components/ui/tabs": {
122
+ "types": "./dist/source/components/ui/tabs.d.ts",
123
+ "import": "./dist/source/components/ui/tabs.js"
124
+ },
125
+ "./components/ui/textarea": {
126
+ "types": "./dist/source/components/ui/textarea.d.ts",
127
+ "import": "./dist/source/components/ui/textarea.js"
128
+ }
25
129
  },
26
130
  "scripts": {
27
131
  "dev": "next dev",
28
132
  "build": "next build",
29
- "build:pkg": "tsup",
133
+ "build:pkg": "pnpm check:brand && tsup && tsup --config tsup.deep.config.ts && tsx scripts/fix-deep-imports.ts && pnpm build:tokens",
30
134
  "start": "next start",
31
135
  "lint": "eslint",
32
136
  "test": "vitest run",
137
+ "storybook": "tsx scripts/prepare-storybook.ts && storybook dev -p 6006",
138
+ "build:storybook": "pnpm check:brand && tsx scripts/prepare-storybook.ts && storybook build && tsx scripts/check-storybook.ts",
33
139
  "build:tokens": "tsx scripts/build-tokens.ts",
34
- "check:contrast": "tsx scripts/check-contrast.ts"
140
+ "check:contrast": "tsx scripts/check-contrast.ts",
141
+ "test:browser": "playwright test",
142
+ "check:package": "tsx scripts/check-package.ts && tsx scripts/check-consumers.ts",
143
+ "check:types": "tsc --noEmit",
144
+ "check:package:boundary": "tsx scripts/check-package.ts",
145
+ "check:consumers": "tsx scripts/check-consumers.ts",
146
+ "preview:storybook": "tsx scripts/serve-storybook.ts",
147
+ "build:brand": "tsx scripts/build-brand.ts",
148
+ "check:brand": "tsx scripts/build-brand.ts --check"
35
149
  },
36
150
  "peerDependencies": {
37
- "react": "^19",
38
- "react-dom": "^19",
39
151
  "next": "^15 || ^16",
40
152
  "next-intl": "^4",
41
- "next-themes": "^0.4",
42
- "tailwind-merge": "^3"
153
+ "react": "^19",
154
+ "react-dom": "^19"
43
155
  },
44
156
  "dependencies": {
45
- "@react-three/drei": "^10.7.7",
46
- "@react-three/fiber": "^9.5.0",
47
- "@supabase/ssr": "^0.9.0",
48
- "@supabase/supabase-js": "^2.98.0",
49
157
  "class-variance-authority": "^0.7.1",
50
158
  "clsx": "^2.1.1",
51
159
  "lucide-react": "^0.575.0",
52
- "next": "16.1.7",
53
- "next-intl": "^4.8.3",
54
160
  "next-themes": "^0.4.6",
55
- "pretendard": "^1.3.9",
56
161
  "radix-ui": "^1.4.3",
57
- "react": "19.2.3",
58
- "react-dom": "19.2.3",
59
162
  "sonner": "^2.0.7",
60
163
  "tailwind-merge": "^3.5.0",
61
- "three": "^0.183.2"
164
+ "tw-animate-css": "^1.4.0"
62
165
  },
63
166
  "devDependencies": {
167
+ "@axe-core/playwright": "^4.13.0",
64
168
  "@axe-core/react": "^4.11.1",
169
+ "@fontsource/noto-sans-jp": "^5.3.0",
170
+ "@mdx-js/loader": "^3.1.1",
171
+ "@mdx-js/react": "^3.1.1",
172
+ "@next/mdx": "^16.2.1",
173
+ "@playwright/test": "^1.63.0",
174
+ "@react-three/drei": "^10.7.7",
175
+ "@react-three/fiber": "^9.6.1",
176
+ "@storybook/addon-a11y": "10.4.6",
177
+ "@storybook/addon-docs": "10.4.6",
178
+ "@storybook/nextjs-vite": "10.4.6",
179
+ "@supabase/ssr": "^0.9.0",
180
+ "@supabase/supabase-js": "^2.98.0",
65
181
  "@tailwindcss/postcss": "^4",
182
+ "@types/mdx": "^2.0.13",
66
183
  "@types/node": "^20",
67
184
  "@types/react": "^19",
68
185
  "@types/react-dom": "^19",
@@ -70,21 +187,42 @@
70
187
  "eslint": "^9",
71
188
  "eslint-config-next": "16.1.7",
72
189
  "eslint-config-prettier": "^10.1.8",
190
+ "gray-matter": "^4.0.3",
191
+ "next": "16.1.7",
192
+ "next-intl": "^4.8.3",
193
+ "pretendard": "^1.3.9",
73
194
  "prettier": "^3.8.1",
195
+ "react": "19.2.3",
196
+ "react-dom": "19.2.3",
197
+ "reading-time": "^1.5.0",
198
+ "remark": "^15.0.1",
199
+ "remark-html": "^16.0.1",
74
200
  "shadcn": "^3.8.5",
201
+ "storybook": "10.4.6",
75
202
  "style-dictionary": "^4.4.0",
76
203
  "tailwindcss": "^4",
204
+ "three": "^0.183.2",
77
205
  "tsup": "^8.5.1",
78
206
  "tsx": "^4.21.0",
79
- "tw-animate-css": "^1.4.0",
80
207
  "typescript": "^5",
81
208
  "vitest": "^4.1.0"
82
209
  },
83
210
  "files": [
84
211
  "dist/",
85
212
  "src/styles/",
86
- "src/app/globals.css",
87
- "messages/"
213
+ "DESIGN.md",
214
+ "docs/design/v2-migration.md",
215
+ "docs/package-release.md",
216
+ "CHANGELOG.md",
217
+ "THIRD_PARTY_NOTICES.md",
218
+ "licenses/",
219
+ "docs/components/",
220
+ "docs/design/public-ui-support.md",
221
+ "docs/design/public-ui-stage3-verification.md",
222
+ "docs/design/component-demand.md",
223
+ "docs/design/public-ui-stage4-verification.md",
224
+ "docs/design/public-ui-final-verification.md",
225
+ "docs/design/public-ui-release-validation.md"
88
226
  ],
89
227
  "pnpm": {
90
228
  "onlyBuiltDependencies": [
@@ -98,9 +236,9 @@
98
236
  },
99
237
  "repository": {
100
238
  "type": "git",
101
- "url": "https://github.com/naeil-dev/design-system"
239
+ "url": "git+https://github.com/naeil-dev/naeil-ui.git"
102
240
  },
103
- "description": "Design system for naeil.dev — React components, design tokens, and i18n support built with Next.js, Radix UI, and Tailwind CSS.",
241
+ "description": "React UI components, semantic design tokens and shared styles; optional Next.js brand compatibility components.",
104
242
  "keywords": [
105
243
  "design-system",
106
244
  "react",
@@ -110,5 +248,17 @@
110
248
  "next.js",
111
249
  "i18n"
112
250
  ],
113
- "homepage": "https://naeil.dev"
251
+ "homepage": "https://github.com/naeil-dev/naeil-ui#readme",
252
+ "bugs": {
253
+ "url": "https://github.com/naeil-dev/naeil-ui/issues"
254
+ },
255
+ "peerDependenciesMeta": {
256
+ "next": {
257
+ "optional": true
258
+ },
259
+ "next-intl": {
260
+ "optional": true
261
+ }
262
+ },
263
+ "packageManager": "pnpm@10.30.3"
114
264
  }
@@ -0,0 +1,276 @@
1
+ @layer components {
2
+ .ui-textarea {
3
+ min-height: var(--ui-control-height);
4
+ font-size: var(--text-base);
5
+ line-height: var(--leading-normal);
6
+ padding-block: var(--spacing-2-value);
7
+ transition:
8
+ color var(--ui-motion-fast),
9
+ background-color var(--ui-motion-fast),
10
+ border-color var(--ui-motion-fast);
11
+ }
12
+ .ui-textarea[aria-invalid="true"] {
13
+ border-color: var(--error);
14
+ }
15
+ .ui-textarea::placeholder {
16
+ color: var(--muted-foreground);
17
+ opacity: 1;
18
+ }
19
+ .ui-tabs {
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: var(--spacing-3-value);
23
+ }
24
+ .ui-tabs[data-orientation="vertical"] {
25
+ flex-direction: row;
26
+ }
27
+ .ui-tabs-list {
28
+ display: flex;
29
+ align-items: flex-start;
30
+ max-width: 100%;
31
+ min-width: 0;
32
+ gap: var(--spacing-2-value);
33
+ padding: var(--spacing-2-value);
34
+ overflow-x: auto;
35
+ }
36
+ .ui-tabs-list[aria-orientation="vertical"] {
37
+ flex-direction: column;
38
+ flex-shrink: 0;
39
+ align-self: flex-start;
40
+ }
41
+ .ui-tabs-trigger {
42
+ color: var(--foreground);
43
+ border-bottom-color: transparent;
44
+ }
45
+ .ui-tabs-trigger:hover:not(:disabled) {
46
+ background-color: var(--surface-subtle);
47
+ }
48
+ .ui-tabs-trigger[data-state="active"] {
49
+ background-color: var(--surface-selected);
50
+ border-bottom-color: var(--primary);
51
+ }
52
+ .ui-focus:focus-visible {
53
+ outline: 2px solid var(--ring);
54
+ outline-offset: 3px;
55
+ }
56
+ .ui-control {
57
+ height: var(--ui-control-height);
58
+ font-size: var(--text-base);
59
+ line-height: var(--leading-normal);
60
+ border-radius: var(--radius-md-value);
61
+ transition:
62
+ color var(--ui-motion-fast),
63
+ background-color var(--ui-motion-fast),
64
+ border-color var(--ui-motion-fast);
65
+ }
66
+ .ui-control[data-size="lg"],
67
+ .ui-control[data-size="icon-lg"] {
68
+ height: calc(var(--ui-control-height) + 4px);
69
+ }
70
+ .ui-control[data-size^="icon"] {
71
+ width: var(--ui-control-height);
72
+ padding: 0;
73
+ }
74
+ .ui-control[aria-invalid="true"] {
75
+ border-color: var(--error);
76
+ }
77
+ .ui-control::placeholder {
78
+ color: var(--muted-foreground);
79
+ opacity: 1;
80
+ }
81
+ [data-slot="button"][aria-busy="true"] {
82
+ cursor: progress;
83
+ }
84
+ .ui-menu {
85
+ background: var(--popover);
86
+ color: var(--popover-foreground);
87
+ border: 1px solid var(--border-strong);
88
+ border-radius: var(--radius-md-value);
89
+ box-shadow: var(--shadow-md);
90
+ }
91
+ .ui-menu [role^="menuitem"],
92
+ .ui-menu [role="option"] {
93
+ min-height: var(--ui-control-height);
94
+ font-size: var(--text-base);
95
+ }
96
+ .ui-menu [data-highlighted] {
97
+ background: var(--surface-subtle);
98
+ outline: 1px solid var(--ring);
99
+ outline-offset: -2px;
100
+ }
101
+ .ui-popup[data-state="open"] {
102
+ animation: ui-reveal var(--ui-motion-fast) ease-out;
103
+ }
104
+ .ui-popup[data-state="closed"] {
105
+ animation: ui-hide var(--ui-motion-fast) ease-in;
106
+ }
107
+ [data-slot="dialog-content"],
108
+ [data-slot="dialog-overlay"] {
109
+ --ui-motion-fast: var(--ui-motion-standard);
110
+ }
111
+ [data-slot="card"] {
112
+ gap: var(--ui-field-gap);
113
+ padding-block: var(--ui-panel-padding);
114
+ }
115
+ [data-slot="card-header"],
116
+ [data-slot="card-content"],
117
+ [data-slot="card-footer"] {
118
+ padding-inline: var(--ui-panel-padding);
119
+ }
120
+ [data-ui-layout] {
121
+ width: 100%;
122
+ margin-inline: auto;
123
+ }
124
+ [data-ui-layout="reading"] {
125
+ max-width: var(--ui-width-reading);
126
+ line-height: var(--leading-relaxed);
127
+ }
128
+ [data-ui-layout="settings"] {
129
+ max-width: var(--ui-width-settings);
130
+ }
131
+ [data-ui-layout="list"] {
132
+ max-width: var(--ui-width-list);
133
+ }
134
+ [data-ui-layout="short-form"] {
135
+ max-width: var(--ui-width-short-form);
136
+ }
137
+ [data-ui-layout="fluid"] {
138
+ max-width: none;
139
+ }
140
+ .ui-choice {
141
+ position: relative;
142
+ display: inline-flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ flex-shrink: 0;
146
+ }
147
+ .ui-choice:disabled {
148
+ opacity: 0.45;
149
+ cursor: not-allowed;
150
+ }
151
+ .ui-choice::before {
152
+ content: "";
153
+ position: absolute;
154
+ width: 44px;
155
+ height: 44px;
156
+ left: 50%;
157
+ top: 50%;
158
+ transform: translate(-50%, -50%);
159
+ }
160
+ [data-slot="switch"] {
161
+ width: 36px;
162
+ height: 22px;
163
+ padding: 3px;
164
+ border-radius: 999px;
165
+ background: var(--border-strong);
166
+ transition: background-color var(--ui-motion-fast);
167
+ }
168
+ [data-slot="switch"][data-state="checked"] {
169
+ background: var(--primary);
170
+ }
171
+ [data-slot="switch-thumb"] {
172
+ width: 16px;
173
+ height: 16px;
174
+ border-radius: 999px;
175
+ background: white;
176
+ transform: translateX(-7px);
177
+ transition: transform var(--ui-motion-standard);
178
+ }
179
+ [data-slot="switch-thumb"][data-state="checked"] {
180
+ background: var(--primary-foreground);
181
+ transform: translateX(7px);
182
+ }
183
+ [data-slot="checkbox"] {
184
+ width: 18px;
185
+ height: 18px;
186
+ border: 1px solid var(--border-strong);
187
+ border-radius: var(--radius-sm-value);
188
+ background: var(--background);
189
+ }
190
+ [data-slot="checkbox"][data-state="checked"],
191
+ [data-slot="checkbox"][data-state="indeterminate"] {
192
+ color: var(--primary-foreground);
193
+ background: var(--primary);
194
+ border-color: var(--primary);
195
+ }
196
+ .ui-choice-label {
197
+ display: inline-flex;
198
+ align-items: center;
199
+ gap: 12px;
200
+ min-height: 44px;
201
+ cursor: pointer;
202
+ }
203
+ [data-sonner-toast] {
204
+ font-family: var(--font-sans);
205
+ --normal-bg: var(--popover);
206
+ --normal-text: var(--foreground);
207
+ --normal-border: var(--border-strong);
208
+ transition-duration: var(--ui-motion-standard);
209
+ }
210
+ }
211
+
212
+ @keyframes ui-reveal {
213
+ from {
214
+ opacity: 0;
215
+ }
216
+ to {
217
+ opacity: 1;
218
+ }
219
+ }
220
+ @keyframes ui-hide {
221
+ from {
222
+ opacity: 1;
223
+ }
224
+ to {
225
+ opacity: 0;
226
+ }
227
+ }
228
+ @media (max-width: 560px), (pointer: coarse) {
229
+ .ui-control,
230
+ .ui-textarea,
231
+ [data-slot="dialog-close"] {
232
+ min-height: 44px;
233
+ }
234
+ .ui-control[data-size^="icon"],
235
+ [data-slot="dialog-close"] {
236
+ min-width: 44px;
237
+ }
238
+ }
239
+ @media (prefers-reduced-motion: reduce) {
240
+ [data-slot],
241
+ [data-slot] *,
242
+ [data-sonner-toast],
243
+ [data-sonner-toast] * {
244
+ animation: none !important;
245
+ transition: none !important;
246
+ scroll-behavior: auto !important;
247
+ }
248
+ }
249
+
250
+ /* Background-only switch tracks/thumbs both become Canvas under forced colors.
251
+ System colors preserve the control boundary, state and moving thumb. */
252
+ @media (forced-colors: active) {
253
+ [data-slot="switch"] {
254
+ forced-color-adjust: none;
255
+ border: 1px solid ButtonText;
256
+ background: Canvas;
257
+ }
258
+ [data-slot="switch-thumb"] {
259
+ background: ButtonText;
260
+ }
261
+ [data-slot="switch"][data-state="checked"] {
262
+ background: Highlight;
263
+ border-color: Highlight;
264
+ }
265
+ [data-slot="switch-thumb"][data-state="checked"] {
266
+ background: HighlightText;
267
+ }
268
+ [data-slot="switch"]:disabled {
269
+ opacity: 1;
270
+ background: Canvas;
271
+ border-color: GrayText;
272
+ }
273
+ [data-slot="switch"]:disabled [data-slot="switch-thumb"] {
274
+ background: GrayText;
275
+ }
276
+ }
@@ -0,0 +1,18 @@
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+ @import "./theme.css";
4
+ @import "./components.css";
5
+
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ @layer base {
9
+ * {
10
+ @apply border-border;
11
+ }
12
+ body {
13
+ @apply bg-background text-foreground font-sans text-base leading-normal antialiased;
14
+ }
15
+ :lang(ja) {
16
+ font-family: "Noto Sans JP", var(--font-sans);
17
+ }
18
+ }