Skip to content

emjose/box-of-shadows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

previous 100 days of code next

The Box of Shadows


The Box of Shadows

Table of Contents


#100DaysOfCode

Day 38: October 3, 2022


Installation

1. Git clone and cd into the repo folder:

git clone git@github.com:emjose/box-of-shadows.git && cd box-of-shadows

2. Run the command:

open index.html

Live Site

Live Site

The Box of Shadows is best viewed on a destop or laptop computer browser.

The Box of Shadows can be viewed on mobile devices, but large shadow values will be cropped.

The Box of Shadows is a responsive and progressive web app.

Click below to expand GIFs

GIF demo: Changing Shadow Values

Live Site

Users can change values for horizontal and vertical offset, as well as blur and spread radius.

GIF demo: Changing Color Values

Live Site

Body, shadow, or box color can be changed. The color picker is not visible in the GIF, see image below.

Live Site

GIF demo: Copying and Resetting

Live Site

• The box-shadow CSS code can be copied to the clipboard, with vendor prefixes for common browsers.

• Shadow and color settings can be reset to default values for either light or dark mode.

GIF demo: Light or Dark Mode

Live Site

Users can switch between light or dark mode, with preference saved to local storage.

GIF demo: Accessibility

Live Site

The Box of Shadows is keyboard-navigable.

• For keyboard navigation, the inset checkbox can be checked or unchecked by pressing the space key.


Improvement

There are a number of areas of improvement for The Box of Shadows:

  • Option for box shadow opacity.

  • Option for multiple box shadow layers.

  • Option to copy CSS lines for body or box color properties.

  • Custom shadow values persisting on refresh, and persisting between light and dark modes.

  • Maintain automatic contrast and legibility for text, buttons, and slider ranges when box color is changed.


Resources


Copyright


Let's Connect!

Twitter badge Linkedin badge Medium badge Instagram badge Gmail badge Portfolio badge Github badge

Back to Top