0.5.2 • Published 4 years ago

@maiertech/preset v0.5.2

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

title: '@maiertech/preset'

Package @maiertech/preset is a Theme UI preset. It

  1. uses @theme-ui/preset-base for defaults,
  2. sets the colors for the Theme UI color scheme,
  3. customizes theme scales,
  4. customizes variants for Theme UI components,
  5. customizes variants for @maiertech/components, and
  6. customizes styles for MDX content.

Defaults

You can lookup the defaults here.

Colors

This preset supports the following colors from the Theme UI color scheme:

KeyDescription
textText color. Should have AAA contrast with background.
backgroundBackground color. Should have AAA contrast with text.
primaryPrimary brand color for links, buttons, etc. Should have at least AA contrast with background.
secondaryA secondary brand color for alternative styling. Should have at least AA contrast with background.
highlightA background color for highlighting text. Should have at least AA contrast with text.

You can customize these colors in your project with the colors key. There are different ways to go about choosing colors. You can start with an expertly-crafted pallette like Tailwind's. Or use a pallette generator like Palx. Use Colorable to determine the constrast between two colors.

Contributing

Work with two terminals. In the first terminal run

yarn workspace @maiertech/preset run watch

and in the second terminal run

yarn workspace docs run dev

The first command watches for changes in the @maiertech/preset workspace and bundles the @maiertech/preset package whenever it detects changes. The second command launches the docs, which use the local @maiertech/preset package as dependency.

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago