gluestack-ui-v5:styling

Enforces semantic token styling patterns for gluestack-ui v5 with Tailwind v4.

Updated Sep 13, 2026
One-click install
npx skills add https://github.com/aadilmallick/myfitness-pal-clone --skill gluestack-ui-v5-styling-aadilmallick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gluestack-ui-v5:styling
Source: https://github.com/aadilmallick/myfitness-pal-clone/tree/main/.agents/skills/gluestack-ui-v5/styling
Command: npx skills add https://github.com/aadilmallick/myfitness-pal-clone --skill gluestack-ui-v5-styling-aadilmallick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Styling React Native apps with gluestack-ui v5 often leads to inconsistent colors, broken dark mode, and maintenance debt when developers use raw hex values, numbered Tailwind colors, or inline styles instead of semantic design tokens. ## Core Features & Use Cases - Semantic Token Enforcement: Mandates v5 semantic tokens (bg-background, text-foreground, text-destructive) and prohibits typography-, neutral-, gray-*, and numbered color tokens. - Dark Mode Guidance: Covers NativeWind v5 and UniWind theme switching with CSS-first @theme inline configuration in global.css. - Variant Styling with tva: Provides patterns for Tailwind Variant Authority, parent variants, className merging, and withStyleContext for component libraries. - Use Case: When building a card component in an Expo app, use this Skill to ensure every color, spacing value, and state style (hover, active, disabled) follows the design system and works in both light and dark themes. ## Quick Start Ask the assistant to style a React Native component using gluestack-ui v5 semantic tokens and verify it contains no raw colors or inline styles.

Frequently Asked Questions about gluestack-ui-v5:styling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use semantic color tokens in gluestack-ui v5?

Use semantic tokens like bg-background, text-foreground, text-muted-foreground, and text-destructive instead of raw colors. In v5 these tokens are defined as CSS custom properties in global.css via @layer theme and mapped to Tailwind utilities through @theme inline.

How to implement dark mode with NativeWind v5 or UniWind?

Both engines use the same semantic token names mapped through @theme inline, so className code never changes. NativeWind v5 switches themes via Appearance.setColorScheme(), while UniWind uses Uniwind.setTheme() with :where(.dark) selectors.

Why are typography-* and gray-* tokens prohibited in gluestack v5?

Generic tokens like typography-900 or gray-500 break dark mode adaptation and fail to express design intent. Semantic tokens such as text-foreground and text-muted-foreground adapt automatically to theme changes and ensure consistent contrast.

When are inline styles acceptable in gluestack-ui v5?

Inline styles are acceptable only for dynamic runtime values like animation values or safe area insets, third-party components without className support, and platform-specific overrides via Platform.select. All static styling should use className utilities.

How do I create component variants with tva in gluestack-ui?

Import tva from @gluestack-ui/utils/nativewind-utils and define base classes plus variant and size options. Use the class parameter for className merging and parentVariants with withStyleContext for parent-child style inheritance.