Shell.css
Navigation
Choose a theme
About the Project

Shell.css

This project attempts to recreate the visual stylings of Windows 3.1 for use on the web. Color schemes have been approximated as closely as possible based on the appearance settings in the control panel and the system color picker.

Bootstrap's grid system is utilized to make things responsive, but this is not a Bootstrap-specific project; the CSS classes can be used with any framework. Some tweaks will likely be required to make everything look right.

Installation
Usage
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap-grid.min.css" />
<link rel="stylesheet" href="node_modules/shell-css/dist/shell.css" />

<!-- Or use a CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2/dist/css/bootstrap-grid.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/shell-css@1.1.0/dist/shell.css" />

SCSS is used for the source files since it supports nesting and variables. You can build the project using Parcel. Check out the GitHub repo for information about setting up a local dev environment.

Forms

Use the sample dialog box to build an ice cream sundae.

Experiment with the different sundae selections. As you make selections, the calorie count for the sundae increases or decreases.

You can learn about the form controls on display here by inspecting element.

310 Calories
Sundae
Amount
Toppings
Flavor
Other Controls
Slider
Buttons
Form Example
Log In
Typography

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Fonts

We use MS Sans Serif as the default font for headers and paragraphs.

Unstyled text uses the system font.

You can override these fonts using the classes:

  • font-system
  • font-sans-serif
  • font-serif
  • font-monospace

Links

Our links are styled in the style of WinHelp. Definition links are in this style as well. What's this?

Windows
Inactive Window

Windows are the main building blocks of the UI. They can be used to display content, forms, or anything else you can think of.

Active Workspace Window
Active Window

Windows can be nested inside of other windows.

Colors

RGB colors are copied from the default Windows color picker, and are referred to by the letters and numbers in this grid.

Dithered color simulation uses a tiled background image of what the dithered color would look like under 16 color mode in Windows 3.1.

You can specify a color using the classes below where XX is a location on the grid. For example, A1, C3, D5, H6:

  • bg-XXr
  • bg-XXd
  • text-XXr
  • text-XXd

Use r for RGB or d for dithered.

Dithered Text

Using the text-XXd classes will give you dithered text, however this relies on background-clip and it isn't always guaranteed to work in all browsers.

Speaking of not being guaranteed to work, if you find something that doesn't work, report it on GitHub!
Icons

There are some icons built-in that are available as CSS sprites. These all start with ico-.

ico-exclamation

This is something you should pay attention to!

ico-question

This is but a taste of our fury! Do you yield?

ico-stop

The retro encabulator is not responding properly. Check your IRQ values and restart your computer.

ico-information

Remember: licking doorknobs is illegal on other planets.

ico-success

Task failed successfully.

ico-danger

Bad command or file name.

These are mostly here for dialog boxes, which are featured above.

Icon Lists

Icon list example
exclama~1.ico
question.ico
stop.ico
informa~1.ico
success.ico
danger.ico

Your web page or application may want to display a list of links, and the icon-list class simulates this. If you're using our (under construction) web components, the minimized icons use this to display on the desktop.

Themes

Themes are applied using the theme-* class. The following themes are available: