- Updated various components in the llm-router to include dark mode styles, ensuring better visibility and aesthetics in dark theme. - Added tests for API URL helpers to validate sign-in URL construction and redirection logic. - Improved the sign-in flow to handle trusted redirects for standalone admin origins. - Enhanced CSS styles for dark mode, including adjustments to backgrounds, borders, and text colors for better contrast and readability. - Refactored input components to maintain consistent styling in both light and dark modes.
@proj-airi/ui
A stylized UI component library built with Reka UI and UnoCSS.
To preview the components, refer to the stage-ui package for instructions for running the Histoire UI storyboard.
Get started
Install the library:
ni @proj-airi/ui -D # from @antfu/ni, can be installed via `npm i -g @antfu/ni`
pnpm i @proj-airi/ui -D
yarn i @proj-airi/ui -D
npm i @proj-airi/ui -D
This library requires unocss with Attributify Mode and a style reset.
First, install unocss if you haven't already:
pnpm i -D unocss
Next, in your uno.config.ts, add presetAttributify() to your presets array:
import { defineConfig, presetAttributify } from 'unocss'
export default defineConfig({
presets: [
presetAttributify(),
// ...your other presets
],
})
Finally, import the reset styles in your main.ts:
import '@unocss/reset/tailwind.css'
Usage
<script setup lang="ts">
import { Button } from '@proj-airi/ui'
</script>
<template>
<Button>Click me</Button>
</template>