Skip to Content
🎉 Coral x Panda has been released 🎉 Read the Migration Guide
DocumentationDesignBasic Configuration

Basic Theming

createCoralPreset

createCoralPreset is our main function for loading and modifying the theme. It allows you to load our preset into your application.

As outlined in the Design section, you need to pass the createCoralPreset function in your config, and then you can pass the below fields to customize the theme.

import { defineConfig } from '@pandacss/dev'; import { createCoralPreset } from '@krakentech/coral-design'; export default defineConfig({ presets: [ createCoralPreset({ name: 'my-coral-preset', customGlobalCss: {}, options: {} }), ], ... });

name

The name of the preset. This is only used to identify the preset in the Coral Design system, as it’s a required field in defining presets from Panda. It also helps in labelling presets in case you have multiple presets in your project.

customGlobalCss

createCoralPreset ships with a default global CSS object that contains some styling. If you want to override some or all of the default styles, you can pass a custom global CSS object to this field. This is useful for setting global styles that apply to your entire application.

The default global CSS object is as follows:

{ '*': { boxSizing: 'border-box', }, '#root, #__next': { isolation: 'isolate', }, 'html, body': { padding: 0, margin: 0, }, html: { fontSize: '62.5%', }, body: { fontWeight: 300, fontStyle: 'normal', fontFamily: '{typography.fontFamily}', lineHeight: '1.5', fontSize: '1.6rem', backgroundColor: '{colors.background.base.900}', color: '{colors.contents.base.900}', '-webkit-font-smoothing': 'antialiased', '-moz-osx-font-smoothing': 'grayscale', }, button: { fontFamily: '{typography.fontFamily}', }, a: { color: '{colors.background.tertiary.500}', }, fieldset: { border: 'none', }, 'img, picture, video, canvas, svg': { maxWidth: '100%', }, '[data-floating-ui-portal] > span': { zIndex: 1301, } }

If you want to override this, you would pass a custom global CSS object like this:

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ customGlobalCss: { body: { backgroundColor: 'white', color: 'black', }, } }) ] })

Note: The custom global CSS object will be merged with the default global CSS object, so you only need to specify the styles you want to override. If you want to remove a style, you can set it to undefined or null.

options

The options object allows you to customize the theme.

tokens

This is where you can define the tokens for the theme. Tokens are the design system’s building blocks, such as colors, spacing, typography, etc. All theme configuration is done through tokens, which are then used to generate the final CSS.

animation

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { animation: { easing: [0, 1, 2], durationMs: 1000 } } } }) ] });
NameTypeDefault
easingnumber[]

The easing function used for the animation in the cubiz bezier format (array of numbers).

durationMsnumber

The duration of the animation in milliseconds.

components

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { components: { button: { primary: { contained: { idleColor: 'red' } } } } } } }) ] });
NameTypeDefault
accordion.resting.base500.backgroundstring
accordion.resting.base500.borderstring
accordion.resting.base500.contentsstring
accordion.resting.base900.backgroundstring
accordion.resting.base900.borderstring
accordion.resting.base900.contentsstring
accordion.resting.secondary900.backgroundstring
accordion.resting.secondary900.borderstring
accordion.resting.secondary900.contentsstring
accordion.hover.base500.backgroundstring
accordion.hover.base500.borderstring
accordion.hover.base500.contentsstring
accordion.hover.base900.backgroundstring
accordion.hover.base900.borderstring
accordion.hover.base900.contentsstring
accordion.hover.secondary900.backgroundstring
accordion.hover.secondary900.borderstring
accordion.hover.secondary900.contentsstring
accordion.active.base500.backgroundstring
accordion.active.base500.borderstring
accordion.active.base500.contentsstring
accordion.active.base900.backgroundstring
accordion.active.base900.borderstring
accordion.active.base900.contentsstring
accordion.active.secondary900.backgroundstring
accordion.active.secondary900.borderstring
accordion.active.secondary900.contentsstring
accordion.disabled.backgroundstring
accordion.disabled.borderstring
accordion.disabled.contentsstring
alert.error.base900.colorstring
alert.error.base900.backgroundColorstring
alert.error.base900.borderColorstring
alert.error.semantic.colorstring
alert.error.semantic.backgroundColorstring
alert.error.semantic.borderColorstring
alert.info.base900.colorstring
alert.info.base900.backgroundColorstring
alert.info.base900.borderColorstring
alert.info.semantic.colorstring
alert.info.semantic.backgroundColorstring
alert.info.semantic.borderColorstring
alert.success.base900.colorstring
alert.success.base900.backgroundColorstring
alert.success.base900.borderColorstring
alert.success.semantic.colorstring
alert.success.semantic.backgroundColorstring
alert.success.semantic.borderColorstring
alert.warning.base900.colorstring
alert.warning.base900.backgroundColorstring
alert.warning.base900.borderColorstring
alert.warning.semantic.colorstring
alert.warning.semantic.backgroundColorstring
alert.warning.semantic.borderColorstring
autocomplete.dropdown.borderColorstring
autocomplete.dropdown.secondary500.wrapperBackgroundColorstring
autocomplete.dropdown.secondary500.itemColorstring
autocomplete.dropdown.secondary500.itemHoverBackgroundColorstring
autocomplete.dropdown.secondary500.itemHighlightedBackgroundColorstring
autocomplete.dropdown.secondary500.itemSelectedBackgroundColorstring
autocomplete.dropdown.base100.wrapperBackgroundColorstring
autocomplete.dropdown.base100.itemColorstring
autocomplete.dropdown.base100.itemHoverBackgroundColorstring
autocomplete.dropdown.base100.itemHighlightedBackgroundColorstring
autocomplete.dropdown.base100.itemSelectedBackgroundColorstring
autocomplete.base.button.colorstring
banner.secondary.backgroundstring
banner.secondary.colorstring
banner.tertiary.backgroundstring
banner.tertiary.colorstring
button.primary500.contained.idleColorstring
button.primary500.contained.idleBackgroundColorstring
button.primary500.contained.idleBorderColorstring
button.primary500.contained.hoverColorstring
button.primary500.contained.hoverBackgroundColorstring
button.primary500.contained.hoverBorderColorstring
button.primary500.contained.focusColorstring
button.primary500.contained.focusBackgroundColorstring
button.primary500.contained.focusBorderColorstring
button.primary500.contained.focusOutlineColorstring
button.primary500.contained.disabledColorstring
button.primary500.contained.disabledBackgroundColorstring
button.primary500.contained.disabledBorderColorstring
button.primary500.outlined.idleColorstring
button.primary500.outlined.idleBorderColorstring
button.primary500.outlined.hoverColorstring
button.primary500.outlined.hoverBackgroundColorstring
button.primary500.outlined.hoverBorderColorstring
button.primary500.outlined.focusColorstring
button.primary500.outlined.focusBackgroundColorstring
button.primary500.outlined.focusBorderColorstring
button.primary500.outlined.disabledColorstring
button.primary500.outlined.disabledBackgroundColorstring
button.primary500.outlined.disabledBorderColorstring
button.primary500.ghost.idleColorstring
button.primary500.ghost.hoverColorstring
button.primary500.ghost.hoverBackgroundColorstring
button.primary500.ghost.focusColorstring
button.primary500.ghost.focusBackgroundColorstring
button.primary500.ghost.disabledColorstring
button.primary500.text.idleColorstring
button.primary500.text.hoverColorstring
button.primary500.text.focusColorstring
button.primary500.text.disabledColorstring
button.primary500.link.idleColorstring
button.primary500.link.hoverColorstring
button.primary500.link.focusColorstring
button.primary500.link.focusBorderColorstring
button.primary500.link.disabledColorstring
button.secondary500.contained.idleColorstring
button.secondary500.contained.idleBackgroundColorstring
button.secondary500.contained.idleBorderColorstring
button.secondary500.contained.hoverColorstring
button.secondary500.contained.hoverBackgroundColorstring
button.secondary500.contained.hoverBorderColorstring
button.secondary500.contained.focusColorstring
button.secondary500.contained.focusBackgroundColorstring
button.secondary500.contained.focusBorderColorstring
button.secondary500.contained.focusOutlineColorstring
button.secondary500.contained.disabledColorstring
button.secondary500.contained.disabledBackgroundColorstring
button.secondary500.contained.disabledBorderColorstring
button.secondary500.outlined.idleColorstring
button.secondary500.outlined.idleBorderColorstring
button.secondary500.outlined.hoverColorstring
button.secondary500.outlined.hoverBackgroundColorstring
button.secondary500.outlined.hoverBorderColorstring
button.secondary500.outlined.focusColorstring
button.secondary500.outlined.focusBackgroundColorstring
button.secondary500.outlined.focusBorderColorstring
button.secondary500.outlined.disabledColorstring
button.secondary500.outlined.disabledBackgroundColorstring
button.secondary500.outlined.disabledBorderColorstring
button.secondary500.ghost.idleColorstring
button.secondary500.ghost.disabledColorstring
button.secondary500.ghost.hoverColorstring
button.secondary500.ghost.hoverBackgroundColorstring
button.secondary500.ghost.focusColorstring
button.secondary500.ghost.focusBackgroundColorstring
button.secondary500.text.idleColorstring
button.secondary500.text.hoverColorstring
button.secondary500.text.focusColorstring
button.secondary500.text.disabledColorstring
button.secondary500.link.idleColorstring
button.secondary500.link.hoverColorstring
button.secondary500.link.focusColorstring
button.secondary500.link.focusBorderColorstring
button.secondary500.link.disabledColorstring
button.base100.contained.idleColorstring
button.base100.contained.idleBackgroundColorstring
button.base100.contained.idleBorderColorstring
button.base100.contained.hoverColorstring
button.base100.contained.hoverBackgroundColorstring
button.base100.contained.hoverBorderColorstring
button.base100.contained.focusColorstring
button.base100.contained.focusBackgroundColorstring
button.base100.contained.focusBorderColorstring
button.base100.contained.focusOutlineColorstring
button.base100.contained.disabledColorstring
button.base100.contained.disabledBackgroundColorstring
button.base100.contained.disabledBorderColorstring
button.base100.outlined.idleColorstring
button.base100.outlined.idleBorderColorstring
button.base100.outlined.hoverColorstring
button.base100.outlined.hoverBackgroundColorstring
button.base100.outlined.hoverBorderColorstring
button.base100.outlined.focusColorstring
button.base100.outlined.focusBackgroundColorstring
button.base100.outlined.focusBorderColorstring
button.base100.outlined.disabledColorstring
button.base100.outlined.disabledBackgroundColorstring
button.base100.outlined.disabledBorderColorstring
button.base100.ghost.idleColorstring
button.base100.ghost.hoverColorstring
button.base100.ghost.hoverBackgroundColorstring
button.base100.ghost.focusColorstring
button.base100.ghost.focusBackgroundColorstring
button.base100.ghost.disabledColorstring
button.base100.text.idleColorstring
button.base100.text.hoverColorstring
button.base100.text.focusColorstring
button.base100.text.disabledColorstring
button.base100.link.idleColorstring
button.base100.link.hoverColorstring
button.base100.link.focusColorstring
button.base100.link.focusBorderColorstring
button.base100.link.disabledColorstring
card.root.borderColorstring
card.header.backgroundstring
card.headerTitle.colorstring
card.headerExtra.colorstring
card.variant.base900.backgroundstring
card.variant.base900.colorstring
card.variant.base100.backgroundstring
card.variant.base100.colorstring
card.variant.base500.backgroundstring
card.variant.base500.colorstring
card.variant.secondary900.backgroundstring
card.variant.secondary900.colorstring
card.variant.tertiary100.backgroundstring
card.variant.tertiary100.colorstring
checkbox.input.disabled.indicatorBackgroundstring
checkbox.input.disabled.indicatorBorderColorstring
checkbox.input.disabled.labelColorstring
checkbox.input.disabled.iconFillstring
checkbox.secondary500.indicator.borderColorstring
checkbox.secondary500.indicator.checkedBackgroundstring
checkbox.secondary500.indicator.indeterminateBackgroundstring
checkbox.secondary500.indicator.afterBackgroundstring
checkbox.secondary500.indicator.iconFillstring
checkbox.secondary500.halo.backgroundstring
checkbox.secondary500.halo.borderColorstring
checkbox.secondary500.label.colorstring
checkbox.tertiary500.indicator.borderColorstring
checkbox.tertiary500.indicator.checkedBackgroundstring
checkbox.tertiary500.indicator.indeterminateBackgroundstring
checkbox.tertiary500.indicator.afterBackgroundstring
checkbox.tertiary500.indicator.iconFillstring
checkbox.tertiary500.halo.backgroundstring
checkbox.tertiary500.halo.borderColorstring
checkbox.tertiary500.label.colorstring
chip.primary500.contained.idleColorstring
chip.primary500.contained.idleBackgroundColorstring
chip.primary500.contained.idleBorderColorstring
chip.primary500.contained.hoverColorstring
chip.primary500.contained.hoverBackgroundColorstring
chip.primary500.contained.hoverBorderColorstring
chip.primary500.outlined.idleColorstring
chip.primary500.outlined.idleBackgroundColorstring
chip.primary500.outlined.idleBorderColorstring
chip.primary500.outlined.hoverColorstring
chip.primary500.outlined.hoverBackgroundColorstring
chip.primary500.outlined.hoverBorderColorstring
chip.secondary500.contained.idleColorstring
chip.secondary500.contained.idleBackgroundColorstring
chip.secondary500.contained.idleBorderColorstring
chip.secondary500.contained.hoverColorstring
chip.secondary500.contained.hoverBackgroundColorstring
chip.secondary500.contained.hoverBorderColorstring
chip.secondary500.outlined.idleColorstring
chip.secondary500.outlined.idleBackgroundColorstring
chip.secondary500.outlined.idleBorderColorstring
chip.secondary500.outlined.hoverColorstring
chip.secondary500.outlined.hoverBackgroundColorstring
chip.secondary500.outlined.hoverBorderColorstring
chip.tertiary500.contained.idleColorstring
chip.tertiary500.contained.idleBackgroundColorstring
chip.tertiary500.contained.idleBorderColorstring
chip.tertiary500.contained.hoverColorstring
chip.tertiary500.contained.hoverBackgroundColorstring
chip.tertiary500.contained.hoverBorderColorstring
chip.tertiary500.outlined.idleColorstring
chip.tertiary500.outlined.idleBackgroundColorstring
chip.tertiary500.outlined.idleBorderColorstring
chip.tertiary500.outlined.hoverColorstring
chip.tertiary500.outlined.hoverBackgroundColorstring
chip.tertiary500.outlined.hoverBorderColorstring
chip.error500.contained.idleColorstring
chip.error500.contained.idleBackgroundColorstring
chip.error500.contained.idleBorderColorstring
chip.error500.contained.hoverColorstring
chip.error500.contained.hoverBackgroundColorstring
chip.error500.contained.hoverBorderColorstring
chip.error500.outlined.idleColorstring
chip.error500.outlined.idleBackgroundColorstring
chip.error500.outlined.idleBorderColorstring
chip.error500.outlined.hoverColorstring
chip.error500.outlined.hoverBackgroundColorstring
chip.error500.outlined.hoverBorderColorstring
chip.warning500.contained.idleColorstring
chip.warning500.contained.idleBackgroundColorstring
chip.warning500.contained.idleBorderColorstring
chip.warning500.contained.hoverColorstring
chip.warning500.contained.hoverBackgroundColorstring
chip.warning500.contained.hoverBorderColorstring
chip.warning500.outlined.idleColorstring
chip.warning500.outlined.idleBackgroundColorstring
chip.warning500.outlined.idleBorderColorstring
chip.warning500.outlined.hoverColorstring
chip.warning500.outlined.hoverBackgroundColorstring
chip.warning500.outlined.hoverBorderColorstring
chip.success500.contained.idleColorstring
chip.success500.contained.idleBackgroundColorstring
chip.success500.contained.idleBorderColorstring
chip.success500.contained.hoverColorstring
chip.success500.contained.hoverBackgroundColorstring
chip.success500.contained.hoverBorderColorstring
chip.success500.outlined.idleColorstring
chip.success500.outlined.idleBackgroundColorstring
chip.success500.outlined.idleBorderColorstring
chip.success500.outlined.hoverColorstring
chip.success500.outlined.hoverBackgroundColorstring
chip.success500.outlined.hoverBorderColorstring
container.base900.backgroundColorstring
container.base100.backgroundColorstring
container.base500.backgroundColorstring
dialog.root.borderColorstring
dialog.root.colorstring
dialog.root.backgroundColorstring
drawer.root.backgroundstring
drawer.backdrop.backgroundstring
drawer.toolbar.backgroundstring
error.root.backgroundColorstring
fileInput.root.borderColorstring
fileInput.root.disabledBorderColorstring
fileInput.root.dragoverBorderColorstring
fileInput.content.colorstring
fileInput.content.disabledColorstring
link.secondary500.colorstring
link.secondary500.hoverColorstring
link.tertiary500.colorstring
link.tertiary500.hoverColorstring
loader.primary500.colorstring
loader.secondary500.colorstring
loader.tertiary500.colorstring
loader.base500.colorstring
loader.base100.colorstring
radio.disabled.colorstring
radio.error.colorstring
radio.tertiary500.colorstring
radio.tertiary500.indicatorColorstring
radio.tertiary500.hover.indicatorColorstring
radio.tertiary500.focus.indicatorColorstring
radio.secondary500.colorstring
radio.secondary500.indicatorColorstring
review.line.backgroundColorstring
review.star.colorstring
select.base100.toggleButton.colorstring
select.base100.toggleButton.hoverInputLabelColorstring
select.base100.toggleButton.hoverInputMaskBorderColorstring
select.base100.toggleButton.focusIconColorstring
select.base100.toggleButton.focusInputLabelColorstring
select.base100.toggleButton.focusInputMaskBorderColorstring
select.base100.toggleButton.floatedIconColorstring
select.base100.toggleButton.floatedInputLabelColorstring
select.base100.toggleButton.floatedInputMaskBorderColorstring
select.base100.toggleButton.disabledBackgroundColorstring
select.base100.toggleButton.disabledColorstring
select.base100.toggleButton.errorColorstring
select.base100.toggleButton.errorHoverIconColorstring
select.base100.toggleButtonIcon.errorColorstring
select.secondary500.toggleButton.colorstring
select.secondary500.toggleButton.hoverInputLabelColorstring
select.secondary500.toggleButton.hoverInputMaskBorderColorstring
select.secondary500.toggleButton.focusIconColorstring
select.secondary500.toggleButton.focusInputLabelColorstring
select.secondary500.toggleButton.focusInputMaskBorderColorstring
select.secondary500.toggleButton.floatedIconColorstring
select.secondary500.toggleButton.floatedInputLabelColorstring
select.secondary500.toggleButton.floatedInputMaskBorderColorstring
select.secondary500.toggleButton.disabledBackgroundColorstring
select.secondary500.toggleButton.disabledColorstring
select.secondary500.toggleButton.errorColorstring
select.secondary500.toggleButton.errorHoverIconColorstring
select.secondary500.toggleButtonIcon.errorColorstring
skeleton.pulse.backgroundColorstring
skeleton.wave.backgroundColorstring
skipToContent.root.backgroundColorstring
skipToContent.link.colorstring
skipToContent.link.focusColorstring
slider.label.colorstring
slider.label.disabledColorstring
slider.sliderRail.backgroundColorstring
slider.sliderRail.disabledBackgroundColorstring
slider.valueRail.backgroundColorstring
slider.valueRail.disabledBackgroundColorstring
slider.thumb.backgroundColorstring
slider.thumb.pseudoBackgroundColorstring
slider.thumb.disabledBackgroundColorstring
slider.thumbTooltip.backgroundColorstring
slider.thumbTooltip.colorstring
stepper.step.colorstring
stepper.step.hoverStepContentColorstring
stepper.step.hoverStepDiscBackgroundColorstring
stepper.step.disabledColorstring
stepper.step.disabledHoverStepContentColorstring
stepper.step.disabledHoverStepDiscBackgroundColorstring
stepper.step.focusVisibleStepDiscOutlineColorstring
stepper.step.completeAfterBorderColorstring
stepper.step.completeStepContentColorstring
stepper.step.completeHoverStepDiscBackgroundColorstring
stepper.step.currentStepHoverStepDiscBackgroundColorstring
stepper.disc.borderColorstring
stepper.disc.backgroundColorstring
stepper.disc.colorstring
stepper.disc.currentStepBackgroundColorstring
stepper.disc.currentStepBorderColorstring
stepper.disc.currentStepColorstring
stepper.disc.completeBackgroundColorstring
stepper.disc.completeBorderColorstring
stepper.complete.colorstring
stepper.content.colorstring
stepper.content.currentStepColorstring
switch.tertiary500.label.colorstring
switch.tertiary500.label.disabledColorstring
switch.tertiary500.handle.disabledColorstring
switch.tertiary500.handle.checkedColorstring
switch.tertiary500.track.colorstring
switch.tertiary500.track.disabledColorstring
switch.tertiary500.track.checkedColorstring
switch.tertiary500.toggle.handleColorstring
switch.tertiary500.toggle.trackBackgroundColorstring
switch.secondary500.label.colorstring
switch.secondary500.label.disabledColorstring
switch.secondary500.handle.disabledColorstring
switch.secondary500.handle.checkedColorstring
switch.secondary500.track.colorstring
switch.secondary500.track.disabledColorstring
switch.secondary500.track.checkedColorstring
switch.secondary500.toggle.handleColorstring
switch.secondary500.toggle.trackBackgroundColorstring
table.root.borderColorstring
table.heading.highlightedBackgroundColorstring
table.heading.highlightedColorstring
table.row.oddBackgroundColorstring
table.row.evenBackgroundColorstring
table.cell.colorstring
table.head.backgroundColorstring
table.empty.row.borderColorstring
table.empty.cell.evenBackgroundColorstring
textArea.placeholder.colorstring
textArea.disabled.colorstring
textArea.secondary500.input.colorstring
textArea.secondary500.input.borderColorstring
textArea.secondary500.input.hoverValueColorstring
textArea.secondary500.input.hoverInputColorstring
textArea.secondary500.input.focusValueColorstring
textArea.secondary500.input.focusInputColorstring
textArea.base100.input.colorstring
textArea.base100.input.borderColorstring
textArea.base100.input.hoverValueColorstring
textArea.base100.input.hoverInputColorstring
textArea.base100.input.focusValueColorstring
textArea.base100.input.focusInputColorstring
textField.placeholder.colorstring
textField.disabled.colorstring
textField.secondary500.input.colorstring
textField.secondary500.input.borderColorstring
textField.secondary500.input.hoverValueColorstring
textField.secondary500.input.hoverInputColorstring
textField.secondary500.input.focusValueColorstring
textField.secondary500.input.focusInputColorstring
textField.base100.input.colorstring
textField.base100.input.borderColorstring
textField.base100.input.hoverValueColorstring
textField.base100.input.hoverInputColorstring
textField.base100.input.focusValueColorstring
textField.base100.input.focusInputColorstring
toast.root.backgroundColorstring
toast.root.colorstring
toggleButton.label.colorstring
toggleButton.label.errorColorstring
toggleButton.option.colorstring
toggleButton.option.hoverBackgroundColorstring
toggleButton.option.hoverColorstring
toggleButton.option.pressedBackgroundColorstring
toggleButton.option.pressedColorstring
toggleButton.option.disabledPressedBackgroundColorstring
toggleButton.option.disabledPressedColorstring
toggleButton.option.disabledColorstring
toggleButton.option.disabledBorderColorstring
toggleButton.optionGroup.borderColorstring
toggleButton.optionGroup.disabledBorderColorstring
toggleButton.optionGroup.disabledBackgroundColorstring
tooltip.button.base100.colorstring
tooltip.button.base300.colorstring
tooltip.button.base900.colorstring
tooltip.button.backgroundColorstring
tooltip.button.borderColorstring
tooltip.content.colorstring
tooltip.content.backgroundColorstring
actionCard{}

Molecules

appBanner{}

borderRadius

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { borderRadius: { base: { value: 4 } } } } }) ] });

borderWidth

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { borderWidth: 4 } } }) ] });

containerWidth

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { containerWidth: { sm: 400 } } } }) ] });
NameTypeDefault
smnumber
mdnumber
lgnumber
xlnumber

remSize

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { remSize: 10 } } }) ] });

spacing

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { spacing: { xxs: 4 } } } }) ] });
NameTypeDefault
nonenumber
xxsnumber
xsnumber
xsSmnumber
smnumber
smMdnumber
mdnumber
mdLgnumber
lgnumber
lgXlnumber
xlnumber
xxlnumber
xxxlnumber

typography

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { tokens: { typography: { fontFamily: 'Arial, sans-serif', body1: { base: { fontWeight: 300 } } } } } }) ] });
NameTypeDefault
fontFamilystring
hero1{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
hero2{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
homepageTitle{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
h1{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
h2{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
h3{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
h4{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
h5{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
h6{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
body1{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
body2{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
caption{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>
button{ base: CSSProperties; } & Partial<Record<"sm" | "md" | "lg" | "xl", CSSProperties>>

semanticTokens

colors

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { semanticTokens: { colors: { background: { base: { 500: { base: 'red', light: 'blue' }, }, }, } } } }) ] });
NameTypeDefault
background.base.[20].basestring
background.base.[20].lightstring
background.base.[90].basestring
background.base.[90].lightstring
background.base.[100].basestring
background.base.[100].lightstring
background.base.[200].basestring
background.base.[200].lightstring
background.base.[300].basestring
background.base.[300].lightstring
background.base.[500].basestring
background.base.[500].lightstring
background.base.[900].basestring
background.base.[900].lightstring
background.primary.[10].basestring
background.primary.[10].lightstring
background.primary.[100].basestring
background.primary.[100].lightstring
background.primary.[500].basestring
background.primary.[500].lightstring
background.primary.[600].basestring
background.primary.[600].lightstring
background.primary.[900].basestring
background.primary.[900].lightstring
background.secondary.[10].basestring
background.secondary.[10].lightstring
background.secondary.[100].basestring
background.secondary.[100].lightstring
background.secondary.[500].basestring
background.secondary.[500].lightstring
background.secondary.[900].basestring
background.secondary.[900].lightstring
background.tertiary.[10].basestring
background.tertiary.[10].lightstring
background.tertiary.[20].basestring
background.tertiary.[20].lightstring
background.tertiary.[30].basestring
background.tertiary.[30].lightstring
background.tertiary.[100].basestring
background.tertiary.[100].lightstring
background.tertiary.[500].basestring
background.tertiary.[500].lightstring
background.actions.success.[10].basestring
background.actions.success.[10].lightstring
background.actions.success.[30].basestring
background.actions.success.[30].lightstring
background.actions.success.[100].basestring
background.actions.success.[100].lightstring
background.actions.success.[500].basestring
background.actions.success.[500].lightstring
background.actions.error.[10].basestring
background.actions.error.[10].lightstring
background.actions.error.[30].basestring
background.actions.error.[30].lightstring
background.actions.error.[100].basestring
background.actions.error.[100].lightstring
background.actions.error.[500].basestring
background.actions.error.[500].lightstring
background.actions.warning.[10].basestring
background.actions.warning.[10].lightstring
background.actions.warning.[30].basestring
background.actions.warning.[30].lightstring
background.actions.warning.[100].basestring
background.actions.warning.[100].lightstring
background.actions.warning.[500].basestring
background.actions.warning.[500].lightstring
background.actions.information.[10].basestring
background.actions.information.[10].lightstring
background.actions.information.[30].basestring
background.actions.information.[30].lightstring
background.actions.information.[100].basestring
background.actions.information.[100].lightstring
background.actions.information.[500].basestring
background.actions.information.[500].lightstring
contents.base.[20].basestring
contents.base.[20].lightstring
contents.base.[90].basestring
contents.base.[90].lightstring
contents.base.[100].basestring
contents.base.[100].lightstring
contents.base.[200].basestring
contents.base.[200].lightstring
contents.base.[300].basestring
contents.base.[300].lightstring
contents.base.[500].basestring
contents.base.[500].lightstring
contents.base.[900].basestring
contents.base.[900].lightstring
contents.primary.[10].basestring
contents.primary.[10].lightstring
contents.primary.[100].basestring
contents.primary.[100].lightstring
contents.primary.[500].basestring
contents.primary.[500].lightstring
contents.primary.[600].basestring
contents.primary.[600].lightstring
contents.primary.[900].basestring
contents.primary.[900].lightstring
contents.secondary.[10].basestring
contents.secondary.[10].lightstring
contents.secondary.[100].basestring
contents.secondary.[100].lightstring
contents.secondary.[500].basestring
contents.secondary.[500].lightstring
contents.secondary.[900].basestring
contents.secondary.[900].lightstring
contents.tertiary.[10].basestring
contents.tertiary.[10].lightstring
contents.tertiary.[20].basestring
contents.tertiary.[20].lightstring
contents.tertiary.[30].basestring
contents.tertiary.[30].lightstring
contents.tertiary.[100].basestring
contents.tertiary.[100].lightstring
contents.tertiary.[500].basestring
contents.tertiary.[500].lightstring
contents.actions.success.[10].basestring
contents.actions.success.[10].lightstring
contents.actions.success.[30].basestring
contents.actions.success.[30].lightstring
contents.actions.success.[100].basestring
contents.actions.success.[100].lightstring
contents.actions.success.[500].basestring
contents.actions.success.[500].lightstring
contents.actions.error.[10].basestring
contents.actions.error.[10].lightstring
contents.actions.error.[30].basestring
contents.actions.error.[30].lightstring
contents.actions.error.[100].basestring
contents.actions.error.[100].lightstring
contents.actions.error.[500].basestring
contents.actions.error.[500].lightstring
contents.actions.warning.[10].basestring
contents.actions.warning.[10].lightstring
contents.actions.warning.[30].basestring
contents.actions.warning.[30].lightstring
contents.actions.warning.[100].basestring
contents.actions.warning.[100].lightstring
contents.actions.warning.[500].basestring
contents.actions.warning.[500].lightstring
contents.actions.information.[10].basestring
contents.actions.information.[10].lightstring
contents.actions.information.[30].basestring
contents.actions.information.[30].lightstring
contents.actions.information.[100].basestring
contents.actions.information.[100].lightstring
contents.actions.information.[500].basestring
contents.actions.information.[500].lightstring

breakpoints

// panda.config.ts export default defineConfig({ presets: [ createCoralPreset({ options: { breakpoints: { sm: '640px', } } }) ] });
NameTypeDefault
xsstring
smstring
mdstring
lgstring
xlstring
Last updated on