Toolverse
All skills

universal-theme

by EvanBacon

Configure light/dark/system theme handling across iOS, Android, and Web with universal CSS

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
EvanBacon
Category
Mobile

About this skill

Configure light/dark/system theme handling across iOS, Android, and Web with universal CSS

How to use

  1. Zainstaluj umiejętność w swoim projekcie Expo, dodając katalog universal-theme do folderu .claude/skills w repozytorium.
  2. Skonfiguruj plik CSS (np. src/css/sf.css), ustawiając color-scheme: light dark na elemencie html w warstwie @layer base — to włączy automatyczne przełączanie na podstawie preferencji systemu.
  3. Dodaj reguły CSS dla klas .light i .dark na elemencie html, aby wymusić konkretny motyw: html.light { color-scheme: light; } i html.dark { color-scheme: dark; }.
  4. Wykorzystaj funkcję CSS light-dark() do definiowania zmiennych CSS, które automatycznie przełączają kolory w zależności od rozpoznanego schematu kolorów.
  5. Wdrażaj ThemeContextProvider w aplikacji React, aby zarządzać stanem motywu i synchronizować preferencje między platformami — kontekst będzie obsługiwać localStorage do persystencji i React Native Appearance API na urządzeniach natywnych.
  6. Dodaj ThemeScript jako inline skrypt w head dokumentu HTML, aby zapobiec błyskom nieprawidłowego motywu (FOUC) podczas ładowania strony — skrypt powinien ustawić odpowiednią klasę na html przed renderowaniem treści.

Related skills

senior-architect

by alirezarezvani

Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flutter, Postgres, GraphQL, Go, Python. Includes architecture diagram generation, system design patterns, tech stack

Mobile
184296

unreal-engine-cpp-pro

by sickn33

Expert guide for Unreal Engine 5.x C++ development, covering UObject hygiene, performance patterns, and best practices.

Mobile
2582

sequential-thinking

by mrgoonie

Use when complex problems require systematic step-by-step reasoning with ability to revise thoughts, branch into alternative approaches, or dynamically adjust scope. Ideal for multi-stage analysis, design planning, problem decomposition, or tasks with initially unclear scope.

Mobile
60238

react-native-design

by wshobson

Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.

Mobile
1964

openscad

by mitsuhiko

Create and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing platforms like MakerWorld.

Mobile
4291

mobile-design

by sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or

Mobile
6091