system.css
1.0.0
文件
System.CSS是一個CSS庫,用於構建類似於Apple的系統OS的界面,該界面從1984 - 1991年開始運行。在設計方面,從系統1轉換為6的實際變化並沒有太大變化;但是,該庫基於系統6,因為它是MacOS的最終單色版本。
幸運的是,該庫不使用任何JavaScript,並且與您選擇的任何前端框架兼容。大多數樣式也可以被覆蓋以進行更深入的自定義。
您可以通過幾種方法開始使用System.CSS!
從CDN進口(最簡單)
將以下內容添加到您的頭標籤中:
< 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 installnpm start啟動開發環境。您需要的所有內容都可以在style.css中找到。
感謝您檢查這個項目!這個圖書館的娛樂性很高,並在很大程度上受到98.CSS的啟發。芝加哥12PT和日內瓦9PT字體是@blogmywiki的娛樂活動
System.CSS仍在Beta中!我根據Apple的人類界面指南重新創建了組件。但是,我可能會錯過/忽略一些必不可少的東西。我還必須重新創建大多數資產,也可以在這裡找到。
如果您找到錯誤,請考慮打開問題。如果您想添加一些內容,請隨時創建PR!
如果您想看看我要做什麼,請考慮在Twitter上關注我或查看我的個人網站:)
CSS掃描:檢查,複製和編輯CSS的最快,最簡單的方法