- Accordion
- Alert
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Carousel
- Checkbox
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Data Table
- Date Picker
- Description List
- Dropdown Button
- Empty
- Form
- Group Box
- Hover Card
- Icon
- Image
- Input
- Input Group
- Kbd
- Label
- Link
- List
- Marker
- Menu
- Message
- Notification
- Number Input
- Pagination
- Popover
- Progress
- Progress Circle
- Radio
- Rating
- Resizable
- Scrollable
- Select
- Separator
- Sheet
- Shimmer
- Sidebar
- Skeleton
- Slider
- Spinner
- Status Bar
- Stepper
- Switch
- Table
- Tabs
- Tag
- Textarea
- Time Field
- Title Bar
- Toggle
- Toggle Group
- Toolbar
- Tooltip
- Tree
- Virtual List
Avalonia's ColorPicker in GPUI Kit's input frame and popover, from the AvaloniaUIKit.ColorPicker package.


<Panel MinHeight="340">
<StackPanel Orientation="Horizontal" Spacing="16" HorizontalAlignment="Left" VerticalAlignment="Top">
<ColorPicker Color="#2563EB" />
<ColorPicker Color="#F59E0B" Content="Accent" />
</StackPanel>
</Panel>Usage
Avalonia's ColorPicker is a separate package, so its theme is too: add AvaloniaUIKit.ColorPicker and put GpuiColorPickerTheme after GpuiTheme in the application's styles.
<Application xmlns="https://github.com/avaloniaui"
xmlns:uikit="clr-namespace:AvaloniaUIKit;assembly=AvaloniaUIKit"
xmlns:uikitcolor="clr-namespace:AvaloniaUIKit;assembly=AvaloniaUIKit.ColorPicker">
<Application.Styles>
<uikit:GpuiTheme />
<uikitcolor:GpuiColorPickerTheme />
</Application.Styles>
</Application>ColorPicker with a Color is GPUI Kit's ColorPicker: a square swatch of the color with a border of the color darkened 30% and its hex as a tooltip; Content puts a label 8px after it. Classes="field" is GPUI Kit's ColorSelect: an input frame with a small swatch, the hex and a caret, ringed while focused. Both open a 288px popover below with the palette (the control's Palette, Avalonia's FluentColorPalette by default) and the color's components on two segmented tabs, and the color with its editable hex under them.
| Class | Effect |
|---|---|
xsmall, small, large | A swatch of 16, 20 and 44px; medium, the default, is 32px |
field | The ColorSelect field instead of the swatch |
Examples
The four swatch sizes.


<Panel MinHeight="350">
<StackPanel Orientation="Horizontal" Spacing="16" HorizontalAlignment="Left" VerticalAlignment="Top">
<ColorPicker Classes="xsmall" Color="#2563EB" VerticalAlignment="Center" />
<ColorPicker Classes="small" Color="#2563EB" VerticalAlignment="Center" />
<ColorPicker Color="#2563EB" VerticalAlignment="Center" />
<ColorPicker Classes="large" Color="#2563EB" VerticalAlignment="Center" />
</StackPanel>
</Panel>The field class, GPUI Kit's ColorSelect, in a column of 200px fields.


<Panel MinHeight="470">
<StackPanel Spacing="12" Width="200" HorizontalAlignment="Left" VerticalAlignment="Top">
<ColorPicker Classes="field" Color="#2563EB" />
<ColorPicker Classes="field" Color="#F59E0B" />
<ColorPicker Classes="field" Color="#FFFFFF" />
<ColorPicker Classes="field" Color="#000000" />
</StackPanel>
</Panel>Not covered
- GPUI Kit's own palette, featured row and HSL sliders; Avalonia's
FluentColorPaletteand RGB / HSV components are used instead. - A placeholder for no color:
Coloralways has a value.