Theme
New

Nova Design System’s parts are themable using CSS Custom Properties. We ship pre-made themes for dark and light mode while trying to meet accessibility standards for color contrast.

Color

A lot of components use semantical colors to manage their theme such as Alert, Avatar, Badge, Button, Icon, ...
With these components, you don't need to manage the light or the dark theme for background, text or border color, it's automatically done with the semantic color chosen.

TypeDefault Value
stringnull
<NVStack Vertical Items="center" Gutter="3">
   <NVButton Color="primary">button primary </NVButton>
  <Nav Color="primary">
    <NVLink Href="#" IsActive>link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
  </Nav>
  <NVIcon Name="search" Medium Color="primary"/>
</NVStack>

Parameters

Sometimes you need to manage colors by your own, these are parameters available to control colors. When a color is set manually the color is set for both theme (light and dark). If a different color is needed in dark mode, use the same color parameter prefixed by Dark.

BackgroundColor

Set the color of the background.

TypeDefault Value
stringnull
orange-50
orange-100
orange-200
orange-300
orange-400
orange-500
orange-600
orange-700
orange-800
orange-900
<NVBlock BackgroundColor="orange-50">orange 50</NVBlock>
<NVBlock BackgroundColor="orange-100">orange 100</NVBlock>
<NVBlock BackgroundColor="orange-200">orange 200</NVBlock>
<NVBlock BackgroundColor="orange-300">orange 300</NVBlock>
<NVBlock BackgroundColor="orange-400">orange 400</NVBlock>
<NVBlock BackgroundColor="orange-500">orange 500</NVBlock>
<NVBlock BackgroundColor="orange-600">orange 600</NVBlock>
<NVBlock BackgroundColor="orange-700">orange 700</NVBlock>
<NVBlock BackgroundColor="orange-800">orange 800</NVBlock>
<NVBlock BackgroundColor="orange-900">orange 900</NVBlock>

ActiveBackgroundColor

Set the Background Color of the element when active (eg: for Link or Button)

TypeDefault Value
stringnull
<NVButton ActiveBackgroundColor="petrol-300">active background in petrol-300 </NVButton>

HoverBackgroundColor

Set the Background Color of the element when hovered.

TypeDefault Value
stringnull
secondary-100
<NVBlock HoverBackgroundColor="petrol-100">petrol-100</NVBlock>

TextColor

Set the text color of the element.

TypeDefault Value
stringnull
text-green-500
#F00
<NVBlock TextColor="green-500">green-500</NVBlock>
<NVBlock TextColor="#F00">#F00</NVBlock>

ActiveTextColor

Set the text color of the element when active.

TypeDefault Value
stringnull
<NVButton ActiveTextColor="green-100">green-100 </NVButton>

HoverTextColor

Set the text color of the element when hovered.

TypeDefault Value
stringnull
green-100
<NVBlock HoverTextColor="green-100">green-100</NVBlock>

BorderColor

Set the border color of the element.

TypeDefault Value
stringnull
border-green-500
#F00
<NVBlock Border BorderColor="green-500">green-500</NVBlock>
<NVBlock MT="3" Border BorderColor="#F00">#F00</NVBlock>

ActiveBorderColor

Set the border color of the element when active.

TypeDefault Value
stringnull
<NVButton Color="neutral" ActiveBorderColor="green-100">green-300 </NVButton>

HoverBorderColor

Set the border color of the element when hovered.

TypeDefault Value
stringnull
green-100
<NVBlock Border HoverBorderColor="green-100">green-100</NVBlock>

Dark Parameters

Sometimes you need to manage dark colors by your own, these are parameters available to control colors in dark mode. (for light theme parameters look at the color foundation.)

DarkBackgroundColor

Set the color of the background.

TypeDefault Value
stringnull
orange-50
orange-100
orange-200
orange-300
orange-400
orange-500
orange-600
orange-700
orange-800
orange-900
<NVBlock DarkBackgroundColor="orange-50">orange 50</NVBlock>
<NVBlock DarkBackgroundColor="orange-100">orange 100</NVBlock>
<NVBlock DarkBackgroundColor="orange-200">orange 200</NVBlock>
<NVBlock DarkBackgroundColor="orange-300">orange 300</NVBlock>
<NVBlock DarkBackgroundColor="orange-400">orange 400</NVBlock>
<NVBlock DarkBackgroundColor="orange-500">orange 500</NVBlock>
<NVBlock DarkBackgroundColor="orange-600">orange 600</NVBlock>
<NVBlock DarkBackgroundColor="orange-700">orange 700</NVBlock>
<NVBlock DarkBackgroundColor="orange-800">orange 800</NVBlock>
<NVBlock DarkBackgroundColor="orange-900">orange 900</NVBlock>

DarkActiveBackgroundColor

Set the Background Color of the element when active (eg: for Link or Button)

TypeDefault Value
stringnull
<NVButton DarkActiveBackgroundColor="petrol-300">active background in petrol-300 </NVButton>

DarkHoverBackgroundColor

Set the Background Color of the element when hovered.

TypeDefault Value
stringnull
secondary-100
<NVBlock DarkHoverBackgroundColor="petrol-100">petrol-100</NVBlock>

DarkTextColor

Set the text color of the element.

TypeDefault Value
stringnull
text-green-500
#F00
<NVBlock DarkTextColor="green-500">green-500</NVBlock>
<NVBlock DarkTextColor="#F00">#F00</NVBlock>

DarkActiveTextColor

Set the text color of the element when active.

TypeDefault Value
stringnull
<NVButton DarkActiveTextColor="green-100">green-100 </NVButton>

DarkHoverTextColor

Set the text color of the element when hovered.

TypeDefault Value
stringnull
green-100
<NVBlock DarkHoverTextColor="green-100">green-100</NVBlock>

DarkBorderColor

Set the border color of the element.

TypeDefault Value
stringnull
border-green-500
<NVBlock Border DarkBorderColor="green-500">green-500</NVBlock>

DarkActiveBorderColor

Set the border color of the element when active.

TypeDefault Value
stringnull
<NVButton Color="neutral" DarkActiveBorderColor="green-100">green-300 </NVButton>

DarkHoverBorderColor

Set the border color of the element when hovered.

TypeDefault Value
stringnull
green-100
<NVBlock Border DarkHoverBorderColor="green-100">green-100</NVBlock>