XP.css 一个用于创建Windows XP界面风格的CSS框架

网友投稿 1209 2022-10-30

XP.css 一个用于创建Windows XP界面风格的CSS框架

XP.css 一个用于创建Windows XP界面风格的CSS框架

XP.css

A design system for building faithful recreations of old UIs.

XP.css is an extension of 98.css. A CSS file that takes semantic HTML and makes it look pretty. It does not ship with any JavaScript, so it is compatible with your frontend framework of choice.

Installation / Usage

The easiest way to use XP.css is to import it from unpkg.

XP.css example // Windows XP Theme (include only one theme at a time) // Windows 98 Theme (include only one theme at a time)

My First Program

Hello, world!

Alternatively, you can grab XP.css from npm.

npm install xp.cssUsage:// For XPimport "xp.css/dist/XP.css";// For 98import "xp.css/dist/98.css";

Here is an example of XP.css being used with React, and an example with vanilla JavaScript.

Refer to the documentation page for specific instructions on this library's components.

Developing

Clone the repo and run npm install.

The core styles are managed in gui.

To create your own theme for the GUI you can extend the core styles. See the XP and 98 themes

You can use npm start to start a development environment that will watch for file changes and rebuild the files, reloading your browser in the process.

You can run a build manually with npm run build. This will write to the dist/ directory.

Issues, Contributing, etc.

I would love to see other people's work on gui.css, if anyone else if up for creating a theme for another OS using this framework. Also new components and bugs/issues are also welcome! Feel free to contribute in whatever way you like!

Also please refer to the GitHub issues page for jdan's 98.css.

License

MIT

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:28用zxing对二维码的解析
下一篇:29使用QRcode方式生成二维码
相关文章

 发表评论

暂时没有评论,来抢沙发吧~