Skip to content
项目

关于

一个 CSS UI 库,探索新一代 HTML 和 CSS 特性如何改变组件的创建方式。适用于专业团队,也适合喜欢动手尝试的爱好者。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Open Props UI

A CSS UI library exploring how next-gen HTML & CSS features can change the way we create components. Designed to be used by professional teams as well as tinkering hobbyists.

Usage

https://open-props-ui.netlify.app/html/guide/getting-started/


Maintainers

Project Structure

The project is managed as a monorepo with two main parts:

  • The Library (packages/opui): Contains the framework-agnostic core of the library. It is managed as a standalone workspace package named opui-css.
    • components/: UI components organized by folder. Each folder contains the component logic, templates (e.g., Button.astro), and specific types.
    • css/: Component styles, theme, and entry-point imports.
    • astro/: Public entry point and barrel exports for Astro-based projects.
  • The Documentation Site (src/): The Astro site implementation, located in src/pages, src/layouts, and src/components.

Development

Run the documentation site locally for development:

pnpm install
pnpm dev

Adding New Components

  1. Create a folder in packages/opui/components/[ComponentName].
  2. Add [ComponentName].astro to that folder.
  3. Export the component from the barrel in packages/opui/astro/index.ts.
  4. (Optional) Implement the component CSS in packages/opui/css/components/.

探索相关项目

加载中…