v1.89.0
版本发布时间: 2024-02-04 21:48:07
tamagui/tamagui最新发布版本:v1.116.7(2024-10-24 18:09:38)
@tamagui/cli
Install the CLI with yarn add @tamagui/cli
and then yarn tama generate
to run one-off generations for themeBuilder and outputCSS.
@tamagui/static
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)
@tamagui/shorthands
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
- add custom text on checkout (Alireza Zamani)
- refresh design to have tabs, cleanup docs pages #2197 (natew)
- 9ceb0b3: cleanup for release (natew) #2197
- 515e040: cleanup v3 themes (natew) #2197
- 8928f46: fix watch script (natew) #2197
- 57bb591: Revert "fix(core): inherit acceptsClassName more reliably from styled parents" (natew) #2197
- fc9687a: update tamagui.css (natew) #2197
- move to using getCSS in a simpler way #2197 (natew)
- 61774cc: cleanup site, docs, fix overflow, update some color values (natew)
- ccdfde7: v1.89.0 (natew)