gluestack-ui-v4:styling

Standardizes Gluentack UI v4 component styling with semantic tokens and TVA patterns.

1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/gluestack/agent-skills --skill gluestack-ui-v4-styling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gluestack-ui-v4:styling
Source: https://github.com/gluestack/agent-skills/tree/main/.agents/skills/gluestack-ui-v4/styling
Command: npx skills add https://github.com/gluestack/agent-skills --skill gluestack-ui-v4-styling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a centralized guide for consistent Gluestack UI v4 styling, ensuring semantic tokens, spacing, dark mode, TVA-based variants, and className merging are applied uniformly across components.

Core Features & Use Cases

  • Semantic token guidance: Standardizes token usage (colors, backgrounds, borders) to avoid raw values.
  • ** TVA-based styling**: Demonstrates how to define and apply variants with TVA for scalable theming.
  • Dark mode & CSS variables: Shows best practices for dark mode using CSS variables and data attributes.
  • Spacing & layout patterns: Encourages adherence to a standard spacing scale and layout utilities.
  • ClassName merging best practices: Provides patterns for merging custom classNames without inline styles.
  • Use Case: A UI library team standardizes component themes across an app by following the provided tokens, TVA definitions, and layout examples.

Quick Start

Refer to the styling guide to start applying semantic tokens, TVA variants, and dark mode patterns in your Gluestack UI v4 components.

Frequently Asked Questions about gluestack-ui-v4:styling

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

FAQPage Schema
How do I apply consistent styling and semantic tokens in Gluestack UI v4?

To apply consistent styling in Gluestack UI v4, use semantic tokens for colors, backgrounds, and borders instead of raw values. This standardizes component themes and ensures visual uniformity across your application.

How do I define and apply component variants using TVA in Gluestack UI?

Defining component variants with TVA involves configuring variant definitions to enable scalable theming. This approach centralizes variant management, allowing you to apply consistent style states across components.

What is the best way to implement dark mode with CSS variables in Gluestack v4?

The best way to implement dark mode in Gluestack v4 is by utilizing CSS variables alongside data attributes. This method maintains semantic token integrity while toggling themes cleanly without inline styles.

How do I merge custom classNames without using inline styles in Gluestack UI?

You can merge custom classNames in Gluestack UI by following documented className merging patterns. This approach overrides component styles safely without resorting to inline styles, maintaining TVA structure.

When should I use TVA-based styling patterns for my React Native UI components?

You should use TVA-based styling patterns when you need scalable theming and variant management across multiple components. It enforces a standard spacing scale and prevents inconsistent layout utilities.