Giter Site home page Giter Site logo

nogalpaulina / myuw-app-styles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from myuw-web-components/myuw-app-styles

0.0 1.0 0.0 168 KB

UW-Madison theme for MyUW web components

License: Apache License 2.0

JavaScript 42.22% HTML 44.45% CSS 13.33%

myuw-app-styles's Introduction

MyUW App Styles

This HTML import contains custom CSS properties that are consumed by other components in the myuw-web-components space.

How to use

To use the "UW-Madison White" theme, for example, import the component and add the "uw-madison-white-theme" class to your page's body element, like so:

<!-- import the module -->
<script type="module" src="https://cdn.my.wisc.edu/@myuw-web-components/myuw-app-styles@latest/myuw-app-styles.min.mjs"></script>

<!-- fallback for browsers without ES2015 module support -->
<script nomodule src="https://cdn.my.wisc.edu/@myuw-web-components/myuw-app-styles@latest/myuw-app-styles.min.js"></script>

<body class="uw-madison-white-theme">
    <!-- ... -->
</body>

To avoid flashing unstyled text, this component also uses FontFaceObserver to determine when UW-Madison theme fonts are loaded and updates <body> with the attribute myuw-font-loaded

Note: The evergreen "latest" version can be used for convenience, but in production settings it is recommended to use the latest release version specifically, and upgrade only after testing!

Theming

The default theme is based on UW-Madison red and other colors from the UW-Madison brand guidelines for web. You don't have to do anything special to use this theme.

Cross-browser testing provided by:
BrowserStack

myuw-app-styles's People

Contributors

thevoiceofzeke avatar davidmsibley avatar nogalpaulina avatar apetro avatar paulerickson avatar saberg3 avatar

Watchers

James Cloos 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.