Skip to content
forked from kuma-ui/kuma-ui

🐻‍❄️ A Headless, Utility-First, and Zero-Runtime UI Component Library ✨

License

Notifications You must be signed in to change notification settings

Travelated/kuma-ui

 
 

Repository files navigation

Kuma UI logo

Ultra Fast, Zero Runtime, Headless UI Components

Supports placeholders in css and styled

You can write

css`
  color: t("colors.primary");
  background-color: t("c.secondary");
  margin: s(2);
`

t("<tokenType>.<tokenKey>") will use any token from your kuma.config.ts

t("c.<tokenKey>") shortcut for t("colors.<tokenKey>") t("b.<tokenKey>") shortcut for t("breakpoints.<tokenKey>")

s(2) uses the scaling factor of 8px and multiplies by number. Will produce 16px in this case.

Documentation


default.mp4

🐻‍❄️ Features

  • Zero-runtime: Deliver blazing-fast websites with zero-runtime CSS extraction.

  • 🔮 Autocomplete: Experience seamless development with style autocompletion.

  • 🛠️ Headless Components: Enjoy maximum customization freedom with our headless components.

  • 🤝 Hybrid Approach: The best of both worlds—support for any writing style with our hybrid approach.

  • 🚀 RSC Support: Stay updated with cutting-edge Next.js technology via our RSC support.

  • 🥇 Familiar DX : Delight in the ultimate DX with our familiar API design.

💻 Installation

npm install @travelated-kuma-ui/core

For installation instructions and more detailed information, please visit our documentation. Be sure to check out our guide for setting up Kuma UI with your specific framework (Next.js or Vite).

🔫 Example

function App() {
  return (
    <Box as="main" display="flex" flexDir={["column", "row"]}>
      <Heading
        as="h3"
        className={css`
          color: red;
          @media (max-width: sm) {
            color: blue;
          }
        `}
      >
        Kuma UI
      </Heading>
      <Spacer size={4} />
      <Flex flexDir={`column`}>
        <Text as="p" fontSize={24}>
          Headless UI Component Library
        </Text>
        <Button variant='primary'>Getting Started</Button>
      </Flex>
    </Box>
  );
}

👥 Join the Community

Connect with us on Twitter and Discord to stay up to date with our latest developments, or to provide us with your valuable feedback!

Welcome to Kuma UI, we can't wait to see what you build with it 🐻‍❄️.

About

🐻‍❄️ A Headless, Utility-First, and Zero-Runtime UI Component Library ✨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.3%
  • MDX 15.4%
  • JavaScript 5.6%
  • CSS 1.6%
  • Other 0.1%