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

retro-css-architecture

/retro-css-architecture

Porządkuje CSS w stylu 8-bit przez zmienne CSS, fonty pikselowe i responsywną pikselową grafikę przy tworzeniu lub zmianie komponentów retro.

Repozytorium
8bitcn-ui ↗
Licencja
MIT
Ostatnia zmiana repozytorium
23.10.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
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.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

Porządkuje CSS w stylu 8-bit przez zmienne CSS, fonty pikselowe i responsywną pikselową grafikę przy tworzeniu lub zmianie komponentów retro.

Oryginalny opis (EN)

Organize 8-bit CSS with custom properties, pixel fonts, and responsive pixel art. Apply when creating or modifying retro-styled components and their CSS.

Jak działa

  1. Retro CSS Architecture
Sekcje z nagłówków SKILL.md, w oryginale · 123 linii, 328 słów
Podgląd SKILL.md
---
name: retro-css-architecture
description: Organize 8-bit CSS with custom properties, pixel fonts, and responsive pixel art. Apply when creating or modifying retro-styled components and their CSS.
---

## Retro CSS Architecture

Organize CSS for 8-bit components using custom properties, pixel fonts, and responsive patterns.

### Required Import

All 8-bit components must import the retro stylesheet:

```tsx
import "@/components/ui/8bit/styles/retro.css";
```

### Pixel Font

Use "Press Start 2P" for authentic 8-bit typography:

```css
.retro {
  font-family: "Press Start 2P", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
```

Apply via class or font variant:

```tsx
<Button className="retro">START GAME</Button>

// or via font prop
<Button font="retro">START GAME</Button>
```

### Pixelated Images

For sharp pixel art images:

```css
.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
```

```tsx
<Image src="/pixel-art.png" className="pixelated" />
```

### Dark Mode Colors

Use semantic color names with dark mode variants:

```tsx
<div className="border-foreground dark:border-ring" />
<div className="bg-foreground dark:bg-ring" />
```

### Responsive Pixel Sizes

Use consistent pixel values for retro feel:

```tsx
{/* Standard pixel sizes */}
<div className="size-1.5" />      {/* Corner pixels */}
<div className="h-1.5 w-3" />     {/* Shadow segments */}
<div className="border-y-6" />     {/* Card borders */}

{/* Mobile considerations */}
<div className="h-[5px] md:h-1.5" />
```

### CSS Organization

Keep retro-specific styles in `components/ui/8bit/styles/retro.css`:

```css
/* Import pixel font */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

/* Font class */
.retro {
  font-family: "Press Start 2P", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* Image handling */
.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
```

### Component-Level CSS

Use Tailwind utilities for component-specific styling:

```tsx
<div
  className={cn(
    "relative border-y-6 border-foreground dark:border-ring",
    "rounded-none active:translate-y-1 transition-transform",
    className
  )}
/>
```

### Key Principles

1. **Import retro.css** - Required for all 8-bit components
2. **Pixel font** - Use "Press Start 2P" for authentic look
3. **Pixelated images** - Apply `image-rendering: pixelated` to sprites
4. **Consistent sizing** - Use fixed pixel values (1.5, 3, 6px)
5. **Dark mode** - Use semantic colors with `dark:` prefix
6. **rounded-none** - Remove all border radius for retro feel
7. **Tailwind first** - Use utilities before custom CSS

### Reference Files

- `components/ui/8bit/styles/retro.css` - Global retro styles
- `components/ui/8bit/button.tsx` - CSS class usage example

Wersje

W bazie nie ma innych skilli o nazwie retro-css-architecture.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

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

Pobrania w ostatnich 30 dniach: 4 · ranking

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

Podobne skille

  • 1008-bit-pixel-art-patterns
    Tworzy pikselowe ramki, cienie i efekty dla komponentów interfejsu w stylu retro 8-bit.
  • 100animation-performance-retro
    Optymalizuje animacje w stylu 8-bit pod kątem płynności w pikselartowych animacjach, efektach interfejsu gier i innych retro animacjach.
  • 95pixel-studio
    Tworzy retro animacje wideo w stylu pixel art, takie jak sceny 8-bit, postacie i wyjaśniacze, jako kod w silniku Pixel Studio.
  • 87pixel-art-studio
    Tworzy grafikę pikselową i animacje programowo: sprite'y, arkusze sprite'ów, pikselowanie obrazów i postaci w stylu retro.
  • 90pixel-art
    Generuje i naprawia pixel art w Retro Diffusion: sprite'y, tilesety, animacje i zasoby do gier retro oraz przywraca grafikę do natywnej siatki.
  • 100styled-components-emotion
    Porządkuje style komponentów w styled-components lub Emotion, z dynamicznymi motywami i abstrakcjami CSS-in-JS.

Uwagi i zgłoszenia

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