npm tamagui 1.89.0
v1.89.0

latest releases: 1.136.1, 1.136.0, 1.135.7...
21 months ago

@tamagui/cli

  • add generate command to output all tamagui build time assets #2197 (natew)

Install the CLI with yarn add @tamagui/cli and then yarn tama generate to run one-off generations for themeBuilder and outputCSS.

@tamagui/static

  • export TamaguiBuildOptions and accepts buildFile option #2197 (natew)

Tamagui now looks for a tamagui.build.ts and will use the default export as the build settings for any of the plugins - Metro, Vite, or Webpack. You can customize the file with the buildFile setting.

@tamagui/themes

  • v3 themes lightens the final CSS by ~60% #2197 (natew)
  • v3 adds color0, color025, color05, color075, background0, background025, background05, background075 and white and black token colors #2197 (natew)

We've extensively refactored themes into a new v3, adding new partial transparencies, removing some verbose properties, and most importantly, reducing the size of the output CSS by more than half while still retaining nearly complete compatibility.

@tamagui/switch

  • add headless-switch and refactor package to export headless useSwitch and createSwitch functions #2197 (natew)

Headless Switch is now in beta 🎉 We've also redone the documentation pages a bit so we can show all the variations easily with copy-paste examples.

@tamagui/checkbox

  • add headless-checkbox and refactor package to export headless useCheckbox and createCheckbox functions #2197 (natew)

Checkbox goes headless too!

@tamagui/shorthands

  • @tamagui/shorthands/v2 export with the following changes: #2199 (natew)

Shorthands v2 just aims to fix the biggest problem in v1: making bc be borderColor, leaving bg as the only shorthand for backgroundColor.

Bug Fixes

  • core: inherit acceptsClassName more reliably from styled parents #2197 (natew)
  • font-munro: round to nearest pixel lineHeight #2197 (natew)
  • build: avoid mjs path specifics when bundling #2197 (natew)
  • next-plugin: set TAMAGUI_DOES_SSR_CSS based on isServer #2197 (natew)
  • core: fix key being off by one when scanning a non-var #2197 (natew)

Documentation

  • site: improve intro #2197 (natew)
  • site: remove duplicate descriptions on intro in favor of independent core intro page #2197 (natew)

Code Refactoring

  • themes: remove backgroundStrong backgroundTransparent colorStrong colorTransparent #2197 (natew)
  • select: default outlineOffset to -0.5 and outlineWidth to 1 #2197 (natew)

Chores

  • upgrade to yarn 4.1 #2197 (natew)
  • tabs: cleanup some tabs code #2197 (natew)
  • remove doesMutateThemes from next plugin, it doesnt save very much and is confusing #2197 (natew)
  • cleanup site-config types #2197 (natew)
  • v3 config adjustments in repo #2199 (natew)
  • various cleanup for release (natew)

Commits

Don't miss a new tamagui release

NewReleases is sending notifications on new releases.