import React from 'react'; import { Box, Grommet, Pagination, Text } from 'grommet'; import { ThemeType } from 'grommet/themes'; import { FormPreviousLink } from 'grommet-icons/icons/FormPreviousLink'; import { FormNextLink } from 'grommet-icons/icons/FormNextLink'; // Type annotations can only be used in TypeScript files. // Remove ': ThemeType' if you are not using Typescript. const customTheme: ThemeType = { global: { font: { family: 'Arial', }, }, pagination: { button: { color: 'text-strong', border: { color: 'skyblue', width: '3px', }, active: { background: { color: 'salmon', }, color: 'text', }, hover: { background: { color: 'skyblue', }, }, }, controls: { gap: 'xxsmall', }, icons: { next: FormNextLink, previous: FormPreviousLink, }, }, }; export const Custom = () => ( Custom Theme via theme.pagination.button Custom Theme via theme.pagination.button ); export default { title: 'Controls/Pagination/Custom Themed/Custom', };