• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 12 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A CSS library that imitates the Android Holo themes. If you are looking for a similar library for Material Design, try https://MaterialZ.dev.

Holo Web

Holo Web is a few stylesheets that attempt to imitate the Android “Holo” themes.

Holo-ify your site

If you want to Holo-ify HTML elements on your page, you just need to include two files:

  • “holo-base-elements.css”, which defines the sizes of the elements
  • One of the following, which will color the page like the corresponding Holo theme:
    • “holo-hc-dark-elements.css” (Honeycomb Holo Dark)
    • “holo-hc-light-elements.css” (Honeycomb Holo Light)
    • “holo-ics-dark-elements.css” (Ice Cream Sandwich Holo Dark)
    • “holo-ics-light-elements.css” (Ice Cream Sandwich Holo Light)
    • “holo-kk-dark-elements.css” (KitKat Holo Dark)
    • “holo-kk-light-elements.css” (KitKat Holo Light)

Add Holo widgets

You can use widgets like action bars (currently available) and tabs (coming soon) by adding other stylesheets and specifying classes:

  • “holo-base-widgets.css”, which defines the sizes of the elements
  • One of the following, which will color the widgets like the corresponding Holo theme:
    • “holo-hc-dark-widgets.css” (Honeycomb Holo Dark)
    • “holo-hc-light-widgets.css” (Honeycomb Holo Light)
    • “holo-ics-dark-widgets.css” (Ice Cream Sandwich Holo Dark)
    • “holo-ics-light-widgets.css” (Ice Cream Sandwich Holo Light)
    • “holo-kk-dark-widgets.css” (KitKat Holo Dark)
    • “holo-kk-light-widgets.css” (KitKat Holo Light)
  • To add an action bar, add a <header> element with the class holo-actionBar: <header class="holo-actionBar"> (use a <footer> element for a bottom action bar)

Note: adding the base stylesheet will automatically add padding for action bars.

Make it work on older mobile browsers

One great use of Holo Web is to make mobile web sites look like native Android apps. Holo Web includes a script to make sure all widgets respond to touch properly in mobile WebKit (Mobile Safari, Android Browser, Chrome for Android).

  • Make sure you include the “holo-touch.js” file in your project.
  • Add a script tag to your page: <script type="text/javascript" src="holo-touch.js"></script>.

The Roboto Font

holo-base-elements.css imports basic Roboto by default. If you need more weights or character sets, you can load them through Google Web Fonts.

Known issues

  • Certain form elements (checkboxes, radio buttons) are only properly themed in WebKit-based browsers (e.g. Safari, Chrome) and partially themed in Presto (older Opera) and the latest version of Trident (IE10+).
  • Certain form elements, such as range sliders, are unsupported in some older browsers.

The above issues are the result of browser limitations or lack of documented solutions.

Contributing to Holo Web

Contributions to this project are welcome. Please follow standard commit guidelines.

More Repositories

1

chrome-voice-actions

A Chrome extension that brings Voice Actions to Google Chrome. The extension is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
JavaScript
42
star
2

paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
JavaScript
39
star
3

wave-extensions-gallery

An index of wave extensions
Python
11
star
4

materialz

A pure CSS plug-and-play library that implements the Material Design spec
CSS
8
star
5

crx-options-page

A boilerplate Chrome extension options page that fits in with the style of other Chrome pages
CSS
8
star
6

wave-gadgets

My various wave gadgets
JavaScript
5
star
7

rizzoma-notifier

A Chrome extension to notify the user of new messages in Rizzoma
JavaScript
3
star
8

songz

A web-based music playing app for managing your metadata and playlists while serving music hosted on Google Drive.
JavaScript
3
star
9

sentiment-visualizer

A visualizer for sentiment analysis of text.
CSS
2
star
10

clippy-js

Add Clippy and a message bubble to any web page.
JavaScript
2
star
11

portalz

My map pack for Portal, featuring twenty test chambers and a variety of game mechanics.
2
star
12

do-surma-and-jake-still-have-a-job

https://www.youtube.com/watch?v=dR_J4X416hg&t=196
HTML
2
star
13

color-blind

JavaScript
1
star
14

republican-response-generator

Accurately simulates a Republican politician's public response to a crisis.
CSS
1
star
15

rizzoma-googley

A Chrome extension that simplifies Rizzoma's interface and themes it in the style of Google's Project Kennedy redesign
CSS
1
star
16

screentxt

ScreenTxt_Z.
Python
1
star
17

facebook-material

A Chrome extension to enable a Material Design visual theme for Facebook
CSS
1
star
18

reactionz-old

A collection of reaction images, GIFs, videos, and ASCII art
CSS
1
star
19

simplenote-material

A Chrome extension to enable a Material Design visual theme for Simplenote
CSS
1
star
20

rpmegle

[WORK IN PROGRESS] Random-pairing chat, designed around fandom character role-playing
JavaScript
1
star
21

rewind-theater

A web app for doing live video analysis in the style of IGN Rewind Theater
JavaScript
1
star
22

i3-mocks

Mockups of the Intranet 3 interface
JavaScript
1
star
23

paid-sick-leave-tracker

A tracker of which restaurants provide their workers paid sick leave, or at least paid sick leave for cases of COVID-19.
CSS
1
star