nphu0811/pmg-skills

pmg-glassmorphism

Compose translucent acrylic PowerPoint surfaces, borders and readable overlays with intentional layering.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/nphu0811/pmg-skills --skill pmg-glassmorphism

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

PMG Glassmorphism (pmg-glassmorphism)

Responsibility and dependencies

Acrylic surfaces, alpha, borders, contrast and layered composition. Supports intentional overlap, moving background layers and masks when implemented; does not own camera or animation compilation.

Dependencies: pmg-engine; pmg-core; existing addglasscard/theme helpers. All generated candidates must pass PMGOrchestrator before delivery; direct save/COM snippets below are lower-level composition examples, not independent production entrypoints.

Glassmorphism in PMG creates high-end, tactile telemetry surfaces. It allows underlying motion, 3D elements, or photography to subtly reveal depth while maintaining 100% text readability.


1. Light Mode Frosted Acrylic (Primary Standard)

In light themes, frosted cards provide structural elevation without heavy dark shadows:

xml
<a:spPr>
  <!-- Frosted Pure White Scrim Base -->
  <a:solidFill>
    <a:srgbClr val="FFFFFF">
      <a:alpha val="92000"/> <!-- 92% Opacity Frosted Acrylic -->
    </a:srgbClr>
  </a:solidFill>
  
  <!-- Subtle Glowing Cyan or Hairline Slate Border (1.0 pt) -->
  <a:ln w="12700" cmpd="s">
    <a:solidFill>
      <a:srgbClr val="0284C7">
        <a:alpha val="55000"/> <!-- 55% Opacity Border Glow -->
      </a:srgbClr>
    </a:solidFill>
  </a:ln>
</a:spPr>

Contrast Invariants for Light Glass

  • Card Background: #FFFFFF at 90% - 94% alpha.
  • Card Border: #0284C7 (Sky Cyan), #4F46E5 (Indigo), or #CBD5E1 (Neutral Hairline).
  • Text Inside Card: Strictly #0F172A (Headings) and #475569 (Body). Never use white or light gray text on light glass cards.

2. Dark Mode Obsidian Glass (Secondary Option)

For aerospace and late-night tech keynotes:

xml
<a:solidFill>
  <a:srgbClr val="152238">
    <a:alpha val="82000"/> <!-- 82% Opacity Obsidian Scrim -->
  </a:srgbClr>
</a:solidFill>
<a:ln w="12700">
  <a:solidFill>
    <a:srgbClr val="00F5D4">
      <a:alpha val="70000"/>
    </a:srgbClr>
  </a:solidFill>
</a:ln>

3. Multi-Tier Glass Card Architecture

+-------------------------------------------------------------+
| PRIMARY FROSTED CARD (width: 5.8", height: 4.8", alpha: 92%)|
|                                                             |
|   [ STATUS PILL: alpha 95%, bg: #0284C7, text: white ]      |
|   KHẢO SÁT THỰC TẾ // BƯỚC 01                               |
|                                                             |
|   Title: NHẬN THỨC VÀ HÀNH VI SINH VIÊN                     |
|   Subtitle: Dữ liệu phân loại rác thải tại HUTECH 2026      |
|                                                             |
|   +-------------------------------------------------------+ |
|   | NESTED METRIC CARD (white alpha: 80%, height: 1.2")   | |
|   | Tỷ lệ nhận thức: 97.7%  | Muốn giải quyết: 100%       | |
|   +-------------------------------------------------------+ |
+-------------------------------------------------------------+

Python Implementation

python
from scripts.motion_graph_kit import MotionDeck

deck = MotionDeck()
slide = deck.add_slide(transition="none")
deck.add_glass_card(
    slide,
    left=6.6,
    top=1.3,
    width=5.8,
    height=4.8,
    name="!!hero_glass",
    bg_hex="FFFFFF",
    alpha="92000",
    border_hex="0284C7",
    border_alpha="55000",
    border_width_pt=1.25,
    corner_radius=6000
)
같은 저장소의 Skills

더 많은 Skills

모든 Skills