0.13.1 • Published 4 years ago
@undataforum/preset v0.13.1
title: '@undataforum/preset'
Package
@undataforum/preset
is a Theme UI preset. It
- uses
@theme-ui/preset-base
for defaults, - sets the colors for the Theme UI color scheme,
- customizes theme scales,
- customizes variants for Theme UI components,
- customizes variants for
@undataforum/components
, and - 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:
Key | Description |
---|---|
text | Text color. Should have AAA contrast with background . |
background | Background color. Should have AAA contrast with text . |
primary | Primary brand color for links, buttons, etc. Should have at least AA contrast with background . |
secondary | A secondary brand color for alternative styling. Should have at least AA contrast with background . |
You can customize these colors in your project with the colors
key.
Contributing
Work with two terminals. In the first terminal run
yarn workspace @undataforum/preset run watch
and in the second terminal run
yarn workspace docs run dev
The first command watches for changes in the @undataforum/preset
workspace and
bundles the @undataforum/preset
package whenever it detects changes. The
second command launches the docs, which use the local @undataforum/preset
package as dependency.