diff --git a/next/pages/guidelines/color/palette.tsx b/next/pages/guidelines/color/palette.tsx index c149ba42..f0dd179d 100644 --- a/next/pages/guidelines/color/palette.tsx +++ b/next/pages/guidelines/color/palette.tsx @@ -3,7 +3,7 @@ import type { InferGetStaticPropsType } from 'next'; import { StaticImageData } from 'next/image'; import { groupBy } from 'lodash-es'; import classNames from 'classnames'; -import { Grid, GridColumn, Text } from '@thumbtack/thumbprint-react'; +import * as tokens from '@thumbtack/thumbprint-tokens'; import { NavigationCaretDownSmall } from '@thumbtack/thumbprint-icons'; import { ContentPage } from '../../../components/mdx/mdx'; import getLayoutProps from '../../../utils/get-layout-props'; @@ -152,6 +152,23 @@ function ColorSection({ values }: Usage): JSX.Element { ); } +interface SwatchProps { + tokenColor: string; + children?: React.ReactNode; + level: string; +} + +function Swatch({ tokenColor, children, level }: SwatchProps): JSX.Element { + return ( +
- Express default and less-opinionated UI elements such as background - colors, icons, and text elements. -
- -+ Express default and less-opinionated UI elements such as background + colors, icons, and text elements. +
+ +