Colors
primary
secondary
tertiary
rose
pink
fuchsia
purple
violet
indigo
blue
lightBlue
darkBlue
cyan
teal
emerald
green
lime
yellow
amber
orange
red
warmGray
trueGray
coolGray
blueGray
error
success
warning
info
light
textLight
textDark
borderDark
borderLight
backgroundDark
backgroundLight
backgroundLight100
#F1F1F1
backgroundLight200
#DBDBDB
backgroundLight300
#D4D4D4
backgroundLight400
#A3A3A3
backgroundLight500
#8C8C8C
backgroundLight600
#737373
backgroundLight700
#525252
backgroundLight800
#404040
backgroundLight900
#262626
backgroundLight950
#171717
others
backgroundLightError
#FEF1F1
backgroundDarkError
#422B2B
backgroundLightWarning
#FFF4EB
backgroundDarkWarning
#412F23
backgroundLightSuccess
#EDFCF2
backgroundDarkSuccess
#1C2B21
backgroundLightInfo
#EBF8FE
backgroundDarkInfo
#1A282E
backgroundLightMuted
#F6F6F7
backgroundDarkMuted
#252526
Typography
To manage Typography options, the tokens object supports the following keys:
import 'package:gluestack_ui/gluestack_ui.dart';
gluestackTokenConfig: GluestackTokenConfig(
gsFontSizeToken: const GSFontSizeToken(
gsLetterSpacingToken: const GSLetterSpacingToken(
gsFontWeightsToken: const GSFontWeightsToken(),
Space
$GSSpace
The space key allows you to customize the global spacing and sizing scale for your project. By default these spacing value can be referenced by the padding, margin, and top, left, right, bottom. You can refer to
this to see the aliases for the spacing properties.
Tokens
Value (Pixels)
Representation
Borders
$GSBorderWidth
$gsBorderWidthToken tokens are used to define the border width of an element. You can define your border width tokens or override existing ones using the gsBorderWidthToken inside GluestackTokenConfig class.
$GSRadii
$gsRadiiToken tokens are used to define the border radius of an element. You can define your radii tokens or override existing ones using the gsRadiiToken inside GluestackTokenConfig class.