GithubHelp home page GithubHelp logo

bgkyer / blazor-dynamic-themes-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kelvin-binh/blazor-dynamic-themes-sample

0.0 0.0 0.0 806 KB

How to implement multiple themes in BlazorWasm app

Home Page: https://medium.com/@kelvinbinh.sd/how-to-activate-new-theme-dynamically-with-blazor-wasm-a722a1d2bc27

HTML 70.31% C# 12.65% CSS 17.04%

blazor-dynamic-themes-sample's Introduction

How to implement multiple themes in BlazorWasm app

By Kelvin Binh

The simple project demonstrates how to implement multiple themes in BlazorWasm app

Usage with careful: The project is in experimental research for BlazorWasm with .NET Core 3.0 SDK

Screenshots

Default Theme

dashboard

news-feed

RainyDay Theme

dashboard

weather-summary

Redwood Theme

dashboard

temperature

Table of contents

Build Up And Running

  1. Install the latest .NET Core 3.0 SDK release.

  2. Build project and all of its dependencies.

    dotnet build
    
  3. Or run run source code without any explicit compile or launch commands

    dotnet run
    
  4. From browser, open https://localhost:5001

Test Switch Theme

To switch an existed themes (Default, RainyDay, Redwood), simply changing value of activeTheme from ./wwwroot/sample-data/settings.json file

{
    "activeTheme": "Default"
}

blazor-dynamic-themes-sample's People

Contributors

kelvin-binh avatar kelvinbinhsd 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.