Coder Social home page Coder Social logo

andrewwatterson / system.css Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sakofchit/system.css

0.0 0.0 0.0 111 KB

A design system for building retro Apple interfaces

Home Page: https://sakofchit.github.io/system.css/

License: MIT License

JavaScript 15.83% CSS 84.17%

system.css's Introduction

system.css

Documentation

System.css is a CSS library for building interfaces that resemble Apple's System OS which ran from 1984-1991. Design-wise, not much really changed from System 1 to System 6; however this library is based on System 6 as it was the final monochrome version of MacOS.

Fortunately, this library does not use any JavaScript and is compatible with any front-end framework of your choice. Most styles can also be overwritten to allow for deeper customization.

Getting Started

There's a couple ways you can get started with System.css!

Import from CDN (easiest)

Add the following to your head tag:

<link rel="stylesheet" href="https://unpkg.com/@sakun/[email protected]/dist/system.css" />

Here's some starter code to help you get started:

<!DOCTYPE html>
<html>
<head>
    <title>System.css Starter</title>
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="https://unpkg.com/@sakun/[email protected]/dist/system.css" />
</head>
<body>
    <div class="window" style="width:30rem;">
        <div class="title-bar"> 
            <button class="close"></button>
            <h1 class="title">System.css</h1>
            <button 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 class="close"></button>
            <h1 class="title">Search</h1>
            <button class="hidden"></button>
        </div>
        <div class="separator"></div>
        
        <div class="modeless-dialog">
            <section class="field-row" style="justify-content: flex-start">
            <p class="modeless-text">Find:</p>
            <input 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>

Import from npmjs

npm i @sakun/system.css

Developing

  1. Clone the repository and run npm install
  2. Run npm start to start the development environment.

Everything you'll need can be found in style.css.

Contributing, Credits, etc.

Thanks for checking this project out! This library was made in good fun and was largely inspired by 98.css. The Chicago 12pt and Geneva 9pt fonts are recreations by @blogmywiki

System.css is still in beta! I recreated components based on Apple's Human Interface Guidelines. However, there's still a pretty good chance that I've might've missed/overlooked something essential. I've also had to recreate most of the assets, which can also be found here.

If you find a bug, consider opening an issue. If there's something that you'd like to add, please feel free to create a PR!

If you'd like to see what else I'm up to, consider following me on Twitter or checking out my personal site :)

system.css's People

Contributors

sakofchit avatar andrewwatterson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.