diff --git a/doc/en/components/grids/_shared/cell-editing.md b/doc/en/components/grids/_shared/cell-editing.md index d35a5e587..fe097b716 100644 --- a/doc/en/components/grids/_shared/cell-editing.md +++ b/doc/en/components/grids/_shared/cell-editing.md @@ -1334,6 +1334,69 @@ Then set the related CSS properties for that class: + + +Additionally, after importing and using a theme from the predefined ones, you can create your own custom colors as a palette and then customize the theme and add it as a class to the grid instead. This can be done in a couple of simple steps. First you should create your own pallette: + +```css +:root { + /* Base colors */ + --white: #fff; + --blue: #4567bb; + --orange: #cc6600; + --gold: #ffcd0f; + --gray: #efefef; + --dark-gray: #404040; + --border-gray: #555555; + + /* Color Palette */ + --palette-primary: var(--white); + --palette-secondary: var(--blue); + --palette-surface: var(--gray); + --palette-accent: var(--gold); + --palette-highlight: var(--orange); + --palette-background: var(--dark-gray); + --palette-border: var(--border-gray); + + /* Secondary color variations */ + --palette-secondary-200: #6B87DD; + --palette-secondary-400: var(--blue); + --palette-secondary-600: #3A4FA0; +} +``` + +And then create the custom theme + +```css +.custom-grid-palette-theme { + --ig-grid-cell-editing-background: var(--palette-highlight); + --ig-grid-cell-edited-value-color: var(--palette-primary); + --ig-grid-cell-active-border-color: var(--palette-primary); + --ig-grid-edit-mode-color: var(--palette-secondary-200); + + --ig-input-text-color: var(--palette-primary); + --ig-input-background: var(--palette-background); + --ig-input-border-color: var(--palette-border); + --ig-input-focused-border-color: var(--palette-accent); + + --ig-size: var(--ig-size-medium); +} +``` + +Once this has been added to your css sheet, all you need to do is add the theme to your grid + +```tsx + + +``` + +`sample="/{ComponentSample}/keyboard-navigation-guide", height="650", alt="{Platform} {ComponentTitle} Keyboard Navigation Guide Example"` + + The `{ComponentName}` allows for its cells to be styled through the [{ProductName} Theme Library](../themes/styles.md). The grid's [theme]({environment:sassApiUrl}/index.html#function-grid-theme) exposes a wide range of properties, which allow users to style many different aspects of the grid. diff --git a/docfx/en/components/toc.json b/docfx/en/components/toc.json index cafa01cee..517df06bb 100644 --- a/docfx/en/components/toc.json +++ b/docfx/en/components/toc.json @@ -570,7 +570,7 @@ "href": "grids/hierarchical-grid/virtualization.md" }, { - "exclude": ["Angular", "Blazor", "React", "WebComponents"], + "exclude": ["Angular", "Blazor", "WebComponents"], "name": "Keyboard navigation", "href": "grids/hierarchical-grid/keyboard-navigation.md" }, @@ -705,7 +705,7 @@ ] }, { - "exclude": ["Angular", "React"], + "exclude": ["Angular"], "name": "Keyboard navigation", "href": "grids/tree-grid/keyboard-navigation.md", "status": ""