Modern Css Native Expert logo

Modern Css Native Expert

Community
roedyrustam
modern-css-native-expert

Native CSS 2026: Anchor Positioning, View Transitions 2, @starting-style / Fitur CSS native: Anchor Positioning, View Transitions 2.

Overview

Publisherroedyrustam
Repositoryvibes-plug
Skill namemodern-css-native-expert
Stars
117
Forks
27
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by roedyrustam on GitHub. Read the source before you install it.

Installation

Install the Modern Css Native Expert AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/roedyrustam/vibes-plug/tree/main/skills/modern-css-native-expert
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/roedyrustam/vibes-plug.git /tmp/vibes-plug
mkdir -p .claude/skills
cp -r /tmp/vibes-plug/skills/modern-css-native-expert .claude/skills/modern-css-native-expert
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Modern Css Native Expert in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Modern Css Native Expert on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Modern Css Native Expert is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Modern Native CSS Expert (2026 Standard & Primitives)

English | Bahasa Indonesia


English

Orchestration & Integration

Integrates tightly with the following domain skills:

  • modern-web-guidance: Primary companion tool to look up standardized native CSS best practices (npx -y modern-web-guidance@latest search "<query>").
  • design-system-architect: Supplies headless token definitions and surface container hierarchies.
  • tailwind-expert: Bridges native CSS primitives with Tailwind v4 @theme and dynamic utility classes.
  • visual-ui-auditor: Validates smooth top-layer transitions, focus rings, and layout stability.
  • anti-slop: Eliminates unnecessary JS polyfills and div-soup wrappers.
  • senior-frontend: Integrates native CSS features into React 19 / Next.js 15 architectures.

Purpose & Overview

Production-grade engineering guide for modern Native CSS features (2026 Edition) that replace cumbersome JavaScript libraries with pure browser-native primitives. Covers the CSS Anchor Positioning API for tooltips/popovers, @starting-style for smooth entry/exit animations on top-layer elements (<dialog>, popover), View Transitions API Level 2, Container Queries (@container), and the :has() relational selector.

Key Capabilities

  1. CSS Anchor Positioning: Eliminating Floating UI / Popper.js dependencies. Tether tooltips, menus, and popovers to trigger elements natively with auto-flip fallbacks (position-try-fallbacks).
  2. Smooth Top-Layer Transitions: Animating <dialog> and [popover] elements from display: none to visible with @starting-style and transition-behavior: allow-discrete.
  3. Container Queries (@container): Component-level responsive design based on parent container dimensions rather than viewport width.
  4. Relational :has() Selector: Styling parent containers or sibling trees based on nested child states without React/JS state overhead.
  5. Native CSS Nesting & @layer: Structuring clean, zero-build styles with cascade priority layers.

Production Implementation Recipes

Recipe 1: Pure Native Anchor Positioning for Tooltips & Dropdowns (No JS)
css
/* Define the anchor trigger button */
.anchor-trigger {
  anchor-name: --my-dropdown-anchor;
}

/* Tether the popover menu to the anchor trigger */
.dropdown-menu {
  position: fixed;
  position-anchor: --my-dropdown-anchor;
  
  /* Place below the anchor by default */
  top: anchor(bottom);
  left: anchor(left);
  margin-top: 8px;

  /* Automatic flip to top if screen boundary is reached */
  position-try-fallbacks: flip-block;
}
Recipe 2: Smooth <dialog> Entry/Exit Animation with @starting-style
css
/* Dialog element with discrete transition support */
dialog {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, display 0.25s allow-discrete;
}

/* Open state */
dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Starting style when transitioning from display: none to open */
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

/* Backdrop smooth fade */
dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition: background-color 0.25s ease-out, display 0.25s allow-discrete;
}

dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 50%);
}

@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}

Recipe 5: Material Design 3 (M3) Top-Layer Overlays with Emphasized Decelerate Easing

Implement M3 dialogs and modal bottom sheets natively using <dialog> and @starting-style with M3 Emphasized Decelerate Easing (cubic-bezier(0.05, 0.7, 0.1, 1.0)):

css
/* M3 Modal Dialog using Native CSS Top-Layer with M3 Tokens */
dialog.m3-dialog {
  border: none;
  border-radius: var(--md-sys-shape-corner-extra-large, 28px);
  background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
  color: var(--md-sys-color-on-surface, #1D1B20);
  box-shadow: var(--md-sys-elevation-level3, 0 4px 12px rgba(0, 0, 0, 0.18));
  padding: 24px;
  max-width: 560px;
  opacity: 0;
  transform: scale(0.9) translateY(16px);
  transition: 
    opacity 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0),
    transform 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0),
    display 0.4s allow-discrete;
}

dialog.m3-dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog.m3-dialog[open] {
    opacity: 0;
    transform: scale(0.9) translateY(16px);
  }
}

dialog.m3-dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition: background-color 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0), display 0.4s allow-discrete;
}

dialog.m3-dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 32%); /* M3 Scrim */
}

Implementation Checklist

  • Replace JS positioning libraries (Popper, Floating UI) with native anchor-name and position-anchor.
  • Use @starting-style and transition-behavior: allow-discrete for animating modals and popovers without JavaScript timers.
  • Use @container on modular components to allow seamless reuse across sidebars, grids, and modals.
  • Organize design tokens and reset styles into @layer (e.g. @layer base, components, utilities;).

Orchestration & Integration

  • Integrates with: design-system-architect, design-system-architect, senior-frontend, tailwind-expert, senior-frontend.

Sovereign Execution, Token Efficiency & Invariants

DimensionSovereign Mandate & Deterministic Contract
Frontier Model CascadeMedium / High (Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast)
Availability FallbackGemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors)
KV-Cache & Token ProtocolPin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out
SaaT CLI & MCP DispatchCLI: vibes skill exec modern-css-native-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate
NFR & Anti-Slop InvariantsLCP < 1.8s, INP < 100ms, CLS < 0.05, 1px crisp borders, 3-tier radius (6px/8px/12px), tabular-nums, 5-state interactive contract; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict


Bahasa Indonesia

Tujuan & Gambaran Umum

Panduan rekayasa tingkat produksi untuk memanfaatkan Fitur CSS Native Modern (Standar 2026) yang menggantikan pustaka JavaScript berukuran besar dengan fitur asli browser. Mencakup CSS Anchor Positioning API untuk tooltip dan popover, @starting-style untuk animasi masuk dan keluar yang mulus pada elemen top-layer (<dialog>, popover), View Transitions API Level 2, Container Queries (@container), dan selektor relasional :has().

Kemampuan Utama

  1. CSS Anchor Positioning: Menghapus ketergantungan pada pustaka seperti Floating UI atau Popper.js. Mengikat tooltip, menu, dan popover ke tombol pemicu secara native dengan pembalikan posisi otomatis (position-try-fallbacks).
  2. Animasi Mulus Top-Layer: Menganimasikan dialog dari status display: none ke tampil menggunakan @starting-style dan transition-behavior: allow-discrete.
  3. Container Queries (@container): Desain responsif berbasis ukuran kontainer induk, bukan lebar layar viewport.
  4. Selektor Relasional :has(): Menata gaya elemen induk berdasarkan status elemen anak di dalamnya tanpa membutuhkan state JavaScript.
  5. Nesting Native & @layer: Mengatur hierarki gaya CSS tanpa alat build dan mengontrol urutan spesifisitas secara terstruktur.

Resep Implementasi Produksi

Resep 1: Anchor Positioning Murni untuk Menu Dropdown (Tanpa JavaScript)
css
/* Definisikan tombol pemicu sebagai jangkar (anchor) */
.tombol-pemicu {
  anchor-name: --jangkar-menu;
}

/* Hubungkan menu popover ke tombol pemicu */
.menu-dropdown {
  position: fixed;
  position-anchor: --jangkar-menu;
  
  /* Posisikan di bawah tombol pemicu */
  top: anchor(bottom);
  left: anchor(left);
  margin-top: 8px;

  /* Balik posisi ke atas jika terpotong batas layar */
  position-try-fallbacks: flip-block;
}
Resep 2: Animasi Modal <dialog> dengan @starting-style
css
dialog {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, display 0.25s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition: background-color 0.25s ease-out, display 0.25s allow-discrete;
}

dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 50%);
}

@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}

Checklist Implementasi

  • Ganti library positioning pihak ketiga dengan CSS anchor-name dan position-anchor.
  • Gunakan @starting-style dan transition-behavior: allow-discrete untuk animasi modal tanpa jeda JavaScript.
  • Gunakan @container pada komponen reusable agar adaptif di semua layout.
  • Tata arsitektur CSS menggunakan @layer base, components, utilities;.
Resep 5: Overlay Top-Layer Material Design 3 (M3) dengan Easing Emphasized

Implementasikan dialog M3 dan modal bottom sheet secara native menggunakan <dialog> dan @starting-style dengan kurva Emphasized Decelerate M3 (cubic-bezier(0.05, 0.7, 0.1, 1.0)):

  • Hubungkan token bentuk M3 (--md-sys-shape-corner-extra-large: 28px) dan surface container (--md-sys-color-surface-container-high).
  • Backdrop scrim M3 transparan bertransisi halus ke opasitas 32% hitam (rgb(0 0 0 / 32%)).

Integrasi Orkestrasi

Terintegrasi erat dengan skill berikut:

  • modern-web-guidance: Tool pendamping utama untuk menelusuri standar terbaik CSS native modern (npx -y modern-web-guidance@latest search "<query>").
  • design-system-architect: Menyuplai definisi token headless dan hierarki kontainer permukaan.
  • tailwind-expert: Menjembatani primitif CSS native dengan direktif @theme dan utilitas dinamis Tailwind v4.
  • visual-ui-auditor: Memvalidasi transisi top-layer yang halus, indikator fokus, dan stabilitas tata letak.
  • anti-slop: Menghilangkan polyfill JavaScript yang tidak diperlukan dan pembungkus div-soup.
  • senior-frontend: Mengintegrasikan fitur CSS native ke dalam arsitektur React 19 / Next.js 15.

Matriks Eksekusi Berdaulat, Efisiensi Token & Invarian

DimensiMandat Berdaulat & Kontrak Deterministik
Kaskade Model FrontierMedium / High (Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast)
Invarian Fallback KetersediaanGemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Bebas gagal saat model belum tersedia/kuota penuh)
Protokol Hemat Token & KV-CacheKunci instruksi & skema statis di prefix awal (kv-cache-prefix-optimizer); kirim potongan CONTEXT_MAP.md (<250 token/panggilan) saat Fan-Out
Eksekusi SaaT CLI & MCPCLI: vibes skill exec modern-css-native-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate
Invarian NFR & Anti-SlopLCP < 1.8s, INP < 100ms, CLS < 0.05, border tegas 1px, radius 3-tier (6px/8px/12px), tabular-nums, kontrak interaktif 5-state; kode 100% tuntas tanpa placeholder diverifikasi melalui node scripts/check-anti-slop.js --strict

Frequently asked questions

What does the Modern Css Native Expert AI skill do?

Native CSS 2026: Anchor Positioning, View Transitions 2, @starting-style / Fitur CSS native: Anchor Positioning, View Transitions 2.

Why use Modern Css Native Expert on TypingMind?

Because you install it once and use it with any model. Modern Css Native Expert is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Modern Css Native Expert in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/roedyrustam/vibes-plug/tree/main/skills/modern-css-native-expert. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Modern Css Native Expert?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Modern Css Native Expert?

As many as you like. As long as a model supports skills, you can use Modern Css Native Expert with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Modern Css Native Expert AI skill free?

Yes. It is published on GitHub by roedyrustam under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇