preview
Docs
Blog
Products
Resources
Search
Get Started
Home
Components
Hooks
Apps
MCP Server
Guides
Home
Overview
Introduction
Quick Start
Getting Started
Installation
Tooling Setup
VS Code Extensions
Figma UI Kit
CLI
gluestack-ui-nativewind-utils
Core Concepts
Accessibility
Universal
Performance
Benchmarks
Theme Configuration
Default Tokens
Customizing Theme
Dark Mode
Components
All Components
Typography
Heading
rsc
Text
rsc
Layout
Box
rsc
Center
rsc
Divider
HStack
rsc
VStack
rsc
Grid
alpha, rsc
Feedback
Alert
Progress
Spinner
Toast
Data Display
Badge
Card
rsc
Table
alpha
Forms
Button
Checkbox
FormControl
Input
Link
Pressable
Radio
Select
Slider
Switch
Textarea
Overlay
AlertDialog
Drawer
Menu
Modal
Popover
Portal
Tooltip
Disclosure
Actionsheet
Accordion
BottomSheet
alpha
Media And Icons
Avatar
Image
Icon
rsc
Others
Fab
Skeleton
alpha, rsc
Hooks
useBreakPointValue
useMediaQuery
Apps
Dashboard App
Kitchensink App
Todo App
Starter Kit
MCP Server
MCP Server
Guides
Recipes
LinearGradient
Tutorials
Building Ecommerce App
More
Upgrade to v2
Upgrade to v3
FAQs
Releases
Roadmap
Troubleshooting
Discord FAQs
Default Tokens
gluestack-ui v3 ships with default tokens, including colored tokens that provide access to theme values and flexibility to build and customize your own themed UI components.
Theming in
@gluestack-ui v3
is based on the
Styled System Theme Specification
.
Colors
We recommend adding a palette that ranges from 50 to 900. Tools like
JSON Color Palette Generator
,
Smart Swatch
or
Palx
are available to generate these palettes.
Below are the default color palette tokens provided in the gluestack-ui default config.
foreground
0
r
1
g
2
b
3
(
4
v
5
a
6
r
7
(
8
-
9
-
10
f
11
o
12
r
13
e
14
g
15
r
16
o
17
u
18
n
19
d
20
)
21
/
22
<
23
a
24
l
25
p
26
h
27
a
28
-
29
v
30
a
31
l
32
u
33
e
34
>
35
)
card
DEFAULT
#171717
foreground
rgb(var(--card-foreground) / <alpha-value>)
popover
DEFAULT
#171717
foreground
#fafafa
muted
DEFAULT
#262626
foreground
#a1a1a1
destructive
DEFAULT
#ff6467
border
0
r
1
g
2
b
3
(
4
v
5
a
6
r
7
(
8
-
9
-
10
b
11
o
12
r
13
d
14
e
15
r
16
)
17
/
18
<
19
a
20
l
21
p
22
h
23
a
24
-
25
v
26
a
27
l
28
u
29
e
30
>
31
)
input
0
r
1
g
2
b
3
(
4
v
5
a
6
r
7
(
8
-
9
-
10
i
11
n
12
p
13
u
14
t
15
)
16
/
17
<
18
a
19
l
20
p
21
h
22
a
23
-
24
v
25
a
26
l
27
u
28
e
29
>
30
)
ring
0
r
1
g
2
b
3
(
4
v
5
a
6
r
7
(
8
-
9
-
10
r
11
i
12
n
13
g
14
)
15
16
/
17
18
<
19
a
20
l
21
p
22
h
23
a
24
-
25
v
26
a
27
l
28
u
29
e
30
>
31
)
white
0
r
1
g
2
b
3
(
4
2
5
5
6
5
7
8
2
9
5
10
5
11
12
2
13
5
14
5
15
)
chart
1
rgb(var(--chart-1) / <alpha-value>)
2
rgb(var(--chart-2) / <alpha-value>)
3
rgb(var(--chart-3) / <alpha-value>)
4
rgb(var(--chart-4) / <alpha-value>)
5
rgb(var(--chart-5) / <alpha-value>)
sidebar
DEFAULT
rgb(var(--sidebar) / <alpha-value>)
foreground
rgb(var(--sidebar-foreground) / <alpha-value>)
primary
rgb(var(--sidebar-primary) / <alpha-value>)
primary-foreground
rgb(var(--sidebar-primary-foreground) / <alpha-value>)
accent
rgb(var(--sidebar-accent) / <alpha-value>)
accent-foreground
rgb(var(--sidebar-accent-foreground) / <alpha-value>)
border
rgb(var(--sidebar-border))
ring
rgb(var(--sidebar-ring) / <alpha-value>)
primary
DEFAULT
#fff5f5
foreground
#171717
secondary
DEFAULT
#262626
foreground
#fafafa
typography
white
#FFFFFF
gray
#D4D4D4
black
#181718
background
DEFAULT
#0a0a0a
accent
DEFAULT
#262626
foreground
#fafafa
To add custom color or update token. Please refer
tailwind CSS documentation
.
Typography
To manage Typography options, update
theme
in
tailwind.config.js
.
To add or update
Font Family
. Please refer
Tailwind CSS documentation
. We have also added a new family, '
roboto
', in our
tailwind.config.js
.
To add or update
font sizes
, please refer to the
Tailwind CSS documentation
. We have added a new size, '
2xs
', in
tailwind.config.js
with a value of '
10px
'.
Text of fontSize (2xs)
To add or update
font weights
, please refer to the
Tailwind CSS documentation
. We have added a new weight, '
extrablack
', in
tailwind.config.js
with a value of '
950
'.
Text of fontWeight (extrablack)
To add or update
line heights
. Please refer
Tailwind CSS documentation
.
To add or update
letter spacing
. Please refer
Tailwind CSS documentation
.
Breakpoints
gluestack-ui
comes with default Tailwind CSS
breakpoints
. Please refer
this
link for customization.
Spacing
gluestack-ui
comes with default Tailwind CSS
spacing
. Please refer
this
link for customization.
Radius
gluestack-ui
comes with default Tailwind CSS
border-radius
. Please refer
this
link for customization.
Shadows
gluestack-ui
comes with default Tailwind CSS Shadows and we provide two more types of shadows.
Hard Shadows
1
2
3
4
5
Soft Shadows
1
2
3
4
Please refer
this
link for customization.
Edit this page on GitHub
Go back
Benchmarks
Up next
Customizing Theme
Go back
Benchmarks
Up next
Customizing Theme