System.css构建 Apple 复古界面的 CSS 库
System.css 是一个 CSS 库,用于构建类似于 1984-1991 年期间运行的 Apple System OS 的界面。在设计方面,从 System 1到System 6 并没有太大的变化; 然而,这个库基于 System 6,因为它是 macOS 的最终单色版本。
这个库不使用任何 JavaScript,并且与你选择的任何前端框架兼容。
入门
可以通过多种方式开始使用 System.css
从 CDN 导入
将以下内容添加到你的 head 标签中:
<link rel="stylesheet" href="https://unpkg.com/@sakun/system.css" />
以下是一些帮助你入门的入门代码:
<!DOCTYPE html> <html lang="en"> <head> <title>System.css Starter</title> <meta charset="UTF-8" /> <link rel="stylesheet" href="https://unpkg.com/@sakun/system.css" /> </head> <body> <div class="window" style="width:30rem;"> <div class="title-bar"> <button aria-label="Close" class="close"></button> <h1 class="title">System.css</h1> <button aria-label="Resize" class="resize"></button> </div> <div class="separator"></div> <div class="window-pane"> Hello world! </div> </div> <div class="window" style="width:30rem;"> <div class="title-bar"> <button aria-label="Close" class="close"></button> <h1 class="title">Search</h1> <button aria-label="Resize" disabled class="hidden"></button> </div> <div class="separator"></div> <div class="modeless-dialog"> <section class="field-row" style="justify-content: flex-start"> <label for="text_find" class="modeless-text">Find:</label> <input id="text_find" type="text" style="width:100%;" placeholder=""> </section> <section class="field-row" style="justify-content: flex-end"> <button class="btn">Cancel</button> <button class="btn" style="width:95px;">Find</button> </section> </div> </div> </body> </html>
从 npmjs 导入
npm i @sakun/system.css
开发
- 克隆仓库并运行
npm install
- 运行
npm start
启动开发环境
评论
98.css构建类似 Win 98 界面的 CSS 库
98.css 是一个用于构建类似 Windows 98 界面的 CSS 库。该库依赖于语义 HTML
98.css构建类似 Win 98 界面的 CSS 库
0
98.css构建类似 Win 98 界面的 CSS 库
98.css是一个用于构建类似Windows98界面的CSS库。该库依赖于语义HTML的用法,例如要编写按钮,需要使用<button>,输入元素需要标签,图标按钮依赖于aria-label
98.css构建类似 Win 98 界面的 CSS 库
0
ReactJS构建用户界面的 JavaScript 库
React(有时叫React.js或ReactJS)是Facebook推出的一个为数据提供渲染为HTML视图,用来构建用户界面的开源JavaScript库。React视图通常采用包含以自定义HTML标
ReactJS构建用户界面的 JavaScript 库
0
ReactJS构建用户界面的 JavaScript 库
React(有时叫React.js或ReactJS)是 Facebook 推出的一个为数据提供渲染为
ReactJS构建用户界面的 JavaScript 库
0
Solid.js用于构建用户界面的 JavaScript 库
Solid.js是一个用于构建用户界面的声明式、高效且灵活的JavaScript库。它不使用虚拟DOM。相反,它选择将其模板编译为真实的DOM节点,并将更新包装在细粒度的React中。主要特点具有细粒
Solid.js用于构建用户界面的 JavaScript 库
0
Solid.js用于构建用户界面的 JavaScript 库
Solid.js 是一个用于构建用户界面的声明式、高效且灵活的 JavaScript 库。它不使用虚
Solid.js用于构建用户界面的 JavaScript 库
0