gluestack-ui

React & React Native Components & Patterns (copy-paste components & patterns crafted with Tailwind CSS (NativeWind))

MIT License

Downloads
5.3M
Stars
2.5K
Committers
62

Bot releases are hidden (Show)

gluestack-ui - @gluestack-style/[email protected]

Published by gluestackadmin 9 months ago

Features

  • Tokens are now injected as CSS variables on web.
  • Multiple Theme support.
import { styled, StyledProvider } from '@gluestack-style/react';

const config = {
  aliases: {},
  tokens: {
    colors: {
      primary: 'green',
    },
  },
  themes: {
    dark: {
      colors: {
        primary: 'black',
      },
    },
    modern: {
      colors: {
        primary: 'red',
      },
    },
  },
};

const App = () => {
  const Box = styled(View, {
    bg: '$primary',
    p: '$10',
  });

  return (
    <StyledProvider config={config}>
      <Theme name="dark">
        <Theme name="modern">
          <Box />
        </Theme>
      </Theme>
    </StyledProvider>
  );
};
  • We have removed the default colorMode from the StyledProvider, you can now use the Theme component to change the theme. or you can pass colorMode prop inside StyledProvider for colorMode.
  • Added utility prop support for themes, you can prefix theme name with $t_${{theme_name}}-${{style_property}} to define style for theme.
<Box $t_dark-bg="$primary" />
  • useToken hook now supports theme tokens, it will return the current theme token value if there exist any.
  • Typescript improvements for useToken hook
  • Babel plugin support for the themes
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Major Changes

  • feat: stable release of accrodion component.
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • feat: added accrodion component.
gluestack-ui - @gluestack-style/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • fix: as forwarder conditional rendering
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • removed gluestack-style dependancy
gluestack-ui - @gluestack-style/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • fix: ascomp issue
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • Added support of functional children with hover, active state
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • fix select pointer events
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • actionsheet pointer events
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • fix: actionsheet backdrop click issue native
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • pointer events none on animated view
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • bump animation resolver version
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • fix userselect, select config
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • fix: dragindicator on web
gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

gluestack-ui - @gluestack-ui/[email protected]

Published by gluestackadmin 10 months ago

Patch Changes

  • actionsheet version bump