DocsStylesComponentsPatternsExamples
Payroller

Styles

Rules

Color Styles

In Figma

styles-1

Default colors naming

Service colors naming

In Tailwind

packages/tailwindconfig/baseStyle.js

packages/bds/tailwind-input.css

Text Styles

styles-2

  1. Use combinations of tailwind classNames. e.g) text-base/font-medium (in Figma) is converted to className="bk-text-base bk-font-medium"

  2. If there are combinations used oftenly, make it as utilites in the tailwind config (packages/tailwindconfig/baseStyle.js). e.g) leading-none/text-sm/font-medium (in Figma) is converted to

    '.textButton': {
         fontSize: theme('fontSize.sm'),
         fontWeight: theme('fontWeight.medium'),
         color: theme('colors.primary-700'),
         lineHeight: theme('lineHeight.none')
     }

    * need to restart dev server if new utilite is added.