@yunlefun/ui 0.0.6 → 0.0.7
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/dist/index.css +1 -1
- package/package.json +10 -5
- package/styles/admin.css +48 -0
- package/styles/css-vars.scss +106 -29
- package/styles/css.d.ts +2 -0
- package/styles/editor.css +55 -0
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,.ylf-theme-light{--ylf-c-brand: var(--ylf-palette-blue);--ylf-c-brand-hover: #1d4ed8;--ylf-c-brand-active: #1e40af;--ylf-c-brand-soft: #eff6ff;--ylf-accent-blue: var(--ylf-c-brand);--ylf-accent-blue-hover: var(--ylf-c-brand-hover);--ylf-accent-blue-soft: var(--ylf-c-brand-soft);--ylf-accent-blue-text: var(--ylf-c-brand);--ylf-accent-blue-on: var(--ylf-c-text-on-accent);--ylf-accent: var(--ylf-accent-blue);--ylf-accent-hover: var(--ylf-accent-blue-hover);--ylf-accent-soft: var(--ylf-accent-blue-soft);--ylf-accent-text: var(--ylf-accent-blue-text);--ylf-accent-on: var(--ylf-accent-blue-on);--ylf-palette-blue: #2563eb;--ylf-palette-sun: #facc15;--ylf-palette-cyan: #06b6d4;--ylf-palette-coral: #ff6b4a;--ylf-palette-pink: #ec4899;--ylf-palette-green: #22c55e;--ylf-spectrum-stops: var(--ylf-palette-blue) 0% 16.667%, var(--ylf-palette-cyan) 16.667% 33.333%, var(--ylf-palette-green) 33.333% 50%, var(--ylf-palette-sun) 50% 66.667%, var(--ylf-palette-coral) 66.667% 83.333%, var(--ylf-palette-pink) 83.333% 100%;--ylf-accent-sun: var(--ylf-palette-sun);--ylf-accent-sun-hover: #eab308;--ylf-accent-sun-soft: #fef9c3;--ylf-accent-sun-text: #854d0e;--ylf-accent-sun-on: #64380e;--ylf-accent-cyan: var(--ylf-palette-cyan);--ylf-accent-cyan-hover: #22d3ee;--ylf-accent-cyan-soft: #cffafe;--ylf-accent-cyan-text: #155e75;--ylf-accent-cyan-on: #083e4f;--ylf-accent-coral: var(--ylf-palette-coral);--ylf-accent-coral-hover: #ff856b;--ylf-accent-coral-soft: #ffede6;--ylf-accent-coral-text: #9a3412;--ylf-accent-coral-on: #551b0a;--ylf-accent-pink: var(--ylf-palette-pink);--ylf-accent-pink-hover: #f472b6;--ylf-accent-pink-soft: #fce7f3;--ylf-accent-pink-text: #9d174d;--ylf-accent-pink-on: #400a2b;--ylf-accent-green: var(--ylf-palette-green);--ylf-accent-green-hover: #4ade80;--ylf-accent-green-soft: #dcfce7;--ylf-accent-green-text: #166534;--ylf-accent-green-on: #124324;--ylf-c-feature: var(--ylf-accent-sun);--ylf-c-feature-bg: var(--ylf-accent-sun-soft);--ylf-c-feature-text: var(--ylf-c-text);--ylf-aurora-sky: var(--ylf-accent-cyan);--ylf-aurora-iris: var(--ylf-accent-coral);--ylf-aurora-pink: var(--ylf-accent-pink);--ylf-gradient-aurora: linear-gradient(var(--ylf-accent-sun), var(--ylf-accent-sun));--ylf-gradient-brand: linear-gradient(var(--ylf-c-brand), var(--ylf-c-brand));--ylf-status-success: var(--ylf-accent-green);--ylf-status-success-hover: var(--ylf-accent-green-hover);--ylf-status-success-on: var(--ylf-accent-green-on);--ylf-status-success-soft: var(--ylf-accent-green-soft);--ylf-status-success-text: var(--ylf-accent-green-text);--ylf-c-success: var(--ylf-status-success-text);--ylf-status-warning: var(--ylf-accent-sun);--ylf-status-warning-hover: var(--ylf-accent-sun-hover);--ylf-status-warning-on: var(--ylf-accent-sun-on);--ylf-status-warning-soft: var(--ylf-accent-sun-soft);--ylf-status-warning-text: var(--ylf-accent-sun-text);--ylf-c-warning: var(--ylf-status-warning-text);--ylf-status-danger: var(--ylf-accent-coral);--ylf-status-danger-hover: var(--ylf-accent-coral-hover);--ylf-status-danger-on: var(--ylf-accent-coral-on);--ylf-status-danger-soft: var(--ylf-accent-coral-soft);--ylf-status-danger-text: var(--ylf-accent-coral-text);--ylf-c-danger: var(--ylf-status-danger-text);--ylf-status-info: var(--ylf-accent-cyan);--ylf-status-info-hover: var(--ylf-accent-cyan-hover);--ylf-status-info-on: var(--ylf-accent-cyan-on);--ylf-status-info-soft: var(--ylf-accent-cyan-soft);--ylf-status-info-text: var(--ylf-accent-cyan-text);--ylf-c-info: var(--ylf-status-info-text);--ylf-c-bg: #f8fafc;--ylf-c-bg-soft: #f1f5f9;--ylf-c-bg-mute: #e2e8f0;--ylf-c-surface: #ffffff;--ylf-c-surface-raised: #f6f9ff;--ylf-c-surface-inset: #edf2f8;--ylf-c-highlight: rgba(255, 255, 255, 0.9);--ylf-c-panel: rgba(255, 255, 255, 0.96);--ylf-c-edge: rgba(30, 64, 115, 0.12);--ylf-c-text: #0f172a;--ylf-c-text-2: #475569;--ylf-c-text-3: #5c6b80;--ylf-c-text-on-accent: #ffffff;--ylf-c-text-on-aurora: var(--ylf-accent-sun-on);--ylf-c-border: #e2e8f0;--ylf-c-border-strong: #cbd5e1;--ylf-c-overlay: rgba(13, 17, 32, 0.45);--ylf-glass-bg: rgba(255, 255, 255, 0.82);--ylf-glass-border: rgba(255, 255, 255, 0.7);--ylf-glass-blur: saturate(160%) blur(16px);--ylf-overlay-blur: saturate(85%) blur(10px);--ylf-radius-sm: 10px;--ylf-radius: 14px;--ylf-radius-lg: 20px;--ylf-radius-xl: 28px;--ylf-radius-pill: 999px;--ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);--ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);--ylf-shadow-lg: 0 22px 56px -14px rgba(15, 23, 42, 0.22);--ylf-shadow-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.06), 0 3px 6px -4px rgba(15, 23, 42, 0.16);--ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);--ylf-shadow-panel: inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 8px 16px -8px rgba(15, 23, 42, 0.14), 0 28px 64px -20px rgba(24, 52, 102, 0.24);--ylf-glow-brand: 0 6px 18px -8px rgba(37, 99, 235, 0.35);--ylf-glow-brand-hover: 0 8px 22px -8px rgba(37, 99, 235, 0.4);--ylf-glow-aurora: var(--ylf-shadow-sm);--ylf-glow-aurora-hover: var(--ylf-shadow-sm);--ylf-font-display: 'Baloo 2', 'ZCOOL KuaiLe', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', sans-serif;--ylf-font-wordmark: var(--ylf-font-display);--ylf-font-heading: ui-rounded, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', system-ui, sans-serif;--ylf-font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;--ylf-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;--ylf-text-xs: 0.75rem;--ylf-text-sm: 0.875rem;--ylf-text-base: 1rem;--ylf-text-lg: 1.25rem;--ylf-text-xl: 1.5rem;--ylf-text-2xl: 2rem;--ylf-text-display: clamp(2.25rem, 4.5vw, 4rem);--ylf-leading-heading: 1.25;--ylf-leading-body: 1.75;--ylf-space-1: 4px;--ylf-space-2: 8px;--ylf-space-3: 12px;--ylf-space-4: 16px;--ylf-space-6: 24px;--ylf-space-8: 32px;--ylf-space-12: 48px;--ylf-space-16: 64px;--ylf-layout-page: 1200px;--ylf-layout-reading: 720px;--ylf-grid-size: 32px;--ylf-c-grid: rgba(37, 99, 235, 0.06);--ylf-c-sky: #dbeafe;--ylf-c-cloud: #ffffff;--ylf-duration-fast: 160ms;--ylf-duration-normal: 240ms;--ylf-ease-standard: cubic-bezier(0.2, 0, 0, 1);--ylf-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);--ylf-c-primary: var(--ylf-c-brand);--ylf-c-text-light: var(--ylf-c-text-2);--ylf-c-text-lighter: var(--ylf-c-text-3);--ylf-c-text-lightest: var(--ylf-c-border-strong);--ylf-c-bg-light: var(--ylf-c-bg-soft);--ylf-c-bg-lighter: var(--ylf-c-bg-mute)}.dark,.ylf-theme-dark{--ylf-c-brand: #60a5fa;--ylf-c-brand-hover: #93c5fd;--ylf-c-brand-active: #3b82f6;--ylf-c-brand-soft: #172554;--ylf-accent-blue: var(--ylf-c-brand);--ylf-accent-blue-hover: var(--ylf-c-brand-hover);--ylf-accent-blue-soft: var(--ylf-c-brand-soft);--ylf-accent-blue-text: var(--ylf-c-brand);--ylf-accent-blue-on: var(--ylf-c-text-on-accent);--ylf-accent: var(--ylf-accent-blue);--ylf-accent-hover: var(--ylf-accent-blue-hover);--ylf-accent-soft: var(--ylf-accent-blue-soft);--ylf-accent-text: var(--ylf-accent-blue-text);--ylf-accent-on: var(--ylf-accent-blue-on);--ylf-accent-sun-soft: #30290f;--ylf-accent-sun-text: #fde047;--ylf-accent-cyan-soft: #10313d;--ylf-accent-cyan-text: #67e8f9;--ylf-accent-coral-soft: #39231f;--ylf-accent-coral-text: #fda48c;--ylf-accent-pink-soft: #351e32;--ylf-accent-pink-text: #f9a8d4;--ylf-accent-green-soft: #142e26;--ylf-accent-green-text: #86efac;--ylf-status-success: var(--ylf-accent-green);--ylf-status-success-hover: var(--ylf-accent-green-hover);--ylf-status-success-on: var(--ylf-accent-green-on);--ylf-status-success-soft: var(--ylf-accent-green-soft);--ylf-status-success-text: var(--ylf-accent-green-text);--ylf-c-success: var(--ylf-status-success-text);--ylf-status-warning: var(--ylf-accent-sun);--ylf-status-warning-hover: var(--ylf-accent-sun-hover);--ylf-status-warning-on: var(--ylf-accent-sun-on);--ylf-status-warning-soft: var(--ylf-accent-sun-soft);--ylf-status-warning-text: var(--ylf-accent-sun-text);--ylf-c-warning: var(--ylf-status-warning-text);--ylf-status-danger: var(--ylf-accent-coral);--ylf-status-danger-hover: var(--ylf-accent-coral-hover);--ylf-status-danger-on: var(--ylf-accent-coral-on);--ylf-status-danger-soft: var(--ylf-accent-coral-soft);--ylf-status-danger-text: var(--ylf-accent-coral-text);--ylf-c-danger: var(--ylf-status-danger-text);--ylf-status-info: var(--ylf-accent-cyan);--ylf-status-info-hover: var(--ylf-accent-cyan-hover);--ylf-status-info-on: var(--ylf-accent-cyan-on);--ylf-status-info-soft: var(--ylf-accent-cyan-soft);--ylf-status-info-text: var(--ylf-accent-cyan-text);--ylf-c-info: var(--ylf-status-info-text);--ylf-c-feature-bg: var(--ylf-accent-sun-soft);--ylf-c-feature-text: var(--ylf-c-text);--ylf-gradient-brand: linear-gradient(var(--ylf-c-brand), var(--ylf-c-brand));--ylf-c-bg: #10151d;--ylf-c-bg-soft: #161e28;--ylf-c-bg-mute: #283545;--ylf-c-surface: #18212d;--ylf-c-surface-raised: #202c3a;--ylf-c-surface-inset: #0e141c;--ylf-c-highlight: rgba(192, 218, 255, 0.12);--ylf-c-panel: rgba(24, 33, 45, 0.96);--ylf-c-edge: rgba(3, 6, 18, 0.5);--ylf-c-text: #e5e7eb;--ylf-c-text-2: #cbd5e1;--ylf-c-text-3: #94a3b8;--ylf-c-text-on-accent: #0f172a;--ylf-c-border: #2d3b4c;--ylf-c-border-strong: #425367;--ylf-c-overlay: rgba(3, 6, 18, 0.7);--ylf-c-grid: rgba(96, 165, 250, 0.08);--ylf-c-sky: #192b3a;--ylf-c-cloud: #283545;--ylf-glass-bg: rgba(24, 33, 45, 0.96);--ylf-glass-border: rgba(96, 165, 250, 0.18);--ylf-shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, 0.5);--ylf-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55);--ylf-shadow-lg: 0 24px 60px -14px rgba(0, 0, 0, 0.6);--ylf-shadow-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(0, 0, 0, 0.24), 0 4px 8px -4px rgba(0, 0, 0, 0.3);--ylf-shadow-inset: inset 0 1px 4px rgba(0, 0, 0, 0.35);--ylf-shadow-panel: inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 10px 20px -8px rgba(0, 0, 0, 0.35), 0 32px 72px -18px rgba(0, 0, 0, 0.55);--ylf-glow-brand: 0 6px 18px -8px rgba(96, 165, 250, 0.3);--ylf-glow-brand-hover: 0 8px 22px -8px rgba(96, 165, 250, 0.4);--ylf-glow-aurora: var(--ylf-shadow-sm);--ylf-glow-aurora-hover: var(--ylf-shadow-sm)}@media(prefers-reduced-motion: reduce){:root,.ylf-theme-light,.ylf-theme-dark{--ylf-duration-fast: 0ms;--ylf-duration-normal: 0ms}}[data-ylf-tone=blue]{--ylf-accent-blue: var(--ylf-c-brand);--ylf-accent-blue-hover: var(--ylf-c-brand-hover);--ylf-accent-blue-soft: var(--ylf-c-brand-soft);--ylf-accent-blue-text: var(--ylf-c-brand);--ylf-accent-blue-on: var(--ylf-c-text-on-accent);--ylf-accent: var(--ylf-accent-blue);--ylf-accent-hover: var(--ylf-accent-blue-hover);--ylf-accent-soft: var(--ylf-accent-blue-soft);--ylf-accent-text: var(--ylf-accent-blue-text);--ylf-accent-on: var(--ylf-accent-blue-on)}[data-ylf-tone=sun]{--ylf-accent: var(--ylf-accent-sun);--ylf-accent-hover: var(--ylf-accent-sun-hover);--ylf-accent-soft: var(--ylf-accent-sun-soft);--ylf-accent-text: var(--ylf-accent-sun-text);--ylf-accent-on: var(--ylf-accent-sun-on)}[data-ylf-tone=cyan]{--ylf-accent: var(--ylf-accent-cyan);--ylf-accent-hover: var(--ylf-accent-cyan-hover);--ylf-accent-soft: var(--ylf-accent-cyan-soft);--ylf-accent-text: var(--ylf-accent-cyan-text);--ylf-accent-on: var(--ylf-accent-cyan-on)}[data-ylf-tone=coral]{--ylf-accent: var(--ylf-accent-coral);--ylf-accent-hover: var(--ylf-accent-coral-hover);--ylf-accent-soft: var(--ylf-accent-coral-soft);--ylf-accent-text: var(--ylf-accent-coral-text);--ylf-accent-on: var(--ylf-accent-coral-on)}[data-ylf-tone=pink]{--ylf-accent: var(--ylf-accent-pink);--ylf-accent-hover: var(--ylf-accent-pink-hover);--ylf-accent-soft: var(--ylf-accent-pink-soft);--ylf-accent-text: var(--ylf-accent-pink-text);--ylf-accent-on: var(--ylf-accent-pink-on)}[data-ylf-tone=green]{--ylf-accent: var(--ylf-accent-green);--ylf-accent-hover: var(--ylf-accent-green-hover);--ylf-accent-soft: var(--ylf-accent-green-soft);--ylf-accent-text: var(--ylf-accent-green-text);--ylf-accent-on: var(--ylf-accent-green-on)}
|
|
1
|
+
:root,.ylf-theme-light{--ylf-c-brand: var(--ylf-palette-blue);--ylf-c-brand-hover: #1d4ed8;--ylf-c-brand-active: #1e40af;--ylf-c-brand-soft: #eff6ff;--ylf-accent-blue: var(--ylf-c-brand);--ylf-accent-blue-hover: var(--ylf-c-brand-hover);--ylf-accent-blue-soft: var(--ylf-c-brand-soft);--ylf-accent-blue-text: var(--ylf-c-brand);--ylf-accent-blue-on: var(--ylf-c-text-on-accent);--ylf-accent: var(--ylf-accent-blue);--ylf-accent-hover: var(--ylf-accent-blue-hover);--ylf-accent-soft: var(--ylf-accent-blue-soft);--ylf-accent-text: var(--ylf-accent-blue-text);--ylf-accent-on: var(--ylf-accent-blue-on);--ylf-hero-start: #2563eb;--ylf-hero-middle: #0f74b8;--ylf-hero-end: #0369a1;--ylf-hero-hover-start: #1d4ed8;--ylf-hero-hover-middle: #096ba9;--ylf-hero-hover-end: #075985;--ylf-hero-foreground: #ffffff;--ylf-hero-background: linear-gradient( 115deg, var(--ylf-hero-start), var(--ylf-hero-middle) 58%, var(--ylf-hero-end) );--ylf-hero-background-hover: linear-gradient( 115deg, var(--ylf-hero-hover-start), var(--ylf-hero-hover-middle) 58%, var(--ylf-hero-hover-end) );--ylf-hero-border: rgb(255 255 255 / 0.16);--ylf-hero-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 12px 26px -14px rgb(3 105 161 / 0.58);--ylf-hero-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 30px -14px rgb(3 105 161 / 0.58);--ylf-palette-blue: #2563eb;--ylf-palette-sun: #facc15;--ylf-palette-cyan: #06b6d4;--ylf-palette-coral: #ff6b4a;--ylf-palette-pink: #ec4899;--ylf-palette-green: #22c55e;--ylf-spectrum-stops: var(--ylf-palette-blue) 0% 16.667%, var(--ylf-palette-cyan) 16.667% 33.333%, var(--ylf-palette-green) 33.333% 50%, var(--ylf-palette-sun) 50% 66.667%, var(--ylf-palette-coral) 66.667% 83.333%, var(--ylf-palette-pink) 83.333% 100%;--ylf-accent-sun: var(--ylf-palette-sun);--ylf-accent-sun-hover: #eab308;--ylf-accent-sun-soft: #fef9c3;--ylf-accent-sun-text: #854d0e;--ylf-accent-sun-on: #64380e;--ylf-accent-cyan: var(--ylf-palette-cyan);--ylf-accent-cyan-hover: #22d3ee;--ylf-accent-cyan-soft: #cffafe;--ylf-accent-cyan-text: #155e75;--ylf-accent-cyan-on: #083e4f;--ylf-accent-coral: var(--ylf-palette-coral);--ylf-accent-coral-hover: #ff856b;--ylf-accent-coral-soft: #ffede6;--ylf-accent-coral-text: #9a3412;--ylf-accent-coral-on: #551b0a;--ylf-accent-pink: var(--ylf-palette-pink);--ylf-accent-pink-hover: #f472b6;--ylf-accent-pink-soft: #fce7f3;--ylf-accent-pink-text: #9d174d;--ylf-accent-pink-on: #400a2b;--ylf-accent-green: var(--ylf-palette-green);--ylf-accent-green-hover: #4ade80;--ylf-accent-green-soft: #dcfce7;--ylf-accent-green-text: #166534;--ylf-accent-green-on: #124324;--ylf-c-feature: var(--ylf-accent-sun);--ylf-c-feature-bg: var(--ylf-accent-sun-soft);--ylf-c-feature-text: var(--ylf-c-text);--ylf-aurora-sky: var(--ylf-accent-cyan);--ylf-aurora-iris: var(--ylf-accent-coral);--ylf-aurora-pink: var(--ylf-accent-pink);--ylf-gradient-aurora: linear-gradient(var(--ylf-accent-sun), var(--ylf-accent-sun));--ylf-gradient-brand: linear-gradient(var(--ylf-c-brand), var(--ylf-c-brand));--ylf-status-success: var(--ylf-accent-green);--ylf-status-success-hover: var(--ylf-accent-green-hover);--ylf-status-success-on: var(--ylf-accent-green-on);--ylf-status-success-soft: var(--ylf-accent-green-soft);--ylf-status-success-text: var(--ylf-accent-green-text);--ylf-c-success: var(--ylf-status-success-text);--ylf-status-warning: var(--ylf-accent-sun);--ylf-status-warning-hover: var(--ylf-accent-sun-hover);--ylf-status-warning-on: var(--ylf-accent-sun-on);--ylf-status-warning-soft: var(--ylf-accent-sun-soft);--ylf-status-warning-text: var(--ylf-accent-sun-text);--ylf-c-warning: var(--ylf-status-warning-text);--ylf-status-danger: var(--ylf-accent-coral);--ylf-status-danger-hover: var(--ylf-accent-coral-hover);--ylf-status-danger-on: var(--ylf-accent-coral-on);--ylf-status-danger-soft: var(--ylf-accent-coral-soft);--ylf-status-danger-text: var(--ylf-accent-coral-text);--ylf-c-danger: var(--ylf-status-danger-text);--ylf-status-info: var(--ylf-accent-cyan);--ylf-status-info-hover: var(--ylf-accent-cyan-hover);--ylf-status-info-on: var(--ylf-accent-cyan-on);--ylf-status-info-soft: var(--ylf-accent-cyan-soft);--ylf-status-info-text: var(--ylf-accent-cyan-text);--ylf-c-info: var(--ylf-status-info-text);--ylf-c-bg: #f8fafc;--ylf-c-bg-soft: #f1f5f9;--ylf-c-bg-mute: #e2e8f0;--ylf-c-surface: #ffffff;--ylf-c-surface-raised: #f6f9ff;--ylf-c-surface-inset: #edf2f8;--ylf-c-highlight: rgba(255, 255, 255, 0.9);--ylf-c-panel: rgba(255, 255, 255, 0.96);--ylf-c-edge: rgba(30, 64, 115, 0.12);--ylf-c-text: #0f172a;--ylf-c-text-2: #475569;--ylf-c-text-3: #5c6b80;--ylf-c-text-on-accent: #ffffff;--ylf-c-text-on-aurora: var(--ylf-accent-sun-on);--ylf-c-border: #e2e8f0;--ylf-c-border-strong: #cbd5e1;--ylf-c-overlay: rgba(13, 17, 32, 0.45);--ylf-glass-bg: rgba(255, 255, 255, 0.82);--ylf-glass-border: rgba(255, 255, 255, 0.7);--ylf-glass-blur: saturate(160%) blur(16px);--ylf-overlay-blur: saturate(85%) blur(10px);--ylf-radius-sm: 10px;--ylf-radius: 14px;--ylf-radius-lg: 20px;--ylf-radius-xl: 28px;--ylf-radius-pill: 999px;--ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);--ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);--ylf-shadow-lg: 0 22px 56px -14px rgba(15, 23, 42, 0.22);--ylf-shadow-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.06), 0 3px 6px -4px rgba(15, 23, 42, 0.16);--ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);--ylf-shadow-panel: inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 8px 16px -8px rgba(15, 23, 42, 0.14), 0 28px 64px -20px rgba(24, 52, 102, 0.24);--ylf-glow-brand: 0 6px 18px -8px rgba(37, 99, 235, 0.35);--ylf-glow-brand-hover: 0 8px 22px -8px rgba(37, 99, 235, 0.4);--ylf-glow-aurora: var(--ylf-shadow-sm);--ylf-glow-aurora-hover: var(--ylf-shadow-sm);--ylf-font-display: 'Baloo 2', 'ZCOOL KuaiLe', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', sans-serif;--ylf-font-wordmark: var(--ylf-font-display);--ylf-font-heading: ui-rounded, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', system-ui, sans-serif;--ylf-font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;--ylf-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;--ylf-text-xs: 0.75rem;--ylf-text-sm: 0.875rem;--ylf-text-base: 1rem;--ylf-text-lg: 1.25rem;--ylf-text-xl: 1.5rem;--ylf-text-2xl: 2rem;--ylf-text-display: clamp(2.25rem, 4.5vw, 4rem);--ylf-leading-heading: 1.25;--ylf-leading-body: 1.75;--ylf-space-1: 4px;--ylf-space-2: 8px;--ylf-space-3: 12px;--ylf-space-4: 16px;--ylf-space-6: 24px;--ylf-space-8: 32px;--ylf-space-12: 48px;--ylf-space-16: 64px;--ylf-layout-page: 1200px;--ylf-layout-reading: 720px;--ylf-grid-size: 32px;--ylf-c-grid: rgba(37, 99, 235, 0.06);--ylf-c-sky: #dbeafe;--ylf-c-cloud: #ffffff;--ylf-cloud-highlight: #fffefa;--ylf-cloud-body: #f2f8ff;--ylf-cloud-shade: #c6dff5;--ylf-cloud-shadow: #83addb;--ylf-cloud-rim: #ffffff;--ylf-cloud-face: #5a7fae;--ylf-cloud-haze-color: #9cc6ef;--ylf-touch-target: 44px;--ylf-viewport-gutter: 16px;--ylf-duration-press: 100ms;--ylf-duration-enter: 240ms;--ylf-duration-exit: 160ms;--ylf-press-scale: 0.98;--ylf-hover-lift: -1px;--ylf-duration-fast: 160ms;--ylf-duration-normal: 240ms;--ylf-duration-slow: 480ms;--ylf-ease-standard: cubic-bezier(0.2, 0, 0, 1);--ylf-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);--ylf-ease-spring: linear( 0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.089 24.6%, 1.088 27.4%, 1.061 31.2%, 1.008 38.7%, 0.988 44.4%, 0.999 61.5%, 1 );--ylf-c-primary: var(--ylf-c-brand);--ylf-c-text-light: var(--ylf-c-text-2);--ylf-c-text-lighter: var(--ylf-c-text-3);--ylf-c-text-lightest: var(--ylf-c-border-strong);--ylf-c-bg-light: var(--ylf-c-bg-soft);--ylf-c-bg-lighter: var(--ylf-c-bg-mute)}.dark,.ylf-theme-dark{--ylf-c-brand: #60a5fa;--ylf-c-brand-hover: #93c5fd;--ylf-c-brand-active: #3b82f6;--ylf-c-brand-soft: #15264a;--ylf-accent-blue: var(--ylf-c-brand);--ylf-accent-blue-hover: var(--ylf-c-brand-hover);--ylf-accent-blue-soft: var(--ylf-c-brand-soft);--ylf-accent-blue-text: var(--ylf-c-brand);--ylf-accent-blue-on: var(--ylf-c-text-on-accent);--ylf-accent: var(--ylf-accent-blue);--ylf-accent-hover: var(--ylf-accent-blue-hover);--ylf-accent-soft: var(--ylf-accent-blue-soft);--ylf-accent-text: var(--ylf-accent-blue-text);--ylf-accent-on: var(--ylf-accent-blue-on);--ylf-accent-sun-soft: #30290f;--ylf-accent-sun-text: #fde047;--ylf-accent-cyan-soft: #10313d;--ylf-accent-cyan-text: #67e8f9;--ylf-accent-coral-soft: #39231f;--ylf-accent-coral-text: #fda48c;--ylf-accent-pink-soft: #351e32;--ylf-accent-pink-text: #f9a8d4;--ylf-accent-green-soft: #142e26;--ylf-accent-green-text: #86efac;--ylf-status-success: var(--ylf-accent-green);--ylf-status-success-hover: var(--ylf-accent-green-hover);--ylf-status-success-on: var(--ylf-accent-green-on);--ylf-status-success-soft: var(--ylf-accent-green-soft);--ylf-status-success-text: var(--ylf-accent-green-text);--ylf-c-success: var(--ylf-status-success-text);--ylf-status-warning: var(--ylf-accent-sun);--ylf-status-warning-hover: var(--ylf-accent-sun-hover);--ylf-status-warning-on: var(--ylf-accent-sun-on);--ylf-status-warning-soft: var(--ylf-accent-sun-soft);--ylf-status-warning-text: var(--ylf-accent-sun-text);--ylf-c-warning: var(--ylf-status-warning-text);--ylf-status-danger: var(--ylf-accent-coral);--ylf-status-danger-hover: var(--ylf-accent-coral-hover);--ylf-status-danger-on: var(--ylf-accent-coral-on);--ylf-status-danger-soft: var(--ylf-accent-coral-soft);--ylf-status-danger-text: var(--ylf-accent-coral-text);--ylf-c-danger: var(--ylf-status-danger-text);--ylf-status-info: var(--ylf-accent-cyan);--ylf-status-info-hover: var(--ylf-accent-cyan-hover);--ylf-status-info-on: var(--ylf-accent-cyan-on);--ylf-status-info-soft: var(--ylf-accent-cyan-soft);--ylf-status-info-text: var(--ylf-accent-cyan-text);--ylf-c-info: var(--ylf-status-info-text);--ylf-c-feature-bg: var(--ylf-accent-sun-soft);--ylf-c-feature-text: var(--ylf-c-text);--ylf-gradient-brand: linear-gradient(var(--ylf-c-brand), var(--ylf-c-brand));--ylf-c-bg: #0b111c;--ylf-c-bg-soft: #101826;--ylf-c-bg-mute: #22304a;--ylf-c-surface: #141d2b;--ylf-c-surface-raised: #1b2638;--ylf-c-surface-inset: #080d16;--ylf-c-highlight: rgba(186, 214, 255, 0.1);--ylf-c-panel: rgba(20, 29, 43, 0.96);--ylf-c-edge: rgba(2, 6, 15, 0.55);--ylf-c-text: #e7eef8;--ylf-c-text-2: #b9c6d9;--ylf-c-text-3: #8d9db4;--ylf-c-text-on-accent: #0f172a;--ylf-c-border: #24324a;--ylf-c-border-strong: #36486a;--ylf-c-overlay: rgba(2, 6, 15, 0.72);--ylf-c-grid: rgba(96, 165, 250, 0.08);--ylf-c-sky: #13233a;--ylf-c-cloud: #22304a;--ylf-cloud-highlight: #a6bcd8;--ylf-cloud-body: #3e5679;--ylf-cloud-shade: #1c2b44;--ylf-cloud-shadow: #0a1424;--ylf-cloud-rim: #cfdff2;--ylf-cloud-face: #0e1a2d;--ylf-cloud-haze-color: #1f3354;--ylf-glass-bg: rgba(20, 29, 43, 0.9);--ylf-glass-border: rgba(96, 165, 250, 0.18);--ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);--ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);--ylf-shadow-lg: 0 24px 60px -14px rgba(2, 6, 15, 0.65);--ylf-shadow-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.3), 0 4px 8px -4px rgba(2, 6, 15, 0.35);--ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);--ylf-shadow-panel: inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 10px 20px -8px rgba(2, 6, 15, 0.4), 0 32px 72px -18px rgba(2, 6, 15, 0.6);--ylf-glow-brand: 0 6px 18px -8px rgba(96, 165, 250, 0.3);--ylf-glow-brand-hover: 0 8px 22px -8px rgba(96, 165, 250, 0.4);--ylf-glow-aurora: var(--ylf-shadow-sm);--ylf-glow-aurora-hover: var(--ylf-shadow-sm)}@media(prefers-reduced-motion: reduce){:root,.ylf-theme-light,.ylf-theme-dark{--ylf-duration-press: 0ms;--ylf-duration-enter: 0ms;--ylf-duration-exit: 0ms;--ylf-press-scale: 1;--ylf-hover-lift: 0px;--ylf-duration-fast: 0ms;--ylf-duration-normal: 0ms;--ylf-duration-slow: 0ms}}[data-ylf-tone=blue]{--ylf-accent-blue: var(--ylf-c-brand);--ylf-accent-blue-hover: var(--ylf-c-brand-hover);--ylf-accent-blue-soft: var(--ylf-c-brand-soft);--ylf-accent-blue-text: var(--ylf-c-brand);--ylf-accent-blue-on: var(--ylf-c-text-on-accent);--ylf-accent: var(--ylf-accent-blue);--ylf-accent-hover: var(--ylf-accent-blue-hover);--ylf-accent-soft: var(--ylf-accent-blue-soft);--ylf-accent-text: var(--ylf-accent-blue-text);--ylf-accent-on: var(--ylf-accent-blue-on)}[data-ylf-tone=sun]{--ylf-accent: var(--ylf-accent-sun);--ylf-accent-hover: var(--ylf-accent-sun-hover);--ylf-accent-soft: var(--ylf-accent-sun-soft);--ylf-accent-text: var(--ylf-accent-sun-text);--ylf-accent-on: var(--ylf-accent-sun-on)}[data-ylf-tone=cyan]{--ylf-accent: var(--ylf-accent-cyan);--ylf-accent-hover: var(--ylf-accent-cyan-hover);--ylf-accent-soft: var(--ylf-accent-cyan-soft);--ylf-accent-text: var(--ylf-accent-cyan-text);--ylf-accent-on: var(--ylf-accent-cyan-on)}[data-ylf-tone=coral]{--ylf-accent: var(--ylf-accent-coral);--ylf-accent-hover: var(--ylf-accent-coral-hover);--ylf-accent-soft: var(--ylf-accent-coral-soft);--ylf-accent-text: var(--ylf-accent-coral-text);--ylf-accent-on: var(--ylf-accent-coral-on)}[data-ylf-tone=pink]{--ylf-accent: var(--ylf-accent-pink);--ylf-accent-hover: var(--ylf-accent-pink-hover);--ylf-accent-soft: var(--ylf-accent-pink-soft);--ylf-accent-text: var(--ylf-accent-pink-text);--ylf-accent-on: var(--ylf-accent-pink-on)}[data-ylf-tone=green]{--ylf-accent: var(--ylf-accent-green);--ylf-accent-hover: var(--ylf-accent-green-hover);--ylf-accent-soft: var(--ylf-accent-green-soft);--ylf-accent-text: var(--ylf-accent-green-text);--ylf-accent-on: var(--ylf-accent-green-on)}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yunlefun/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Shared styles and design tokens for YunLeFun Design",
|
|
5
5
|
"author": "YunLeFun",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://design.yunle.fun",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/YunLeFun/design.git",
|
|
@@ -18,11 +18,16 @@
|
|
|
18
18
|
"css"
|
|
19
19
|
],
|
|
20
20
|
"exports": {
|
|
21
|
-
"./css":
|
|
21
|
+
"./css": {
|
|
22
|
+
"types": "./styles/css.d.ts",
|
|
23
|
+
"default": "./dist/index.css"
|
|
24
|
+
},
|
|
22
25
|
"./patterns.css": "./dist/patterns.css",
|
|
23
26
|
"./styles": "./styles/index.scss",
|
|
24
27
|
"./styles/*": "./styles/*",
|
|
25
|
-
"./*": "./*"
|
|
28
|
+
"./*": "./*",
|
|
29
|
+
"./admin.css": "./styles/admin.css",
|
|
30
|
+
"./editor.css": "./styles/editor.css"
|
|
26
31
|
},
|
|
27
32
|
"files": [
|
|
28
33
|
"dist",
|
|
@@ -45,6 +50,6 @@
|
|
|
45
50
|
}
|
|
46
51
|
},
|
|
47
52
|
"devDependencies": {
|
|
48
|
-
"sass": "^1.
|
|
53
|
+
"sass": "^1.105.1"
|
|
49
54
|
}
|
|
50
55
|
}
|
package/styles/admin.css
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* YunLeFun Design · Admin profile. Tokens only; import after the base theme.
|
|
2
|
+
* Keep the vendored copy in YunLeFun/admin identical until this entry is published. */
|
|
3
|
+
:root {
|
|
4
|
+
--ylf-admin-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
5
|
+
--ylf-admin-control-sm: 28px;
|
|
6
|
+
--ylf-admin-control: 32px;
|
|
7
|
+
--ylf-admin-control-lg: 40px;
|
|
8
|
+
--ylf-admin-radius: 6px;
|
|
9
|
+
--ylf-admin-panel-radius: 10px;
|
|
10
|
+
--ylf-admin-icon-gap: 8px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:root,
|
|
14
|
+
.light,
|
|
15
|
+
.ylf-theme-light,
|
|
16
|
+
[data-ylf-admin-theme='light'] {
|
|
17
|
+
--ylf-admin-bg: #f6f7f9;
|
|
18
|
+
--ylf-admin-surface: #ffffff;
|
|
19
|
+
--ylf-admin-raised: #f0f2f5;
|
|
20
|
+
--ylf-admin-inset: #f8f9fb;
|
|
21
|
+
--ylf-admin-fg: #20242c;
|
|
22
|
+
--ylf-admin-muted: #626b78;
|
|
23
|
+
--ylf-admin-placeholder: #757e8b;
|
|
24
|
+
--ylf-admin-border: #e1e5eb;
|
|
25
|
+
--ylf-admin-border-strong: #c7cdd6;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dark,
|
|
29
|
+
.ylf-theme-dark,
|
|
30
|
+
[data-ylf-admin-theme='dark'] {
|
|
31
|
+
--ylf-admin-bg: #111318;
|
|
32
|
+
--ylf-admin-surface: #191c22;
|
|
33
|
+
--ylf-admin-raised: #252a33;
|
|
34
|
+
--ylf-admin-inset: #15181e;
|
|
35
|
+
--ylf-admin-fg: #eef1f6;
|
|
36
|
+
--ylf-admin-muted: #aab2c0;
|
|
37
|
+
--ylf-admin-placeholder: #929cac;
|
|
38
|
+
--ylf-admin-border: #303641;
|
|
39
|
+
--ylf-admin-border-strong: #4d5869;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (max-width: 767.9px), (pointer: coarse) {
|
|
43
|
+
:root {
|
|
44
|
+
--ylf-admin-control-sm: 40px;
|
|
45
|
+
--ylf-admin-control: 44px;
|
|
46
|
+
--ylf-admin-control-lg: 48px;
|
|
47
|
+
}
|
|
48
|
+
}
|
package/styles/css-vars.scss
CHANGED
|
@@ -44,6 +44,30 @@
|
|
|
44
44
|
|
|
45
45
|
@include brand-accent;
|
|
46
46
|
|
|
47
|
+
// Hero CTA: a deeper blue-to-cyan ramp keeps white labels readable on cloud scenes.
|
|
48
|
+
--ylf-hero-start: #2563eb;
|
|
49
|
+
--ylf-hero-middle: #0f74b8;
|
|
50
|
+
--ylf-hero-end: #0369a1;
|
|
51
|
+
--ylf-hero-hover-start: #1d4ed8;
|
|
52
|
+
--ylf-hero-hover-middle: #096ba9;
|
|
53
|
+
--ylf-hero-hover-end: #075985;
|
|
54
|
+
--ylf-hero-foreground: #ffffff;
|
|
55
|
+
--ylf-hero-background: linear-gradient(
|
|
56
|
+
115deg,
|
|
57
|
+
var(--ylf-hero-start),
|
|
58
|
+
var(--ylf-hero-middle) 58%,
|
|
59
|
+
var(--ylf-hero-end)
|
|
60
|
+
);
|
|
61
|
+
--ylf-hero-background-hover: linear-gradient(
|
|
62
|
+
115deg,
|
|
63
|
+
var(--ylf-hero-hover-start),
|
|
64
|
+
var(--ylf-hero-hover-middle) 58%,
|
|
65
|
+
var(--ylf-hero-hover-end)
|
|
66
|
+
);
|
|
67
|
+
--ylf-hero-border: rgb(255 255 255 / 0.16);
|
|
68
|
+
--ylf-hero-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 12px 26px -14px rgb(3 105 161 / 0.58);
|
|
69
|
+
--ylf-hero-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 30px -14px rgb(3 105 161 / 0.58);
|
|
70
|
+
|
|
47
71
|
// --- palette:原始色只表达色相,不直接承担状态文字 -------------------------
|
|
48
72
|
--ylf-palette-blue: #2563eb;
|
|
49
73
|
--ylf-palette-sun: #facc15;
|
|
@@ -198,11 +222,48 @@
|
|
|
198
222
|
--ylf-c-sky: #dbeafe;
|
|
199
223
|
--ylf-c-cloud: #ffffff;
|
|
200
224
|
|
|
225
|
+
// --- cloud:YlfCloud 插画的光照,haze-color 是远处云融入的天空色 ------------
|
|
226
|
+
--ylf-cloud-highlight: #fffefa;
|
|
227
|
+
--ylf-cloud-body: #f2f8ff;
|
|
228
|
+
--ylf-cloud-shade: #c6dff5;
|
|
229
|
+
--ylf-cloud-shadow: #83addb;
|
|
230
|
+
--ylf-cloud-rim: #ffffff;
|
|
231
|
+
--ylf-cloud-face: #5a7fae;
|
|
232
|
+
--ylf-cloud-haze-color: #9cc6ef;
|
|
233
|
+
|
|
234
|
+
// --- mobile interaction ----------------------------------------------------
|
|
235
|
+
--ylf-touch-target: 44px;
|
|
236
|
+
--ylf-viewport-gutter: 16px;
|
|
237
|
+
--ylf-duration-press: 100ms;
|
|
238
|
+
--ylf-duration-enter: 240ms;
|
|
239
|
+
--ylf-duration-exit: 160ms;
|
|
240
|
+
--ylf-press-scale: 0.98;
|
|
241
|
+
--ylf-hover-lift: -1px;
|
|
242
|
+
|
|
201
243
|
// --- transition -------------------------------------------------------------
|
|
202
244
|
--ylf-duration-fast: 160ms;
|
|
203
245
|
--ylf-duration-normal: 240ms;
|
|
246
|
+
--ylf-duration-slow: 480ms;
|
|
204
247
|
--ylf-ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
205
248
|
--ylf-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
249
|
+
// 软弹簧:轻微过冲后快速落定,用于开关拇指、云朵等「软」的位移。
|
|
250
|
+
--ylf-ease-spring: linear(
|
|
251
|
+
0,
|
|
252
|
+
0.009,
|
|
253
|
+
0.035 2.1%,
|
|
254
|
+
0.141 4.4%,
|
|
255
|
+
0.723 12.9%,
|
|
256
|
+
0.938 16.7%,
|
|
257
|
+
1.017 19.4%,
|
|
258
|
+
1.067,
|
|
259
|
+
1.089 24.6%,
|
|
260
|
+
1.088 27.4%,
|
|
261
|
+
1.061 31.2%,
|
|
262
|
+
1.008 38.7%,
|
|
263
|
+
0.988 44.4%,
|
|
264
|
+
0.999 61.5%,
|
|
265
|
+
1
|
|
266
|
+
);
|
|
206
267
|
|
|
207
268
|
// --- 向后兼容别名(旧组件仍在用) -------------------------------------------
|
|
208
269
|
--ylf-c-primary: var(--ylf-c-brand);
|
|
@@ -218,7 +279,7 @@
|
|
|
218
279
|
--ylf-c-brand: #60a5fa;
|
|
219
280
|
--ylf-c-brand-hover: #93c5fd;
|
|
220
281
|
--ylf-c-brand-active: #3b82f6;
|
|
221
|
-
--ylf-c-brand-soft: #
|
|
282
|
+
--ylf-c-brand-soft: #15264a;
|
|
222
283
|
|
|
223
284
|
@include brand-accent;
|
|
224
285
|
|
|
@@ -240,41 +301,51 @@
|
|
|
240
301
|
--ylf-c-feature-text: var(--ylf-c-text);
|
|
241
302
|
--ylf-gradient-brand: linear-gradient(var(--ylf-c-brand), var(--ylf-c-brand));
|
|
242
303
|
|
|
243
|
-
//
|
|
244
|
-
--ylf-c-bg: #
|
|
245
|
-
--ylf-c-bg-soft: #
|
|
246
|
-
--ylf-c-bg-mute: #
|
|
247
|
-
--ylf-c-surface: #
|
|
248
|
-
--ylf-c-surface-raised: #
|
|
249
|
-
--ylf-c-surface-inset: #
|
|
250
|
-
--ylf-c-highlight: rgba(
|
|
251
|
-
--ylf-c-panel: rgba(
|
|
252
|
-
--ylf-c-edge: rgba(
|
|
253
|
-
|
|
254
|
-
--ylf-c-text: #
|
|
255
|
-
--ylf-c-text-2: #
|
|
256
|
-
--ylf-c-text-3: #
|
|
304
|
+
// 深蓝夜空:色相统一在约 218°,越靠近用户的表面越亮;文字用带冷调的月光白。
|
|
305
|
+
--ylf-c-bg: #0b111c;
|
|
306
|
+
--ylf-c-bg-soft: #101826;
|
|
307
|
+
--ylf-c-bg-mute: #22304a;
|
|
308
|
+
--ylf-c-surface: #141d2b;
|
|
309
|
+
--ylf-c-surface-raised: #1b2638;
|
|
310
|
+
--ylf-c-surface-inset: #080d16;
|
|
311
|
+
--ylf-c-highlight: rgba(186, 214, 255, 0.1);
|
|
312
|
+
--ylf-c-panel: rgba(20, 29, 43, 0.96);
|
|
313
|
+
--ylf-c-edge: rgba(2, 6, 15, 0.55);
|
|
314
|
+
|
|
315
|
+
--ylf-c-text: #e7eef8;
|
|
316
|
+
--ylf-c-text-2: #b9c6d9;
|
|
317
|
+
--ylf-c-text-3: #8d9db4;
|
|
257
318
|
--ylf-c-text-on-accent: #0f172a;
|
|
258
319
|
|
|
259
|
-
--ylf-c-border: #
|
|
260
|
-
--ylf-c-border-strong: #
|
|
261
|
-
--ylf-c-overlay: rgba(
|
|
320
|
+
--ylf-c-border: #24324a;
|
|
321
|
+
--ylf-c-border-strong: #36486a;
|
|
322
|
+
--ylf-c-overlay: rgba(2, 6, 15, 0.72);
|
|
262
323
|
--ylf-c-grid: rgba(96, 165, 250, 0.08);
|
|
263
|
-
--ylf-c-sky: #
|
|
264
|
-
--ylf-c-cloud: #
|
|
265
|
-
|
|
266
|
-
|
|
324
|
+
--ylf-c-sky: #13233a;
|
|
325
|
+
--ylf-c-cloud: #22304a;
|
|
326
|
+
|
|
327
|
+
// 月光下的云:带一点夜空蓝而不是灰,远处融进地平线的深蓝。
|
|
328
|
+
--ylf-cloud-highlight: #a6bcd8;
|
|
329
|
+
--ylf-cloud-body: #3e5679;
|
|
330
|
+
--ylf-cloud-shade: #1c2b44;
|
|
331
|
+
--ylf-cloud-shadow: #0a1424;
|
|
332
|
+
--ylf-cloud-rim: #cfdff2;
|
|
333
|
+
--ylf-cloud-face: #0e1a2d;
|
|
334
|
+
--ylf-cloud-haze-color: #1f3354;
|
|
335
|
+
|
|
336
|
+
--ylf-glass-bg: rgba(20, 29, 43, 0.9);
|
|
267
337
|
--ylf-glass-border: rgba(96, 165, 250, 0.18);
|
|
268
338
|
|
|
269
|
-
|
|
270
|
-
--ylf-shadow: 0
|
|
271
|
-
--ylf-shadow
|
|
339
|
+
// 夜里的影子带一点深蓝,避免纯黑把表面压扁。
|
|
340
|
+
--ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
|
|
341
|
+
--ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
|
|
342
|
+
--ylf-shadow-lg: 0 24px 60px -14px rgba(2, 6, 15, 0.65);
|
|
272
343
|
--ylf-shadow-control:
|
|
273
|
-
inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(
|
|
274
|
-
--ylf-shadow-inset: inset 0 1px 4px rgba(
|
|
344
|
+
inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.3), 0 4px 8px -4px rgba(2, 6, 15, 0.35);
|
|
345
|
+
--ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
|
|
275
346
|
--ylf-shadow-panel:
|
|
276
|
-
inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 10px 20px -8px rgba(
|
|
277
|
-
0 32px 72px -18px rgba(
|
|
347
|
+
inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 10px 20px -8px rgba(2, 6, 15, 0.4),
|
|
348
|
+
0 32px 72px -18px rgba(2, 6, 15, 0.6);
|
|
278
349
|
--ylf-glow-brand: 0 6px 18px -8px rgba(96, 165, 250, 0.3);
|
|
279
350
|
--ylf-glow-brand-hover: 0 8px 22px -8px rgba(96, 165, 250, 0.4);
|
|
280
351
|
--ylf-glow-aurora: var(--ylf-shadow-sm);
|
|
@@ -285,8 +356,14 @@
|
|
|
285
356
|
:root,
|
|
286
357
|
.ylf-theme-light,
|
|
287
358
|
.ylf-theme-dark {
|
|
359
|
+
--ylf-duration-press: 0ms;
|
|
360
|
+
--ylf-duration-enter: 0ms;
|
|
361
|
+
--ylf-duration-exit: 0ms;
|
|
362
|
+
--ylf-press-scale: 1;
|
|
363
|
+
--ylf-hover-lift: 0px;
|
|
288
364
|
--ylf-duration-fast: 0ms;
|
|
289
365
|
--ylf-duration-normal: 0ms;
|
|
366
|
+
--ylf-duration-slow: 0ms;
|
|
290
367
|
}
|
|
291
368
|
}
|
|
292
369
|
|
package/styles/css.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* YunLeFun Design · Editor. Opt-in tokens, independent of consumer UI density.
|
|
2
|
+
* Source: YunLeFun/design packages/ui/styles/editor.css (MIT).
|
|
3
|
+
* Saier vendors this file until the Editor entry is published; keep copies identical.
|
|
4
|
+
*/
|
|
5
|
+
:root {
|
|
6
|
+
--ylf-editor-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
7
|
+
--ylf-editor-text: 12px;
|
|
8
|
+
--ylf-editor-caption: 11px;
|
|
9
|
+
--ylf-editor-control-sm: 24px;
|
|
10
|
+
--ylf-editor-control: 28px;
|
|
11
|
+
--ylf-editor-row: 32px;
|
|
12
|
+
--ylf-editor-header: 32px;
|
|
13
|
+
--ylf-editor-radius: 5px;
|
|
14
|
+
--ylf-editor-panel-radius: 10px;
|
|
15
|
+
--ylf-editor-panel-width: 272px;
|
|
16
|
+
}
|
|
17
|
+
:root,
|
|
18
|
+
.light,
|
|
19
|
+
.ylf-theme-light,
|
|
20
|
+
[data-ylf-editor-theme='light'] {
|
|
21
|
+
--ylf-editor-bg: #f6f6f7;
|
|
22
|
+
--ylf-editor-chrome: #ebebed;
|
|
23
|
+
--ylf-editor-panel: #f6f6f7;
|
|
24
|
+
--ylf-editor-field: #ffffff;
|
|
25
|
+
--ylf-editor-workspace: #d7d7da;
|
|
26
|
+
--ylf-editor-fg: #292a2e;
|
|
27
|
+
--ylf-editor-muted: #62636b;
|
|
28
|
+
--ylf-editor-border: rgb(25 25 30 / 13%);
|
|
29
|
+
--ylf-editor-accent: var(--ylf-palette-blue, #2563eb);
|
|
30
|
+
--ylf-editor-selection: rgb(37 99 235 / 10%);
|
|
31
|
+
--ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 10px 28px -8px rgb(0 0 0 / 18%);
|
|
32
|
+
}
|
|
33
|
+
.dark,
|
|
34
|
+
.ylf-theme-dark,
|
|
35
|
+
[data-ylf-editor-theme='dark'] {
|
|
36
|
+
--ylf-editor-bg: #242426;
|
|
37
|
+
--ylf-editor-chrome: #303033;
|
|
38
|
+
--ylf-editor-panel: #292a2d;
|
|
39
|
+
--ylf-editor-field: #353639;
|
|
40
|
+
--ylf-editor-workspace: #202123;
|
|
41
|
+
--ylf-editor-fg: #eeeef0;
|
|
42
|
+
--ylf-editor-muted: #b1b1b8;
|
|
43
|
+
--ylf-editor-border: rgb(255 255 255 / 11%);
|
|
44
|
+
--ylf-editor-accent: #60a5fa;
|
|
45
|
+
--ylf-editor-selection: rgb(96 165 250 / 16%);
|
|
46
|
+
--ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 20%), 0 10px 28px -8px rgb(0 0 0 / 40%);
|
|
47
|
+
}
|
|
48
|
+
@media (pointer: coarse) {
|
|
49
|
+
:root {
|
|
50
|
+
--ylf-editor-control-sm: 40px;
|
|
51
|
+
--ylf-editor-control: 40px;
|
|
52
|
+
--ylf-editor-row: 44px;
|
|
53
|
+
--ylf-editor-header: 44px;
|
|
54
|
+
}
|
|
55
|
+
}
|