@zmzai/theme 0.2.0 → 0.2.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zmzai/theme",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "zmzai 全品牌设计系统 — Radix UI + framer-motion + Tailwind v4 + MiSans",
@@ -5,7 +5,7 @@ import { cva } from "class-variance-authority";
5
5
  import { cn } from "../../utils/cn";
6
6
 
7
7
  export const badgeVariants = cva(
8
- "inline-flex items-center gap-1.5 rounded-full font-medium text-xs whitespace-nowrap",
8
+ "inline-flex items-center gap-1.5 rounded-sm font-medium text-xs whitespace-nowrap",
9
9
  {
10
10
  variants: {
11
11
  variant: {
@@ -4,13 +4,13 @@ import { cva } from "class-variance-authority";
4
4
  * Button variant styles.
5
5
  *
6
6
  * Design:
7
- * - All variants use pill radius (rounded-full)
7
+ * - 锐角 2px(v0.2 暖纸风),hover 轻微缩放
8
8
  * - primary: black fill, white text, hover scale + shadow
9
9
  * - secondary: transparent, border, hover fill
10
10
  * - ghost: no border, subtle hover bg
11
11
  */
12
12
  export const buttonVariants = cva(
13
- "inline-flex cursor-pointer items-center justify-center gap-2 rounded-full font-semibold transition-colors transition-transform disabled:pointer-events-none disabled:opacity-40 select-none",
13
+ "inline-flex cursor-pointer items-center justify-center gap-2 rounded-sm font-semibold transition-colors transition-transform disabled:pointer-events-none disabled:opacity-40 select-none",
14
14
  {
15
15
  variants: {
16
16
  variant: {
@@ -8,7 +8,7 @@ import { cva } from "class-variance-authority";
8
8
  * - interactive: hover lifts up + shadow + border darkens
9
9
  */
10
10
  export const cardVariants = cva(
11
- "bg-bg border rounded-xl transition-colors transition-transform duration-200",
11
+ "bg-bg border rounded-sm transition-colors transition-transform duration-200",
12
12
  {
13
13
  variants: {
14
14
  variant: {
@@ -13,9 +13,9 @@ export const inputVariants = cva(
13
13
  variants: {
14
14
  variant: {
15
15
  default:
16
- "border border-line rounded-lg px-4 py-2.5 text-sm focus:border-ink",
16
+ "border border-line rounded-sm px-4 py-2.5 text-sm focus:border-ink",
17
17
  brutal:
18
- "border-2 border-ink rounded-xl px-4 py-3 text-sm shadow-[4px_4px_0_var(--color-ink)] focus:shadow-[6px_6px_0_var(--color-accent)] focus:border-accent focus:-translate-x-px focus:-translate-y-px",
18
+ "border-2 border-ink rounded-sm px-4 py-3 text-sm",
19
19
  },
20
20
  size: {
21
21
  sm: "text-xs py-2 px-3",
@@ -18,7 +18,7 @@ export function SelectTrigger({
18
18
  return (
19
19
  <SelectPrimitive.Trigger
20
20
  className={cn(
21
- "inline-flex h-9 items-center justify-between gap-2 rounded-lg border border-line bg-bg px-3 py-2 text-sm font-medium text-ink outline-none transition-colors",
21
+ "inline-flex h-9 items-center justify-between gap-2 rounded-sm border border-line bg-bg px-3 py-2 text-sm font-medium text-ink outline-none transition-colors",
22
22
  "hover:border-ink/40 focus:border-ink data-[placeholder]:text-ink-3",
23
23
  className
24
24
  )}
@@ -48,7 +48,7 @@ export function SelectContent({
48
48
  position={position}
49
49
  sideOffset={4}
50
50
  className={cn(
51
- "z-50 min-w-[8rem] overflow-hidden rounded-lg border border-line bg-bg p-1 shadow-lg",
51
+ "z-50 min-w-[8rem] overflow-hidden rounded-sm border border-line bg-bg p-1 shadow-lg",
52
52
  "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
53
53
  "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
54
54
  className
@@ -25,9 +25,9 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
25
25
  className={cn(
26
26
  "w-full resize-none bg-bg font-sans text-ink placeholder:text-ink-3 outline-none transition-all",
27
27
  variant === "default" &&
28
- "border border-line rounded-lg px-4 py-2.5 text-sm focus:border-ink",
28
+ "border border-line rounded-sm px-4 py-2.5 text-sm focus:border-ink",
29
29
  variant === "brutal" &&
30
- "border-2 border-ink rounded-xl px-4 py-3 text-sm shadow-[4px_4px_0_var(--color-ink)] focus:shadow-[6px_6px_0_var(--color-accent)] focus:border-accent focus:-translate-x-px focus:-translate-y-px",
30
+ "border-2 border-ink rounded-sm px-4 py-3 text-sm",
31
31
  className
32
32
  )}
33
33
  {...props}