Press Play is a UI kit designed to evoke nostalgia for all those days (and late nights) spent gaming as a child. Its monochromatic color scheme and pixelated style are sure to delight fans of retro games.
Using This Documentation
Each main category of this UI kit has been given its own section of information. These sections include some information about using the component, a visual representation of the component, and the HTML/CSS code for each component. You are welcome to use this code however you wish, though attribution would be appreciated.
Colors
This color scheme can be used for any projects related to nostalgia and early game systems. The green monochromatic color scheme is meant to evoke old monitors/screens, while the blue-tinged neutrals are reminiscent of some old game systems' casings. Together, they remind the viewer of old video games.
The code below includes the variables within the :root
CSS selector for use throughout the CSS file.
Please note: The "text" color meets WCAG AA standards on "primary", "tertiary", "light neutral", and "background". "Background" meets AA standards on "secondary", "dark neutral", and "text". All other combinations should be tested before deployment.
Primary
Secondary
Tertiary
Hover
Text
Dark Neutral
Light Neutral
Background
Error
Warning
Success
Info
CSS
:root {
--primary: #A8B880;
--secondary: #D7DBB6;
--tertiary: #555D40;
--hover: #636D4C;
--text: #1C1D20;
--dark-neutral: #646768;
--light-neutral: #BBBDC2;
--background: #EBEFF3;
}
Typography
The Press Play UI kit features three different free Google Fonts typefaces: Silkscreen for large headings, Jersey 20 for subheadings, and Rubik for body copy. Silkscreen's pixelated qualities contribute to the nostalgic feel of the kit, while Rubik is a legible, but geometric, typeface. Jersey 20 is also pixelated, but is a good balance between the abstract shapes of Silkscreen and the simple lines of Rubik.
Silkscreen should only be used for the largest headings, as it becomes unreadable at smaller sizes. Jersey 20 works well for smaller headings, but Rubik should be the go-to for any lengthier blocks of text. The below CSS code includes rules for H1 to H3 as well as paragraphs. Generally, the rules for paragraphs should be placed within the body
selector so it is the default for other text-based items.
Silkscreen - Headings
Jersey 20 - Subheadings
Rubik - Body Copy
CSS
:root {
--header-font: "Silkscreen", sans-serif;
--subheader-font: "Jersey 20", sans-serif;
--body-font: "Rubik", sans-serif;
}
h1 {
font-family: var(--header-font);
font-size: 2rem;
}
h2 {
font-family: var(--subheader-font);
font-size: 1.8rem;
}
h3 {
font-family: var(--subheader-font);
font-size: 1.5rem;
}
p {
font-family: var(--body-font);
font-size: 1rem;
line-height: 1.5em;
}
Links
Link styling utilizes the tertiary color of the color scheme. Links can also be styled with text-decoration: none;
to remove the default underline; however, it is a good indication other than color that a link is there.
HTML
<a href="#">This is a link.</a>
CSS
a {
color: var(--tertiary);
}
a:hover {
color: var(--hover);
}
a:focus {
border: 0.15rem dashed var(--tertiary);
}
Form Items
Form items can be difficult to style, and the code can get complex. The below three examples include little CSS. These can be used for any sort of contact form, login area, or survey.
Labeled Text Inputs
HTML
<label for="text">Text Input</label>
<input type="text" id="text" name="text">
Checkboxes
HTML
<input type="checkbox" id="checkbox" name="checkbox">
<label for="checkbox">Checkbox</label>
Radio Buttons
HTML
<input type="radio" id="radio" name="radio">
<label for="radio">Radio</label>