Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

theming

/theming

Stosuje schemat kolorów, tryb ciemny i tokeny motywu w React Native, zastępując kolory wpisane na sztywno.

Licencja
MIT
Ostatnia zmiana repozytorium
29.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 29.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Stosuje schemat kolorów, tryb ciemny i tokeny motywu w React Native, zastępując kolory wpisane na sztywno.

Oryginalny opis (EN)

Apply colour scheme, dark mode, and theme tokens in React Native. Use when adding a theme, supporting dark mode, or replacing hardcoded colours.

Jak działa

  1. Applicability
  2. When to Use
  3. Severity
  4. Guidance
  5. Anti-Patterns
  6. Pitfalls
Sekcje z nagłówków SKILL.md, w oryginale · 63 linii, 344 słów
Podgląd SKILL.md
---
name: theming
description: Apply colour scheme, dark mode, and theme tokens in React Native. Use when adding a theme, supporting dark mode, or replacing hardcoded colours.
version: 1.1.0
platforms: [ios, android]
react-native-version: 0.76+
tags: [react-native, theming, dark-mode]
---

# Theming Skill

## Applicability

- **Platforms:** iOS and Android
- **React Native:** 0.76+ (New Architecture interop assumed unless a checklist item says otherwise)

## When to Use

- Adding light and dark appearance, or an in-app theme choice
- Replacing hardcoded colours in a screen or component
- Checking contrast, status bar, and images against the active scheme

Contrast and dynamic type also belong to [accessibility](../accessibility/SKILL.md). User-facing theme names belong to [i18n-and-localization](../i18n-and-localization/SKILL.md).

## Severity

Findings from this skill are should-fix.

## Guidance

### Tokens

- [ ] Components take colours from theme tokens, not from hex values in the component file
- [ ] The same token names exist for every supported scheme
- [ ] An in-app choice (system, light, dark) is persisted and applied on the next cold start

**Incorrect:**
```tsx
<Text style={{ color: '#111' }}>Total</Text>
```

**Correct:**
```tsx
const colors = useThemeColors();
<Text style={{ color: colors.textPrimary }}>Total</Text>
```

### System appearance

- [ ] When the user has not chosen a scheme, the app follows the system colour scheme and updates if the system changes while the app is open
- [ ] The status bar and navigation chrome stay readable on both schemes
- [ ] Images and icons that assume a light background have a dark-scheme variant, or are simple enough to sit on either

### Contrast

Safe-area insets are owned by [architecture](../architecture/SKILL.md). Colour-only state is owned by [accessibility](../accessibility/SKILL.md).

- [ ] Text and icons on the themed background stay readable in both schemes (see [accessibility](../accessibility/SKILL.md))

## Anti-Patterns

| Anti-Pattern | Risk | Fix |
|---|---|---|
| Reading the colour scheme once at launch | The UI stays light after the user switches the system to dark | Subscribe to scheme changes |
| A second palette inside one feature | Dark mode fixes miss that feature | Use the shared tokens |

## Pitfalls

- A snapshot test locked to one scheme will not catch a dark-mode contrast failure.
- Native screens and webviews do not inherit JS theme tokens unless they are given the same colours.

Wersje

RepozytoriumWynikLicencja
Ta strona · neha/rn-developer-skills100MIT
nimadorostkar/Claude-Skills-collection100MIT
pierrecomputer/pierre95Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki bac63add6271 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100dark-mode-theming-stinger
    Audytuje i wdraża ciemny motyw w React i Next.js: tokeny CSS, next-themes, zapobieganie miganiu motywu, hydratacja SSR, Tailwind v4 i motywy wielu marek.
  • 95frontend-theming
    Wdraża tryb ciemny i jasny oraz system motywów na zmiennych CSS, tokenach projektowych i przełączniku motywu.
  • 100tailwind-theme-builder
    Konfiguruje interfejs Tailwind v4 z shadcn/ui i dark mode: instalacja zależności, zmienne CSS przez @theme inline, przełącznik motywu oraz naprawa błędów kolorów i migracji z v3.
  • 90dark-mode-implementation
    Wdraża tryb ciemny: wykrywanie prefers-color-scheme, trwałość motywu, zapobieganie migotaniu, lustrzane tokeny kolorów, warianty obrazów i aktualizacja meta theme-color.
  • 90material-ui-theming
    Pomaga budować motyw Material UI: createTheme, ThemeProvider, paletę, tryb ciemny i spójne tokeny w całej aplikacji.
  • 100verify-theming
    Sprawdza i automatycznie poprawia motyw pliku Angular: kolory wpisane na sztywno zamienia na tokeny projektu biblioteki.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.